1 #! /bin/sh 2 # From configure.ac Revision. 3 # Guess values for system-dependent variables and create Makefiles. 4 # Generated by GNU Autoconf 2.69 for GNU MP 6.2.1. 5 # 6 # Report bugs to <gmp-bugs (at] gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html>. 7 # 8 # 9 # 10 # Copyright 1996-2020 Free Software Foundation, Inc. 11 # 12 # This file is part of the GNU MP Library. 13 # 14 # The GNU MP Library is free software; you can redistribute it and/or modify 15 # it under the terms of either: 16 # 17 # * the GNU Lesser General Public License as published by the Free 18 # Software Foundation; either version 3 of the License, or (at your 19 # option) any later version. 20 # 21 # or 22 # 23 # * the GNU General Public License as published by the Free Software 24 # Foundation; either version 2 of the License, or (at your option) any 25 # later version. 26 # 27 # or both in parallel, as here. 28 # 29 # The GNU MP Library is distributed in the hope that it will be useful, but 30 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 31 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 32 # for more details. 33 # 34 # You should have received copies of the GNU General Public License and the 35 # GNU Lesser General Public License along with the GNU MP Library. If not, 36 # see https://www.gnu.org/licenses/. 37 # 38 # 39 # 40 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 41 # 42 # 43 # This configure script is free software; the Free Software Foundation 44 # gives unlimited permission to copy, distribute and modify it. 45 ## -------------------- ## 46 ## M4sh Initialization. ## 47 ## -------------------- ## 48 49 # Be more Bourne compatible 50 DUALCASE=1; export DUALCASE # for MKS sh 51 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 52 emulate sh 53 NULLCMD=: 54 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 55 # is contrary to our usage. Disable this feature. 56 alias -g '${1+"$@"}'='"$@"' 57 setopt NO_GLOB_SUBST 58 else 59 case `(set -o) 2>/dev/null` in #( 60 *posix*) : 61 set -o posix ;; #( 62 *) : 63 ;; 64 esac 65 fi 66 67 68 as_nl=' 69 ' 70 export as_nl 71 # Printing a long string crashes Solaris 7 /usr/bin/printf. 72 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 73 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 74 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 75 # Prefer a ksh shell builtin over an external printf program on Solaris, 76 # but without wasting forks for bash or zsh. 77 if test -z "$BASH_VERSION$ZSH_VERSION" \ 78 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 79 as_echo='print -r --' 80 as_echo_n='print -rn --' 81 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 82 as_echo='printf %s\n' 83 as_echo_n='printf %s' 84 else 85 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 86 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 87 as_echo_n='/usr/ucb/echo -n' 88 else 89 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 90 as_echo_n_body='eval 91 arg=$1; 92 case $arg in #( 93 *"$as_nl"*) 94 expr "X$arg" : "X\\(.*\\)$as_nl"; 95 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 96 esac; 97 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 98 ' 99 export as_echo_n_body 100 as_echo_n='sh -c $as_echo_n_body as_echo' 101 fi 102 export as_echo_body 103 as_echo='sh -c $as_echo_body as_echo' 104 fi 105 106 # The user is always right. 107 if test "${PATH_SEPARATOR+set}" != set; then 108 PATH_SEPARATOR=: 109 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 110 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 111 PATH_SEPARATOR=';' 112 } 113 fi 114 115 116 # IFS 117 # We need space, tab and new line, in precisely that order. Quoting is 118 # there to prevent editors from complaining about space-tab. 119 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 120 # splitting by setting IFS to empty value.) 121 IFS=" "" $as_nl" 122 123 # Find who we are. Look in the path if we contain no directory separator. 124 as_myself= 125 case $0 in #(( 126 *[\\/]* ) as_myself=$0 ;; 127 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 128 for as_dir in $PATH 129 do 130 IFS=$as_save_IFS 131 test -z "$as_dir" && as_dir=. 132 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 133 done 134 IFS=$as_save_IFS 135 136 ;; 137 esac 138 # We did not find ourselves, most probably we were run as `sh COMMAND' 139 # in which case we are not to be found in the path. 140 if test "x$as_myself" = x; then 141 as_myself=$0 142 fi 143 if test ! -f "$as_myself"; then 144 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 145 exit 1 146 fi 147 148 # Unset variables that we do not need and which cause bugs (e.g. in 149 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 150 # suppresses any "Segmentation fault" message there. '((' could 151 # trigger a bug in pdksh 5.2.14. 152 for as_var in BASH_ENV ENV MAIL MAILPATH 153 do eval test x\${$as_var+set} = xset \ 154 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 155 done 156 PS1='$ ' 157 PS2='> ' 158 PS4='+ ' 159 160 # NLS nuisances. 161 LC_ALL=C 162 export LC_ALL 163 LANGUAGE=C 164 export LANGUAGE 165 166 # CDPATH. 167 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 168 169 # Use a proper internal environment variable to ensure we don't fall 170 # into an infinite loop, continuously re-executing ourselves. 171 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 172 _as_can_reexec=no; export _as_can_reexec; 173 # We cannot yet assume a decent shell, so we have to provide a 174 # neutralization value for shells without unset; and this also 175 # works around shells that cannot unset nonexistent variables. 176 # Preserve -v and -x to the replacement shell. 177 BASH_ENV=/dev/null 178 ENV=/dev/null 179 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 180 case $- in # (((( 181 *v*x* | *x*v* ) as_opts=-vx ;; 182 *v* ) as_opts=-v ;; 183 *x* ) as_opts=-x ;; 184 * ) as_opts= ;; 185 esac 186 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 187 # Admittedly, this is quite paranoid, since all the known shells bail 188 # out after a failed `exec'. 189 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 190 as_fn_exit 255 191 fi 192 # We don't want this to propagate to other subprocesses. 193 { _as_can_reexec=; unset _as_can_reexec;} 194 if test "x$CONFIG_SHELL" = x; then 195 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 196 emulate sh 197 NULLCMD=: 198 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 199 # is contrary to our usage. Disable this feature. 200 alias -g '\${1+\"\$@\"}'='\"\$@\"' 201 setopt NO_GLOB_SUBST 202 else 203 case \`(set -o) 2>/dev/null\` in #( 204 *posix*) : 205 set -o posix ;; #( 206 *) : 207 ;; 208 esac 209 fi 210 " 211 as_required="as_fn_return () { (exit \$1); } 212 as_fn_success () { as_fn_return 0; } 213 as_fn_failure () { as_fn_return 1; } 214 as_fn_ret_success () { return 0; } 215 as_fn_ret_failure () { return 1; } 216 217 exitcode=0 218 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 219 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 220 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 221 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 222 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 223 224 else 225 exitcode=1; echo positional parameters were not saved. 226 fi 227 test x\$exitcode = x0 || exit 1 228 test -x / || exit 1" 229 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 230 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 231 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 232 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 233 test \$(( 1 + 1 )) = 2 || exit 1 234 235 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 236 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 237 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 238 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 239 PATH=/empty FPATH=/empty; export PATH FPATH 240 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 241 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 242 if (eval "$as_required") 2>/dev/null; then : 243 as_have_required=yes 244 else 245 as_have_required=no 246 fi 247 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 248 249 else 250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 251 as_found=false 252 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 253 do 254 IFS=$as_save_IFS 255 test -z "$as_dir" && as_dir=. 256 as_found=: 257 case $as_dir in #( 258 /*) 259 for as_base in sh bash ksh sh5; do 260 # Try only shells that exist, to save several forks. 261 as_shell=$as_dir/$as_base 262 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 263 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 264 CONFIG_SHELL=$as_shell as_have_required=yes 265 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 266 break 2 267 fi 268 fi 269 done;; 270 esac 271 as_found=false 272 done 273 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 274 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 275 CONFIG_SHELL=$SHELL as_have_required=yes 276 fi; } 277 IFS=$as_save_IFS 278 279 280 if test "x$CONFIG_SHELL" != x; then : 281 export CONFIG_SHELL 282 # We cannot yet assume a decent shell, so we have to provide a 283 # neutralization value for shells without unset; and this also 284 # works around shells that cannot unset nonexistent variables. 285 # Preserve -v and -x to the replacement shell. 286 BASH_ENV=/dev/null 287 ENV=/dev/null 288 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 289 case $- in # (((( 290 *v*x* | *x*v* ) as_opts=-vx ;; 291 *v* ) as_opts=-v ;; 292 *x* ) as_opts=-x ;; 293 * ) as_opts= ;; 294 esac 295 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 296 # Admittedly, this is quite paranoid, since all the known shells bail 297 # out after a failed `exec'. 298 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 299 exit 255 300 fi 301 302 if test x$as_have_required = xno; then : 303 $as_echo "$0: This script requires a shell more modern than all" 304 $as_echo "$0: the shells that I found on your system." 305 if test x${ZSH_VERSION+set} = xset ; then 306 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 307 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 308 else 309 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and 310 $0: gmp-bugs (at] gmplib.org, see 311 $0: https://gmplib.org/manual/Reporting-Bugs.html about 312 $0: your system, including any error possibly output before 313 $0: this message. Then install a modern shell, or manually 314 $0: run the script under such a shell if you do have one." 315 fi 316 exit 1 317 fi 318 fi 319 fi 320 SHELL=${CONFIG_SHELL-/bin/sh} 321 export SHELL 322 # Unset more variables known to interfere with behavior of common tools. 323 CLICOLOR_FORCE= GREP_OPTIONS= 324 unset CLICOLOR_FORCE GREP_OPTIONS 325 326 ## --------------------- ## 327 ## M4sh Shell Functions. ## 328 ## --------------------- ## 329 # as_fn_unset VAR 330 # --------------- 331 # Portably unset VAR. 332 as_fn_unset () 333 { 334 { eval $1=; unset $1;} 335 } 336 as_unset=as_fn_unset 337 338 # as_fn_set_status STATUS 339 # ----------------------- 340 # Set $? to STATUS, without forking. 341 as_fn_set_status () 342 { 343 return $1 344 } # as_fn_set_status 345 346 # as_fn_exit STATUS 347 # ----------------- 348 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 349 as_fn_exit () 350 { 351 set +e 352 as_fn_set_status $1 353 exit $1 354 } # as_fn_exit 355 356 # as_fn_mkdir_p 357 # ------------- 358 # Create "$as_dir" as a directory, including parents if necessary. 359 as_fn_mkdir_p () 360 { 361 362 case $as_dir in #( 363 -*) as_dir=./$as_dir;; 364 esac 365 test -d "$as_dir" || eval $as_mkdir_p || { 366 as_dirs= 367 while :; do 368 case $as_dir in #( 369 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 370 *) as_qdir=$as_dir;; 371 esac 372 as_dirs="'$as_qdir' $as_dirs" 373 as_dir=`$as_dirname -- "$as_dir" || 374 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 375 X"$as_dir" : 'X\(//\)[^/]' \| \ 376 X"$as_dir" : 'X\(//\)$' \| \ 377 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 378 $as_echo X"$as_dir" | 379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 380 s//\1/ 381 q 382 } 383 /^X\(\/\/\)[^/].*/{ 384 s//\1/ 385 q 386 } 387 /^X\(\/\/\)$/{ 388 s//\1/ 389 q 390 } 391 /^X\(\/\).*/{ 392 s//\1/ 393 q 394 } 395 s/.*/./; q'` 396 test -d "$as_dir" && break 397 done 398 test -z "$as_dirs" || eval "mkdir $as_dirs" 399 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 400 401 402 } # as_fn_mkdir_p 403 404 # as_fn_executable_p FILE 405 # ----------------------- 406 # Test if FILE is an executable regular file. 407 as_fn_executable_p () 408 { 409 test -f "$1" && test -x "$1" 410 } # as_fn_executable_p 411 # as_fn_append VAR VALUE 412 # ---------------------- 413 # Append the text in VALUE to the end of the definition contained in VAR. Take 414 # advantage of any shell optimizations that allow amortized linear growth over 415 # repeated appends, instead of the typical quadratic growth present in naive 416 # implementations. 417 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 418 eval 'as_fn_append () 419 { 420 eval $1+=\$2 421 }' 422 else 423 as_fn_append () 424 { 425 eval $1=\$$1\$2 426 } 427 fi # as_fn_append 428 429 # as_fn_arith ARG... 430 # ------------------ 431 # Perform arithmetic evaluation on the ARGs, and store the result in the 432 # global $as_val. Take advantage of shells that can avoid forks. The arguments 433 # must be portable across $(()) and expr. 434 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 435 eval 'as_fn_arith () 436 { 437 as_val=$(( $* )) 438 }' 439 else 440 as_fn_arith () 441 { 442 as_val=`expr "$@" || test $? -eq 1` 443 } 444 fi # as_fn_arith 445 446 447 # as_fn_error STATUS ERROR [LINENO LOG_FD] 448 # ---------------------------------------- 449 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 450 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 451 # script with STATUS, using 1 if that was 0. 452 as_fn_error () 453 { 454 as_status=$1; test $as_status -eq 0 && as_status=1 455 if test "$4"; then 456 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 457 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 458 fi 459 $as_echo "$as_me: error: $2" >&2 460 as_fn_exit $as_status 461 } # as_fn_error 462 463 if expr a : '\(a\)' >/dev/null 2>&1 && 464 test "X`expr 00001 : '.*\(...\)'`" = X001; then 465 as_expr=expr 466 else 467 as_expr=false 468 fi 469 470 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 471 as_basename=basename 472 else 473 as_basename=false 474 fi 475 476 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 477 as_dirname=dirname 478 else 479 as_dirname=false 480 fi 481 482 as_me=`$as_basename -- "$0" || 483 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 484 X"$0" : 'X\(//\)$' \| \ 485 X"$0" : 'X\(/\)' \| . 2>/dev/null || 486 $as_echo X/"$0" | 487 sed '/^.*\/\([^/][^/]*\)\/*$/{ 488 s//\1/ 489 q 490 } 491 /^X\/\(\/\/\)$/{ 492 s//\1/ 493 q 494 } 495 /^X\/\(\/\).*/{ 496 s//\1/ 497 q 498 } 499 s/.*/./; q'` 500 501 # Avoid depending upon Character Ranges. 502 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 503 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 504 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 505 as_cr_digits='0123456789' 506 as_cr_alnum=$as_cr_Letters$as_cr_digits 507 508 509 as_lineno_1=$LINENO as_lineno_1a=$LINENO 510 as_lineno_2=$LINENO as_lineno_2a=$LINENO 511 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 512 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 513 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 514 sed -n ' 515 p 516 /[$]LINENO/= 517 ' <$as_myself | 518 sed ' 519 s/[$]LINENO.*/&-/ 520 t lineno 521 b 522 :lineno 523 N 524 :loop 525 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 526 t loop 527 s/-\n.*// 528 ' >$as_me.lineno && 529 chmod +x "$as_me.lineno" || 530 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 531 532 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 533 # already done that, so ensure we don't try to do so again and fall 534 # in an infinite loop. This has already happened in practice. 535 _as_can_reexec=no; export _as_can_reexec 536 # Don't try to exec as it changes $[0], causing all sort of problems 537 # (the dirname of $[0] is not the place where we might find the 538 # original and so on. Autoconf is especially sensitive to this). 539 . "./$as_me.lineno" 540 # Exit status is that of the last command. 541 exit 542 } 543 544 ECHO_C= ECHO_N= ECHO_T= 545 case `echo -n x` in #((((( 546 -n*) 547 case `echo 'xy\c'` in 548 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 549 xy) ECHO_C='\c';; 550 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 551 ECHO_T=' ';; 552 esac;; 553 *) 554 ECHO_N='-n';; 555 esac 556 557 rm -f conf$$ conf$$.exe conf$$.file 558 if test -d conf$$.dir; then 559 rm -f conf$$.dir/conf$$.file 560 else 561 rm -f conf$$.dir 562 mkdir conf$$.dir 2>/dev/null 563 fi 564 if (echo >conf$$.file) 2>/dev/null; then 565 if ln -s conf$$.file conf$$ 2>/dev/null; then 566 as_ln_s='ln -s' 567 # ... but there are two gotchas: 568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 570 # In both cases, we have to default to `cp -pR'. 571 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 572 as_ln_s='cp -pR' 573 elif ln conf$$.file conf$$ 2>/dev/null; then 574 as_ln_s=ln 575 else 576 as_ln_s='cp -pR' 577 fi 578 else 579 as_ln_s='cp -pR' 580 fi 581 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 582 rmdir conf$$.dir 2>/dev/null 583 584 if mkdir -p . 2>/dev/null; then 585 as_mkdir_p='mkdir -p "$as_dir"' 586 else 587 test -d ./-p && rmdir ./-p 588 as_mkdir_p=false 589 fi 590 591 as_test_x='test -x' 592 as_executable_p=as_fn_executable_p 593 594 # Sed expression to map a string onto a valid CPP name. 595 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 596 597 # Sed expression to map a string onto a valid variable name. 598 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 599 600 SHELL=${CONFIG_SHELL-/bin/sh} 601 602 603 test -n "$DJDIR" || exec 7<&0 </dev/null 604 exec 6>&1 605 606 # Name of the host. 607 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 608 # so uname gets run too. 609 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 610 611 # 612 # Initializations. 613 # 614 ac_default_prefix=/usr/local 615 ac_clean_files= 616 ac_config_libobj_dir=. 617 LIBOBJS= 618 cross_compiling=no 619 subdirs= 620 MFLAGS= 621 MAKEFLAGS= 622 623 # Identity of this package. 624 PACKAGE_NAME='GNU MP' 625 PACKAGE_TARNAME='gmp' 626 PACKAGE_VERSION='6.2.1' 627 PACKAGE_STRING='GNU MP 6.2.1' 628 PACKAGE_BUGREPORT='gmp-bugs (at] gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html' 629 PACKAGE_URL='http://www.gnu.org/software/gmp/' 630 631 ac_unique_file="gmp-impl.h" 632 # Factoring default headers for most tests. 633 ac_includes_default="\ 634 #include <stdio.h> 635 #ifdef HAVE_SYS_TYPES_H 636 # include <sys/types.h> 637 #endif 638 #ifdef HAVE_SYS_STAT_H 639 # include <sys/stat.h> 640 #endif 641 #ifdef STDC_HEADERS 642 # include <stdlib.h> 643 # include <stddef.h> 644 #else 645 # ifdef HAVE_STDLIB_H 646 # include <stdlib.h> 647 # endif 648 #endif 649 #ifdef HAVE_STRING_H 650 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 651 # include <memory.h> 652 # endif 653 # include <string.h> 654 #endif 655 #ifdef HAVE_STRINGS_H 656 # include <strings.h> 657 #endif 658 #ifdef HAVE_INTTYPES_H 659 # include <inttypes.h> 660 #endif 661 #ifdef HAVE_STDINT_H 662 # include <stdint.h> 663 #endif 664 #ifdef HAVE_UNISTD_H 665 # include <unistd.h> 666 #endif" 667 668 ac_subst_vars='am__EXEEXT_FALSE 669 am__EXEEXT_TRUE 670 LTLIBOBJS 671 LIBOBJS 672 LEXLIB 673 LEX_OUTPUT_ROOT 674 LEX 675 YFLAGS 676 YACC 677 LIBREADLINE 678 WITH_READLINE_01 679 LIBCURSES 680 HAVE_STACK_T_01 681 HAVE_SYS_RESOURCE_H_01 682 HAVE_SIGSTACK_01 683 HAVE_SIGALTSTACK_01 684 HAVE_SIGACTION_01 685 HAVE_GETTIMEOFDAY_01 686 HAVE_GETRUSAGE_01 687 HAVE_CPUTIME_01 688 HAVE_CLOCK_01 689 TUNE_SQR_OBJ 690 gmp_srclinks 691 mpn_objs_in_libgmp 692 mpn_objects 693 GMP_LIMB_BITS 694 M4 695 TUNE_LIBS 696 TAL_OBJECT 697 LIBM 698 ENABLE_STATIC_FALSE 699 ENABLE_STATIC_TRUE 700 LT_SYS_LIBRARY_PATH 701 OTOOL64 702 OTOOL 703 LIPO 704 NMEDIT 705 DSYMUTIL 706 MANIFEST_TOOL 707 RANLIB 708 ac_ct_AR 709 LN_S 710 LD 711 FGREP 712 SED 713 LIBTOOL 714 LIBGMP_DLL 715 OBJDUMP 716 DLLTOOL 717 AS 718 NM 719 ac_ct_DUMPBIN 720 DUMPBIN 721 AR 722 ASMFLAGS 723 EGREP 724 GREP 725 CXXCPP 726 WANT_CXX_FALSE 727 WANT_CXX_TRUE 728 ac_ct_CXX 729 CXXFLAGS 730 CXX 731 CCAS 732 LIBM_FOR_BUILD 733 U_FOR_BUILD 734 EXEEXT_FOR_BUILD 735 CPP_FOR_BUILD 736 CC_FOR_BUILD 737 CPP 738 OBJEXT 739 EXEEXT 740 ac_ct_CC 741 CPPFLAGS 742 LDFLAGS 743 CFLAGS 744 CC 745 DEFN_LONG_LONG_LIMB 746 CALLING_CONVENTIONS_OBJS 747 SPEED_CYCLECOUNTER_OBJ 748 LIBGMPXX_LDFLAGS 749 LIBGMP_LDFLAGS 750 GMP_LDFLAGS 751 HAVE_HOST_CPU_FAMILY_powerpc 752 HAVE_HOST_CPU_FAMILY_power 753 ABI 754 GMP_NAIL_BITS 755 MAINT 756 MAINTAINER_MODE_FALSE 757 MAINTAINER_MODE_TRUE 758 AM_BACKSLASH 759 AM_DEFAULT_VERBOSITY 760 AM_DEFAULT_V 761 AM_V 762 am__untar 763 am__tar 764 AMTAR 765 am__leading_dot 766 SET_MAKE 767 AWK 768 mkdir_p 769 MKDIR_P 770 INSTALL_STRIP_PROGRAM 771 STRIP 772 install_sh 773 MAKEINFO 774 AUTOHEADER 775 AUTOMAKE 776 AUTOCONF 777 ACLOCAL 778 VERSION 779 PACKAGE 780 CYGPATH_W 781 am__isrc 782 INSTALL_DATA 783 INSTALL_SCRIPT 784 INSTALL_PROGRAM 785 host_os 786 host_vendor 787 host_cpu 788 host 789 build_os 790 build_vendor 791 build_cpu 792 build 793 target_alias 794 host_alias 795 build_alias 796 LIBS 797 ECHO_T 798 ECHO_N 799 ECHO_C 800 DEFS 801 mandir 802 localedir 803 libdir 804 psdir 805 pdfdir 806 dvidir 807 htmldir 808 infodir 809 docdir 810 oldincludedir 811 includedir 812 localstatedir 813 sharedstatedir 814 sysconfdir 815 datadir 816 datarootdir 817 libexecdir 818 sbindir 819 bindir 820 program_transform_name 821 prefix 822 exec_prefix 823 PACKAGE_URL 824 PACKAGE_BUGREPORT 825 PACKAGE_STRING 826 PACKAGE_VERSION 827 PACKAGE_TARNAME 828 PACKAGE_NAME 829 PATH_SEPARATOR 830 SHELL' 831 ac_subst_files='' 832 ac_user_opts=' 833 enable_option_checking 834 enable_silent_rules 835 enable_maintainer_mode 836 enable_assert 837 enable_alloca 838 enable_cxx 839 enable_assembly 840 enable_fft 841 enable_old_fft_full 842 enable_nails 843 enable_profiling 844 with_readline 845 enable_fat 846 enable_minithres 847 enable_fake_cpuid 848 enable_shared 849 enable_static 850 with_pic 851 enable_fast_install 852 with_aix_soname 853 with_gnu_ld 854 with_sysroot 855 enable_libtool_lock 856 ' 857 ac_precious_vars='build_alias 858 host_alias 859 target_alias 860 ABI 861 CC 862 CFLAGS 863 LDFLAGS 864 LIBS 865 CPPFLAGS 866 CPP 867 CC_FOR_BUILD 868 CPP_FOR_BUILD 869 CXX 870 CXXFLAGS 871 CCC 872 CXXCPP 873 LT_SYS_LIBRARY_PATH 874 M4 875 YACC 876 YFLAGS' 877 878 879 # Initialize some variables set by options. 880 ac_init_help= 881 ac_init_version=false 882 ac_unrecognized_opts= 883 ac_unrecognized_sep= 884 # The variables have the same names as the options, with 885 # dashes changed to underlines. 886 cache_file=/dev/null 887 exec_prefix=NONE 888 no_create= 889 no_recursion= 890 prefix=NONE 891 program_prefix=NONE 892 program_suffix=NONE 893 program_transform_name=s,x,x, 894 silent= 895 site= 896 srcdir= 897 verbose= 898 x_includes=NONE 899 x_libraries=NONE 900 901 # Installation directory options. 902 # These are left unexpanded so users can "make install exec_prefix=/foo" 903 # and all the variables that are supposed to be based on exec_prefix 904 # by default will actually change. 905 # Use braces instead of parens because sh, perl, etc. also accept them. 906 # (The list follows the same order as the GNU Coding Standards.) 907 bindir='${exec_prefix}/bin' 908 sbindir='${exec_prefix}/sbin' 909 libexecdir='${exec_prefix}/libexec' 910 datarootdir='${prefix}/share' 911 datadir='${datarootdir}' 912 sysconfdir='${prefix}/etc' 913 sharedstatedir='${prefix}/com' 914 localstatedir='${prefix}/var' 915 includedir='${prefix}/include' 916 oldincludedir='/usr/include' 917 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 918 infodir='${datarootdir}/info' 919 htmldir='${docdir}' 920 dvidir='${docdir}' 921 pdfdir='${docdir}' 922 psdir='${docdir}' 923 libdir='${exec_prefix}/lib' 924 localedir='${datarootdir}/locale' 925 mandir='${datarootdir}/man' 926 927 ac_prev= 928 ac_dashdash= 929 for ac_option 930 do 931 # If the previous option needs an argument, assign it. 932 if test -n "$ac_prev"; then 933 eval $ac_prev=\$ac_option 934 ac_prev= 935 continue 936 fi 937 938 case $ac_option in 939 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 940 *=) ac_optarg= ;; 941 *) ac_optarg=yes ;; 942 esac 943 944 # Accept the important Cygnus configure options, so we can diagnose typos. 945 946 case $ac_dashdash$ac_option in 947 --) 948 ac_dashdash=yes ;; 949 950 -bindir | --bindir | --bindi | --bind | --bin | --bi) 951 ac_prev=bindir ;; 952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 953 bindir=$ac_optarg ;; 954 955 -build | --build | --buil | --bui | --bu) 956 ac_prev=build_alias ;; 957 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 958 build_alias=$ac_optarg ;; 959 960 -cache-file | --cache-file | --cache-fil | --cache-fi \ 961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 962 ac_prev=cache_file ;; 963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 965 cache_file=$ac_optarg ;; 966 967 --config-cache | -C) 968 cache_file=config.cache ;; 969 970 -datadir | --datadir | --datadi | --datad) 971 ac_prev=datadir ;; 972 -datadir=* | --datadir=* | --datadi=* | --datad=*) 973 datadir=$ac_optarg ;; 974 975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 976 | --dataroo | --dataro | --datar) 977 ac_prev=datarootdir ;; 978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 980 datarootdir=$ac_optarg ;; 981 982 -disable-* | --disable-*) 983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 984 # Reject names that are not valid shell variable names. 985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 986 as_fn_error $? "invalid feature name: $ac_useropt" 987 ac_useropt_orig=$ac_useropt 988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 989 case $ac_user_opts in 990 *" 991 "enable_$ac_useropt" 992 "*) ;; 993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 994 ac_unrecognized_sep=', ';; 995 esac 996 eval enable_$ac_useropt=no ;; 997 998 -docdir | --docdir | --docdi | --doc | --do) 999 ac_prev=docdir ;; 1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1001 docdir=$ac_optarg ;; 1002 1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1004 ac_prev=dvidir ;; 1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1006 dvidir=$ac_optarg ;; 1007 1008 -enable-* | --enable-*) 1009 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1010 # Reject names that are not valid shell variable names. 1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1012 as_fn_error $? "invalid feature name: $ac_useropt" 1013 ac_useropt_orig=$ac_useropt 1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1015 case $ac_user_opts in 1016 *" 1017 "enable_$ac_useropt" 1018 "*) ;; 1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1020 ac_unrecognized_sep=', ';; 1021 esac 1022 eval enable_$ac_useropt=\$ac_optarg ;; 1023 1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1026 | --exec | --exe | --ex) 1027 ac_prev=exec_prefix ;; 1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1030 | --exec=* | --exe=* | --ex=*) 1031 exec_prefix=$ac_optarg ;; 1032 1033 -gas | --gas | --ga | --g) 1034 # Obsolete; use --with-gas. 1035 with_gas=yes ;; 1036 1037 -help | --help | --hel | --he | -h) 1038 ac_init_help=long ;; 1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1040 ac_init_help=recursive ;; 1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1042 ac_init_help=short ;; 1043 1044 -host | --host | --hos | --ho) 1045 ac_prev=host_alias ;; 1046 -host=* | --host=* | --hos=* | --ho=*) 1047 host_alias=$ac_optarg ;; 1048 1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1050 ac_prev=htmldir ;; 1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1052 | --ht=*) 1053 htmldir=$ac_optarg ;; 1054 1055 -includedir | --includedir | --includedi | --included | --include \ 1056 | --includ | --inclu | --incl | --inc) 1057 ac_prev=includedir ;; 1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1059 | --includ=* | --inclu=* | --incl=* | --inc=*) 1060 includedir=$ac_optarg ;; 1061 1062 -infodir | --infodir | --infodi | --infod | --info | --inf) 1063 ac_prev=infodir ;; 1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1065 infodir=$ac_optarg ;; 1066 1067 -libdir | --libdir | --libdi | --libd) 1068 ac_prev=libdir ;; 1069 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1070 libdir=$ac_optarg ;; 1071 1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1073 | --libexe | --libex | --libe) 1074 ac_prev=libexecdir ;; 1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1076 | --libexe=* | --libex=* | --libe=*) 1077 libexecdir=$ac_optarg ;; 1078 1079 -localedir | --localedir | --localedi | --localed | --locale) 1080 ac_prev=localedir ;; 1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1082 localedir=$ac_optarg ;; 1083 1084 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1085 | --localstate | --localstat | --localsta | --localst | --locals) 1086 ac_prev=localstatedir ;; 1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1089 localstatedir=$ac_optarg ;; 1090 1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1092 ac_prev=mandir ;; 1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1094 mandir=$ac_optarg ;; 1095 1096 -nfp | --nfp | --nf) 1097 # Obsolete; use --without-fp. 1098 with_fp=no ;; 1099 1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1101 | --no-cr | --no-c | -n) 1102 no_create=yes ;; 1103 1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1106 no_recursion=yes ;; 1107 1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1110 | --oldin | --oldi | --old | --ol | --o) 1111 ac_prev=oldincludedir ;; 1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1115 oldincludedir=$ac_optarg ;; 1116 1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1118 ac_prev=prefix ;; 1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1120 prefix=$ac_optarg ;; 1121 1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1123 | --program-pre | --program-pr | --program-p) 1124 ac_prev=program_prefix ;; 1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1127 program_prefix=$ac_optarg ;; 1128 1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1130 | --program-suf | --program-su | --program-s) 1131 ac_prev=program_suffix ;; 1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1134 program_suffix=$ac_optarg ;; 1135 1136 -program-transform-name | --program-transform-name \ 1137 | --program-transform-nam | --program-transform-na \ 1138 | --program-transform-n | --program-transform- \ 1139 | --program-transform | --program-transfor \ 1140 | --program-transfo | --program-transf \ 1141 | --program-trans | --program-tran \ 1142 | --progr-tra | --program-tr | --program-t) 1143 ac_prev=program_transform_name ;; 1144 -program-transform-name=* | --program-transform-name=* \ 1145 | --program-transform-nam=* | --program-transform-na=* \ 1146 | --program-transform-n=* | --program-transform-=* \ 1147 | --program-transform=* | --program-transfor=* \ 1148 | --program-transfo=* | --program-transf=* \ 1149 | --program-trans=* | --program-tran=* \ 1150 | --progr-tra=* | --program-tr=* | --program-t=*) 1151 program_transform_name=$ac_optarg ;; 1152 1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1154 ac_prev=pdfdir ;; 1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1156 pdfdir=$ac_optarg ;; 1157 1158 -psdir | --psdir | --psdi | --psd | --ps) 1159 ac_prev=psdir ;; 1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1161 psdir=$ac_optarg ;; 1162 1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1164 | -silent | --silent | --silen | --sile | --sil) 1165 silent=yes ;; 1166 1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1168 ac_prev=sbindir ;; 1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1170 | --sbi=* | --sb=*) 1171 sbindir=$ac_optarg ;; 1172 1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1175 | --sharedst | --shareds | --shared | --share | --shar \ 1176 | --sha | --sh) 1177 ac_prev=sharedstatedir ;; 1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1181 | --sha=* | --sh=*) 1182 sharedstatedir=$ac_optarg ;; 1183 1184 -site | --site | --sit) 1185 ac_prev=site ;; 1186 -site=* | --site=* | --sit=*) 1187 site=$ac_optarg ;; 1188 1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1190 ac_prev=srcdir ;; 1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1192 srcdir=$ac_optarg ;; 1193 1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1195 | --syscon | --sysco | --sysc | --sys | --sy) 1196 ac_prev=sysconfdir ;; 1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1199 sysconfdir=$ac_optarg ;; 1200 1201 -target | --target | --targe | --targ | --tar | --ta | --t) 1202 ac_prev=target_alias ;; 1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1204 target_alias=$ac_optarg ;; 1205 1206 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1207 verbose=yes ;; 1208 1209 -version | --version | --versio | --versi | --vers | -V) 1210 ac_init_version=: ;; 1211 1212 -with-* | --with-*) 1213 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1214 # Reject names that are not valid shell variable names. 1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1216 as_fn_error $? "invalid package name: $ac_useropt" 1217 ac_useropt_orig=$ac_useropt 1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1219 case $ac_user_opts in 1220 *" 1221 "with_$ac_useropt" 1222 "*) ;; 1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1224 ac_unrecognized_sep=', ';; 1225 esac 1226 eval with_$ac_useropt=\$ac_optarg ;; 1227 1228 -without-* | --without-*) 1229 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1230 # Reject names that are not valid shell variable names. 1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1232 as_fn_error $? "invalid package name: $ac_useropt" 1233 ac_useropt_orig=$ac_useropt 1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1235 case $ac_user_opts in 1236 *" 1237 "with_$ac_useropt" 1238 "*) ;; 1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1240 ac_unrecognized_sep=', ';; 1241 esac 1242 eval with_$ac_useropt=no ;; 1243 1244 --x) 1245 # Obsolete; use --with-x. 1246 with_x=yes ;; 1247 1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1249 | --x-incl | --x-inc | --x-in | --x-i) 1250 ac_prev=x_includes ;; 1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1253 x_includes=$ac_optarg ;; 1254 1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1257 ac_prev=x_libraries ;; 1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1260 x_libraries=$ac_optarg ;; 1261 1262 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1263 Try \`$0 --help' for more information" 1264 ;; 1265 1266 *=*) 1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1268 # Reject names that are not valid shell variable names. 1269 case $ac_envvar in #( 1270 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1271 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1272 esac 1273 eval $ac_envvar=\$ac_optarg 1274 export $ac_envvar ;; 1275 1276 *) 1277 # FIXME: should be removed in autoconf 3.0. 1278 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1280 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1281 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1282 ;; 1283 1284 esac 1285 done 1286 1287 if test -n "$ac_prev"; then 1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1289 as_fn_error $? "missing argument to $ac_option" 1290 fi 1291 1292 if test -n "$ac_unrecognized_opts"; then 1293 case $enable_option_checking in 1294 no) ;; 1295 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1296 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1297 esac 1298 fi 1299 1300 # Check all directory arguments for consistency. 1301 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1302 datadir sysconfdir sharedstatedir localstatedir includedir \ 1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1304 libdir localedir mandir 1305 do 1306 eval ac_val=\$$ac_var 1307 # Remove trailing slashes. 1308 case $ac_val in 1309 */ ) 1310 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1311 eval $ac_var=\$ac_val;; 1312 esac 1313 # Be sure to have absolute directory names. 1314 case $ac_val in 1315 [\\/$]* | ?:[\\/]* ) continue;; 1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1317 esac 1318 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1319 done 1320 1321 # There might be people who depend on the old broken behavior: `$host' 1322 # used to hold the argument of --host etc. 1323 # FIXME: To remove some day. 1324 build=$build_alias 1325 host=$host_alias 1326 target=$target_alias 1327 1328 # FIXME: To remove some day. 1329 if test "x$host_alias" != x; then 1330 if test "x$build_alias" = x; then 1331 cross_compiling=maybe 1332 elif test "x$build_alias" != "x$host_alias"; then 1333 cross_compiling=yes 1334 fi 1335 fi 1336 1337 ac_tool_prefix= 1338 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1339 1340 test "$silent" = yes && exec 6>/dev/null 1341 1342 1343 ac_pwd=`pwd` && test -n "$ac_pwd" && 1344 ac_ls_di=`ls -di .` && 1345 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1346 as_fn_error $? "working directory cannot be determined" 1347 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1348 as_fn_error $? "pwd does not report name of working directory" 1349 1350 1351 # Find the source files, if location was not specified. 1352 if test -z "$srcdir"; then 1353 ac_srcdir_defaulted=yes 1354 # Try the directory containing this script, then the parent directory. 1355 ac_confdir=`$as_dirname -- "$as_myself" || 1356 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1357 X"$as_myself" : 'X\(//\)[^/]' \| \ 1358 X"$as_myself" : 'X\(//\)$' \| \ 1359 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1360 $as_echo X"$as_myself" | 1361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1362 s//\1/ 1363 q 1364 } 1365 /^X\(\/\/\)[^/].*/{ 1366 s//\1/ 1367 q 1368 } 1369 /^X\(\/\/\)$/{ 1370 s//\1/ 1371 q 1372 } 1373 /^X\(\/\).*/{ 1374 s//\1/ 1375 q 1376 } 1377 s/.*/./; q'` 1378 srcdir=$ac_confdir 1379 if test ! -r "$srcdir/$ac_unique_file"; then 1380 srcdir=.. 1381 fi 1382 else 1383 ac_srcdir_defaulted=no 1384 fi 1385 if test ! -r "$srcdir/$ac_unique_file"; then 1386 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1387 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1388 fi 1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1390 ac_abs_confdir=`( 1391 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1392 pwd)` 1393 # When building in place, set srcdir=. 1394 if test "$ac_abs_confdir" = "$ac_pwd"; then 1395 srcdir=. 1396 fi 1397 # Remove unnecessary trailing slashes from srcdir. 1398 # Double slashes in file names in object file debugging info 1399 # mess up M-x gdb in Emacs. 1400 case $srcdir in 1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1402 esac 1403 for ac_var in $ac_precious_vars; do 1404 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1405 eval ac_env_${ac_var}_value=\$${ac_var} 1406 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1407 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1408 done 1409 1410 # 1411 # Report the --help message. 1412 # 1413 if test "$ac_init_help" = "long"; then 1414 # Omit some internal or obsolete options to make the list less imposing. 1415 # This message is too long to be a string in the A/UX 3.1 sh. 1416 cat <<_ACEOF 1417 \`configure' configures GNU MP 6.2.1 to adapt to many kinds of systems. 1418 1419 Usage: $0 [OPTION]... [VAR=VALUE]... 1420 1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1422 VAR=VALUE. See below for descriptions of some of the useful variables. 1423 1424 Defaults for the options are specified in brackets. 1425 1426 Configuration: 1427 -h, --help display this help and exit 1428 --help=short display options specific to this package 1429 --help=recursive display the short help of all the included packages 1430 -V, --version display version information and exit 1431 -q, --quiet, --silent do not print \`checking ...' messages 1432 --cache-file=FILE cache test results in FILE [disabled] 1433 -C, --config-cache alias for \`--cache-file=config.cache' 1434 -n, --no-create do not create output files 1435 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1436 1437 Installation directories: 1438 --prefix=PREFIX install architecture-independent files in PREFIX 1439 [$ac_default_prefix] 1440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1441 [PREFIX] 1442 1443 By default, \`make install' will install all the files in 1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1446 for instance \`--prefix=\$HOME'. 1447 1448 For better control, use the options below. 1449 1450 Fine tuning of the installation directories: 1451 --bindir=DIR user executables [EPREFIX/bin] 1452 --sbindir=DIR system admin executables [EPREFIX/sbin] 1453 --libexecdir=DIR program executables [EPREFIX/libexec] 1454 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1457 --libdir=DIR object code libraries [EPREFIX/lib] 1458 --includedir=DIR C header files [PREFIX/include] 1459 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1462 --infodir=DIR info documentation [DATAROOTDIR/info] 1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1464 --mandir=DIR man documentation [DATAROOTDIR/man] 1465 --docdir=DIR documentation root [DATAROOTDIR/doc/gmp] 1466 --htmldir=DIR html documentation [DOCDIR] 1467 --dvidir=DIR dvi documentation [DOCDIR] 1468 --pdfdir=DIR pdf documentation [DOCDIR] 1469 --psdir=DIR ps documentation [DOCDIR] 1470 _ACEOF 1471 1472 cat <<\_ACEOF 1473 1474 Program names: 1475 --program-prefix=PREFIX prepend PREFIX to installed program names 1476 --program-suffix=SUFFIX append SUFFIX to installed program names 1477 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1478 1479 System types: 1480 --build=BUILD configure for building on BUILD [guessed] 1481 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1482 _ACEOF 1483 fi 1484 1485 if test -n "$ac_init_help"; then 1486 case $ac_init_help in 1487 short | recursive ) echo "Configuration of GNU MP 6.2.1:";; 1488 esac 1489 cat <<\_ACEOF 1490 1491 Optional Features: 1492 --disable-option-checking ignore unrecognized --enable/--with options 1493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1495 --enable-silent-rules less verbose build output (undo: "make V=1") 1496 --disable-silent-rules verbose build output (undo: "make V=0") 1497 --enable-maintainer-mode 1498 enable make rules and dependencies not useful (and 1499 sometimes confusing) to the casual installer 1500 --enable-assert enable ASSERT checking [default=no] 1501 --enable-alloca how to get temp memory [default=reentrant] 1502 --enable-cxx enable C++ support [default=no] 1503 --enable-assembly enable the use of assembly loops [default=yes] 1504 --enable-fft enable FFTs for multiplication [default=yes] 1505 --enable-old-fft-full enable old mpn_mul_fft_full for multiplication 1506 [default=no] 1507 --enable-nails use nails on limbs [default=no] 1508 --enable-profiling build with profiler support [default=no] 1509 --enable-fat build fat libraries on systems that support it 1510 [default=no] 1511 --enable-minithres choose minimal thresholds for testing [default=no] 1512 --enable-fake-cpuid enable GMP_CPU_TYPE faking cpuid [default=no] 1513 --enable-shared[=PKGS] build shared libraries [default=yes] 1514 --enable-static[=PKGS] build static libraries [default=yes] 1515 --enable-fast-install[=PKGS] 1516 optimize for fast installation [default=yes] 1517 --disable-libtool-lock avoid locking (might break parallel builds) 1518 1519 Optional Packages: 1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1522 --with-readline readline support in demo programs [default=detect] 1523 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1524 both] 1525 --with-aix-soname=aix|svr4|both 1526 shared library versioning (aka "SONAME") variant to 1527 provide on AIX, [default=aix]. 1528 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1529 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1530 compiler's sysroot if not specified). 1531 1532 Some influential environment variables: 1533 ABI desired ABI (for processors supporting more than one ABI) 1534 CC C compiler command 1535 CFLAGS C compiler flags 1536 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1537 nonstandard directory <lib dir> 1538 LIBS libraries to pass to the linker, e.g. -l<library> 1539 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1540 you have headers in a nonstandard directory <include dir> 1541 CPP C preprocessor 1542 CC_FOR_BUILD 1543 build system C compiler 1544 CPP_FOR_BUILD 1545 build system C preprocessor 1546 CXX C++ compiler command 1547 CXXFLAGS C++ compiler flags 1548 CXXCPP C++ preprocessor 1549 LT_SYS_LIBRARY_PATH 1550 User-defined run-time library search path. 1551 M4 m4 macro processor 1552 YACC The `Yet Another Compiler Compiler' implementation to use. 1553 Defaults to the first program found out of: `bison -y', `byacc', 1554 `yacc'. 1555 YFLAGS The list of arguments that will be passed by default to $YACC. 1556 This script will default YFLAGS to the empty string to avoid a 1557 default value of `-d' given by some make applications. 1558 1559 Use these variables to override the choices made by `configure' or to help 1560 it to find libraries and programs with nonstandard names/locations. 1561 1562 Report bugs to <gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html>. 1563 GNU MP home page: <http://www.gnu.org/software/gmp/>. 1564 General help using GNU software: <http://www.gnu.org/gethelp/>. 1565 _ACEOF 1566 ac_status=$? 1567 fi 1568 1569 if test "$ac_init_help" = "recursive"; then 1570 # If there are subdirs, report their specific --help. 1571 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1572 test -d "$ac_dir" || 1573 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1574 continue 1575 ac_builddir=. 1576 1577 case "$ac_dir" in 1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1579 *) 1580 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1581 # A ".." for each directory in $ac_dir_suffix. 1582 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1583 case $ac_top_builddir_sub in 1584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1586 esac ;; 1587 esac 1588 ac_abs_top_builddir=$ac_pwd 1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1590 # for backward compatibility: 1591 ac_top_builddir=$ac_top_build_prefix 1592 1593 case $srcdir in 1594 .) # We are building in place. 1595 ac_srcdir=. 1596 ac_top_srcdir=$ac_top_builddir_sub 1597 ac_abs_top_srcdir=$ac_pwd ;; 1598 [\\/]* | ?:[\\/]* ) # Absolute name. 1599 ac_srcdir=$srcdir$ac_dir_suffix; 1600 ac_top_srcdir=$srcdir 1601 ac_abs_top_srcdir=$srcdir ;; 1602 *) # Relative name. 1603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1604 ac_top_srcdir=$ac_top_build_prefix$srcdir 1605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1606 esac 1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1608 1609 cd "$ac_dir" || { ac_status=$?; continue; } 1610 # Check for guested configure. 1611 if test -f "$ac_srcdir/configure.gnu"; then 1612 echo && 1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1614 elif test -f "$ac_srcdir/configure"; then 1615 echo && 1616 $SHELL "$ac_srcdir/configure" --help=recursive 1617 else 1618 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1619 fi || ac_status=$? 1620 cd "$ac_pwd" || { ac_status=$?; break; } 1621 done 1622 fi 1623 1624 test -n "$ac_init_help" && exit $ac_status 1625 if $ac_init_version; then 1626 cat <<\_ACEOF 1627 GNU MP configure 6.2.1 1628 generated by GNU Autoconf 2.69 1629 1630 Copyright (C) 2012 Free Software Foundation, Inc. 1631 This configure script is free software; the Free Software Foundation 1632 gives unlimited permission to copy, distribute and modify it. 1633 1634 1635 1636 Copyright 1996-2020 Free Software Foundation, Inc. 1637 1638 This file is part of the GNU MP Library. 1639 1640 The GNU MP Library is free software; you can redistribute it and/or modify 1641 it under the terms of either: 1642 1643 * the GNU Lesser General Public License as published by the Free 1644 Software Foundation; either version 3 of the License, or (at your 1645 option) any later version. 1646 1647 or 1648 1649 * the GNU General Public License as published by the Free Software 1650 Foundation; either version 2 of the License, or (at your option) any 1651 later version. 1652 1653 or both in parallel, as here. 1654 1655 The GNU MP Library is distributed in the hope that it will be useful, but 1656 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 1657 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1658 for more details. 1659 1660 You should have received copies of the GNU General Public License and the 1661 GNU Lesser General Public License along with the GNU MP Library. If not, 1662 see https://www.gnu.org/licenses/. 1663 1664 _ACEOF 1665 exit 1666 fi 1667 1668 ## ------------------------ ## 1669 ## Autoconf initialization. ## 1670 ## ------------------------ ## 1671 1672 # ac_fn_c_try_compile LINENO 1673 # -------------------------- 1674 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1675 ac_fn_c_try_compile () 1676 { 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1678 rm -f conftest.$ac_objext 1679 if { { ac_try="$ac_compile" 1680 case "(($ac_try" in 1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1682 *) ac_try_echo=$ac_try;; 1683 esac 1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1685 $as_echo "$ac_try_echo"; } >&5 1686 (eval "$ac_compile") 2>conftest.err 1687 ac_status=$? 1688 if test -s conftest.err; then 1689 grep -v '^ *+' conftest.err >conftest.er1 1690 cat conftest.er1 >&5 1691 mv -f conftest.er1 conftest.err 1692 fi 1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1694 test $ac_status = 0; } && { 1695 test -z "$ac_c_werror_flag" || 1696 test ! -s conftest.err 1697 } && test -s conftest.$ac_objext; then : 1698 ac_retval=0 1699 else 1700 $as_echo "$as_me: failed program was:" >&5 1701 sed 's/^/| /' conftest.$ac_ext >&5 1702 1703 ac_retval=1 1704 fi 1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1706 as_fn_set_status $ac_retval 1707 1708 } # ac_fn_c_try_compile 1709 1710 # ac_fn_c_try_cpp LINENO 1711 # ---------------------- 1712 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1713 ac_fn_c_try_cpp () 1714 { 1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1716 if { { ac_try="$ac_cpp conftest.$ac_ext" 1717 case "(($ac_try" in 1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1719 *) ac_try_echo=$ac_try;; 1720 esac 1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1722 $as_echo "$ac_try_echo"; } >&5 1723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1724 ac_status=$? 1725 if test -s conftest.err; then 1726 grep -v '^ *+' conftest.err >conftest.er1 1727 cat conftest.er1 >&5 1728 mv -f conftest.er1 conftest.err 1729 fi 1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1731 test $ac_status = 0; } > conftest.i && { 1732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1733 test ! -s conftest.err 1734 }; then : 1735 ac_retval=0 1736 else 1737 $as_echo "$as_me: failed program was:" >&5 1738 sed 's/^/| /' conftest.$ac_ext >&5 1739 1740 ac_retval=1 1741 fi 1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1743 as_fn_set_status $ac_retval 1744 1745 } # ac_fn_c_try_cpp 1746 1747 # ac_fn_cxx_try_compile LINENO 1748 # ---------------------------- 1749 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1750 ac_fn_cxx_try_compile () 1751 { 1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1753 rm -f conftest.$ac_objext 1754 if { { ac_try="$ac_compile" 1755 case "(($ac_try" in 1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1757 *) ac_try_echo=$ac_try;; 1758 esac 1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1760 $as_echo "$ac_try_echo"; } >&5 1761 (eval "$ac_compile") 2>conftest.err 1762 ac_status=$? 1763 if test -s conftest.err; then 1764 grep -v '^ *+' conftest.err >conftest.er1 1765 cat conftest.er1 >&5 1766 mv -f conftest.er1 conftest.err 1767 fi 1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1769 test $ac_status = 0; } && { 1770 test -z "$ac_cxx_werror_flag" || 1771 test ! -s conftest.err 1772 } && test -s conftest.$ac_objext; then : 1773 ac_retval=0 1774 else 1775 $as_echo "$as_me: failed program was:" >&5 1776 sed 's/^/| /' conftest.$ac_ext >&5 1777 1778 ac_retval=1 1779 fi 1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1781 as_fn_set_status $ac_retval 1782 1783 } # ac_fn_cxx_try_compile 1784 1785 # ac_fn_cxx_try_cpp LINENO 1786 # ------------------------ 1787 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1788 ac_fn_cxx_try_cpp () 1789 { 1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1791 if { { ac_try="$ac_cpp conftest.$ac_ext" 1792 case "(($ac_try" in 1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1794 *) ac_try_echo=$ac_try;; 1795 esac 1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1797 $as_echo "$ac_try_echo"; } >&5 1798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1799 ac_status=$? 1800 if test -s conftest.err; then 1801 grep -v '^ *+' conftest.err >conftest.er1 1802 cat conftest.er1 >&5 1803 mv -f conftest.er1 conftest.err 1804 fi 1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1806 test $ac_status = 0; } > conftest.i && { 1807 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1808 test ! -s conftest.err 1809 }; then : 1810 ac_retval=0 1811 else 1812 $as_echo "$as_me: failed program was:" >&5 1813 sed 's/^/| /' conftest.$ac_ext >&5 1814 1815 ac_retval=1 1816 fi 1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1818 as_fn_set_status $ac_retval 1819 1820 } # ac_fn_cxx_try_cpp 1821 1822 # ac_fn_c_try_link LINENO 1823 # ----------------------- 1824 # Try to link conftest.$ac_ext, and return whether this succeeded. 1825 ac_fn_c_try_link () 1826 { 1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1828 rm -f conftest.$ac_objext conftest$ac_exeext 1829 if { { ac_try="$ac_link" 1830 case "(($ac_try" in 1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1832 *) ac_try_echo=$ac_try;; 1833 esac 1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1835 $as_echo "$ac_try_echo"; } >&5 1836 (eval "$ac_link") 2>conftest.err 1837 ac_status=$? 1838 if test -s conftest.err; then 1839 grep -v '^ *+' conftest.err >conftest.er1 1840 cat conftest.er1 >&5 1841 mv -f conftest.er1 conftest.err 1842 fi 1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1844 test $ac_status = 0; } && { 1845 test -z "$ac_c_werror_flag" || 1846 test ! -s conftest.err 1847 } && test -s conftest$ac_exeext && { 1848 test "$cross_compiling" = yes || 1849 test -x conftest$ac_exeext 1850 }; then : 1851 ac_retval=0 1852 else 1853 $as_echo "$as_me: failed program was:" >&5 1854 sed 's/^/| /' conftest.$ac_ext >&5 1855 1856 ac_retval=1 1857 fi 1858 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1859 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1860 # interfere with the next link command; also delete a directory that is 1861 # left behind by Apple's compiler. We do this before executing the actions. 1862 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1864 as_fn_set_status $ac_retval 1865 1866 } # ac_fn_c_try_link 1867 1868 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1869 # ------------------------------------------------------- 1870 # Tests whether HEADER exists and can be compiled using the include files in 1871 # INCLUDES, setting the cache variable VAR accordingly. 1872 ac_fn_c_check_header_compile () 1873 { 1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1876 $as_echo_n "checking for $2... " >&6; } 1877 if eval \${$3+:} false; then : 1878 $as_echo_n "(cached) " >&6 1879 else 1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1881 /* end confdefs.h. */ 1882 $4 1883 #include <$2> 1884 _ACEOF 1885 if ac_fn_c_try_compile "$LINENO"; then : 1886 eval "$3=yes" 1887 else 1888 eval "$3=no" 1889 fi 1890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1891 fi 1892 eval ac_res=\$$3 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1894 $as_echo "$ac_res" >&6; } 1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1896 1897 } # ac_fn_c_check_header_compile 1898 1899 # ac_fn_c_try_run LINENO 1900 # ---------------------- 1901 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1902 # that executables *can* be run. 1903 ac_fn_c_try_run () 1904 { 1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1906 if { { ac_try="$ac_link" 1907 case "(($ac_try" in 1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1909 *) ac_try_echo=$ac_try;; 1910 esac 1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1912 $as_echo "$ac_try_echo"; } >&5 1913 (eval "$ac_link") 2>&5 1914 ac_status=$? 1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1916 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1917 { { case "(($ac_try" in 1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1919 *) ac_try_echo=$ac_try;; 1920 esac 1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1922 $as_echo "$ac_try_echo"; } >&5 1923 (eval "$ac_try") 2>&5 1924 ac_status=$? 1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1926 test $ac_status = 0; }; }; then : 1927 ac_retval=0 1928 else 1929 $as_echo "$as_me: program exited with status $ac_status" >&5 1930 $as_echo "$as_me: failed program was:" >&5 1931 sed 's/^/| /' conftest.$ac_ext >&5 1932 1933 ac_retval=$ac_status 1934 fi 1935 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1937 as_fn_set_status $ac_retval 1938 1939 } # ac_fn_c_try_run 1940 1941 # ac_fn_c_check_func LINENO FUNC VAR 1942 # ---------------------------------- 1943 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1944 ac_fn_c_check_func () 1945 { 1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1948 $as_echo_n "checking for $2... " >&6; } 1949 if eval \${$3+:} false; then : 1950 $as_echo_n "(cached) " >&6 1951 else 1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1953 /* end confdefs.h. */ 1954 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1955 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1956 #define $2 innocuous_$2 1957 1958 /* System header to define __stub macros and hopefully few prototypes, 1959 which can conflict with char $2 (); below. 1960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1961 <limits.h> exists even on freestanding compilers. */ 1962 1963 #ifdef __STDC__ 1964 # include <limits.h> 1965 #else 1966 # include <assert.h> 1967 #endif 1968 1969 #undef $2 1970 1971 /* Override any GCC internal prototype to avoid an error. 1972 Use char because int might match the return type of a GCC 1973 builtin and then its argument prototype would still apply. */ 1974 #ifdef __cplusplus 1975 extern "C" 1976 #endif 1977 char $2 (); 1978 /* The GNU C library defines this for functions which it implements 1979 to always fail with ENOSYS. Some functions are actually named 1980 something starting with __ and the normal name is an alias. */ 1981 #if defined __stub_$2 || defined __stub___$2 1982 choke me 1983 #endif 1984 1985 int 1986 main () 1987 { 1988 return $2 (); 1989 ; 1990 return 0; 1991 } 1992 _ACEOF 1993 if ac_fn_c_try_link "$LINENO"; then : 1994 eval "$3=yes" 1995 else 1996 eval "$3=no" 1997 fi 1998 rm -f core conftest.err conftest.$ac_objext \ 1999 conftest$ac_exeext conftest.$ac_ext 2000 fi 2001 eval ac_res=\$$3 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2003 $as_echo "$ac_res" >&6; } 2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2005 2006 } # ac_fn_c_check_func 2007 2008 # ac_fn_cxx_try_link LINENO 2009 # ------------------------- 2010 # Try to link conftest.$ac_ext, and return whether this succeeded. 2011 ac_fn_cxx_try_link () 2012 { 2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2014 rm -f conftest.$ac_objext conftest$ac_exeext 2015 if { { ac_try="$ac_link" 2016 case "(($ac_try" in 2017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2018 *) ac_try_echo=$ac_try;; 2019 esac 2020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2021 $as_echo "$ac_try_echo"; } >&5 2022 (eval "$ac_link") 2>conftest.err 2023 ac_status=$? 2024 if test -s conftest.err; then 2025 grep -v '^ *+' conftest.err >conftest.er1 2026 cat conftest.er1 >&5 2027 mv -f conftest.er1 conftest.err 2028 fi 2029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2030 test $ac_status = 0; } && { 2031 test -z "$ac_cxx_werror_flag" || 2032 test ! -s conftest.err 2033 } && test -s conftest$ac_exeext && { 2034 test "$cross_compiling" = yes || 2035 test -x conftest$ac_exeext 2036 }; then : 2037 ac_retval=0 2038 else 2039 $as_echo "$as_me: failed program was:" >&5 2040 sed 's/^/| /' conftest.$ac_ext >&5 2041 2042 ac_retval=1 2043 fi 2044 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2045 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2046 # interfere with the next link command; also delete a directory that is 2047 # left behind by Apple's compiler. We do this before executing the actions. 2048 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2050 as_fn_set_status $ac_retval 2051 2052 } # ac_fn_cxx_try_link 2053 2054 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2055 # ------------------------------------------------------- 2056 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2057 # the include files in INCLUDES and setting the cache variable VAR 2058 # accordingly. 2059 ac_fn_c_check_header_mongrel () 2060 { 2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2062 if eval \${$3+:} false; then : 2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2064 $as_echo_n "checking for $2... " >&6; } 2065 if eval \${$3+:} false; then : 2066 $as_echo_n "(cached) " >&6 2067 fi 2068 eval ac_res=\$$3 2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2070 $as_echo "$ac_res" >&6; } 2071 else 2072 # Is the header compilable? 2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2074 $as_echo_n "checking $2 usability... " >&6; } 2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2076 /* end confdefs.h. */ 2077 $4 2078 #include <$2> 2079 _ACEOF 2080 if ac_fn_c_try_compile "$LINENO"; then : 2081 ac_header_compiler=yes 2082 else 2083 ac_header_compiler=no 2084 fi 2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2087 $as_echo "$ac_header_compiler" >&6; } 2088 2089 # Is the header present? 2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2091 $as_echo_n "checking $2 presence... " >&6; } 2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2093 /* end confdefs.h. */ 2094 #include <$2> 2095 _ACEOF 2096 if ac_fn_c_try_cpp "$LINENO"; then : 2097 ac_header_preproc=yes 2098 else 2099 ac_header_preproc=no 2100 fi 2101 rm -f conftest.err conftest.i conftest.$ac_ext 2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2103 $as_echo "$ac_header_preproc" >&6; } 2104 2105 # So? What about this header? 2106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2107 yes:no: ) 2108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2109 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2111 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2112 ;; 2113 no:yes:* ) 2114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2115 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2117 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2119 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2121 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2123 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2124 ( $as_echo "## ssssssssssssssssssssssssssssssssss ## 2125 ## Report this to gmp-bugs (at] gmplib.org ## 2126 ## ssssssssssssssssssssssssssssssssss ##" 2127 ) | sed "s/^/$as_me: WARNING: /" >&2 2128 ;; 2129 esac 2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2131 $as_echo_n "checking for $2... " >&6; } 2132 if eval \${$3+:} false; then : 2133 $as_echo_n "(cached) " >&6 2134 else 2135 eval "$3=\$ac_header_compiler" 2136 fi 2137 eval ac_res=\$$3 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2139 $as_echo "$ac_res" >&6; } 2140 fi 2141 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2142 2143 } # ac_fn_c_check_header_mongrel 2144 2145 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2146 # --------------------------------------------- 2147 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2148 # accordingly. 2149 ac_fn_c_check_decl () 2150 { 2151 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2152 as_decl_name=`echo $2|sed 's/ *(.*//'` 2153 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2155 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2156 if eval \${$3+:} false; then : 2157 $as_echo_n "(cached) " >&6 2158 else 2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2160 /* end confdefs.h. */ 2161 $4 2162 int 2163 main () 2164 { 2165 #ifndef $as_decl_name 2166 #ifdef __cplusplus 2167 (void) $as_decl_use; 2168 #else 2169 (void) $as_decl_name; 2170 #endif 2171 #endif 2172 2173 ; 2174 return 0; 2175 } 2176 _ACEOF 2177 if ac_fn_c_try_compile "$LINENO"; then : 2178 eval "$3=yes" 2179 else 2180 eval "$3=no" 2181 fi 2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2183 fi 2184 eval ac_res=\$$3 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2186 $as_echo "$ac_res" >&6; } 2187 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2188 2189 } # ac_fn_c_check_decl 2190 2191 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2192 # ------------------------------------------- 2193 # Tests whether TYPE exists after having included INCLUDES, setting cache 2194 # variable VAR accordingly. 2195 ac_fn_c_check_type () 2196 { 2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2199 $as_echo_n "checking for $2... " >&6; } 2200 if eval \${$3+:} false; then : 2201 $as_echo_n "(cached) " >&6 2202 else 2203 eval "$3=no" 2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2205 /* end confdefs.h. */ 2206 $4 2207 int 2208 main () 2209 { 2210 if (sizeof ($2)) 2211 return 0; 2212 ; 2213 return 0; 2214 } 2215 _ACEOF 2216 if ac_fn_c_try_compile "$LINENO"; then : 2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2218 /* end confdefs.h. */ 2219 $4 2220 int 2221 main () 2222 { 2223 if (sizeof (($2))) 2224 return 0; 2225 ; 2226 return 0; 2227 } 2228 _ACEOF 2229 if ac_fn_c_try_compile "$LINENO"; then : 2230 2231 else 2232 eval "$3=yes" 2233 fi 2234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2235 fi 2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2237 fi 2238 eval ac_res=\$$3 2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2240 $as_echo "$ac_res" >&6; } 2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2242 2243 } # ac_fn_c_check_type 2244 2245 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2246 # ---------------------------------------------------- 2247 # Tries to find if the field MEMBER exists in type AGGR, after including 2248 # INCLUDES, setting cache variable VAR accordingly. 2249 ac_fn_c_check_member () 2250 { 2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2253 $as_echo_n "checking for $2.$3... " >&6; } 2254 if eval \${$4+:} false; then : 2255 $as_echo_n "(cached) " >&6 2256 else 2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2258 /* end confdefs.h. */ 2259 $5 2260 int 2261 main () 2262 { 2263 static $2 ac_aggr; 2264 if (ac_aggr.$3) 2265 return 0; 2266 ; 2267 return 0; 2268 } 2269 _ACEOF 2270 if ac_fn_c_try_compile "$LINENO"; then : 2271 eval "$4=yes" 2272 else 2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2274 /* end confdefs.h. */ 2275 $5 2276 int 2277 main () 2278 { 2279 static $2 ac_aggr; 2280 if (sizeof ac_aggr.$3) 2281 return 0; 2282 ; 2283 return 0; 2284 } 2285 _ACEOF 2286 if ac_fn_c_try_compile "$LINENO"; then : 2287 eval "$4=yes" 2288 else 2289 eval "$4=no" 2290 fi 2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2292 fi 2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2294 fi 2295 eval ac_res=\$$4 2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2297 $as_echo "$ac_res" >&6; } 2298 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2299 2300 } # ac_fn_c_check_member 2301 2302 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2303 # --------------------------------------------------------- 2304 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2305 # the include files in INCLUDES and setting the cache variable VAR 2306 # accordingly. 2307 ac_fn_cxx_check_header_mongrel () 2308 { 2309 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2310 if eval \${$3+:} false; then : 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2312 $as_echo_n "checking for $2... " >&6; } 2313 if eval \${$3+:} false; then : 2314 $as_echo_n "(cached) " >&6 2315 fi 2316 eval ac_res=\$$3 2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2318 $as_echo "$ac_res" >&6; } 2319 else 2320 # Is the header compilable? 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2322 $as_echo_n "checking $2 usability... " >&6; } 2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2324 /* end confdefs.h. */ 2325 $4 2326 #include <$2> 2327 _ACEOF 2328 if ac_fn_cxx_try_compile "$LINENO"; then : 2329 ac_header_compiler=yes 2330 else 2331 ac_header_compiler=no 2332 fi 2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2335 $as_echo "$ac_header_compiler" >&6; } 2336 2337 # Is the header present? 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2339 $as_echo_n "checking $2 presence... " >&6; } 2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2341 /* end confdefs.h. */ 2342 #include <$2> 2343 _ACEOF 2344 if ac_fn_cxx_try_cpp "$LINENO"; then : 2345 ac_header_preproc=yes 2346 else 2347 ac_header_preproc=no 2348 fi 2349 rm -f conftest.err conftest.i conftest.$ac_ext 2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2351 $as_echo "$ac_header_preproc" >&6; } 2352 2353 # So? What about this header? 2354 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2355 yes:no: ) 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2357 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2359 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2360 ;; 2361 no:yes:* ) 2362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2363 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2365 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2367 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2369 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2371 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2372 ( $as_echo "## ssssssssssssssssssssssssssssssssss ## 2373 ## Report this to gmp-bugs (at] gmplib.org ## 2374 ## ssssssssssssssssssssssssssssssssss ##" 2375 ) | sed "s/^/$as_me: WARNING: /" >&2 2376 ;; 2377 esac 2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2379 $as_echo_n "checking for $2... " >&6; } 2380 if eval \${$3+:} false; then : 2381 $as_echo_n "(cached) " >&6 2382 else 2383 eval "$3=\$ac_header_compiler" 2384 fi 2385 eval ac_res=\$$3 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2387 $as_echo "$ac_res" >&6; } 2388 fi 2389 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2390 2391 } # ac_fn_cxx_check_header_mongrel 2392 2393 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 2394 # --------------------------------------------- 2395 # Tests whether TYPE exists after having included INCLUDES, setting cache 2396 # variable VAR accordingly. 2397 ac_fn_cxx_check_type () 2398 { 2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2401 $as_echo_n "checking for $2... " >&6; } 2402 if eval \${$3+:} false; then : 2403 $as_echo_n "(cached) " >&6 2404 else 2405 eval "$3=no" 2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2407 /* end confdefs.h. */ 2408 $4 2409 int 2410 main () 2411 { 2412 if (sizeof ($2)) 2413 return 0; 2414 ; 2415 return 0; 2416 } 2417 _ACEOF 2418 if ac_fn_cxx_try_compile "$LINENO"; then : 2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2420 /* end confdefs.h. */ 2421 $4 2422 int 2423 main () 2424 { 2425 if (sizeof (($2))) 2426 return 0; 2427 ; 2428 return 0; 2429 } 2430 _ACEOF 2431 if ac_fn_cxx_try_compile "$LINENO"; then : 2432 2433 else 2434 eval "$3=yes" 2435 fi 2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2437 fi 2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2439 fi 2440 eval ac_res=\$$3 2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2442 $as_echo "$ac_res" >&6; } 2443 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2444 2445 } # ac_fn_cxx_check_type 2446 2447 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2448 # -------------------------------------------- 2449 # Tries to find the compile-time value of EXPR in a program that includes 2450 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2451 # computed 2452 ac_fn_c_compute_int () 2453 { 2454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2455 if test "$cross_compiling" = yes; then 2456 # Depending upon the size, compute the lo and hi bounds. 2457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2458 /* end confdefs.h. */ 2459 $4 2460 int 2461 main () 2462 { 2463 static int test_array [1 - 2 * !(($2) >= 0)]; 2464 test_array [0] = 0; 2465 return test_array [0]; 2466 2467 ; 2468 return 0; 2469 } 2470 _ACEOF 2471 if ac_fn_c_try_compile "$LINENO"; then : 2472 ac_lo=0 ac_mid=0 2473 while :; do 2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2475 /* end confdefs.h. */ 2476 $4 2477 int 2478 main () 2479 { 2480 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2481 test_array [0] = 0; 2482 return test_array [0]; 2483 2484 ; 2485 return 0; 2486 } 2487 _ACEOF 2488 if ac_fn_c_try_compile "$LINENO"; then : 2489 ac_hi=$ac_mid; break 2490 else 2491 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2492 if test $ac_lo -le $ac_mid; then 2493 ac_lo= ac_hi= 2494 break 2495 fi 2496 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2497 fi 2498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2499 done 2500 else 2501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2502 /* end confdefs.h. */ 2503 $4 2504 int 2505 main () 2506 { 2507 static int test_array [1 - 2 * !(($2) < 0)]; 2508 test_array [0] = 0; 2509 return test_array [0]; 2510 2511 ; 2512 return 0; 2513 } 2514 _ACEOF 2515 if ac_fn_c_try_compile "$LINENO"; then : 2516 ac_hi=-1 ac_mid=-1 2517 while :; do 2518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2519 /* end confdefs.h. */ 2520 $4 2521 int 2522 main () 2523 { 2524 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2525 test_array [0] = 0; 2526 return test_array [0]; 2527 2528 ; 2529 return 0; 2530 } 2531 _ACEOF 2532 if ac_fn_c_try_compile "$LINENO"; then : 2533 ac_lo=$ac_mid; break 2534 else 2535 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2536 if test $ac_mid -le $ac_hi; then 2537 ac_lo= ac_hi= 2538 break 2539 fi 2540 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2541 fi 2542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2543 done 2544 else 2545 ac_lo= ac_hi= 2546 fi 2547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2548 fi 2549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2550 # Binary search between lo and hi bounds. 2551 while test "x$ac_lo" != "x$ac_hi"; do 2552 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2554 /* end confdefs.h. */ 2555 $4 2556 int 2557 main () 2558 { 2559 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2560 test_array [0] = 0; 2561 return test_array [0]; 2562 2563 ; 2564 return 0; 2565 } 2566 _ACEOF 2567 if ac_fn_c_try_compile "$LINENO"; then : 2568 ac_hi=$ac_mid 2569 else 2570 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2571 fi 2572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2573 done 2574 case $ac_lo in #(( 2575 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2576 '') ac_retval=1 ;; 2577 esac 2578 else 2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2580 /* end confdefs.h. */ 2581 $4 2582 static long int longval () { return $2; } 2583 static unsigned long int ulongval () { return $2; } 2584 #include <stdio.h> 2585 #include <stdlib.h> 2586 int 2587 main () 2588 { 2589 2590 FILE *f = fopen ("conftest.val", "w"); 2591 if (! f) 2592 return 1; 2593 if (($2) < 0) 2594 { 2595 long int i = longval (); 2596 if (i != ($2)) 2597 return 1; 2598 fprintf (f, "%ld", i); 2599 } 2600 else 2601 { 2602 unsigned long int i = ulongval (); 2603 if (i != ($2)) 2604 return 1; 2605 fprintf (f, "%lu", i); 2606 } 2607 /* Do not output a trailing newline, as this causes \r\n confusion 2608 on some platforms. */ 2609 return ferror (f) || fclose (f) != 0; 2610 2611 ; 2612 return 0; 2613 } 2614 _ACEOF 2615 if ac_fn_c_try_run "$LINENO"; then : 2616 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2617 else 2618 ac_retval=1 2619 fi 2620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2621 conftest.$ac_objext conftest.beam conftest.$ac_ext 2622 rm -f conftest.val 2623 2624 fi 2625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2626 as_fn_set_status $ac_retval 2627 2628 } # ac_fn_c_compute_int 2629 cat >config.log <<_ACEOF 2630 This file contains any messages produced by compilers while 2631 running configure, to aid debugging if configure makes a mistake. 2632 2633 It was created by GNU MP $as_me 6.2.1, which was 2634 generated by GNU Autoconf 2.69. Invocation command line was 2635 2636 $ $0 $@ 2637 2638 _ACEOF 2639 exec 5>>config.log 2640 { 2641 cat <<_ASUNAME 2642 ## --------- ## 2643 ## Platform. ## 2644 ## --------- ## 2645 2646 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2647 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2648 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2649 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2650 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2651 2652 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2653 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2654 2655 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2656 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2657 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2658 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2659 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2660 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2661 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2662 2663 _ASUNAME 2664 2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2666 for as_dir in $PATH 2667 do 2668 IFS=$as_save_IFS 2669 test -z "$as_dir" && as_dir=. 2670 $as_echo "PATH: $as_dir" 2671 done 2672 IFS=$as_save_IFS 2673 2674 } >&5 2675 2676 cat >&5 <<_ACEOF 2677 2678 2679 ## ----------- ## 2680 ## Core tests. ## 2681 ## ----------- ## 2682 2683 _ACEOF 2684 2685 2686 # Keep a trace of the command line. 2687 # Strip out --no-create and --no-recursion so they do not pile up. 2688 # Strip out --silent because we don't want to record it for future runs. 2689 # Also quote any args containing shell meta-characters. 2690 # Make two passes to allow for proper duplicate-argument suppression. 2691 ac_configure_args= 2692 ac_configure_args0= 2693 ac_configure_args1= 2694 ac_must_keep_next=false 2695 for ac_pass in 1 2 2696 do 2697 for ac_arg 2698 do 2699 case $ac_arg in 2700 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2702 | -silent | --silent | --silen | --sile | --sil) 2703 continue ;; 2704 *\'*) 2705 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2706 esac 2707 case $ac_pass in 2708 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2709 2) 2710 as_fn_append ac_configure_args1 " '$ac_arg'" 2711 if test $ac_must_keep_next = true; then 2712 ac_must_keep_next=false # Got value, back to normal. 2713 else 2714 case $ac_arg in 2715 *=* | --config-cache | -C | -disable-* | --disable-* \ 2716 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2717 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2718 | -with-* | --with-* | -without-* | --without-* | --x) 2719 case "$ac_configure_args0 " in 2720 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2721 esac 2722 ;; 2723 -* ) ac_must_keep_next=true ;; 2724 esac 2725 fi 2726 as_fn_append ac_configure_args " '$ac_arg'" 2727 ;; 2728 esac 2729 done 2730 done 2731 { ac_configure_args0=; unset ac_configure_args0;} 2732 { ac_configure_args1=; unset ac_configure_args1;} 2733 2734 # When interrupted or exit'd, cleanup temporary files, and complete 2735 # config.log. We remove comments because anyway the quotes in there 2736 # would cause problems or look ugly. 2737 # WARNING: Use '\'' to represent an apostrophe within the trap. 2738 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2739 trap 'exit_status=$? 2740 # Save into config.log some information that might help in debugging. 2741 { 2742 echo 2743 2744 $as_echo "## ---------------- ## 2745 ## Cache variables. ## 2746 ## ---------------- ##" 2747 echo 2748 # The following way of writing the cache mishandles newlines in values, 2749 ( 2750 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2751 eval ac_val=\$$ac_var 2752 case $ac_val in #( 2753 *${as_nl}*) 2754 case $ac_var in #( 2755 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2756 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2757 esac 2758 case $ac_var in #( 2759 _ | IFS | as_nl) ;; #( 2760 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2761 *) { eval $ac_var=; unset $ac_var;} ;; 2762 esac ;; 2763 esac 2764 done 2765 (set) 2>&1 | 2766 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2767 *${as_nl}ac_space=\ *) 2768 sed -n \ 2769 "s/'\''/'\''\\\\'\'''\''/g; 2770 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2771 ;; #( 2772 *) 2773 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2774 ;; 2775 esac | 2776 sort 2777 ) 2778 echo 2779 2780 $as_echo "## ----------------- ## 2781 ## Output variables. ## 2782 ## ----------------- ##" 2783 echo 2784 for ac_var in $ac_subst_vars 2785 do 2786 eval ac_val=\$$ac_var 2787 case $ac_val in 2788 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2789 esac 2790 $as_echo "$ac_var='\''$ac_val'\''" 2791 done | sort 2792 echo 2793 2794 if test -n "$ac_subst_files"; then 2795 $as_echo "## ------------------- ## 2796 ## File substitutions. ## 2797 ## ------------------- ##" 2798 echo 2799 for ac_var in $ac_subst_files 2800 do 2801 eval ac_val=\$$ac_var 2802 case $ac_val in 2803 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2804 esac 2805 $as_echo "$ac_var='\''$ac_val'\''" 2806 done | sort 2807 echo 2808 fi 2809 2810 if test -s confdefs.h; then 2811 $as_echo "## ----------- ## 2812 ## confdefs.h. ## 2813 ## ----------- ##" 2814 echo 2815 cat confdefs.h 2816 echo 2817 fi 2818 test "$ac_signal" != 0 && 2819 $as_echo "$as_me: caught signal $ac_signal" 2820 $as_echo "$as_me: exit $exit_status" 2821 } >&5 2822 rm -f core *.core core.conftest.* && 2823 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2824 exit $exit_status 2825 ' 0 2826 for ac_signal in 1 2 13 15; do 2827 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2828 done 2829 ac_signal=0 2830 2831 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2832 rm -f -r conftest* confdefs.h 2833 2834 $as_echo "/* confdefs.h */" > confdefs.h 2835 2836 # Predefined preprocessor variables. 2837 2838 cat >>confdefs.h <<_ACEOF 2839 #define PACKAGE_NAME "$PACKAGE_NAME" 2840 _ACEOF 2841 2842 cat >>confdefs.h <<_ACEOF 2843 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2844 _ACEOF 2845 2846 cat >>confdefs.h <<_ACEOF 2847 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2848 _ACEOF 2849 2850 cat >>confdefs.h <<_ACEOF 2851 #define PACKAGE_STRING "$PACKAGE_STRING" 2852 _ACEOF 2853 2854 cat >>confdefs.h <<_ACEOF 2855 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2856 _ACEOF 2857 2858 cat >>confdefs.h <<_ACEOF 2859 #define PACKAGE_URL "$PACKAGE_URL" 2860 _ACEOF 2861 2862 2863 # Let the site file select an alternate cache file if it wants to. 2864 # Prefer an explicitly selected file to automatically selected ones. 2865 ac_site_file1=NONE 2866 ac_site_file2=NONE 2867 if test -n "$CONFIG_SITE"; then 2868 # We do not want a PATH search for config.site. 2869 case $CONFIG_SITE in #(( 2870 -*) ac_site_file1=./$CONFIG_SITE;; 2871 */*) ac_site_file1=$CONFIG_SITE;; 2872 *) ac_site_file1=./$CONFIG_SITE;; 2873 esac 2874 elif test "x$prefix" != xNONE; then 2875 ac_site_file1=$prefix/share/config.site 2876 ac_site_file2=$prefix/etc/config.site 2877 else 2878 ac_site_file1=$ac_default_prefix/share/config.site 2879 ac_site_file2=$ac_default_prefix/etc/config.site 2880 fi 2881 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2882 do 2883 test "x$ac_site_file" = xNONE && continue 2884 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2885 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2886 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2887 sed 's/^/| /' "$ac_site_file" >&5 2888 . "$ac_site_file" \ 2889 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2891 as_fn_error $? "failed to load site script $ac_site_file 2892 See \`config.log' for more details" "$LINENO" 5; } 2893 fi 2894 done 2895 2896 if test -r "$cache_file"; then 2897 # Some versions of bash will fail to source /dev/null (special files 2898 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2899 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2901 $as_echo "$as_me: loading cache $cache_file" >&6;} 2902 case $cache_file in 2903 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2904 *) . "./$cache_file";; 2905 esac 2906 fi 2907 else 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2909 $as_echo "$as_me: creating cache $cache_file" >&6;} 2910 >$cache_file 2911 fi 2912 2913 # Check that the precious variables saved in the cache have kept the same 2914 # value. 2915 ac_cache_corrupted=false 2916 for ac_var in $ac_precious_vars; do 2917 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2918 eval ac_new_set=\$ac_env_${ac_var}_set 2919 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2920 eval ac_new_val=\$ac_env_${ac_var}_value 2921 case $ac_old_set,$ac_new_set in 2922 set,) 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2924 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2925 ac_cache_corrupted=: ;; 2926 ,set) 2927 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2928 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2929 ac_cache_corrupted=: ;; 2930 ,);; 2931 *) 2932 if test "x$ac_old_val" != "x$ac_new_val"; then 2933 # differences in whitespace do not lead to failure. 2934 ac_old_val_w=`echo x $ac_old_val` 2935 ac_new_val_w=`echo x $ac_new_val` 2936 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2938 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2939 ac_cache_corrupted=: 2940 else 2941 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2942 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2943 eval $ac_var=\$ac_old_val 2944 fi 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2946 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2947 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2948 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2949 fi;; 2950 esac 2951 # Pass precious variables to config.status. 2952 if test "$ac_new_set" = set; then 2953 case $ac_new_val in 2954 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2955 *) ac_arg=$ac_var=$ac_new_val ;; 2956 esac 2957 case " $ac_configure_args " in 2958 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2959 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2960 esac 2961 fi 2962 done 2963 if $ac_cache_corrupted; then 2964 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2966 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2967 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2968 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2969 fi 2970 ## -------------------- ## 2971 ## Main body of script. ## 2972 ## -------------------- ## 2973 2974 ac_ext=c 2975 ac_cpp='$CPP $CPPFLAGS' 2976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2978 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 # If --target is not used then $target_alias is empty, but if say 2993 # "./configure athlon-pc-freebsd3.5" is used, then all three of 2994 # $build_alias, $host_alias and $target_alias are set to 2995 # "athlon-pc-freebsd3.5". 2996 # 2997 if test -n "$target_alias" && test "$target_alias" != "$host_alias"; then 2998 as_fn_error $? "--target is not appropriate for GMP 2999 Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system 3000 explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the 3001 manual for more on this)." "$LINENO" 5 3002 fi 3003 3004 gmp_configm4="config.m4" 3005 gmp_tmpconfigm4=cnfm4.tmp 3006 gmp_tmpconfigm4i=cnfm4i.tmp 3007 gmp_tmpconfigm4p=cnfm4p.tmp 3008 rm -f $gmp_tmpconfigm4 $gmp_tmpconfigm4i $gmp_tmpconfigm4p 3009 3010 # CONFIG_TOP_SRCDIR is a path from the mpn builddir to the top srcdir. 3011 # The pattern here tests for an absolute path the same way as 3012 # _AC_OUTPUT_FILES in autoconf acgeneral.m4. 3013 case $srcdir in 3014 [\\/]* | ?:[\\/]* ) tmp="$srcdir" ;; 3015 *) tmp="../$srcdir" ;; 3016 esac 3017 echo "define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)" >>$gmp_tmpconfigm4 3018 3019 # All CPUs use asm-defs.m4 3020 echo "include(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')" >>$gmp_tmpconfigm4i 3021 3022 3023 ac_aux_dir= 3024 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3025 if test -f "$ac_dir/install-sh"; then 3026 ac_aux_dir=$ac_dir 3027 ac_install_sh="$ac_aux_dir/install-sh -c" 3028 break 3029 elif test -f "$ac_dir/install.sh"; then 3030 ac_aux_dir=$ac_dir 3031 ac_install_sh="$ac_aux_dir/install.sh -c" 3032 break 3033 elif test -f "$ac_dir/shtool"; then 3034 ac_aux_dir=$ac_dir 3035 ac_install_sh="$ac_aux_dir/shtool install -c" 3036 break 3037 fi 3038 done 3039 if test -z "$ac_aux_dir"; then 3040 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3041 fi 3042 3043 # These three variables are undocumented and unsupported, 3044 # and are intended to be withdrawn in a future Autoconf release. 3045 # They can cause serious problems if a builder's source tree is in a directory 3046 # whose full name contains unusual characters. 3047 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3048 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3049 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3050 3051 3052 # Make sure we can run config.sub. 3053 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3054 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3055 3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3057 $as_echo_n "checking build system type... " >&6; } 3058 if ${ac_cv_build+:} false; then : 3059 $as_echo_n "(cached) " >&6 3060 else 3061 ac_build_alias=$build_alias 3062 test "x$ac_build_alias" = x && 3063 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3064 test "x$ac_build_alias" = x && 3065 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3066 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3067 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3068 3069 fi 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3071 $as_echo "$ac_cv_build" >&6; } 3072 case $ac_cv_build in 3073 *-*-*) ;; 3074 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3075 esac 3076 build=$ac_cv_build 3077 ac_save_IFS=$IFS; IFS='-' 3078 set x $ac_cv_build 3079 shift 3080 build_cpu=$1 3081 build_vendor=$2 3082 shift; shift 3083 # Remember, the first character of IFS is used to create $*, 3084 # except with old shells: 3085 build_os=$* 3086 IFS=$ac_save_IFS 3087 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3088 3089 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3091 $as_echo_n "checking host system type... " >&6; } 3092 if ${ac_cv_host+:} false; then : 3093 $as_echo_n "(cached) " >&6 3094 else 3095 if test "x$host_alias" = x; then 3096 ac_cv_host=$ac_cv_build 3097 else 3098 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3099 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3100 fi 3101 3102 fi 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3104 $as_echo "$ac_cv_host" >&6; } 3105 case $ac_cv_host in 3106 *-*-*) ;; 3107 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3108 esac 3109 host=$ac_cv_host 3110 ac_save_IFS=$IFS; IFS='-' 3111 set x $ac_cv_host 3112 shift 3113 host_cpu=$1 3114 host_vendor=$2 3115 shift; shift 3116 # Remember, the first character of IFS is used to create $*, 3117 # except with old shells: 3118 host_os=$* 3119 IFS=$ac_save_IFS 3120 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3121 3122 3123 3124 am__api_version='1.15' 3125 3126 # Find a good install program. We prefer a C program (faster), 3127 # so one script is as good as another. But avoid the broken or 3128 # incompatible versions: 3129 # SysV /etc/install, /usr/sbin/install 3130 # SunOS /usr/etc/install 3131 # IRIX /sbin/install 3132 # AIX /bin/install 3133 # AmigaOS /C/install, which installs bootblocks on floppy discs 3134 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3135 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3136 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3137 # OS/2's system install, which has a completely different semantic 3138 # ./install, which can be erroneously created by make from ./install.sh. 3139 # Reject install programs that cannot install multiple files. 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3141 $as_echo_n "checking for a BSD-compatible install... " >&6; } 3142 if test -z "$INSTALL"; then 3143 if ${ac_cv_path_install+:} false; then : 3144 $as_echo_n "(cached) " >&6 3145 else 3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3147 for as_dir in $PATH 3148 do 3149 IFS=$as_save_IFS 3150 test -z "$as_dir" && as_dir=. 3151 # Account for people who put trailing slashes in PATH elements. 3152 case $as_dir/ in #(( 3153 ./ | .// | /[cC]/* | \ 3154 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3155 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3156 /usr/ucb/* ) ;; 3157 *) 3158 # OSF1 and SCO ODT 3.0 have their own names for install. 3159 # Don't use installbsd from OSF since it installs stuff as root 3160 # by default. 3161 for ac_prog in ginstall scoinst install; do 3162 for ac_exec_ext in '' $ac_executable_extensions; do 3163 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3164 if test $ac_prog = install && 3165 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3166 # AIX install. It has an incompatible calling convention. 3167 : 3168 elif test $ac_prog = install && 3169 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3170 # program-specific install script used by HP pwplus--don't use. 3171 : 3172 else 3173 rm -rf conftest.one conftest.two conftest.dir 3174 echo one > conftest.one 3175 echo two > conftest.two 3176 mkdir conftest.dir 3177 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3178 test -s conftest.one && test -s conftest.two && 3179 test -s conftest.dir/conftest.one && 3180 test -s conftest.dir/conftest.two 3181 then 3182 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3183 break 3 3184 fi 3185 fi 3186 fi 3187 done 3188 done 3189 ;; 3190 esac 3191 3192 done 3193 IFS=$as_save_IFS 3194 3195 rm -rf conftest.one conftest.two conftest.dir 3196 3197 fi 3198 if test "${ac_cv_path_install+set}" = set; then 3199 INSTALL=$ac_cv_path_install 3200 else 3201 # As a last resort, use the slow shell script. Don't cache a 3202 # value for INSTALL within a source directory, because that will 3203 # break other packages using the cache if that directory is 3204 # removed, or if the value is a relative name. 3205 INSTALL=$ac_install_sh 3206 fi 3207 fi 3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3209 $as_echo "$INSTALL" >&6; } 3210 3211 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3212 # It thinks the first close brace ends the variable substitution. 3213 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3214 3215 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3216 3217 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3218 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3220 $as_echo_n "checking whether build environment is sane... " >&6; } 3221 # Reject unsafe characters in $srcdir or the absolute working directory 3222 # name. Accept space and tab only in the latter. 3223 am_lf=' 3224 ' 3225 case `pwd` in 3226 *[\\\"\#\$\&\'\`$am_lf]*) 3227 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3228 esac 3229 case $srcdir in 3230 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3231 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3232 esac 3233 3234 # Do 'set' in a subshell so we don't clobber the current shell's 3235 # arguments. Must try -L first in case configure is actually a 3236 # symlink; some systems play weird games with the mod time of symlinks 3237 # (eg FreeBSD returns the mod time of the symlink's containing 3238 # directory). 3239 if ( 3240 am_has_slept=no 3241 for am_try in 1 2; do 3242 echo "timestamp, slept: $am_has_slept" > conftest.file 3243 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3244 if test "$*" = "X"; then 3245 # -L didn't work. 3246 set X `ls -t "$srcdir/configure" conftest.file` 3247 fi 3248 if test "$*" != "X $srcdir/configure conftest.file" \ 3249 && test "$*" != "X conftest.file $srcdir/configure"; then 3250 3251 # If neither matched, then we have a broken ls. This can happen 3252 # if, for instance, CONFIG_SHELL is bash and it inherits a 3253 # broken ls alias from the environment. This has actually 3254 # happened. Such a system could not be considered "sane". 3255 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3256 alias in your environment" "$LINENO" 5 3257 fi 3258 if test "$2" = conftest.file || test $am_try -eq 2; then 3259 break 3260 fi 3261 # Just in case. 3262 sleep 1 3263 am_has_slept=yes 3264 done 3265 test "$2" = conftest.file 3266 ) 3267 then 3268 # Ok. 3269 : 3270 else 3271 as_fn_error $? "newly created file is older than distributed files! 3272 Check your system clock" "$LINENO" 5 3273 fi 3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3275 $as_echo "yes" >&6; } 3276 # If we didn't sleep, we still need to ensure time stamps of config.status and 3277 # generated files are strictly newer. 3278 am_sleep_pid= 3279 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3280 ( sleep 1 ) & 3281 am_sleep_pid=$! 3282 fi 3283 3284 rm -f conftest.file 3285 3286 test "$program_prefix" != NONE && 3287 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3288 # Use a double $ so make ignores it. 3289 test "$program_suffix" != NONE && 3290 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3291 # Double any \ or $. 3292 # By default was `s,x,x', remove it if useless. 3293 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3294 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3295 3296 # Expand $ac_aux_dir to an absolute path. 3297 am_aux_dir=`cd "$ac_aux_dir" && pwd` 3298 3299 if test x"${MISSING+set}" != xset; then 3300 case $am_aux_dir in 3301 *\ * | *\ *) 3302 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3303 *) 3304 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3305 esac 3306 fi 3307 # Use eval to expand $SHELL 3308 if eval "$MISSING --is-lightweight"; then 3309 am_missing_run="$MISSING " 3310 else 3311 am_missing_run= 3312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3313 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3314 fi 3315 3316 if test x"${install_sh+set}" != xset; then 3317 case $am_aux_dir in 3318 *\ * | *\ *) 3319 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3320 *) 3321 install_sh="\${SHELL} $am_aux_dir/install-sh" 3322 esac 3323 fi 3324 3325 # Installed binaries are usually stripped using 'strip' when the user 3326 # run "make install-strip". However 'strip' might not be the right 3327 # tool to use in cross-compilation environments, therefore Automake 3328 # will honor the 'STRIP' environment variable to overrule this program. 3329 if test "$cross_compiling" != no; then 3330 if test -n "$ac_tool_prefix"; then 3331 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3332 set dummy ${ac_tool_prefix}strip; ac_word=$2 3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3334 $as_echo_n "checking for $ac_word... " >&6; } 3335 if ${ac_cv_prog_STRIP+:} false; then : 3336 $as_echo_n "(cached) " >&6 3337 else 3338 if test -n "$STRIP"; then 3339 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3340 else 3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3342 for as_dir in $PATH 3343 do 3344 IFS=$as_save_IFS 3345 test -z "$as_dir" && as_dir=. 3346 for ac_exec_ext in '' $ac_executable_extensions; do 3347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3348 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3350 break 2 3351 fi 3352 done 3353 done 3354 IFS=$as_save_IFS 3355 3356 fi 3357 fi 3358 STRIP=$ac_cv_prog_STRIP 3359 if test -n "$STRIP"; then 3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3361 $as_echo "$STRIP" >&6; } 3362 else 3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3364 $as_echo "no" >&6; } 3365 fi 3366 3367 3368 fi 3369 if test -z "$ac_cv_prog_STRIP"; then 3370 ac_ct_STRIP=$STRIP 3371 # Extract the first word of "strip", so it can be a program name with args. 3372 set dummy strip; ac_word=$2 3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3374 $as_echo_n "checking for $ac_word... " >&6; } 3375 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3376 $as_echo_n "(cached) " >&6 3377 else 3378 if test -n "$ac_ct_STRIP"; then 3379 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3380 else 3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3382 for as_dir in $PATH 3383 do 3384 IFS=$as_save_IFS 3385 test -z "$as_dir" && as_dir=. 3386 for ac_exec_ext in '' $ac_executable_extensions; do 3387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3388 ac_cv_prog_ac_ct_STRIP="strip" 3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3390 break 2 3391 fi 3392 done 3393 done 3394 IFS=$as_save_IFS 3395 3396 fi 3397 fi 3398 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3399 if test -n "$ac_ct_STRIP"; then 3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3401 $as_echo "$ac_ct_STRIP" >&6; } 3402 else 3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3404 $as_echo "no" >&6; } 3405 fi 3406 3407 if test "x$ac_ct_STRIP" = x; then 3408 STRIP=":" 3409 else 3410 case $cross_compiling:$ac_tool_warned in 3411 yes:) 3412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3414 ac_tool_warned=yes ;; 3415 esac 3416 STRIP=$ac_ct_STRIP 3417 fi 3418 else 3419 STRIP="$ac_cv_prog_STRIP" 3420 fi 3421 3422 fi 3423 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3424 3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3426 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3427 if test -z "$MKDIR_P"; then 3428 if ${ac_cv_path_mkdir+:} false; then : 3429 $as_echo_n "(cached) " >&6 3430 else 3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3432 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3433 do 3434 IFS=$as_save_IFS 3435 test -z "$as_dir" && as_dir=. 3436 for ac_prog in mkdir gmkdir; do 3437 for ac_exec_ext in '' $ac_executable_extensions; do 3438 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3439 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3440 'mkdir (GNU coreutils) '* | \ 3441 'mkdir (coreutils) '* | \ 3442 'mkdir (fileutils) '4.1*) 3443 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3444 break 3;; 3445 esac 3446 done 3447 done 3448 done 3449 IFS=$as_save_IFS 3450 3451 fi 3452 3453 test -d ./--version && rmdir ./--version 3454 if test "${ac_cv_path_mkdir+set}" = set; then 3455 MKDIR_P="$ac_cv_path_mkdir -p" 3456 else 3457 # As a last resort, use the slow shell script. Don't cache a 3458 # value for MKDIR_P within a source directory, because that will 3459 # break other packages using the cache if that directory is 3460 # removed, or if the value is a relative name. 3461 MKDIR_P="$ac_install_sh -d" 3462 fi 3463 fi 3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3465 $as_echo "$MKDIR_P" >&6; } 3466 3467 for ac_prog in gawk mawk nawk awk 3468 do 3469 # Extract the first word of "$ac_prog", so it can be a program name with args. 3470 set dummy $ac_prog; ac_word=$2 3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3472 $as_echo_n "checking for $ac_word... " >&6; } 3473 if ${ac_cv_prog_AWK+:} false; then : 3474 $as_echo_n "(cached) " >&6 3475 else 3476 if test -n "$AWK"; then 3477 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3478 else 3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3480 for as_dir in $PATH 3481 do 3482 IFS=$as_save_IFS 3483 test -z "$as_dir" && as_dir=. 3484 for ac_exec_ext in '' $ac_executable_extensions; do 3485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3486 ac_cv_prog_AWK="$ac_prog" 3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3488 break 2 3489 fi 3490 done 3491 done 3492 IFS=$as_save_IFS 3493 3494 fi 3495 fi 3496 AWK=$ac_cv_prog_AWK 3497 if test -n "$AWK"; then 3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3499 $as_echo "$AWK" >&6; } 3500 else 3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3502 $as_echo "no" >&6; } 3503 fi 3504 3505 3506 test -n "$AWK" && break 3507 done 3508 3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3510 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3511 set x ${MAKE-make} 3512 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3513 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3514 $as_echo_n "(cached) " >&6 3515 else 3516 cat >conftest.make <<\_ACEOF 3517 SHELL = /bin/sh 3518 all: 3519 @echo '@@@%%%=$(MAKE)=@@@%%%' 3520 _ACEOF 3521 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3522 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3523 *@@@%%%=?*=@@@%%%*) 3524 eval ac_cv_prog_make_${ac_make}_set=yes;; 3525 *) 3526 eval ac_cv_prog_make_${ac_make}_set=no;; 3527 esac 3528 rm -f conftest.make 3529 fi 3530 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3532 $as_echo "yes" >&6; } 3533 SET_MAKE= 3534 else 3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3536 $as_echo "no" >&6; } 3537 SET_MAKE="MAKE=${MAKE-make}" 3538 fi 3539 3540 rm -rf .tst 2>/dev/null 3541 mkdir .tst 2>/dev/null 3542 if test -d .tst; then 3543 am__leading_dot=. 3544 else 3545 am__leading_dot=_ 3546 fi 3547 rmdir .tst 2>/dev/null 3548 3549 # Check whether --enable-silent-rules was given. 3550 if test "${enable_silent_rules+set}" = set; then : 3551 enableval=$enable_silent_rules; 3552 fi 3553 3554 case $enable_silent_rules in # ((( 3555 yes) AM_DEFAULT_VERBOSITY=0;; 3556 no) AM_DEFAULT_VERBOSITY=1;; 3557 *) AM_DEFAULT_VERBOSITY=1;; 3558 esac 3559 am_make=${MAKE-make} 3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3561 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3562 if ${am_cv_make_support_nested_variables+:} false; then : 3563 $as_echo_n "(cached) " >&6 3564 else 3565 if $as_echo 'TRUE=$(BAR$(V)) 3566 BAR0=false 3567 BAR1=true 3568 V=1 3569 am__doit: 3570 @$(TRUE) 3571 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3572 am_cv_make_support_nested_variables=yes 3573 else 3574 am_cv_make_support_nested_variables=no 3575 fi 3576 fi 3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3578 $as_echo "$am_cv_make_support_nested_variables" >&6; } 3579 if test $am_cv_make_support_nested_variables = yes; then 3580 AM_V='$(V)' 3581 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3582 else 3583 AM_V=$AM_DEFAULT_VERBOSITY 3584 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3585 fi 3586 AM_BACKSLASH='\' 3587 3588 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3589 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3590 # is not polluted with repeated "-I." 3591 am__isrc=' -I$(srcdir)' 3592 # test to see if srcdir already configured 3593 if test -f $srcdir/config.status; then 3594 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3595 fi 3596 fi 3597 3598 # test whether we have cygpath 3599 if test -z "$CYGPATH_W"; then 3600 if (cygpath --version) >/dev/null 2>/dev/null; then 3601 CYGPATH_W='cygpath -w' 3602 else 3603 CYGPATH_W=echo 3604 fi 3605 fi 3606 3607 3608 # Define the identity of the package. 3609 PACKAGE='gmp' 3610 VERSION='6.2.1' 3611 3612 3613 cat >>confdefs.h <<_ACEOF 3614 #define PACKAGE "$PACKAGE" 3615 _ACEOF 3616 3617 3618 cat >>confdefs.h <<_ACEOF 3619 #define VERSION "$VERSION" 3620 _ACEOF 3621 3622 # Some tools Automake needs. 3623 3624 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3625 3626 3627 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3628 3629 3630 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3631 3632 3633 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3634 3635 3636 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3637 3638 # For better backward compatibility. To be removed once Automake 1.9.x 3639 # dies out for good. For more background, see: 3640 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3641 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3642 mkdir_p='$(MKDIR_P)' 3643 3644 # We need awk for the "check" target (and possibly the TAP driver). The 3645 # system "awk" is bad on some platforms. 3646 # Always define AMTAR for backward compatibility. Yes, it's still used 3647 # in the wild :-( We should find a proper way to deprecate it ... 3648 AMTAR='$${TAR-tar}' 3649 3650 3651 # We'll loop over all known methods to create a tar archive until one works. 3652 _am_tools='gnutar pax cpio none' 3653 3654 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3655 3656 3657 3658 3659 3660 3661 # POSIX will say in a future version that running "rm -f" with no argument 3662 # is OK; and we want to be able to make that assumption in our Makefile 3663 # recipes. So use an aggressive probe to check that the usage we want is 3664 # actually supported "in the wild" to an acceptable degree. 3665 # See automake bug#10828. 3666 # To make any issue more visible, cause the running configure to be aborted 3667 # by default if the 'rm' program in use doesn't match our expectations; the 3668 # user can still override this though. 3669 if rm -f && rm -fr && rm -rf; then : OK; else 3670 cat >&2 <<'END' 3671 Oops! 3672 3673 Your 'rm' program seems unable to run without file operands specified 3674 on the command line, even when the '-f' option is present. This is contrary 3675 to the behaviour of most rm programs out there, and not conforming with 3676 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3677 3678 Please tell bug-automake@gnu.org about your system, including the value 3679 of your $PATH and any error possibly output before this message. This 3680 can help us improve future automake versions. 3681 3682 END 3683 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3684 echo 'Configuration will proceed anyway, since you have set the' >&2 3685 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3686 echo >&2 3687 else 3688 cat >&2 <<'END' 3689 Aborting the configuration process, to ensure you take notice of the issue. 3690 3691 You can download and install GNU coreutils to get an 'rm' implementation 3692 that behaves properly: <http://www.gnu.org/software/coreutils/>. 3693 3694 If you want to complete the configuration process using your problematic 3695 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3696 to "yes", and re-run configure. 3697 3698 END 3699 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3700 fi 3701 fi 3702 3703 ac_config_headers="$ac_config_headers config.h:config.in" 3704 3705 3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3707 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3708 # Check whether --enable-maintainer-mode was given. 3709 if test "${enable_maintainer_mode+set}" = set; then : 3710 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3711 else 3712 USE_MAINTAINER_MODE=no 3713 fi 3714 3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3716 $as_echo "$USE_MAINTAINER_MODE" >&6; } 3717 if test $USE_MAINTAINER_MODE = yes; then 3718 MAINTAINER_MODE_TRUE= 3719 MAINTAINER_MODE_FALSE='#' 3720 else 3721 MAINTAINER_MODE_TRUE='#' 3722 MAINTAINER_MODE_FALSE= 3723 fi 3724 3725 MAINT=$MAINTAINER_MODE_TRUE 3726 3727 3728 3729 3730 # Check whether --enable-assert was given. 3731 if test "${enable_assert+set}" = set; then : 3732 enableval=$enable_assert; case $enableval in 3733 yes|no) ;; 3734 *) as_fn_error $? "bad value $enableval for --enable-assert, need yes or no" "$LINENO" 5 ;; 3735 esac 3736 else 3737 enable_assert=no 3738 fi 3739 3740 3741 if test "$enable_assert" = "yes"; then 3742 3743 $as_echo "#define WANT_ASSERT 1" >>confdefs.h 3744 3745 want_assert_01=1 3746 else 3747 want_assert_01=0 3748 fi 3749 3750 echo "define(<WANT_ASSERT>,$want_assert_01)" >> $gmp_tmpconfigm4 3751 3752 3753 3754 # Check whether --enable-alloca was given. 3755 if test "${enable_alloca+set}" = set; then : 3756 enableval=$enable_alloca; case $enableval in 3757 alloca|malloc-reentrant|malloc-notreentrant) ;; 3758 yes|no|reentrant|notreentrant) ;; 3759 debug) ;; 3760 *) 3761 as_fn_error $? "bad value $enableval for --enable-alloca, need one of: 3762 yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" "$LINENO" 5 ;; 3763 esac 3764 else 3765 enable_alloca=reentrant 3766 fi 3767 3768 3769 3770 # IMPROVE ME: The default for C++ is disabled. The tests currently 3771 # performed below for a working C++ compiler are not particularly strong, 3772 # and in general can't be expected to get the right setup on their own. The 3773 # most significant problem is getting the ABI the same. Defaulting CXXFLAGS 3774 # to CFLAGS takes only a small step towards this. It's also probably worth 3775 # worrying whether the C and C++ runtimes from say gcc and a vendor C++ can 3776 # work together. Some rather broken C++ installations were encountered 3777 # during testing, and though such things clearly aren't GMP's problem, if 3778 # --enable-cxx=detect were to be the default then some careful checks of 3779 # which, if any, C++ compiler on the system is up to scratch would be 3780 # wanted. 3781 # 3782 # Check whether --enable-cxx was given. 3783 if test "${enable_cxx+set}" = set; then : 3784 enableval=$enable_cxx; case $enableval in 3785 yes|no|detect) ;; 3786 *) as_fn_error $? "bad value $enableval for --enable-cxx, need yes/no/detect" "$LINENO" 5 ;; 3787 esac 3788 else 3789 enable_cxx=no 3790 fi 3791 3792 3793 3794 # Check whether --enable-assembly was given. 3795 if test "${enable_assembly+set}" = set; then : 3796 enableval=$enable_assembly; case $enableval in 3797 yes|no) ;; 3798 *) as_fn_error $? "bad value $enableval for --enable-assembly, need yes or no" "$LINENO" 5 ;; 3799 esac 3800 else 3801 enable_assembly=yes 3802 fi 3803 3804 3805 3806 # Check whether --enable-fft was given. 3807 if test "${enable_fft+set}" = set; then : 3808 enableval=$enable_fft; case $enableval in 3809 yes|no) ;; 3810 *) as_fn_error $? "bad value $enableval for --enable-fft, need yes or no" "$LINENO" 5 ;; 3811 esac 3812 else 3813 enable_fft=yes 3814 fi 3815 3816 3817 if test "$enable_fft" = "yes"; then 3818 3819 $as_echo "#define WANT_FFT 1" >>confdefs.h 3820 3821 fi 3822 3823 3824 # Check whether --enable-old-fft-full was given. 3825 if test "${enable_old_fft_full+set}" = set; then : 3826 enableval=$enable_old_fft_full; case $enableval in 3827 yes|no) ;; 3828 *) as_fn_error $? "bad value $enableval for --enable-old-fft-full, need yes or no" "$LINENO" 5 ;; 3829 esac 3830 else 3831 enable_old_fft_full=no 3832 fi 3833 3834 3835 if test "$enable_old_fft_full" = "yes"; then 3836 3837 $as_echo "#define WANT_OLD_FFT_FULL 1" >>confdefs.h 3838 3839 fi 3840 3841 3842 # Check whether --enable-nails was given. 3843 if test "${enable_nails+set}" = set; then : 3844 enableval=$enable_nails; case $enableval in 3845 yes|no|[02468]|[0-9][02468]) ;; 3846 *[13579]) 3847 as_fn_error $? "bad value $enableval for --enable-nails, only even nail sizes supported" "$LINENO" 5 ;; 3848 *) 3849 as_fn_error $? "bad value $enableval for --enable-nails, need yes/no/number" "$LINENO" 5 ;; 3850 esac 3851 else 3852 enable_nails=no 3853 fi 3854 3855 3856 case $enable_nails in 3857 yes) GMP_NAIL_BITS=2 ;; 3858 no) GMP_NAIL_BITS=0 ;; 3859 *) GMP_NAIL_BITS=$enable_nails ;; 3860 esac 3861 3862 3863 3864 # Check whether --enable-profiling was given. 3865 if test "${enable_profiling+set}" = set; then : 3866 enableval=$enable_profiling; case $enableval in 3867 no|prof|gprof|instrument) ;; 3868 *) as_fn_error $? "bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" "$LINENO" 5 ;; 3869 esac 3870 else 3871 enable_profiling=no 3872 fi 3873 3874 3875 case $enable_profiling in 3876 prof) 3877 3878 $as_echo "#define WANT_PROFILING_PROF 1" >>confdefs.h 3879 3880 ;; 3881 gprof) 3882 3883 $as_echo "#define WANT_PROFILING_GPROF 1" >>confdefs.h 3884 3885 ;; 3886 instrument) 3887 3888 $as_echo "#define WANT_PROFILING_INSTRUMENT 1" >>confdefs.h 3889 3890 ;; 3891 esac 3892 3893 3894 echo "define(<WANT_PROFILING>,<\`$enable_profiling'>)" >> $gmp_tmpconfigm4 3895 3896 3897 # -fomit-frame-pointer is incompatible with -pg on some chips 3898 if test "$enable_profiling" = gprof; then 3899 fomit_frame_pointer= 3900 else 3901 fomit_frame_pointer="-fomit-frame-pointer" 3902 fi 3903 3904 3905 3906 # Check whether --with-readline was given. 3907 if test "${with_readline+set}" = set; then : 3908 withval=$with_readline; case $withval in 3909 yes|no|detect) ;; 3910 *) as_fn_error $? "bad value $withval for --with-readline, need yes/no/detect" "$LINENO" 5 ;; 3911 esac 3912 else 3913 with_readline=detect 3914 fi 3915 3916 3917 3918 # Check whether --enable-fat was given. 3919 if test "${enable_fat+set}" = set; then : 3920 enableval=$enable_fat; case $enableval in 3921 yes|no) ;; 3922 *) as_fn_error $? "bad value $enableval for --enable-fat, need yes or no" "$LINENO" 5 ;; 3923 esac 3924 else 3925 enable_fat=no 3926 fi 3927 3928 3929 3930 # Check whether --enable-minithres was given. 3931 if test "${enable_minithres+set}" = set; then : 3932 enableval=$enable_minithres; case $enableval in 3933 yes|no) ;; 3934 *) as_fn_error $? "bad value $enableval for --enable-minithres, need yes or no" "$LINENO" 5 ;; 3935 esac 3936 else 3937 enable_minithres=no 3938 fi 3939 3940 3941 3942 # Check whether --enable-fake-cpuid was given. 3943 if test "${enable_fake_cpuid+set}" = set; then : 3944 enableval=$enable_fake_cpuid; case $enableval in 3945 yes|no) ;; 3946 *) as_fn_error $? "bad value $enableval for --enable-fake-cpuid, need yes or no" "$LINENO" 5 ;; 3947 esac 3948 else 3949 enable_fake_cpuid=no 3950 fi 3951 3952 3953 if test "$enable_fake_cpuid" = "yes"; then 3954 3955 $as_echo "#define WANT_FAKE_CPUID 1" >>confdefs.h 3956 3957 fi 3958 3959 3960 if test $enable_fat = yes && test $enable_assembly = no ; then 3961 as_fn_error $? "when doing a fat build, disabling assembly will not work" "$LINENO" 5 3962 fi 3963 3964 if test $enable_fake_cpuid = yes && test $enable_fat = no ; then 3965 as_fn_error $? "--enable-fake-cpuid requires --enable-fat" "$LINENO" 5 3966 fi 3967 3968 3969 tmp_host=`echo $host_cpu | sed 's/\./_/'` 3970 cat >>confdefs.h <<_ACEOF 3971 #define HAVE_HOST_CPU_$tmp_host 1 3972 _ACEOF 3973 3974 3975 echo "define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')" >> $gmp_tmpconfigm4p 3976 3977 3978 3979 3980 3981 3982 # Table of compilers, options, and mpn paths. This code has various related 3983 # purposes 3984 # 3985 # - better default CC/CFLAGS selections than autoconf otherwise gives 3986 # - default CC/CFLAGS selections for extra CPU types specific to GMP 3987 # - a few tests for known bad compilers 3988 # - choice of ABIs on suitable systems 3989 # - selection of corresponding mpn search path 3990 # 3991 # After GMP specific searches and tests, the standard autoconf AC_PROG_CC is 3992 # called. User selections of CC etc are respected. 3993 # 3994 # Care is taken not to use macros like AC_TRY_COMPILE during the GMP 3995 # pre-testing, since they of course depend on AC_PROG_CC, and also some of 3996 # them cache their results, which is not wanted. 3997 # 3998 # The ABI selection mechanism is unique to GMP. All that reaches autoconf 3999 # is a different selection of CC/CFLAGS according to the best ABI the system 4000 # supports, and/or what the user selects. Naturally the mpn assembler code 4001 # selected is very dependent on the ABI. 4002 # 4003 # The closest the standard tools come to a notion of ABI is something like 4004 # "sparc64" which encodes a CPU and an ABI together. This doesn't seem to 4005 # scale well for GMP, where exact CPU types like "ultrasparc2" are wanted, 4006 # separate from the ABI used on them. 4007 # 4008 # 4009 # The variables set here are 4010 # 4011 # cclist the compiler choices 4012 # xx_cflags flags for compiler xx 4013 # xx_cflags_maybe flags for compiler xx, if they work 4014 # xx_cppflags cpp flags for compiler xx 4015 # xx_cflags_optlist list of sets of optional flags 4016 # xx_cflags_yyy set yyy of optional flags for compiler xx 4017 # xx_ldflags -Wc,-foo flags for libtool linking with compiler xx 4018 # ar_flags extra flags for $AR 4019 # nm_flags extra flags for $NM 4020 # limb limb size, can be "longlong" 4021 # path mpn search path 4022 # extra_functions extra mpn functions 4023 # fat_path fat binary mpn search path [if fat binary desired] 4024 # fat_functions fat functions 4025 # fat_thresholds fat thresholds 4026 # 4027 # Suppose xx_cflags_optlist="arch", then flags from $xx_cflags_arch are 4028 # tried, and the first flag that works will be used. An optlist like "arch 4029 # cpu optimize" can be used to get multiple independent sets of flags tried. 4030 # The first that works from each will be used. If no flag in a set works 4031 # then nothing from that set is added. 4032 # 4033 # For multiple ABIs, the scheme extends as follows. 4034 # 4035 # abilist set of ABI choices 4036 # cclist_aa compiler choices in ABI aa 4037 # xx_aa_cflags flags for xx in ABI aa 4038 # xx_aa_cflags_maybe flags for xx in ABI aa, if they work 4039 # xx_aa_cppflags cpp flags for xx in ABI aa 4040 # xx_aa_cflags_optlist list of sets of optional flags in ABI aa 4041 # xx_aa_cflags_yyy set yyy of optional flags for compiler xx in ABI aa 4042 # xx_aa_ldflags -Wc,-foo flags for libtool linking 4043 # ar_aa_flags extra flags for $AR in ABI aa 4044 # nm_aa_flags extra flags for $NM in ABI aa 4045 # limb_aa limb size in ABI aa, can be "longlong" 4046 # path_aa mpn search path in ABI aa 4047 # extra_functions_aa extra mpn functions in ABI aa 4048 # 4049 # As a convenience, the unadorned xx_cflags (etc) are used for the last ABI 4050 # in ablist, if an xx_aa_cflags for that ABI isn't given. For example if 4051 # abilist="64 32" then $cc_64_cflags will be used for the 64-bit ABI, but 4052 # for the 32-bit either $cc_32_cflags or $cc_cflags is used, whichever is 4053 # defined. This makes it easy to add some 64-bit compilers and flags to an 4054 # unadorned 32-bit set. 4055 # 4056 # limb=longlong (or limb_aa=longlong) applies to all compilers within that 4057 # ABI. It won't work to have some needing long long and some not, since a 4058 # single instantiated gmp.h will be used by both. 4059 # 4060 # SPEED_CYCLECOUNTER, cyclecounter_size and CALLING_CONVENTIONS_OBJS are 4061 # also set here, with an ABI suffix. 4062 # 4063 # 4064 # 4065 # A table-driven approach like this to mapping cpu type to good compiler 4066 # options is a bit of a maintenance burden, but there's not much uniformity 4067 # between options specifications on different compilers. Some sort of 4068 # separately updatable tool might be cute. 4069 # 4070 # The use of lots of variables like this, direct and indirect, tends to 4071 # obscure when and how various things are done, but unfortunately it's 4072 # pretty much the only way. If shell subroutines were portable then actual 4073 # code like "if this .. do that" could be written, but attempting the same 4074 # with full copies of GMP_PROG_CC_WORKS etc expanded at every point would 4075 # hugely bloat the output. 4076 4077 4078 4079 4080 # abilist needs to be non-empty, "standard" is just a generic name here 4081 abilist="standard" 4082 4083 # FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring 4084 # c89 over cc here. But note that on HP-UX c89 provides a castrated 4085 # environment, and would want to be excluded somehow. Maybe 4086 # AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and 4087 # we don't need to worry. 4088 # 4089 cclist="gcc cc" 4090 4091 gcc_cflags="-O2 -pedantic" 4092 gcc_64_cflags="-O2 -pedantic" 4093 cc_cflags="-O" 4094 cc_64_cflags="-O" 4095 4096 SPEED_CYCLECOUNTER_OBJ= 4097 cyclecounter_size=2 4098 4099 HAVE_HOST_CPU_FAMILY_power=0 4100 4101 HAVE_HOST_CPU_FAMILY_powerpc=0 4102 4103 4104 case $host in 4105 4106 alpha*-*-*) 4107 $as_echo "#define HAVE_HOST_CPU_FAMILY_alpha 1" >>confdefs.h 4108 4109 case $host_cpu in 4110 alphaev5* | alphapca5*) 4111 path="alpha/ev5 alpha" ;; 4112 alphaev67 | alphaev68 | alphaev7*) 4113 path="alpha/ev67 alpha/ev6 alpha" ;; 4114 alphaev6) 4115 path="alpha/ev6 alpha" ;; 4116 *) 4117 path="alpha" ;; 4118 esac 4119 if test "$enable_assembly" = "yes" ; then 4120 extra_functions="cntlz" 4121 fi 4122 gcc_cflags_optlist="asm cpu oldas" # need asm ahead of cpu, see below 4123 gcc_cflags_maybe="-mieee" 4124 gcc_cflags_oldas="-Wa,-oldas" # see GMP_GCC_WA_OLDAS. 4125 4126 # gcc 2.7.2.3 doesn't know any -mcpu= for alpha, apparently. 4127 # gcc 2.95 knows -mcpu= ev4, ev5, ev56, pca56, ev6. 4128 # gcc 3.0 adds nothing. 4129 # gcc 3.1 adds ev45, ev67 (but ev45 is the same as ev4). 4130 # gcc 3.2 adds nothing. 4131 # 4132 # gcc version "2.9-gnupro-99r1" under "-O2 -mcpu=ev6" strikes internal 4133 # compiler errors too easily and is rejected by GMP_PROG_CC_WORKS. Each 4134 # -mcpu=ev6 below has a fallback to -mcpu=ev56 for this reason. 4135 # 4136 case $host_cpu in 4137 alpha) gcc_cflags_cpu="-mcpu=ev4" ;; 4138 alphaev5) gcc_cflags_cpu="-mcpu=ev5" ;; 4139 alphaev56) gcc_cflags_cpu="-mcpu=ev56" ;; 4140 alphapca56 | alphapca57) 4141 gcc_cflags_cpu="-mcpu=pca56" ;; 4142 alphaev6) gcc_cflags_cpu="-mcpu=ev6 -mcpu=ev56" ;; 4143 alphaev67 | alphaev68 | alphaev7*) 4144 gcc_cflags_cpu="-mcpu=ev67 -mcpu=ev6 -mcpu=ev56" ;; 4145 esac 4146 4147 # gcc version "2.9-gnupro-99r1" on alphaev68-dec-osf5.1 has been seen 4148 # accepting -mcpu=ev6, but not putting the assembler in the right mode 4149 # for what it produces. We need to do this for it, and need to do it 4150 # before testing the -mcpu options. 4151 # 4152 # On old versions of gcc, which don't know -mcpu=, we believe an 4153 # explicit -Wa,-mev5 etc will be necessary to put the assembler in 4154 # the right mode for our .asm files and longlong.h asm blocks. 4155 # 4156 # On newer versions of gcc, when -mcpu= is known, we must give a -Wa 4157 # which is at least as high as the code gcc will generate. gcc 4158 # establishes what it needs with a ".arch" directive, our command line 4159 # option seems to override that. 4160 # 4161 # gas prior to 2.14 doesn't accept -mev67, but -mev6 seems enough for 4162 # ctlz and cttz (in 2.10.0 at least). 4163 # 4164 # OSF `as' accepts ev68 but stupidly treats it as ev4. -arch only seems 4165 # to affect insns like ldbu which are expanded as macros when necessary. 4166 # Insns like ctlz which were never available as macros are always 4167 # accepted and always generate their plain code. 4168 # 4169 case $host_cpu in 4170 alpha) gcc_cflags_asm="-Wa,-arch,ev4 -Wa,-mev4" ;; 4171 alphaev5) gcc_cflags_asm="-Wa,-arch,ev5 -Wa,-mev5" ;; 4172 alphaev56) gcc_cflags_asm="-Wa,-arch,ev56 -Wa,-mev56" ;; 4173 alphapca56 | alphapca57) 4174 gcc_cflags_asm="-Wa,-arch,pca56 -Wa,-mpca56" ;; 4175 alphaev6) gcc_cflags_asm="-Wa,-arch,ev6 -Wa,-mev6" ;; 4176 alphaev67 | alphaev68 | alphaev7*) 4177 gcc_cflags_asm="-Wa,-arch,ev67 -Wa,-mev67 -Wa,-arch,ev6 -Wa,-mev6" ;; 4178 esac 4179 4180 # It might be better to ask "cc" whether it's Cray C or DEC C, 4181 # instead of relying on the OS part of $host. But it's hard to 4182 # imagine either of those compilers anywhere except their native 4183 # systems. 4184 # 4185 4186 echo "include_mpn(\`alpha/alpha-defs.m4')" >> $gmp_tmpconfigm4i 4187 4188 case $host in 4189 *-cray-unicos*) 4190 cc_cflags="-O" # no -g, it silently disables all optimizations 4191 4192 echo "include_mpn(\`alpha/unicos.m4')" >> $gmp_tmpconfigm4i 4193 4194 # Don't perform any assembly syntax tests on this beast. 4195 gmp_asm_syntax_testing=no 4196 ;; 4197 *-*-osf*) 4198 4199 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i 4200 4201 cc_cflags="" 4202 cc_cflags_optlist="opt cpu" 4203 4204 # not sure if -fast works on old versions, so make it optional 4205 cc_cflags_opt="-fast -O2" 4206 4207 # DEC C V5.9-005 knows ev4, ev5, ev56, pca56, ev6. 4208 # Compaq C V6.3-029 adds ev67. 4209 # 4210 case $host_cpu in 4211 alpha) cc_cflags_cpu="-arch~ev4~-tune~ev4" ;; 4212 alphaev5) cc_cflags_cpu="-arch~ev5~-tune~ev5" ;; 4213 alphaev56) cc_cflags_cpu="-arch~ev56~-tune~ev56" ;; 4214 alphapca56 | alphapca57) 4215 cc_cflags_cpu="-arch~pca56~-tune~pca56" ;; 4216 alphaev6) cc_cflags_cpu="-arch~ev6~-tune~ev6" ;; 4217 alphaev67 | alphaev68 | alphaev7*) 4218 cc_cflags_cpu="-arch~ev67~-tune~ev67 -arch~ev6~-tune~ev6" ;; 4219 esac 4220 ;; 4221 *) 4222 4223 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i 4224 4225 ;; 4226 esac 4227 4228 case $host in 4229 *-*-unicos*) 4230 # tune/alpha.asm assumes int==4bytes but unicos uses int==8bytes 4231 ;; 4232 *) 4233 SPEED_CYCLECOUNTER_OBJ=alpha.lo 4234 cyclecounter_size=1 ;; 4235 esac 4236 ;; 4237 4238 4239 # Cray vector machines. 4240 # This must come after alpha* so that we can recognize present and future 4241 # vector processors with a wildcard. 4242 *-cray-unicos*) 4243 gmp_asm_syntax_testing=no 4244 cclist="cc" 4245 # We used to have -hscalar0 here as a workaround for miscompilation of 4246 # mpz/import.c, but let's hope Cray fixes their bugs instead, since 4247 # -hscalar0 causes disastrously poor code to be generated. 4248 cc_cflags="-O3 -hnofastmd -htask0 -Wa,-B" 4249 path="cray" 4250 ;; 4251 4252 4253 arm*-*-* | aarch64*-*-*) 4254 abilist="32" 4255 gcc_cflags="$gcc_cflags $fomit_frame_pointer" 4256 gcc_cflags_optlist="arch fpmode neon tune" 4257 gcc_64_cflags_optlist="arch tune" 4258 gcc_testlist="gcc-arm-umodsi" 4259 gcc_64_testlist="" 4260 CALLING_CONVENTIONS_OBJS='arm32call.lo arm32check.lo' 4261 CALLING_CONVENTIONS_OBJS_64="" 4262 cclist_64="gcc cc" 4263 any_32_testlist="sizeof-void*-4" 4264 any_64_testlist="sizeof-void*-8" 4265 4266 # This is needed for clang, which is not content with flags like -mfpu=neon 4267 # alone. 4268 case $host in 4269 *-*-*eabi) 4270 gcc_cflags_fpmode="-mfloat-abi=softfp" ;; 4271 *-*-*eabihf) 4272 gcc_cflags_fpmode="-mfloat-abi=hard" ;; 4273 *-*-mingw*) 4274 limb_64=longlong ;; 4275 esac 4276 4277 # FIXME: We make mandatory compiler options optional here. We should 4278 # either enforce them, or organise to strip paths as the corresponding 4279 # options fail. 4280 case $host_cpu in 4281 armxscale | arm7ej | arm9te | arm9e* | arm10* | armv5*) 4282 path="arm/v5 arm" 4283 gcc_cflags_arch="-march=armv5" 4284 ;; 4285 armsa1 | arm7t* | arm9t* | armv4t*) 4286 path="arm" 4287 gcc_cflags_arch="-march=armv4" 4288 ;; 4289 arm1156 | armv6t2*) 4290 path="arm/v6t2 arm/v6 arm/v5 arm" 4291 gcc_cflags_arch="-march=armv6t2" 4292 ;; 4293 arm11* | armv6*) 4294 path="arm/v6 arm/v5 arm" 4295 gcc_cflags_arch="-march=armv6" 4296 ;; 4297 armcortexa5 | armv7*) 4298 path="arm/v7a/cora5 arm/v6t2 arm/v6 arm/v5 arm" 4299 gcc_cflags_arch="-march=armv7-a" 4300 gcc_cflags_tune="-mtune=cortex-a5" 4301 ;; 4302 armcortexa5neon) 4303 path="arm/neon arm/v7a/cora5 arm/v6t2 arm/v6 arm/v5 arm" 4304 gcc_cflags_neon="-mfpu=neon" 4305 gcc_cflags_arch="-march=armv7-a" 4306 gcc_cflags_tune="-mtune=cortex-a5" 4307 ;; 4308 armcortexa7) 4309 path="arm/v7a/cora7 arm/v6t2 arm/v6 arm/v5 arm" 4310 gcc_cflags_arch="-march=armv7ve -march=armv7-a" 4311 gcc_cflags_tune="-mtune=cortex-a7" 4312 ;; 4313 armcortexa7neon) 4314 path="arm/neon arm/v7a/cora7 arm/v6t2 arm/v6 arm/v5 arm" 4315 gcc_cflags_arch="-march=armv7ve -march=armv7-a" 4316 gcc_cflags_neon="-mfpu=neon" 4317 gcc_cflags_tune="-mtune=cortex-a7" 4318 ;; 4319 armcortexa8) 4320 path="arm/v7a/cora8 arm/v6t2 arm/v6 arm/v5 arm" 4321 gcc_cflags_arch="-march=armv7-a" 4322 gcc_cflags_tune="-mtune=cortex-a8" 4323 ;; 4324 armcortexa8neon) 4325 path="arm/neon arm/v7a/cora8 arm/v6t2 arm/v6 arm/v5 arm" 4326 gcc_cflags_arch="-march=armv7-a" 4327 gcc_cflags_neon="-mfpu=neon" 4328 gcc_cflags_tune="-mtune=cortex-a8" 4329 ;; 4330 armcortexa9) 4331 path="arm/v7a/cora9 arm/v6t2 arm/v6 arm/v5 arm" 4332 gcc_cflags_arch="-march=armv7-a" 4333 gcc_cflags_tune="-mtune=cortex-a9" 4334 ;; 4335 armcortexa9neon) 4336 path="arm/neon arm/v7a/cora9 arm/v6t2 arm/v6 arm/v5 arm" 4337 gcc_cflags_arch="-march=armv7-a" 4338 gcc_cflags_neon="-mfpu=neon" 4339 gcc_cflags_tune="-mtune=cortex-a9" 4340 ;; 4341 armcortexa15) 4342 path="arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" 4343 gcc_cflags_arch="-march=armv7ve -march=armv7-a" 4344 gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9" 4345 ;; 4346 armcortexa15neon) 4347 path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" 4348 gcc_cflags_arch="-march=armv7ve -march=armv7-a" 4349 gcc_cflags_neon="-mfpu=neon" 4350 gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9" 4351 ;; 4352 armcortexa12 | armcortexa17) 4353 path="arm/v7a/cora17 arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" 4354 gcc_cflags_arch="-march=armv7ve -march=armv7-a" 4355 gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9" 4356 ;; 4357 armcortexa12neon | armcortexa17neon) 4358 path="arm/v7a/cora17/neon arm/v7a/cora15/neon arm/neon arm/v7a/cora17 arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" 4359 gcc_cflags_arch="-march=armv7ve -march=armv7-a" 4360 gcc_cflags_neon="-mfpu=neon" 4361 gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9" 4362 ;; 4363 armcortexa53 | armcortexa53neon | armcortexa55 | armcortexa55neon) 4364 abilist="64 32" 4365 path="arm/neon arm/v7a/cora9 arm/v6t2 arm/v6 arm/v5 arm" 4366 path_64="arm64/cora53 arm64" 4367 gcc_cflags_arch="-march=armv8-a" 4368 gcc_cflags_neon="-mfpu=neon" 4369 gcc_cflags_tune="-mtune=cortex-a53" 4370 ;; 4371 armcortexa57 | armcortexa57neon) 4372 abilist="64 32" 4373 path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" 4374 path_64="arm64/cora57 arm64" 4375 gcc_cflags_arch="-march=armv8-a" 4376 gcc_cflags_neon="-mfpu=neon" 4377 gcc_cflags_tune="-mtune=cortex-a57" 4378 ;; 4379 armcortexa7[2-9] | armcortexa7[2-9]neon) 4380 abilist="64 32" 4381 path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" 4382 path_64="arm64/cora57 arm64" 4383 gcc_cflags_arch="-march=armv8-a" 4384 gcc_cflags_neon="-mfpu=neon" 4385 gcc_cflags_tune="-mtune=cortex-a72 -mtune=cortex-a57" 4386 ;; 4387 armexynosm1) 4388 abilist="64 32" 4389 path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" 4390 path_64="arm64" 4391 gcc_cflags_arch="-march=armv8-a" 4392 gcc_cflags_neon="-mfpu=neon" 4393 gcc_cflags_tune="-mtune=exynosm1" 4394 ;; 4395 armthunderx) 4396 abilist="64 32" 4397 path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" 4398 path_64="arm64" 4399 gcc_cflags_arch="-march=armv8-a" 4400 gcc_cflags_neon="-mfpu=neon" 4401 gcc_cflags_tune="-mtune=thunderx" 4402 ;; 4403 armxgene1) 4404 abilist="64 32" 4405 path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" 4406 path_64="arm64/xgene1 arm64" 4407 gcc_cflags_arch="-march=armv8-a" 4408 gcc_cflags_neon="-mfpu=neon" 4409 gcc_cflags_tune="-mtune=xgene1" 4410 ;; 4411 aarch64*) 4412 abilist="64 32" 4413 path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" 4414 path_64="arm64" 4415 gcc_cflags_arch="-march=armv8-a" 4416 gcc_cflags_neon="-mfpu=neon" 4417 gcc_cflags_tune="" 4418 ;; 4419 *) 4420 path="arm" 4421 gcc_cflags_arch="-march=armv4" 4422 4423 echo "define(<NOTHUMB>,1)" >> $gmp_tmpconfigm4 4424 4425 ;; 4426 esac 4427 ;; 4428 4429 4430 # Fujitsu 4431 f30[01]-fujitsu-sysv*) 4432 cclist="gcc vcc" 4433 # FIXME: flags for vcc? 4434 vcc_cflags="-g" 4435 path="fujitsu" 4436 ;; 4437 4438 4439 hppa*-*-*) 4440 # HP cc (the one sold separately) is K&R by default, but AM_C_PROTOTYPES 4441 # will add "-Ae", or "-Aa -D_HPUX_SOURCE", to put it into ansi mode, if 4442 # possible. 4443 # 4444 # gcc for hppa 2.0 can be built either for 2.0n (32-bit) or 2.0w 4445 # (64-bit), but not both, so there's no option to choose the desired 4446 # mode, we must instead detect which of the two it is. This is done by 4447 # checking sizeof(long), either 4 or 8 bytes respectively. Do this in 4448 # ABI=1.0 too, in case someone tries to build that with a 2.0w gcc. 4449 # 4450 gcc_cflags_optlist="arch" 4451 gcc_testlist="sizeof-long-4" 4452 SPEED_CYCLECOUNTER_OBJ=hppa.lo 4453 cyclecounter_size=1 4454 4455 # FIXME: For hppa2.0*, path should be "pa32/hppa2_0 pa32/hppa1_1 pa32". 4456 # (Can't remember why this isn't done already, have to check what .asm 4457 # files are available in each and how they run on a typical 2.0 cpu.) 4458 # 4459 case $host_cpu in 4460 hppa1.0*) path="pa32" ;; 4461 hppa7000*) path="pa32/hppa1_1 pa32" ;; 4462 hppa2.0* | hppa64) 4463 path="pa32/hppa2_0 pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;; 4464 *) # default to 7100 4465 path="pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;; 4466 esac 4467 4468 # gcc 2.7.2.3 knows -mpa-risc-1-0 and -mpa-risc-1-1 4469 # gcc 2.95 adds -mpa-risc-2-0, plus synonyms -march=1.0, 1.1 and 2.0 4470 # 4471 # We don't use -mpa-risc-2-0 in ABI=1.0 because 64-bit registers may not 4472 # be saved by the kernel on an old system. Actually gcc (as of 3.2) 4473 # only adds a few float instructions with -mpa-risc-2-0, so it would 4474 # probably be safe, but let's not take the chance. In any case, a 4475 # configuration like --host=hppa2.0 ABI=1.0 is far from optimal. 4476 # 4477 case $host_cpu in 4478 hppa1.0*) gcc_cflags_arch="-mpa-risc-1-0" ;; 4479 *) # default to 7100 4480 gcc_cflags_arch="-mpa-risc-1-1" ;; 4481 esac 4482 4483 case $host_cpu in 4484 hppa1.0*) cc_cflags="+O2" ;; 4485 *) # default to 7100 4486 cc_cflags="+DA1.1 +O2" ;; 4487 esac 4488 4489 case $host in 4490 hppa2.0*-*-* | hppa64-*-*) 4491 cclist_20n="gcc cc" 4492 abilist="2.0n 1.0" 4493 path_20n="pa64" 4494 limb_20n=longlong 4495 any_20n_testlist="sizeof-long-4" 4496 SPEED_CYCLECOUNTER_OBJ_20n=hppa2.lo 4497 cyclecounter_size_20n=2 4498 4499 # -mpa-risc-2-0 is only an optional flag, in case an old gcc is 4500 # used. Assembler support for 2.0 is essential though, for our asm 4501 # files. 4502 gcc_20n_cflags="$gcc_cflags" 4503 gcc_20n_cflags_optlist="arch" 4504 gcc_20n_cflags_arch="-mpa-risc-2-0 -mpa-risc-1-1" 4505 gcc_20n_testlist="sizeof-long-4 hppa-level-2.0" 4506 4507 cc_20n_cflags="+DA2.0 +e +O2 -Wl,+vnocompatwarnings" 4508 cc_20n_testlist="hpc-hppa-2-0" 4509 4510 # ABI=2.0w is available for hppa2.0w and hppa2.0, but not for 4511 # hppa2.0n, on the assumption that that the latter indicates a 4512 # desire for ABI=2.0n. 4513 case $host in 4514 hppa2.0n-*-*) ;; 4515 *) 4516 # HPUX 10 and earlier cannot run 2.0w. Not sure about other 4517 # systems (GNU/Linux for instance), but lets assume they're ok. 4518 case $host in 4519 *-*-hpux[1-9] | *-*-hpux[1-9].* | *-*-hpux10 | *-*-hpux10.*) ;; 4520 *) abilist="2.0w $abilist" ;; 4521 esac 4522 4523 cclist_20w="gcc cc" 4524 gcc_20w_cflags="$gcc_cflags -mpa-risc-2-0" 4525 cc_20w_cflags="+DD64 +O2" 4526 cc_20w_testlist="hpc-hppa-2-0" 4527 path_20w="pa64" 4528 any_20w_testlist="sizeof-long-8" 4529 SPEED_CYCLECOUNTER_OBJ_20w=hppa2w.lo 4530 cyclecounter_size_20w=2 4531 ;; 4532 esac 4533 ;; 4534 esac 4535 ;; 4536 4537 4538 ia64*-*-* | itanium-*-* | itanium2-*-*) 4539 abilist="64" 4540 4541 echo "include_mpn(\`ia64/ia64-defs.m4')" >> $gmp_tmpconfigm4i 4542 4543 SPEED_CYCLECOUNTER_OBJ=ia64.lo 4544 any_32_testlist="sizeof-long-4" 4545 4546 case $host_cpu in 4547 itanium) path="ia64/itanium ia64" ;; 4548 itanium2) path="ia64/itanium2 ia64" ;; 4549 *) path="ia64" ;; 4550 esac 4551 4552 gcc_64_cflags_optlist="tune" 4553 gcc_32_cflags_optlist=$gcc_64_cflags_optlist 4554 4555 # gcc pre-release 3.4 adds -mtune itanium and itanium2 4556 case $host_cpu in 4557 itanium) gcc_cflags_tune="-mtune=itanium" ;; 4558 itanium2) gcc_cflags_tune="-mtune=itanium2" ;; 4559 esac 4560 4561 case $host in 4562 *-*-linux*) 4563 cclist="gcc icc" 4564 icc_cflags="-no-gcc" 4565 icc_cflags_optlist="opt" 4566 # Don't use -O3, it is for "large data sets" and also miscompiles GMP. 4567 # But icc miscompiles GMP at any optimization level, at higher levels 4568 # it miscompiles more files... 4569 icc_cflags_opt="-O2 -O1" 4570 icc_cflags_opt_maybe="-fp-model~precise" 4571 ;; 4572 4573 *-*-hpux*) 4574 # HP cc sometimes gets internal errors if the optimization level is 4575 # too high. GMP_PROG_CC_WORKS detects this, the "_opt" fallbacks 4576 # let us use whatever seems to work. 4577 # 4578 abilist="32 64" 4579 any_64_testlist="sizeof-long-8" 4580 4581 cclist_32="gcc cc" 4582 path_32="ia64" 4583 cc_32_cflags="" 4584 cc_32_cflags_optlist="opt" 4585 cc_32_cflags_opt="+O2 +O1" 4586 gcc_32_cflags="$gcc_cflags -milp32" 4587 limb_32=longlong 4588 SPEED_CYCLECOUNTER_OBJ_32=ia64.lo 4589 cyclecounter_size_32=2 4590 4591 # Must have +DD64 in CPPFLAGS to get the right __LP64__ for headers, 4592 # but also need it in CFLAGS for linking programs, since automake 4593 # only uses CFLAGS when linking, not CPPFLAGS. 4594 # FIXME: Maybe should use cc_64_ldflags for this, but that would 4595 # need GMP_LDFLAGS used consistently by all the programs. 4596 # 4597 cc_64_cflags="+DD64" 4598 cc_64_cppflags="+DD64" 4599 cc_64_cflags_optlist="opt" 4600 cc_64_cflags_opt="+O2 +O1" 4601 gcc_64_cflags="$gcc_cflags -mlp64" 4602 ;; 4603 esac 4604 ;; 4605 4606 4607 # Motorola Coldfire 4608 # 4609 m5407-*-*) 4610 4611 gcc_cflags="$gcc_cflags $fomit_frame_pointer" 4612 gcc_cflags_optlist="arch" 4613 gcc_cflags_arch="-m5407" 4614 ;; 4615 4616 4617 # Motorola 68k 4618 # 4619 m68k-*-* | m68[0-9][0-9][0-9]-*-*) 4620 $as_echo "#define HAVE_HOST_CPU_FAMILY_m68k 1" >>confdefs.h 4621 4622 4623 echo "include_mpn(\`m68k/m68k-defs.m4')" >> $gmp_tmpconfigm4i 4624 4625 gcc_cflags="$gcc_cflags $fomit_frame_pointer" 4626 gcc_cflags_optlist="arch" 4627 4628 # gcc 2.7.2 knows -m68000, -m68020, -m68030, -m68040. 4629 # gcc 2.95 adds -mcpu32, -m68060. 4630 # FIXME: Maybe "-m68020 -mnobitfield" would suit cpu32 on 2.7.2. 4631 # 4632 case $host_cpu in 4633 m68020) gcc_cflags_arch="-m68020" ;; 4634 m68030) gcc_cflags_arch="-m68030" ;; 4635 m68040) gcc_cflags_arch="-m68040" ;; 4636 m68060) gcc_cflags_arch="-m68060 -m68000" ;; 4637 m68360) gcc_cflags_arch="-mcpu32 -m68000" ;; 4638 *) gcc_cflags_arch="-m68000" ;; 4639 esac 4640 4641 # FIXME: m68k/mc68020 looks like it's ok for cpu32, but this wants to be 4642 # tested. Will need to introduce an m68k/cpu32 if m68k/mc68020 ever uses 4643 # the bitfield instructions. 4644 case $host_cpu in 4645 m680[234]0 | m68360) path="m68k/mc68020 m68k" ;; 4646 *) path="m68k" ;; 4647 esac 4648 ;; 4649 4650 4651 # Motorola 88k 4652 m88k*-*-*) 4653 path="m88k" 4654 ;; 4655 m88110*-*-*) 4656 gcc_cflags="$gcc_cflags -m88110" 4657 path="m88k/mc88110 m88k" 4658 ;; 4659 4660 4661 # IRIX 5 and earlier can only run 32-bit o32. 4662 # 4663 # IRIX 6 and up always has a 64-bit mips CPU can run n32 or 64. n32 is 4664 # preferred over 64, but only because that's been the default in past 4665 # versions of GMP. The two are equally efficient. 4666 # 4667 # Linux kernel 2.2.13 arch/mips/kernel/irixelf.c has a comment about not 4668 # supporting n32 or 64. 4669 # 4670 # For reference, libtool (eg. 1.5.6) recognises the n32 ABI and knows the 4671 # right options to use when linking (both cc and gcc), so no need for 4672 # anything special from us. 4673 # 4674 mips*-*-*) 4675 abilist="o32" 4676 gcc_cflags_optlist="abi" 4677 gcc_cflags_abi="-mabi=32 -m32" 4678 gcc_testlist="gcc-mips-o32" 4679 path="mips32" 4680 cc_cflags="-O2 -o32" # no -g, it disables all optimizations 4681 # this suits both mips32 and mips64 4682 4683 echo "include_mpn(\`mips32/mips-defs.m4')" >> $gmp_tmpconfigm4i 4684 4685 4686 case $host in 4687 mips64*-*-* | mipsisa64*-*-* | mips*-*-irix[6789]* | mipsn64*-*-*) 4688 abilist="n32 64 o32" 4689 4690 cclist_n32="gcc cc" 4691 gcc_n32_cflags_optlist="abi" 4692 gcc_n32_cflags="$gcc_cflags" 4693 gcc_n32_cflags_abi="-mabi=n32 -mn32" 4694 cc_n32_cflags="-O2 -n32" # no -g, it disables all optimizations 4695 limb_n32=longlong 4696 4697 cclist_64="gcc cc" 4698 gcc_64_cflags_optlist="abi" 4699 gcc_64_cflags="$gcc_cflags" 4700 gcc_64_cflags_abi="-mabi=64 -m64" 4701 gcc_64_ldflags="-Wc,-mabi=64" 4702 cc_64_cflags="-O2 -64" # no -g, it disables all optimizations 4703 cc_64_ldflags="-Wc,-64" 4704 4705 case $host_cpu in 4706 mips64r[6789]* | mipsisa64r[6789]*) 4707 path_n32="mips64/r6 mips64" 4708 path_64="mips64/r6 mips64" 4709 ;; 4710 *) 4711 path_n32="mips64/hilo mips64" 4712 path_64="mips64/hilo mips64" 4713 ;; 4714 esac 4715 4716 ;; 4717 esac 4718 ;; 4719 4720 4721 # Darwin (powerpc-apple-darwin1.3) has it's hacked gcc installed as cc. 4722 # Our usual "gcc in disguise" detection means gcc_cflags etc here gets 4723 # used. 4724 # 4725 # The darwin pre-compiling preprocessor is disabled with -no-cpp-precomp 4726 # since it doesn't like "__attribute__ ((mode (SI)))" etc in gmp-impl.h, 4727 # and so always ends up running the plain preprocessor anyway. This could 4728 # be done in CPPFLAGS rather than CFLAGS, but there's not many places 4729 # preprocessing is done separately, and this is only a speedup, the normal 4730 # preprocessor gets run if there's any problems. 4731 # 4732 # We used to use -Wa,-mppc with gcc, but can't remember exactly why. 4733 # Presumably it was for old versions of gcc where -mpowerpc doesn't put 4734 # the assembler in the right mode. In any case -Wa,-mppc is not good, for 4735 # instance -mcpu=604 makes recent gcc use -m604 to get access to the 4736 # "fsel" instruction, but a -Wa,-mppc overrides that, making code that 4737 # comes out with fsel fail. 4738 # 4739 # (Note also that the darwin assembler doesn't accept "-mppc", so any 4740 # -Wa,-mppc was used only if it worked. The right flag on darwin would be 4741 # "-arch ppc" or some such, but that's already the default.) 4742 # 4743 powerpc*-*-* | power[3-9]-*-*) 4744 $as_echo "#define HAVE_HOST_CPU_FAMILY_powerpc 1" >>confdefs.h 4745 4746 HAVE_HOST_CPU_FAMILY_powerpc=1 4747 abilist="32" 4748 cclist="gcc cc" 4749 cc_cflags="-O2" 4750 gcc_32_cflags_maybe="-m32" 4751 gcc_cflags_optlist="precomp subtype asm cpu" 4752 gcc_cflags_precomp="-no-cpp-precomp" 4753 gcc_cflags_subtype="-force_cpusubtype_ALL" # for vmx on darwin 4754 gcc_cflags_asm="" 4755 gcc_cflags_cpu="" 4756 vmx_path="" 4757 4758 # grab this object, though it's not a true cycle counter routine 4759 SPEED_CYCLECOUNTER_OBJ=powerpc.lo 4760 cyclecounter_size=0 4761 4762 case $host_cpu in 4763 powerpc740 | powerpc750) 4764 path="powerpc32/750 powerpc32" ;; 4765 powerpc7400 | powerpc7410) 4766 path="powerpc32/vmx powerpc32/750 powerpc32" ;; 4767 powerpc74[45]?) 4768 path="powerpc32/vmx powerpc32" ;; 4769 *) 4770 path="powerpc32" ;; 4771 esac 4772 4773 case $host_cpu in 4774 powerpc401) gcc_cflags_cpu="-mcpu=401" ;; 4775 powerpc403) gcc_cflags_cpu="-mcpu=403" 4776 xlc_cflags_arch="-qarch=403 -qarch=ppc" ;; 4777 powerpc405) gcc_cflags_cpu="-mcpu=405" ;; 4778 powerpc505) gcc_cflags_cpu="-mcpu=505" ;; 4779 powerpc601) gcc_cflags_cpu="-mcpu=601" 4780 xlc_cflags_arch="-qarch=601 -qarch=ppc" ;; 4781 powerpc602) gcc_cflags_cpu="-mcpu=602" 4782 xlc_cflags_arch="-qarch=602 -qarch=ppc" ;; 4783 powerpc603) gcc_cflags_cpu="-mcpu=603" 4784 xlc_cflags_arch="-qarch=603 -qarch=ppc" ;; 4785 powerpc603e) gcc_cflags_cpu="-mcpu=603e -mcpu=603" 4786 xlc_cflags_arch="-qarch=603 -qarch=ppc" ;; 4787 powerpc604) gcc_cflags_cpu="-mcpu=604" 4788 xlc_cflags_arch="-qarch=604 -qarch=ppc" ;; 4789 powerpc604e) gcc_cflags_cpu="-mcpu=604e -mcpu=604" 4790 xlc_cflags_arch="-qarch=604 -qarch=ppc" ;; 4791 powerpc620) gcc_cflags_cpu="-mcpu=620" ;; 4792 powerpc630) gcc_cflags_cpu="-mcpu=630" 4793 xlc_cflags_arch="-qarch=pwr3" 4794 cpu_path="p3 p3-p7" ;; 4795 powerpc740) gcc_cflags_cpu="-mcpu=740" ;; 4796 powerpc7400 | powerpc7410) 4797 gcc_cflags_asm="-Wa,-maltivec" 4798 gcc_cflags_cpu="-mcpu=7400 -mcpu=750" ;; 4799 powerpc74[45]?) 4800 gcc_cflags_asm="-Wa,-maltivec" 4801 gcc_cflags_cpu="-mcpu=7450" ;; 4802 powerpc750) gcc_cflags_cpu="-mcpu=750" ;; 4803 powerpc801) gcc_cflags_cpu="-mcpu=801" ;; 4804 powerpc821) gcc_cflags_cpu="-mcpu=821" ;; 4805 powerpc823) gcc_cflags_cpu="-mcpu=823" ;; 4806 powerpc860) gcc_cflags_cpu="-mcpu=860" ;; 4807 powerpc970) gcc_cflags_cpu="-mtune=970" 4808 xlc_cflags_arch="-qarch=970 -qarch=pwr3" 4809 vmx_path="powerpc64/vmx" 4810 cpu_path="p4 p3-p7" ;; 4811 power4) gcc_cflags_cpu="-mtune=power4" 4812 xlc_cflags_arch="-qarch=pwr4" 4813 cpu_path="p4 p3-p7" ;; 4814 power5) gcc_cflags_cpu="-mtune=power5 -mtune=power4" 4815 xlc_cflags_arch="-qarch=pwr5" 4816 cpu_path="p5 p4 p3-p7" ;; 4817 power6) gcc_cflags_cpu="-mtune=power6" 4818 xlc_cflags_arch="-qarch=pwr6" 4819 cpu_path="p6 p3-p7" ;; 4820 power7) gcc_cflags_cpu="-mtune=power7 -mtune=power5" 4821 xlc_cflags_arch="-qarch=pwr7 -qarch=pwr5" 4822 cpu_path="p7 p5 p4 p3-p7" ;; 4823 power8) gcc_cflags_cpu="-mtune=power8 -mtune=power7 -mtune=power5" 4824 xlc_cflags_arch="-qarch=pwr8 -qarch=pwr7 -qarch=pwr5" 4825 cpu_path="p8 p7 p5 p4 p3-p7" ;; 4826 power9) gcc_cflags_cpu="-mtune=power9 -mtune=power8 -mtune=power7 -mtune=power5" 4827 xlc_cflags_arch="-qarch=pwr9 -qarch=pwr8 -qarch=pwr7 -qarch=pwr5" 4828 cpu_path="p9 p8 p7 p5 p4 p3-p7" ;; 4829 esac 4830 4831 case $host in 4832 *-*-aix*) 4833 cclist="gcc xlc cc" 4834 gcc_32_cflags_maybe="-maix32" 4835 xlc_cflags="-O2 -qmaxmem=20000" 4836 xlc_cflags_optlist="arch" 4837 xlc_32_cflags_maybe="-q32" 4838 ar_32_flags="-X32" 4839 nm_32_flags="-X32" 4840 esac 4841 4842 case $host in 4843 powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-* | powerpc970-*-* | power[3-9]-*-*) 4844 case $host in 4845 *-*-aix*) 4846 # On AIX a true 64-bit ABI is available. 4847 # Need -Wc to pass object type flags through to the linker. 4848 abilist="mode64 $abilist" 4849 cclist_mode64="gcc xlc" 4850 gcc_mode64_cflags="$gcc_cflags -maix64 -mpowerpc64" 4851 gcc_mode64_cflags_optlist="cpu" 4852 gcc_mode64_ldflags="-Wc,-maix64" 4853 xlc_mode64_cflags="-O2 -q64 -qmaxmem=20000" 4854 xlc_mode64_cflags_optlist="arch" 4855 xlc_mode64_ldflags="-Wc,-q64" 4856 # Must indicate object type to ar and nm 4857 ar_mode64_flags="-X64" 4858 nm_mode64_flags="-X64" 4859 path_mode64="" 4860 p="" 4861 for i in $cpu_path 4862 do path_mode64="${path_mode64}powerpc64/mode64/$i " 4863 path_mode64="${path_mode64}powerpc64/$i " 4864 p="${p} powerpc32/$i " 4865 done 4866 path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64" 4867 path="$p $path" 4868 # grab this object, though it's not a true cycle counter routine 4869 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo 4870 cyclecounter_size_mode64=0 4871 ;; 4872 *-*-darwin*) 4873 # On Darwin we can use 64-bit instructions with a longlong limb, 4874 # but the chip still in 32-bit mode. 4875 # In theory this can be used on any OS which knows how to save 4876 # 64-bit registers in a context switch. 4877 # 4878 # Note that we must use -mpowerpc64 with gcc, since the 4879 # longlong.h macros expect limb operands in a single 64-bit 4880 # register, not two 32-bit registers as would be given for a 4881 # long long without -mpowerpc64. In theory we could detect and 4882 # accommodate both styles, but the proper 64-bit registers will 4883 # be fastest and are what we really want to use. 4884 # 4885 # One would think -mpowerpc64 would set the assembler in the right 4886 # mode to handle 64-bit instructions. But for that, also 4887 # -force_cpusubtype_ALL is needed. 4888 # 4889 # Do not use -fast for Darwin, it actually adds options 4890 # incompatible with a shared library. 4891 # 4892 abilist="mode64 mode32 $abilist" 4893 gcc_cflags_opt="-O2 -O1" # will this become used? 4894 cclist_mode32="gcc" 4895 gcc_mode32_cflags_maybe="-m32" 4896 gcc_mode32_cflags="-mpowerpc64" 4897 gcc_mode32_cflags_optlist="subtype cpu opt" 4898 gcc_mode32_cflags_subtype="-force_cpusubtype_ALL" 4899 gcc_mode32_cflags_opt="-O2 -O1" 4900 limb_mode32=longlong 4901 cclist_mode64="gcc" 4902 gcc_mode64_cflags="-m64" 4903 gcc_mode64_cflags_optlist="cpu opt" 4904 gcc_mode64_cflags_opt="-O2 -O1" 4905 path_mode64="" 4906 path_mode32="" 4907 p="" 4908 for i in $cpu_path 4909 do path_mode64="${path_mode64}powerpc64/mode64/$i " 4910 path_mode64="${path_mode64}powerpc64/$i " 4911 path_mode32="${path_mode32}powerpc64/mode32/$i " 4912 path_mode32="${path_mode32}powerpc64/$i " 4913 p="${p} powerpc32/$i " 4914 done 4915 path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64" 4916 path_mode32="${path_mode32}powerpc64/mode32 $vmx_path powerpc64" 4917 path="$p $path" 4918 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo 4919 cyclecounter_size_mode64=0 4920 any_mode64_testlist="sizeof-long-8" 4921 ;; 4922 *-*-linux* | *-*-*bsd*) 4923 # On GNU/Linux, assume the processor is in 64-bit mode. Some 4924 # environments have a gcc that is always in 64-bit mode, while 4925 # others require -m64, hence the use of cflags_maybe. The 4926 # sizeof-long-8 test checks the mode is right (for the no option 4927 # case). 4928 # 4929 # -mpowerpc64 is not used, since it should be the default in 4930 # 64-bit mode. (We need its effect for the various longlong.h 4931 # asm macros to be right of course.) 4932 # 4933 # gcc64 was an early port of gcc to 64-bit mode, but should be 4934 # obsolete before too long. We prefer plain gcc when it knows 4935 # 64-bits. 4936 # 4937 abilist="mode64 mode32 $abilist" 4938 cclist_mode32="gcc" 4939 gcc_mode32_cflags_maybe="-m32" 4940 gcc_mode32_cflags="-mpowerpc64" 4941 gcc_mode32_cflags_optlist="cpu opt" 4942 gcc_mode32_cflags_opt="-O2 -O1" 4943 limb_mode32=longlong 4944 cclist_mode64="gcc gcc64" 4945 gcc_mode64_cflags_maybe="-m64" 4946 gcc_mode64_cflags_optlist="cpu opt" 4947 gcc_mode64_cflags_opt="-O2 -O1" 4948 path_mode64="" 4949 path_mode32="" 4950 p="" 4951 for i in $cpu_path 4952 do path_mode64="${path_mode64}powerpc64/mode64/$i " 4953 path_mode64="${path_mode64}powerpc64/$i " 4954 path_mode32="${path_mode32}powerpc64/mode32/$i " 4955 path_mode32="${path_mode32}powerpc64/$i " 4956 p="${p} powerpc32/$i " 4957 done 4958 path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64" 4959 path_mode32="${path_mode32}powerpc64/mode32 $vmx_path powerpc64" 4960 path="$p $path" 4961 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo 4962 cyclecounter_size_mode64=0 4963 any_mode64_testlist="sizeof-long-8" 4964 ;; 4965 esac 4966 ;; 4967 esac 4968 ;; 4969 4970 4971 # POWER 32-bit 4972 power-*-* | power[12]-*-* | power2sc-*-*) 4973 $as_echo "#define HAVE_HOST_CPU_FAMILY_power 1" >>confdefs.h 4974 4975 HAVE_HOST_CPU_FAMILY_power=1 4976 cclist="gcc" 4977 if test "$enable_assembly" = "yes" ; then 4978 extra_functions="udiv_w_sdiv" 4979 fi 4980 path="power" 4981 4982 # gcc 2.7.2 knows rios1, rios2, rsc 4983 # 4984 # -mcpu=rios2 can tickle an AIX assembler bug (see GMP_PROG_CC_WORKS) so 4985 # there needs to be a fallback to just -mpower. 4986 # 4987 gcc_cflags_optlist="cpu" 4988 case $host in 4989 power-*-*) gcc_cflags_cpu="-mcpu=power -mpower" ;; 4990 power1-*-*) gcc_cflags_cpu="-mcpu=rios1 -mpower" ;; 4991 power2-*-*) gcc_cflags_cpu="-mcpu=rios2 -mpower" ;; 4992 power2sc-*-*) gcc_cflags_cpu="-mcpu=rsc -mpower" ;; 4993 esac 4994 case $host in 4995 *-*-aix*) 4996 cclist="gcc xlc" 4997 xlc_cflags="-O2 -qarch=pwr -qmaxmem=20000" 4998 ;; 4999 esac 5000 ;; 5001 5002 5003 # RISC-V 5004 riscv64-*-*) 5005 cclist="gcc" 5006 path="riscv/64" 5007 ;; 5008 5009 5010 # IBM System/390 and z/Architecture 5011 s390-*-* | z900esa-*-* | z990esa-*-* | z9esa-*-* | z10esa-*-* | z196esa-*-* | s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z10-*-* | z196-*-*) 5012 abilist="32" 5013 gcc_cflags="$gcc_cflags $fomit_frame_pointer" 5014 gcc_cflags_optlist="arch" 5015 path="s390_32" 5016 if test "$enable_assembly" = "yes" ; then 5017 extra_functions="udiv_w_sdiv" 5018 fi 5019 gcc_32_cflags_maybe="-m31" 5020 5021 case $host_cpu in 5022 s390) 5023 ;; 5024 z900 | z900esa) 5025 cpu="z900" 5026 gccarch="$cpu" 5027 path="s390_32/esame/$cpu s390_32/esame s390_32" 5028 gcc_cflags_arch="-march=$gccarch" 5029 cat >>confdefs.h <<_ACEOF 5030 #define HAVE_HOST_CPU_s390_$cpu 1 5031 _ACEOF 5032 5033 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h 5034 5035 extra_functions="" 5036 ;; 5037 z990 | z990esa) 5038 cpu="z990" 5039 gccarch="$cpu" 5040 path="s390_32/esame/$cpu s390_32/esame s390_32" 5041 gcc_cflags_arch="-march=$gccarch" 5042 cat >>confdefs.h <<_ACEOF 5043 #define HAVE_HOST_CPU_s390_$cpu 1 5044 _ACEOF 5045 5046 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h 5047 5048 extra_functions="" 5049 ;; 5050 z9 | z9esa) 5051 cpu="z9" 5052 gccarch="z9-109" 5053 path="s390_32/esame/$cpu s390_32/esame s390_32" 5054 gcc_cflags_arch="-march=$gccarch" 5055 cat >>confdefs.h <<_ACEOF 5056 #define HAVE_HOST_CPU_s390_$cpu 1 5057 _ACEOF 5058 5059 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h 5060 5061 extra_functions="" 5062 ;; 5063 z10 | z10esa) 5064 cpu="z10" 5065 gccarch="z10" 5066 path="s390_32/esame/$cpu s390_32/esame s390_32" 5067 gcc_cflags_arch="-march=$gccarch" 5068 cat >>confdefs.h <<_ACEOF 5069 #define HAVE_HOST_CPU_s390_$cpu 1 5070 _ACEOF 5071 5072 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h 5073 5074 extra_functions="" 5075 ;; 5076 z196 | z196esa) 5077 cpu="z196" 5078 gccarch="z196" 5079 path="s390_32/esame/$cpu s390_32/esame s390_32" 5080 gcc_cflags_arch="-march=$gccarch" 5081 cat >>confdefs.h <<_ACEOF 5082 #define HAVE_HOST_CPU_s390_$cpu 1 5083 _ACEOF 5084 5085 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h 5086 5087 extra_functions="" 5088 ;; 5089 esac 5090 5091 case $host in 5092 s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z10-*-* | z196-*-*) 5093 abilist="64 32" 5094 cclist_64="gcc" 5095 gcc_64_cflags_optlist="arch" 5096 gcc_64_cflags="$gcc_cflags -m64" 5097 path_64="s390_64/$host_cpu s390_64" 5098 extra_functions="" 5099 ;; 5100 esac 5101 ;; 5102 5103 5104 sh-*-*) path="sh" ;; 5105 sh[2-4]-*-*) path="sh/sh2 sh" ;; 5106 5107 5108 *sparc*-*-*) 5109 # sizeof(long)==4 or 8 is tested, to ensure we get the right ABI. We've 5110 # had various bug reports where users have set CFLAGS for their desired 5111 # mode, but not set our ABI. For some reason it's sparc where this 5112 # keeps coming up, presumably users there are accustomed to driving the 5113 # compiler mode that way. The effect of our testlist setting is to 5114 # reject ABI=64 in favour of ABI=32 if the user has forced the flags to 5115 # 32-bit mode. 5116 # 5117 abilist="32" 5118 cclist="gcc acc cc" 5119 any_testlist="sizeof-long-4" 5120 5121 echo "include_mpn(\`sparc32/sparc-defs.m4')" >> $gmp_tmpconfigm4i 5122 5123 5124 case $host_cpu in 5125 sparcv8 | microsparc | turbosparc) 5126 path="sparc32/v8 sparc32" ;; 5127 supersparc) 5128 path="sparc32/v8/supersparc sparc32/v8 sparc32" ;; 5129 sparc64 | sparcv9* | ultrasparc | ultrasparc[234]*) 5130 path="sparc32/v9 sparc32/v8 sparc32" ;; 5131 ultrasparct[12345]) 5132 path="sparc32/ultrasparct1 sparc32/v8 sparc32" ;; 5133 *) 5134 path="sparc32" ;; 5135 esac 5136 5137 # gcc 2.7.2 doesn't know about v9 and doesn't pass -xarch=v8plus to the 5138 # assembler. Add it explicitly since the solaris assembler won't accept 5139 # our sparc32/v9 asm code without it. gas accepts -xarch=v8plus too, so 5140 # it can be in the cflags unconditionally (though gas doesn't need it). 5141 # 5142 # gcc -m32 is needed to force 32-bit mode on a dual-ABI system, but past 5143 # gcc doesn't know that flag, hence cflags_maybe. Note that -m32 cannot 5144 # be done through the optlist since the plain cflags would be run first 5145 # and we don't want to require the default mode (whatever it is) works. 5146 # 5147 # Note it's gcc_32_cflags_maybe and not gcc_cflags_maybe because the 5148 # latter would be used in the 64-bit ABI on systems like "*bsd" where 5149 # abilist="64" only. 5150 # 5151 gcc_32_cflags_maybe="-m32" 5152 gcc_cflags_optlist="cpu asm" 5153 5154 # gcc 2.7.2 knows -mcypress, -msupersparc, -mv8, -msparclite. 5155 # gcc 2.95 knows -mcpu= v7, hypersparc, sparclite86x, f930, f934, 5156 # sparclet, tsc701, v9, ultrasparc. A warning is given that the 5157 # plain -m forms will disappear. 5158 # gcc 3.3 adds ultrasparc3. 5159 # 5160 case $host_cpu in 5161 supersparc*) 5162 gcc_cflags_cpu="-mcpu=supersparc -msupersparc" 5163 gcc_cflags_asm="-Wa,-Av8 -Wa,-xarch=v8";; 5164 sparcv8 | microsparc* | turbosparc | hypersparc*) 5165 gcc_cflags_cpu="-mcpu=v8 -mv8" 5166 gcc_cflags_asm="-Wa,-Av8 -Wa,-xarch=v8";; 5167 sparc64 | sparcv9*) 5168 gcc_cflags_cpu="-mcpu=v9" 5169 gcc_32_cflags_asm="-Wa,-Av8 -Wa,-xarch=v8plus" 5170 gcc_64_cflags_asm="-Wa,-Av9 -Wa,-xarch=v9";; 5171 ultrasparc1 | ultrasparc2*) 5172 gcc_cflags_cpu="-mcpu=ultrasparc -mcpu=v9" 5173 gcc_32_cflags_asm="-Wa,-Av8plusa -Wa,-xarch=v8plusa" 5174 gcc_64_cflags_asm="-Wa,-Av9a -Wa,-xarch=v9a";; 5175 ultrasparc[34]) 5176 gcc_cflags_cpu="-mcpu=ultrasparc3 -mcpu=ultrasparc -mcpu=v9" 5177 gcc_32_cflags_asm="-Wa,-Av8plusb -Wa,-xarch=v8plusb" 5178 gcc_64_cflags_asm="-Wa,-Av9b -Wa,-xarch=v9b";; 5179 ultrasparct[12]) 5180 gcc_cflags_cpu="-mcpu=niagara -mcpu=v9" 5181 gcc_32_cflags_asm="-Wa,-Av8plusc -Wa,-xarch=v8plusc" 5182 gcc_64_cflags_asm="-Wa,-Av9c -Wa,-xarch=v9c";; 5183 ultrasparct3) 5184 gcc_cflags_cpu="-mcpu=niagara3 -mcpu=niagara -mcpu=v9" 5185 gcc_32_cflags_asm="-Wa,-Av8plusd -Wa,-xarch=v8plusd" 5186 gcc_64_cflags_asm="-Wa,-Av9d -Wa,-xarch=v9d";; 5187 ultrasparct[45]) 5188 gcc_cflags_cpu="-mcpu=niagara4 -mcpu=niagara3 -mcpu=niagara -mcpu=v9" 5189 gcc_32_cflags_asm="-Wa,-Av8plusd -Wa,-xarch=v8plusd" 5190 gcc_64_cflags_asm="-Wa,-Av9d -Wa,-xarch=v9d";; 5191 *) 5192 gcc_cflags_cpu="-mcpu=v7 -mcypress" 5193 gcc_cflags_asm="";; 5194 esac 5195 5196 # SunPRO cc and acc, and SunOS bundled cc 5197 case $host in 5198 *-*-solaris* | *-*-sunos*) 5199 # Note no -g, it disables all optimizations. 5200 cc_cflags= 5201 cc_cflags_optlist="opt arch cpu" 5202 5203 # SunOS <= 4 cc doesn't know -xO3, fallback to -O2. 5204 cc_cflags_opt="-xO3 -O2" 5205 5206 # SunOS cc doesn't know -xarch, apparently always generating v7 5207 # code, so make this optional 5208 case $host_cpu in 5209 sparcv8 | microsparc* | supersparc* | turbosparc | hypersparc*) 5210 cc_cflags_arch="-xarch=v8";; 5211 ultrasparct[345]) 5212 cc_cflags_arch="-xarch=v8plusd" ;; 5213 sparc64 | sparcv9* | ultrasparc*) 5214 cc_cflags_arch="-xarch=v8plus" ;; 5215 *) 5216 cc_cflags_arch="-xarch=v7" ;; 5217 esac 5218 5219 # SunOS cc doesn't know -xchip and doesn't seem to have an equivalent. 5220 # SunPRO cc 5 recognises -xchip=generic, old, super, super2, micro, 5221 # micro2, hyper, hyper2, powerup, ultra, ultra2, ultra2i. 5222 # SunPRO cc 6 adds -xchip=ultra2e, ultra3cu. 5223 # 5224 case $host_cpu in 5225 supersparc*) cc_cflags_cpu="-xchip=super" ;; 5226 microsparc*) cc_cflags_cpu="-xchip=micro" ;; 5227 turbosparc) cc_cflags_cpu="-xchip=micro2" ;; 5228 hypersparc*) cc_cflags_cpu="-xchip=hyper" ;; 5229 ultrasparc) cc_cflags_cpu="-xchip=ultra" ;; 5230 ultrasparc2) cc_cflags_cpu="-xchip=ultra2 -xchip=ultra" ;; 5231 ultrasparc2i) cc_cflags_cpu="-xchip=ultra2i -xchip=ultra2 -xchip=ultra" ;; 5232 ultrasparc3) cc_cflags_cpu="-xchip=ultra3 -xchip=ultra" ;; 5233 ultrasparc4) cc_cflags_cpu="-xchip=ultra4 -xchip=ultra3 -xchip=ultra" ;; 5234 ultrasparct1) cc_cflags_cpu="-xchip=ultraT1" ;; 5235 ultrasparct2) cc_cflags_cpu="-xchip=ultraT2 -xchip=ultraT1" ;; 5236 ultrasparct3) cc_cflags_cpu="-xchip=ultraT3 -xchip=ultraT2" ;; 5237 ultrasparct4) cc_cflags_cpu="-xchip=T4" ;; 5238 ultrasparct5) cc_cflags_cpu="-xchip=T5 -xchip=T4" ;; 5239 *) cc_cflags_cpu="-xchip=generic" ;; 5240 esac 5241 esac 5242 5243 case $host_cpu in 5244 sparc64 | sparcv9* | ultrasparc*) 5245 case $host in 5246 # Solaris 6 and earlier cannot run ABI=64 since it doesn't save 5247 # registers properly, so ABI=32 is left as the only choice. 5248 # 5249 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;; 5250 5251 # BSD sparc64 ports are 64-bit-only systems, so ABI=64 is the only 5252 # choice. In fact they need no special compiler flags, gcc -m64 5253 # is the default, but it doesn't hurt to add it. v9 CPUs always 5254 # use the sparc64 port, since the plain 32-bit sparc ports don't 5255 # run on a v9. 5256 # 5257 *-*-*bsd*) abilist="64" ;; 5258 5259 # For all other systems, we try both 64 and 32. 5260 # 5261 # GNU/Linux sparc64 has only recently gained a 64-bit user mode. 5262 # In the past sparc64 meant a v9 cpu, but there were no 64-bit 5263 # operations in user mode. We assume that if "gcc -m64" works 5264 # then the system is suitable. Hopefully even if someone attempts 5265 # to put a new gcc and/or glibc on an old system it won't run. 5266 # 5267 *) abilist="64 32" ;; 5268 esac 5269 5270 case $host_cpu in 5271 ultrasparc | ultrasparc2 | ultrasparc2i) 5272 path_64="sparc64/ultrasparc1234 sparc64" ;; 5273 ultrasparc[34]) 5274 path_64="sparc64/ultrasparc34 sparc64/ultrasparc1234 sparc64" ;; 5275 ultrasparct[12]) 5276 path_64="sparc64/ultrasparct1 sparc64" ;; 5277 ultrasparct3) 5278 path_64="sparc64/ultrasparct3 sparc64" ;; 5279 ultrasparct[45]) 5280 path_64="sparc64/ultrasparct45 sparc64/ultrasparct3 sparc64" ;; 5281 *) 5282 path_64="sparc64" 5283 esac 5284 5285 cclist_64="gcc" 5286 any_64_testlist="sizeof-long-8" 5287 5288 # gcc -mptr64 is probably implied by -m64, but we're not sure if 5289 # this was always so. On Solaris in the past we always used both 5290 # "-m64 -mptr64". 5291 # 5292 # gcc -Wa,-xarch=v9 is thought to be necessary in some cases on 5293 # solaris, but it would seem likely that if gcc is going to generate 5294 # 64-bit code it will have to add that option itself where needed. 5295 # An extra copy of this option should be harmless though, but leave 5296 # it until we're sure. (Might want -xarch=v9a or -xarch=v9b for the 5297 # higher cpu types instead.) 5298 # 5299 gcc_64_cflags="$gcc_cflags -m64 -mptr64" 5300 gcc_64_ldflags="-Wc,-m64" 5301 gcc_64_cflags_optlist="cpu asm" 5302 5303 case $host in 5304 *-*-solaris*) 5305 # Sun cc. 5306 # 5307 # We used to have -fast and some fixup options here, but it 5308 # recurrently caused problems with miscompilation. Of course, 5309 # -fast is documented as miscompiling things for the sake of speed. 5310 # 5311 cclist_64="$cclist_64 cc" 5312 cc_64_cflags_optlist="cpu" 5313 case $host_cpu in 5314 ultrasparct[345]) 5315 cc_64_cflags="$cc_64_cflags -xO3 -xarch=v9d" ;; 5316 *) 5317 cc_64_cflags="-xO3 -xarch=v9" ;; 5318 esac 5319 ;; 5320 esac 5321 5322 # using the v9 %tick register 5323 SPEED_CYCLECOUNTER_OBJ_32=sparcv9.lo 5324 SPEED_CYCLECOUNTER_OBJ_64=sparcv9.lo 5325 cyclecounter_size_32=2 5326 cyclecounter_size_64=2 5327 ;; 5328 esac 5329 ;; 5330 5331 5332 # VAX 5333 vax*-*-*elf*) 5334 # Use elf conventions (i.e., '%' register prefix, no global prefix) 5335 # 5336 5337 echo "include_mpn(\`vax/elf.m4')" >> $gmp_tmpconfigm4i 5338 5339 gcc_cflags="$gcc_cflags $fomit_frame_pointer" 5340 path="vax" 5341 if test "$enable_assembly" = "yes" ; then 5342 extra_functions="udiv_w_sdiv" 5343 fi 5344 ;; 5345 vax*-*-*) 5346 # Default to aout conventions (i.e., no register prefix, '_' global prefix) 5347 # 5348 gcc_cflags="$gcc_cflags $fomit_frame_pointer" 5349 path="vax" 5350 if test "$enable_assembly" = "yes" ; then 5351 extra_functions="udiv_w_sdiv" 5352 fi 5353 ;; 5354 5355 5356 # AMD and Intel x86 configurations, including AMD64 5357 # 5358 # Rumour has it gcc -O2 used to give worse register allocation than just 5359 # -O, but lets assume that's no longer true. 5360 # 5361 # -m32 forces 32-bit mode on a bi-arch 32/64 amd64 build of gcc. -m64 is 5362 # the default in such a build (we think), so -m32 is essential for ABI=32. 5363 # This is, of course, done for any $host_cpu, not just x86_64, so we can 5364 # get such a gcc into the right mode to cross-compile to say i486-*-*. 5365 # 5366 # -m32 is not available in gcc 2.95 and earlier, hence cflags_maybe to use 5367 # it when it works. We check sizeof(long)==4 to ensure we get the right 5368 # mode, in case -m32 has failed not because it's an old gcc, but because 5369 # it's a dual 32/64-bit gcc without a 32-bit libc, or whatever. 5370 # 5371 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar*-*-* | bulldozer*-*-* | piledriver*-*-* | steamroller*-*-* | excavator*-*-* | zen*-*-* | pentium4-*-* | atom-*-* | silvermont-*-* | goldmont-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-* | nehalem*-*-* | westmere*-*-* | sandybridge*-*-* | ivybridge*-*-* | haswell*-*-* | broadwell*-*-* | skylake*-*-* | kabylake*-*-*) 5372 abilist="32" 5373 cclist="gcc icc cc" 5374 gcc_cflags="$gcc_cflags $fomit_frame_pointer" 5375 gcc_32_cflags_maybe="-m32" 5376 icc_cflags="-no-gcc" 5377 icc_cflags_optlist="opt" 5378 icc_cflags_opt="-O3 -O2 -O1" 5379 icc_cflags_opt_maybe="-fp-model~precise" 5380 any_32_testlist="sizeof-long-4" 5381 gcc_cflags_optlist="cpu arch noavx" 5382 CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo' 5383 5384 # Availability of rdtsc is checked at run-time. 5385 SPEED_CYCLECOUNTER_OBJ=pentium.lo 5386 5387 # Set to "yes" below on a per-cpu basis. We do that in order to allow for 5388 # a relevant warning to be output when using a CPU with mulx on a system 5389 # which cannot assemble it. 5390 x86_have_mulx=no 5391 5392 # gcc 2.7.2 only knows i386 and i486, using -m386 or -m486. These 5393 # represent -mcpu= since -m486 doesn't generate 486 specific insns. 5394 # gcc 2.95 adds k6, pentium and pentiumpro, and takes -march= and -mcpu=. 5395 # gcc 3.0 adds athlon. 5396 # gcc 3.1 adds k6-2, k6-3, pentium-mmx, pentium2, pentium3, pentium4, 5397 # athlon-tbird, athlon-4, athlon-xp, athlon-mp. 5398 # gcc 3.2 adds winchip2. 5399 # gcc 3.3 adds winchip-c6. 5400 # gcc 3.3.1 from mandrake adds k8 and knows -mtune. 5401 # gcc 3.4 adds c3, c3-2, k8, and deprecates -mcpu in favour of -mtune. 5402 # 5403 # In gcc 2.95.[0123], -march=pentiumpro provoked a stack slot bug in an 5404 # old version of mpz/powm.c. Seems to be fine with the current code, so 5405 # no need for any restrictions on that option. 5406 # 5407 # -march=pentiumpro can fail if the assembler doesn't know "cmov" 5408 # (eg. solaris 2.8 native "as"), so always have -march=pentium after 5409 # that as a fallback. 5410 # 5411 # -march=pentium4 and -march=k8 enable SSE2 instructions, which may or 5412 # may not be supported by the assembler and/or the OS, and is bad in gcc 5413 # prior to 3.3. The tests will reject these if no good, so fallbacks 5414 # like "-march=pentium4 -mno-sse2" are given to try also without SSE2. 5415 # Note the relevant -march types are listed in the optflags handling 5416 # below, be sure to update there if adding new types emitting SSE2. 5417 # 5418 # -mtune is used at the start of each cpu option list to give something 5419 # gcc 3.4 will use, thereby avoiding warnings from -mcpu. -mcpu forms 5420 # are retained for use by prior gcc. For example pentium has 5421 # "-mtune=pentium -mcpu=pentium ...", the -mtune is for 3.4 and the 5422 # -mcpu for prior. If there's a brand new choice in 3.4 for a chip, 5423 # like k8 for x86_64, then it can be the -mtune at the start, no need to 5424 # duplicate anything. 5425 # 5426 case $host_cpu in 5427 i386*) 5428 gcc_cflags_cpu="-mtune=i386 -mcpu=i386 -m386" 5429 gcc_cflags_arch="-march=i386" 5430 path="x86" 5431 ;; 5432 i486*) 5433 gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486" 5434 gcc_cflags_arch="-march=i486" 5435 path="x86/i486 x86" 5436 ;; 5437 i586 | pentium) 5438 gcc_cflags_cpu="-mtune=pentium -mcpu=pentium -m486" 5439 gcc_cflags_arch="-march=pentium" 5440 path="x86/pentium x86" 5441 ;; 5442 pentiummmx) 5443 gcc_cflags_cpu="-mtune=pentium-mmx -mcpu=pentium-mmx -mcpu=pentium -m486" 5444 gcc_cflags_arch="-march=pentium-mmx -march=pentium" 5445 path="x86/pentium/mmx x86/pentium x86/mmx x86" 5446 ;; 5447 i686 | pentiumpro) 5448 gcc_cflags_cpu="-mtune=pentiumpro -mcpu=pentiumpro -mcpu=i486 -m486" 5449 gcc_cflags_arch="-march=pentiumpro -march=pentium" 5450 path="x86/p6 x86" 5451 ;; 5452 pentium2) 5453 gcc_cflags_cpu="-mtune=pentium2 -mcpu=pentium2 -mcpu=pentiumpro -mcpu=i486 -m486" 5454 gcc_cflags_arch="-march=pentium2 -march=pentiumpro -march=pentium" 5455 path="x86/p6/mmx x86/p6 x86/mmx x86" 5456 ;; 5457 pentium3) 5458 gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486" 5459 gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium" 5460 path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86" 5461 ;; 5462 pentiumm) 5463 gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486" 5464 gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium" 5465 path="x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86" 5466 ;; 5467 k6) 5468 gcc_cflags_cpu="-mtune=k6 -mcpu=k6 -mcpu=i486 -m486" 5469 gcc_cflags_arch="-march=k6" 5470 path="x86/k6/mmx x86/k6 x86/mmx x86" 5471 ;; 5472 k62) 5473 gcc_cflags_cpu="-mtune=k6-2 -mcpu=k6-2 -mcpu=k6 -mcpu=i486 -m486" 5474 gcc_cflags_arch="-march=k6-2 -march=k6" 5475 path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86/mmx x86" 5476 ;; 5477 k63) 5478 gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486" 5479 gcc_cflags_arch="-march=k6-3 -march=k6" 5480 path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86/mmx x86" 5481 ;; 5482 geode) 5483 gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486" 5484 gcc_cflags_arch="-march=k6-3 -march=k6" 5485 path="x86/geode x86/k6/k62mmx x86/k6/mmx x86/k6 x86/mmx x86" 5486 ;; 5487 athlon) 5488 # Athlon instruction costs are close to P6 (3 cycle load latency, 5489 # 4-6 cycle mul, 40 cycle div, pairable adc, etc) so if gcc doesn't 5490 # know athlon (eg. 2.95.2 doesn't) then fall back on pentiumpro. 5491 gcc_cflags_cpu="-mtune=athlon -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486" 5492 gcc_cflags_arch="-march=athlon -march=pentiumpro -march=pentium" 5493 path="x86/k7/mmx x86/k7 x86/mmx x86" 5494 ;; 5495 i786 | pentium4) 5496 # pentiumpro is the primary fallback when gcc doesn't know pentium4. 5497 # This gets us cmov to eliminate branches. Maybe "athlon" would be 5498 # a possibility on gcc 3.0. 5499 # 5500 gcc_cflags_cpu="-mtune=pentium4 -mcpu=pentium4 -mcpu=pentiumpro -mcpu=i486 -m486" 5501 gcc_cflags_arch="-march=pentium4 -march=pentium4~-mno-sse2 -march=pentiumpro -march=pentium" 5502 gcc_64_cflags_cpu="-mtune=nocona" 5503 path="x86/pentium4/sse2 x86/pentium4/mmx x86/pentium4 x86/mmx x86" 5504 path_64="x86_64/pentium4 x86_64" 5505 ;; 5506 viac32) 5507 # Not sure of the best fallbacks here for -mcpu. 5508 # c3-2 has sse and mmx, so pentium3 is good for -march. 5509 gcc_cflags_cpu="-mtune=c3-2 -mcpu=c3-2 -mcpu=i486 -m486" 5510 gcc_cflags_arch="-march=c3-2 -march=pentium3 -march=pentiumpro -march=pentium" 5511 path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86" 5512 ;; 5513 viac3*) 5514 # Not sure of the best fallbacks here. 5515 gcc_cflags_cpu="-mtune=c3 -mcpu=c3 -mcpu=i486 -m486" 5516 gcc_cflags_arch="-march=c3 -march=pentium-mmx -march=pentium" 5517 path="x86/pentium/mmx x86/pentium x86/mmx x86" 5518 ;; 5519 athlon64 | k8 | x86_64) 5520 gcc_cflags_cpu="-mtune=k8 -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486" 5521 gcc_cflags_arch="-march=k8 -march=k8~-mno-sse2 -march=athlon -march=pentiumpro -march=pentium" 5522 path="x86/k8 x86/k7/mmx x86/k7 x86/mmx x86" 5523 path_64="x86_64/k8 x86_64" 5524 ;; 5525 k10) 5526 gcc_cflags_cpu="-mtune=amdfam10 -mtune=k8" 5527 gcc_cflags_arch="-march=amdfam10 -march=k8 -march=k8~-mno-sse2" 5528 path="x86/k10 x86/k8 x86/k7/mmx x86/k7 x86/mmx x86" 5529 path_64="x86_64/k10 x86_64/k8 x86_64" 5530 ;; 5531 bobcat) 5532 gcc_cflags_cpu="-mtune=btver1 -mtune=amdfam10 -mtune=k8" 5533 gcc_cflags_arch="-march=btver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2" 5534 path="x86/bt1 x86/k7/mmx x86/k7 x86/mmx x86" 5535 path_64="x86_64/bt1 x86_64/k10 x86_64/k8 x86_64" 5536 ;; 5537 jaguar | jaguarnoavx) 5538 gcc_cflags_cpu="-mtune=btver2 -mtune=btver1 -mtune=amdfam10 -mtune=k8" 5539 gcc_cflags_arch="-march=btver2 -march=btver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2" 5540 path="x86/bt2 x86/bt1 x86/k7/mmx x86/k7 x86/mmx x86" 5541 path_64="x86_64/bt2 x86_64/bt1 x86_64/k10 x86_64/k8 x86_64" 5542 ;; 5543 bulldozer | bd1 | bulldozernoavx | bd1noavx) 5544 gcc_cflags_cpu="-mtune=bdver1 -mtune=amdfam10 -mtune=k8" 5545 gcc_cflags_arch="-march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2" 5546 path="x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86" 5547 path_64="x86_64/bd1 x86_64/k10 x86_64/k8 x86_64" 5548 ;; 5549 piledriver | bd2 | piledrivernoavx | bd2noavx) 5550 gcc_cflags_cpu="-mtune=bdver2 -mtune=bdver1 -mtune=amdfam10 -mtune=k8" 5551 gcc_cflags_arch="-march=bdver2 -march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2" 5552 path="x86/bd2 x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86" 5553 path_64="x86_64/bd2 x86_64/bd1 x86_64/k10 x86_64/k8 x86_64" 5554 ;; 5555 steamroller | bd3 | steamrollernoavx | bd3noavx) 5556 gcc_cflags_cpu="-mtune=bdver3 -mtune=bdver2 -mtune=bdver1 -mtune=amdfam10 -mtune=k8" 5557 gcc_cflags_arch="-march=bdver3 -march=bdver2 -march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2" 5558 path="x86/bd3 x86/bd2 x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86" 5559 path_64="x86_64/bd3 x86_64/bd2 x86_64/bd1 x86_64/k10 x86_64/k8 x86_64" 5560 ;; 5561 excavator | bd4 | excavatornoavx | bd4noavx) 5562 gcc_cflags_cpu="-mtune=bdver4 -mtune=bdver3 -mtune=bdver2 -mtune=bdver1 -mtune=amdfam10 -mtune=k8" 5563 gcc_cflags_arch="-march=bdver4 -march=bdver3 -march=bdver2 -march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2" 5564 path="x86/bd4 x86/bd3 x86/bd2 x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86" 5565 path_64="x86_64/bd4 x86_64/bd3 x86_64/bd2 x86_64/bd1 x86_64/k10 x86_64/k8 x86_64" 5566 x86_have_mulx=yes 5567 ;; 5568 zen | zennoavx) 5569 gcc_cflags_cpu="-mtune=znver1 -mtune=amdfam10 -mtune=k8" 5570 gcc_cflags_arch="-march=znver1 -march=amdfam10 -march=k8" 5571 path="x86/k7/mmx x86/k7 x86/mmx x86" 5572 x86_have_mulx=yes 5573 path_64="x86_64/zen x86_64" 5574 ;; 5575 zen2 | zen2noavx | zen3 | zen3noavx) 5576 gcc_cflags_cpu="-mtune=znver2 -mtune=znver1 -mtune=amdfam10 -mtune=k8" 5577 gcc_cflags_arch="-march=znver2 -march=znver1 -march=amdfam10 -march=k8" 5578 path="x86/k7/mmx x86/k7 x86/mmx x86" 5579 x86_have_mulx=yes 5580 path_64="x86_64/zen2 x86_64/zen x86_64" 5581 ;; 5582 core2) 5583 gcc_cflags_cpu="-mtune=core2 -mtune=k8" 5584 gcc_cflags_arch="-march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2" 5585 path="x86/core2 x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86" 5586 path_64="x86_64/core2 x86_64" 5587 ;; 5588 corei | coreinhm | coreiwsm | nehalem | westmere) 5589 gcc_cflags_cpu="-mtune=nehalem -mtune=corei7 -mtune=core2 -mtune=k8" 5590 gcc_cflags_arch="-march=nehalem -march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2" 5591 path="x86/coreinhm x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86" 5592 path_64="x86_64/coreinhm x86_64/core2 x86_64" 5593 ;; 5594 coreisbr | coreisbrnoavx | coreiibr | coreiibrnoavx | \ 5595 sandybridge | sandybridgenoavx | ivybridge | ivybridgenoavx) 5596 gcc_cflags_cpu="-mtune=sandybridge -mtune=corei7 -mtune=core2 -mtune=k8" 5597 gcc_cflags_arch="-march=sandybridge -march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2" 5598 path="x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86" 5599 path_64="x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64" 5600 ;; 5601 coreihwl | coreihwlnoavx | haswell | haswellnoavx) 5602 gcc_cflags_cpu="-mtune=haswell -mtune=corei7 -mtune=core2 -mtune=k8" 5603 gcc_cflags_arch="-march=haswell -march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2" 5604 path="x86/coreihwl x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86" 5605 path_64="x86_64/coreihwl x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64" 5606 x86_have_mulx=yes 5607 ;; 5608 coreibwl | coreibwlnoavx | broadwell | broadwellnoavx) 5609 gcc_cflags_cpu="-mtune=broadwell -mtune=corei7 -mtune=core2 -mtune=k8" 5610 gcc_cflags_arch="-march=broadwell -march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2" 5611 path="x86/coreihwl x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86" 5612 path_64="x86_64/coreibwl x86_64/coreihwl x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64" 5613 # extra_functions_64="missing" # enable for bmi2/adx simulation 5614 x86_have_mulx=yes 5615 ;; 5616 skylake | skylakenoavx | kabylake | kabylakenoavx) 5617 gcc_cflags_cpu="-mtune=skylake -mtune=broadwell -mtune=corei7 -mtune=core2 -mtune=k8" 5618 # Don't pass -march=skylake for now as then some compilers emit AVX512. 5619 gcc_cflags_arch="-march=broadwell -march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2" 5620 path="x86/coreihwl x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86" 5621 path_64="x86_64/skylake x86_64/coreibwl x86_64/coreihwl x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64" 5622 # extra_functions_64="missing" # enable for bmi2/adx simulation 5623 x86_have_mulx=yes 5624 ;; 5625 atom) # in-order pipeline atom 5626 gcc_cflags_cpu="-mtune=atom -mtune=pentium3" 5627 gcc_cflags_arch="-march=atom -march=pentium3" 5628 path="x86/atom/sse2 x86/atom/mmx x86/atom x86/mmx x86" 5629 path_64="x86_64/atom x86_64" 5630 ;; 5631 silvermont) # out-of-order pipeline atom 5632 gcc_cflags_cpu="-mtune=slm -mtune=atom -mtune=pentium3" 5633 gcc_cflags_arch="-march=slm -march=atom -march=pentium3" 5634 path="x86/silvermont x86/atom/sse2 x86/atom/mmx x86/atom x86/mmx x86" 5635 path_64="x86_64/silvermont x86_64/atom x86_64" 5636 ;; 5637 goldmont) # out-of-order pipeline atom 5638 gcc_cflags_cpu="-mtune=slm -mtune=atom -mtune=pentium3" 5639 gcc_cflags_arch="-march=slm -march=atom -march=pentium3" 5640 path="x86/goldmont x86/atom/sse2 x86/atom/mmx x86/atom x86/mmx x86" 5641 path_64="x86_64/goldmont x86_64/silvermont x86_64/atom x86_64" 5642 ;; 5643 nano) 5644 gcc_cflags_cpu="-mtune=nano" 5645 gcc_cflags_arch="-march=nano" 5646 path="x86/nano x86/mmx x86" 5647 path_64="x86_64/nano x86_64" 5648 ;; 5649 *) 5650 gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486" 5651 gcc_cflags_arch="-march=i486" 5652 path="x86" 5653 path_64="x86_64" 5654 ;; 5655 esac 5656 5657 case $host in 5658 # Disable AVX if the CPU part tells us AVX is unavailable, but also 5659 # unconditionally for NetBSD where they don't work but OSXSAVE is set 5660 # to claim the contrary. 5661 *noavx-*-* | *-*-netbsd*) 5662 gcc_cflags_noavx="-mno-avx" 5663 5664 echo "define(<GMP_AVX_NOT_REALLY_AVAILABLE>,1)" >> $gmp_tmpconfigm4 5665 5666 ;; 5667 esac 5668 5669 case $host in 5670 athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar*-*-* | bulldozer*-*-* | piledriver*-*-* | steamroller*-*-* | excavator*-*-* | zen*-*-* | pentium4-*-* | atom-*-* | silvermont-*-* | goldmont-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-* | nehalem*-*-* | westmere*-*-* | sandybridge*-*-* | ivybridge*-*-* | haswell*-*-* | broadwell*-*-* | skylake*-*-* | kabylake*-*-*) 5671 cclist_64="gcc cc" 5672 gcc_64_cflags="$gcc_cflags -m64" 5673 gcc_64_cflags_optlist="cpu arch noavx" 5674 CALLING_CONVENTIONS_OBJS_64='amd64call.lo amd64check$U.lo' 5675 SPEED_CYCLECOUNTER_OBJ_64=x86_64.lo 5676 cyclecounter_size_64=2 5677 5678 cclist_x32="gcc cc" 5679 gcc_x32_cflags="$gcc_cflags -mx32" 5680 gcc_x32_cflags_optlist="$gcc_64_cflags_optlist" 5681 CALLING_CONVENTIONS_OBJS_x32="$CALLING_CONVENTIONS_OBJS_64" 5682 SPEED_CYCLECOUNTER_OBJ_x32="$SPEED_CYCLECOUNTER_OBJ_64" 5683 cyclecounter_size_x32="$cyclecounter_size_64" 5684 path_x32="$path_64" 5685 limb_x32=longlong 5686 any_x32_testlist="sizeof-long-4" 5687 5688 abilist="64 x32 32" 5689 if test "$enable_assembly" = "yes" ; then 5690 extra_functions_64="$extra_functions_64 invert_limb_table" 5691 extra_functions_x32=$extra_functions_64 5692 fi 5693 5694 case $host in 5695 *-*-solaris*) 5696 # Sun cc. 5697 cc_64_cflags="-xO3 -m64" 5698 ;; 5699 *-*-mingw* | *-*-msys | *-*-cygwin) 5700 limb_64=longlong 5701 CALLING_CONVENTIONS_OBJS_64="" 5702 5703 $as_echo "#define HOST_DOS64 1" >>confdefs.h 5704 5705 GMP_NONSTD_ABI_64=DOS64 5706 ;; 5707 esac 5708 ;; 5709 esac 5710 ;; 5711 5712 5713 # Special CPU "none" used to select generic C, now this is obsolete. 5714 none-*-*) 5715 enable_assembly=no 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the \"none\" host is obsolete, use --disable-assembly" >&5 5717 $as_echo "$as_me: WARNING: the \"none\" host is obsolete, use --disable-assembly" >&2;} 5718 ;; 5719 5720 esac 5721 5722 # mingw can be built by the cygwin gcc if -mno-cygwin is added. For 5723 # convenience add this automatically if it works. Actual mingw gcc accepts 5724 # -mno-cygwin too, but of course is the default. mingw only runs on the 5725 # x86s, but allow any CPU here so as to catch "none" too. 5726 # 5727 case $host in 5728 *-*-mingw* | *-*-msys) 5729 gcc_cflags_optlist="$gcc_cflags_optlist nocygwin" 5730 gcc_cflags_nocygwin="-mno-cygwin" 5731 ;; 5732 esac 5733 5734 5735 CFLAGS_or_unset=${CFLAGS-'(unset)'} 5736 CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'} 5737 5738 cat >&5 <<EOF 5739 User: 5740 ABI=$ABI 5741 CC=$CC 5742 CFLAGS=$CFLAGS_or_unset 5743 CPPFLAGS=$CPPFLAGS_or_unset 5744 MPN_PATH=$MPN_PATH 5745 GMP: 5746 abilist=$abilist 5747 cclist=$cclist 5748 EOF 5749 5750 5751 test_CFLAGS=${CFLAGS+set} 5752 test_CPPFLAGS=${CPPFLAGS+set} 5753 5754 for abi in $abilist; do 5755 abi_last="$abi" 5756 done 5757 5758 # If the user specifies an ABI then it must be in $abilist, after that 5759 # $abilist is restricted to just that choice. 5760 # 5761 if test -n "$ABI"; then 5762 found=no 5763 for abi in $abilist; do 5764 if test $abi = "$ABI"; then found=yes; break; fi 5765 done 5766 if test $found = no; then 5767 as_fn_error $? "ABI=$ABI is not among the following valid choices: $abilist" "$LINENO" 5 5768 fi 5769 abilist="$ABI" 5770 fi 5771 5772 found_compiler=no 5773 5774 for abi in $abilist; do 5775 5776 echo "checking ABI=$abi" 5777 5778 # Suppose abilist="64 32", then for abi=64, will have abi1="_64" and 5779 # abi2="_64". For abi=32, will have abi1="_32" and abi2="". This is how 5780 # $gcc_cflags becomes a fallback for $gcc_32_cflags (the last in the 5781 # abilist), but there's no fallback for $gcc_64_cflags. 5782 # 5783 abi1=`echo _$abi | sed 's/[.]//g'` 5784 if test $abi = $abi_last; then abi2=; else abi2="$abi1"; fi 5785 5786 # Compiler choices under this ABI 5787 eval cclist_chosen=\"\$cclist$abi1\" 5788 test -n "$cclist_chosen" || eval cclist_chosen=\"\$cclist$abi2\" 5789 5790 # If there's a user specified $CC then don't use a list for 5791 # $cclist_chosen, just a single value for $ccbase. 5792 # 5793 if test -n "$CC"; then 5794 5795 # The first word of $CC, stripped of any directory. For instance 5796 # CC="/usr/local/bin/gcc -pipe" will give "gcc". 5797 # 5798 for ccbase in $CC; do break; done 5799 ccbase=`echo $ccbase | sed 's:.*/::'` 5800 5801 # If this $ccbase is in $cclist_chosen then it's a compiler we know and 5802 # we can do flags defaulting with it. If not, then $cclist_chosen is 5803 # set to "unrecognised" so no default flags are used. 5804 # 5805 # "unrecognised" is used to avoid bad effects with eval if $ccbase has 5806 # non-symbol characters. For instance ccbase=my+cc would end up with 5807 # something like cflags="$my+cc_cflags" which would give 5808 # cflags="+cc_cflags" rather than the intended empty string for an 5809 # unknown compiler. 5810 # 5811 found=unrecognised 5812 for i in $cclist_chosen; do 5813 if test "$ccbase" = $i; then 5814 found=$ccbase 5815 break 5816 fi 5817 done 5818 cclist_chosen=$found 5819 fi 5820 5821 for ccbase in $cclist_chosen; do 5822 5823 # When cross compiling, look for a compiler with the $host_alias as a 5824 # prefix, the same way that AC_CHECK_TOOL does. But don't do this to a 5825 # user-selected $CC. 5826 # 5827 # $cross_compiling will be yes/no/maybe at this point. Do the host 5828 # prefixing for "maybe" as well as "yes". 5829 # 5830 if test "$cross_compiling" != no && test -z "$CC"; then 5831 cross_compiling_prefix="${host_alias}-" 5832 fi 5833 5834 for ccprefix in $cross_compiling_prefix ""; do 5835 5836 cc="$CC" 5837 test -n "$cc" || cc="$ccprefix$ccbase" 5838 5839 # If the compiler is gcc but installed under another name, then change 5840 # $ccbase so as to use the flags we know for gcc. This helps for 5841 # instance when specifying CC=gcc272 on Debian GNU/Linux, or the 5842 # native cc which is really gcc on NeXT or MacOS-X. 5843 # 5844 # FIXME: There's a slight misfeature here. If cc is actually gcc but 5845 # gcc is not a known compiler under this $abi then we'll end up 5846 # testing it with no flags and it'll work, but chances are it won't be 5847 # in the right mode for the ABI we desire. Let's quietly hope this 5848 # doesn't happen. 5849 # 5850 if test $ccbase != gcc; then 5851 cat >conftest.c <<EOF 5852 #if ! defined (__GNUC__) || defined (__INTEL_COMPILER) 5853 choke me 5854 #endif 5855 EOF 5856 gmp_compile="$cc -c conftest.c >&5" 5857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 5858 (eval $gmp_compile) 2>&5 5859 ac_status=$? 5860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5861 test $ac_status = 0; }; then 5862 rm -f conftest* 5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is gcc" >&5 5864 $as_echo_n "checking whether $cc is gcc... " >&6; } 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5866 $as_echo "yes" >&6; } 5867 ccbase=gcc 5868 else 5869 rm -f conftest* 5870 : 5871 fi 5872 5873 fi 5874 5875 # Similarly if the compiler is IBM xlc but invoked as cc or whatever 5876 # then change $ccbase and make the default xlc flags available. 5877 if test $ccbase != xlc; then 5878 gmp_command="$cc 2>&1 | grep xlc >/dev/null" 5879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_command\""; } >&5 5880 (eval $gmp_command) 2>&5 5881 ac_status=$? 5882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5883 test $ac_status = 0; }; then 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is xlc" >&5 5885 $as_echo_n "checking whether $cc is xlc... " >&6; } 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5887 $as_echo "yes" >&6; } 5888 ccbase=xlc 5889 else 5890 : 5891 fi 5892 5893 fi 5894 5895 # acc was Sun's first unbundled compiler back in the SunOS days, or 5896 # something like that, but today its man page says it's not meant to 5897 # be used directly (instead via /usr/ucb/cc). The options are pretty 5898 # much the same as the main SunPRO cc, so share those configs. 5899 # 5900 case $host in 5901 *sparc*-*-solaris* | *sparc*-*-sunos*) 5902 if test "$ccbase" = acc; then ccbase=cc; fi ;; 5903 esac 5904 5905 for tmp_cflags_maybe in yes no; do 5906 eval cflags=\"\$${ccbase}${abi1}_cflags\" 5907 test -n "$cflags" || eval cflags=\"\$${ccbase}${abi2}_cflags\" 5908 5909 if test "$tmp_cflags_maybe" = yes; then 5910 # don't try cflags_maybe when the user set CFLAGS 5911 if test "$test_CFLAGS" = set; then continue; fi 5912 eval cflags_maybe=\"\$${ccbase}${abi1}_cflags_maybe\" 5913 test -n "$cflags_maybe" || eval cflags_maybe=\"\$${ccbase}${abi2}_cflags_maybe\" 5914 # don't try cflags_maybe if there's nothing set 5915 if test -z "$cflags_maybe"; then continue; fi 5916 cflags="$cflags_maybe $cflags" 5917 fi 5918 5919 # Any user CFLAGS, even an empty string, takes precedence 5920 if test "$test_CFLAGS" = set; then cflags=$CFLAGS; fi 5921 5922 # Any user CPPFLAGS, even an empty string, takes precedence 5923 eval cppflags=\"\$${ccbase}${abi1}_cppflags\" 5924 test -n "$cppflags" || eval cppflags=\"\$${ccbase}${abi2}_cppflags\" 5925 if test "$test_CPPFLAGS" = set; then cppflags=$CPPFLAGS; fi 5926 5927 # --enable-profiling adds -p/-pg even to user-specified CFLAGS. 5928 # This is convenient, but it's perhaps a bit naughty to modify user 5929 # CFLAGS. 5930 case "$enable_profiling" in 5931 prof) cflags="$cflags -p" ;; 5932 gprof) cflags="$cflags -pg" ;; 5933 instrument) cflags="$cflags -finstrument-functions" ;; 5934 esac 5935 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags" >&5 5937 $as_echo_n "checking compiler $cc $cflags $cppflags... " >&6; } 5938 gmp_prog_cc_works=yes 5939 5940 # first see a simple "main()" works, then go on to other checks 5941 if test "$gmp_prog_cc_works" = yes; then 5942 # remove anything that might look like compiler output to our "||" expression 5943 rm -f conftest* a.out b.out a.exe a_out.exe 5944 cat >conftest.c <<EOF 5945 5946 int main () { return 0; } 5947 EOF 5948 echo "Test compile: " >&5 5949 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 5950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 5951 (eval $gmp_compile) 2>&5 5952 ac_status=$? 5953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5954 test $ac_status = 0; }; then 5955 cc_works_part=yes 5956 if test "$cross_compiling" = no; then 5957 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 5958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 5959 (eval $ac_try) 2>&5 5960 ac_status=$? 5961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5962 test $ac_status = 0; }; }; then :; 5963 else 5964 cc_works_part=norun 5965 fi 5966 fi 5967 else 5968 cc_works_part=no 5969 fi 5970 if test "$cc_works_part" != yes; then 5971 echo "failed program was:" >&5 5972 cat conftest.c >&5 5973 fi 5974 rm -f conftest* a.out b.out a.exe a_out.exe 5975 case $cc_works_part in 5976 yes) 5977 5978 ;; 5979 no) 5980 gmp_prog_cc_works="no" 5981 ;; 5982 norun) 5983 gmp_prog_cc_works="no, program does not run" 5984 ;; 5985 esac 5986 fi 5987 5988 5989 5990 5991 if test "$gmp_prog_cc_works" = yes; then 5992 # remove anything that might look like compiler output to our "||" expression 5993 rm -f conftest* a.out b.out a.exe a_out.exe 5994 cat >conftest.c <<EOF 5995 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64 5996 (without -maix64), hence detecting an unusable compiler */ 5997 void *g() { return (void *) 0; } 5998 void *f() { return g(); } 5999 6000 int main () { return 0; } 6001 EOF 6002 echo "Test compile: function pointer return" >&5 6003 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 6004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6005 (eval $gmp_compile) 2>&5 6006 ac_status=$? 6007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6008 test $ac_status = 0; }; then 6009 cc_works_part=yes 6010 if test "$cross_compiling" = no; then 6011 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 6012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6013 (eval $ac_try) 2>&5 6014 ac_status=$? 6015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6016 test $ac_status = 0; }; }; then :; 6017 else 6018 cc_works_part=norun 6019 fi 6020 fi 6021 else 6022 cc_works_part=no 6023 fi 6024 if test "$cc_works_part" != yes; then 6025 echo "failed program was:" >&5 6026 cat conftest.c >&5 6027 fi 6028 rm -f conftest* a.out b.out a.exe a_out.exe 6029 case $cc_works_part in 6030 yes) 6031 6032 ;; 6033 no) 6034 gmp_prog_cc_works="no, function pointer return" 6035 ;; 6036 norun) 6037 gmp_prog_cc_works="no, function pointer return, program does not run" 6038 ;; 6039 esac 6040 fi 6041 6042 6043 6044 6045 if test "$gmp_prog_cc_works" = yes; then 6046 # remove anything that might look like compiler output to our "||" expression 6047 rm -f conftest* a.out b.out a.exe a_out.exe 6048 cat >conftest.c <<EOF 6049 /* The following provokes an invalid instruction syntax from i386 gcc 6050 -march=pentiumpro on Solaris 2.8. The native sun assembler 6051 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at 6052 least) doesn't know. */ 6053 int n; 6054 int cmov () { return (n >= 0 ? n : 0); } 6055 6056 int main () { return 0; } 6057 EOF 6058 echo "Test compile: cmov instruction" >&5 6059 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 6060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6061 (eval $gmp_compile) 2>&5 6062 ac_status=$? 6063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6064 test $ac_status = 0; }; then 6065 cc_works_part=yes 6066 if test "$cross_compiling" = no; then 6067 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 6068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6069 (eval $ac_try) 2>&5 6070 ac_status=$? 6071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6072 test $ac_status = 0; }; }; then :; 6073 else 6074 cc_works_part=norun 6075 fi 6076 fi 6077 else 6078 cc_works_part=no 6079 fi 6080 if test "$cc_works_part" != yes; then 6081 echo "failed program was:" >&5 6082 cat conftest.c >&5 6083 fi 6084 rm -f conftest* a.out b.out a.exe a_out.exe 6085 case $cc_works_part in 6086 yes) 6087 6088 ;; 6089 no) 6090 gmp_prog_cc_works="no, cmov instruction" 6091 ;; 6092 norun) 6093 gmp_prog_cc_works="no, cmov instruction, program does not run" 6094 ;; 6095 esac 6096 fi 6097 6098 6099 6100 6101 if test "$gmp_prog_cc_works" = yes; then 6102 # remove anything that might look like compiler output to our "||" expression 6103 rm -f conftest* a.out b.out a.exe a_out.exe 6104 cat >conftest.c <<EOF 6105 /* The following provokes a linker invocation problem with gcc 3.0.3 6106 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630 6107 option causes gcc to incorrectly select the 32-bit libgcc.a, not 6108 the 64-bit one, and consequently it misses out on the __fixunsdfdi 6109 helper (double -> uint64 conversion). */ 6110 double d; 6111 unsigned long gcc303 () { return (unsigned long) d; } 6112 6113 int main () { return 0; } 6114 EOF 6115 echo "Test compile: double -> ulong conversion" >&5 6116 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 6117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6118 (eval $gmp_compile) 2>&5 6119 ac_status=$? 6120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6121 test $ac_status = 0; }; then 6122 cc_works_part=yes 6123 if test "$cross_compiling" = no; then 6124 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 6125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6126 (eval $ac_try) 2>&5 6127 ac_status=$? 6128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6129 test $ac_status = 0; }; }; then :; 6130 else 6131 cc_works_part=norun 6132 fi 6133 fi 6134 else 6135 cc_works_part=no 6136 fi 6137 if test "$cc_works_part" != yes; then 6138 echo "failed program was:" >&5 6139 cat conftest.c >&5 6140 fi 6141 rm -f conftest* a.out b.out a.exe a_out.exe 6142 case $cc_works_part in 6143 yes) 6144 6145 ;; 6146 no) 6147 gmp_prog_cc_works="no, double -> ulong conversion" 6148 ;; 6149 norun) 6150 gmp_prog_cc_works="no, double -> ulong conversion, program does not run" 6151 ;; 6152 esac 6153 fi 6154 6155 6156 6157 6158 if test "$gmp_prog_cc_works" = yes; then 6159 # remove anything that might look like compiler output to our "||" expression 6160 rm -f conftest* a.out b.out a.exe a_out.exe 6161 cat >conftest.c <<EOF 6162 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if 6163 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0 6164 instruction, and a negation like this comes out using it. */ 6165 double fneg_data; 6166 unsigned long fneg () { return -fneg_data; } 6167 6168 int main () { return 0; } 6169 EOF 6170 echo "Test compile: double negation" >&5 6171 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 6172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6173 (eval $gmp_compile) 2>&5 6174 ac_status=$? 6175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6176 test $ac_status = 0; }; then 6177 cc_works_part=yes 6178 if test "$cross_compiling" = no; then 6179 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 6180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6181 (eval $ac_try) 2>&5 6182 ac_status=$? 6183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6184 test $ac_status = 0; }; }; then :; 6185 else 6186 cc_works_part=norun 6187 fi 6188 fi 6189 else 6190 cc_works_part=no 6191 fi 6192 if test "$cc_works_part" != yes; then 6193 echo "failed program was:" >&5 6194 cat conftest.c >&5 6195 fi 6196 rm -f conftest* a.out b.out a.exe a_out.exe 6197 case $cc_works_part in 6198 yes) 6199 6200 ;; 6201 no) 6202 gmp_prog_cc_works="no, double negation" 6203 ;; 6204 norun) 6205 gmp_prog_cc_works="no, double negation, program does not run" 6206 ;; 6207 esac 6208 fi 6209 6210 6211 6212 6213 if test "$gmp_prog_cc_works" = yes; then 6214 # remove anything that might look like compiler output to our "||" expression 6215 rm -f conftest* a.out b.out a.exe a_out.exe 6216 cat >conftest.c <<EOF 6217 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn 6218 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise 6219 those instructions. Not sure how much of the gmp code will come out 6220 wanting sse2, but it's easiest to reject an option we know is bad. */ 6221 double ftod_data; 6222 float ftod () { return (float) ftod_data; } 6223 6224 int main () { return 0; } 6225 EOF 6226 echo "Test compile: double -> float conversion" >&5 6227 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 6228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6229 (eval $gmp_compile) 2>&5 6230 ac_status=$? 6231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6232 test $ac_status = 0; }; then 6233 cc_works_part=yes 6234 if test "$cross_compiling" = no; then 6235 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 6236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6237 (eval $ac_try) 2>&5 6238 ac_status=$? 6239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6240 test $ac_status = 0; }; }; then :; 6241 else 6242 cc_works_part=norun 6243 fi 6244 fi 6245 else 6246 cc_works_part=no 6247 fi 6248 if test "$cc_works_part" != yes; then 6249 echo "failed program was:" >&5 6250 cat conftest.c >&5 6251 fi 6252 rm -f conftest* a.out b.out a.exe a_out.exe 6253 case $cc_works_part in 6254 yes) 6255 6256 ;; 6257 no) 6258 gmp_prog_cc_works="no, double -> float conversion" 6259 ;; 6260 norun) 6261 gmp_prog_cc_works="no, double -> float conversion, program does not run" 6262 ;; 6263 esac 6264 fi 6265 6266 6267 6268 6269 if test "$gmp_prog_cc_works" = yes; then 6270 # remove anything that might look like compiler output to our "||" expression 6271 rm -f conftest* a.out b.out a.exe a_out.exe 6272 cat >conftest.c <<EOF 6273 /* The following provokes an internal compiler error from gcc version 6274 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char 6275 values being spilled into floating point registers. The problem doesn't 6276 show up all the time, but has occurred enough in GMP for us to reject 6277 this compiler+flags. */ 6278 #include <string.h> /* for memcpy */ 6279 struct try_t 6280 { 6281 char dst[2]; 6282 char size; 6283 long d0, d1, d2, d3, d4, d5, d6; 6284 char overlap; 6285 }; 6286 struct try_t param[6]; 6287 int 6288 param_init () 6289 { 6290 struct try_t *p; 6291 memcpy (p, ¶m[ 2 ], sizeof (*p)); 6292 memcpy (p, ¶m[ 2 ], sizeof (*p)); 6293 p->size = 2; 6294 memcpy (p, ¶m[ 1 ], sizeof (*p)); 6295 p->dst[0] = 1; 6296 p->overlap = 2; 6297 memcpy (p, ¶m[ 3 ], sizeof (*p)); 6298 p->dst[0] = 1; 6299 p->overlap = 8; 6300 memcpy (p, ¶m[ 4 ], sizeof (*p)); 6301 memcpy (p, ¶m[ 4 ], sizeof (*p)); 6302 p->overlap = 8; 6303 memcpy (p, ¶m[ 5 ], sizeof (*p)); 6304 memcpy (p, ¶m[ 5 ], sizeof (*p)); 6305 memcpy (p, ¶m[ 5 ], sizeof (*p)); 6306 return 0; 6307 } 6308 6309 int main () { return 0; } 6310 EOF 6311 echo "Test compile: gnupro alpha ev6 char spilling" >&5 6312 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 6313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6314 (eval $gmp_compile) 2>&5 6315 ac_status=$? 6316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6317 test $ac_status = 0; }; then 6318 cc_works_part=yes 6319 if test "$cross_compiling" = no; then 6320 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 6321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6322 (eval $ac_try) 2>&5 6323 ac_status=$? 6324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6325 test $ac_status = 0; }; }; then :; 6326 else 6327 cc_works_part=norun 6328 fi 6329 fi 6330 else 6331 cc_works_part=no 6332 fi 6333 if test "$cc_works_part" != yes; then 6334 echo "failed program was:" >&5 6335 cat conftest.c >&5 6336 fi 6337 rm -f conftest* a.out b.out a.exe a_out.exe 6338 case $cc_works_part in 6339 yes) 6340 6341 ;; 6342 no) 6343 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling" 6344 ;; 6345 norun) 6346 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run" 6347 ;; 6348 esac 6349 fi 6350 6351 6352 6353 6354 # __builtin_alloca is not available everywhere, check it exists before 6355 # seeing that it works 6356 if test "$gmp_prog_cc_works" = yes; then 6357 # remove anything that might look like compiler output to our "||" expression 6358 rm -f conftest* a.out b.out a.exe a_out.exe 6359 cat >conftest.c <<EOF 6360 int k; int foo () { __builtin_alloca (k); } 6361 EOF 6362 echo "Test compile: __builtin_alloca availability" >&5 6363 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 6364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6365 (eval $gmp_compile) 2>&5 6366 ac_status=$? 6367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6368 test $ac_status = 0; }; then 6369 cc_works_part=yes 6370 if test "$cross_compiling" = no; then 6371 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 6372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6373 (eval $ac_try) 2>&5 6374 ac_status=$? 6375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6376 test $ac_status = 0; }; }; then :; 6377 else 6378 cc_works_part=norun 6379 fi 6380 fi 6381 else 6382 cc_works_part=no 6383 fi 6384 if test "$cc_works_part" != yes; then 6385 echo "failed program was:" >&5 6386 cat conftest.c >&5 6387 fi 6388 rm -f conftest* a.out b.out a.exe a_out.exe 6389 case $cc_works_part in 6390 yes) 6391 if test "$gmp_prog_cc_works" = yes; then 6392 # remove anything that might look like compiler output to our "||" expression 6393 rm -f conftest* a.out b.out a.exe a_out.exe 6394 cat >conftest.c <<EOF 6395 /* The following provokes an internal compiler error from Itanium HP-UX cc 6396 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */ 6397 int k; 6398 int foo () 6399 { 6400 int i, **a; 6401 a = __builtin_alloca (k); 6402 for (i = 0; i <= k; i++) 6403 a[i] = __builtin_alloca (1 << i); 6404 } 6405 6406 int main () { return 0; } 6407 EOF 6408 echo "Test compile: alloca array" >&5 6409 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 6410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6411 (eval $gmp_compile) 2>&5 6412 ac_status=$? 6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6414 test $ac_status = 0; }; then 6415 cc_works_part=yes 6416 if test "$cross_compiling" = no; then 6417 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 6418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6419 (eval $ac_try) 2>&5 6420 ac_status=$? 6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6422 test $ac_status = 0; }; }; then :; 6423 else 6424 cc_works_part=norun 6425 fi 6426 fi 6427 else 6428 cc_works_part=no 6429 fi 6430 if test "$cc_works_part" != yes; then 6431 echo "failed program was:" >&5 6432 cat conftest.c >&5 6433 fi 6434 rm -f conftest* a.out b.out a.exe a_out.exe 6435 case $cc_works_part in 6436 yes) 6437 6438 ;; 6439 no) 6440 gmp_prog_cc_works="no, alloca array" 6441 ;; 6442 norun) 6443 gmp_prog_cc_works="no, alloca array, program does not run" 6444 ;; 6445 esac 6446 fi 6447 6448 6449 6450 ;; 6451 no) 6452 6453 ;; 6454 norun) 6455 6456 ;; 6457 esac 6458 fi 6459 6460 6461 if test "$gmp_prog_cc_works" = yes; then 6462 # remove anything that might look like compiler output to our "||" expression 6463 rm -f conftest* a.out b.out a.exe a_out.exe 6464 cat >conftest.c <<EOF 6465 /* The following provokes an internal error from the assembler on 6466 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this 6467 results in "Internal error related to the source program domain". 6468 6469 For reference it seems to be the combination of nabs+fcirz which is bad, 6470 not either alone. This sort of thing occurs in mpz/get_str.c with the 6471 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps 6472 if that code changes to a scaled-integer style then we won't need this 6473 test. */ 6474 6475 double fp[1]; 6476 int x; 6477 int f () 6478 { 6479 int a; 6480 a = (x >= 0 ? x : -x); 6481 return a * fp[0]; 6482 } 6483 6484 int main () { return 0; } 6485 EOF 6486 echo "Test compile: abs int -> double conversion" >&5 6487 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 6488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6489 (eval $gmp_compile) 2>&5 6490 ac_status=$? 6491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6492 test $ac_status = 0; }; then 6493 cc_works_part=yes 6494 if test "$cross_compiling" = no; then 6495 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 6496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6497 (eval $ac_try) 2>&5 6498 ac_status=$? 6499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6500 test $ac_status = 0; }; }; then :; 6501 else 6502 cc_works_part=norun 6503 fi 6504 fi 6505 else 6506 cc_works_part=no 6507 fi 6508 if test "$cc_works_part" != yes; then 6509 echo "failed program was:" >&5 6510 cat conftest.c >&5 6511 fi 6512 rm -f conftest* a.out b.out a.exe a_out.exe 6513 case $cc_works_part in 6514 yes) 6515 6516 ;; 6517 no) 6518 gmp_prog_cc_works="no, abs int -> double conversion" 6519 ;; 6520 norun) 6521 gmp_prog_cc_works="no, abs int -> double conversion, program does not run" 6522 ;; 6523 esac 6524 fi 6525 6526 6527 6528 6529 if test "$gmp_prog_cc_works" = yes; then 6530 # remove anything that might look like compiler output to our "||" expression 6531 rm -f conftest* a.out b.out a.exe a_out.exe 6532 cat >conftest.c <<EOF 6533 /* The following provokes a segfault in the compiler on powerpc-apple-darwin. 6534 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and 6535 1666 to segfault with e.g., -O2 -mpowerpc64. */ 6536 6537 #if defined (__GNUC__) && ! defined (__cplusplus) 6538 typedef unsigned long long t1;typedef t1*t2; 6539 void g(int a, const t1* b, t1 c, t2 d, const t1* e, int f){} 6540 void h(){} 6541 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0) 6542 {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;} 6543 void f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i; 6544 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();}} 6545 #else 6546 int dummy; 6547 #endif 6548 6549 int main () { return 0; } 6550 EOF 6551 echo "Test compile: long long reliability test 1" >&5 6552 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 6553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6554 (eval $gmp_compile) 2>&5 6555 ac_status=$? 6556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6557 test $ac_status = 0; }; then 6558 cc_works_part=yes 6559 if test "$cross_compiling" = no; then 6560 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 6561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6562 (eval $ac_try) 2>&5 6563 ac_status=$? 6564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6565 test $ac_status = 0; }; }; then :; 6566 else 6567 cc_works_part=norun 6568 fi 6569 fi 6570 else 6571 cc_works_part=no 6572 fi 6573 if test "$cc_works_part" != yes; then 6574 echo "failed program was:" >&5 6575 cat conftest.c >&5 6576 fi 6577 rm -f conftest* a.out b.out a.exe a_out.exe 6578 case $cc_works_part in 6579 yes) 6580 6581 ;; 6582 no) 6583 gmp_prog_cc_works="no, long long reliability test 1" 6584 ;; 6585 norun) 6586 gmp_prog_cc_works="no, long long reliability test 1, program does not run" 6587 ;; 6588 esac 6589 fi 6590 6591 6592 6593 6594 if test "$gmp_prog_cc_works" = yes; then 6595 # remove anything that might look like compiler output to our "||" expression 6596 rm -f conftest* a.out b.out a.exe a_out.exe 6597 cat >conftest.c <<EOF 6598 /* The following provokes an internal compiler error on powerpc-apple-darwin. 6599 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and 6600 1666 to get an ICE with -O1 -mpowerpc64. */ 6601 6602 #if defined (__GNUC__) && ! defined (__cplusplus) 6603 int g(); 6604 void 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();} 6605 int g(){return 0;} 6606 #else 6607 int dummy; 6608 #endif 6609 6610 int main () { return 0; } 6611 EOF 6612 echo "Test compile: long long reliability test 2" >&5 6613 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 6614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6615 (eval $gmp_compile) 2>&5 6616 ac_status=$? 6617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6618 test $ac_status = 0; }; then 6619 cc_works_part=yes 6620 if test "$cross_compiling" = no; then 6621 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 6622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6623 (eval $ac_try) 2>&5 6624 ac_status=$? 6625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6626 test $ac_status = 0; }; }; then :; 6627 else 6628 cc_works_part=norun 6629 fi 6630 fi 6631 else 6632 cc_works_part=no 6633 fi 6634 if test "$cc_works_part" != yes; then 6635 echo "failed program was:" >&5 6636 cat conftest.c >&5 6637 fi 6638 rm -f conftest* a.out b.out a.exe a_out.exe 6639 case $cc_works_part in 6640 yes) 6641 6642 ;; 6643 no) 6644 gmp_prog_cc_works="no, long long reliability test 2" 6645 ;; 6646 norun) 6647 gmp_prog_cc_works="no, long long reliability test 2, program does not run" 6648 ;; 6649 esac 6650 fi 6651 6652 6653 6654 6655 if test "$gmp_prog_cc_works" = yes; then 6656 # remove anything that might look like compiler output to our "||" expression 6657 rm -f conftest* a.out b.out a.exe a_out.exe 6658 cat >conftest.c <<EOF 6659 /* Provokes an ICE on i386-freebsd with the FreeBSD-hacked gcc, under 6660 -O2 -march=amdfam10. We call helper functions here "open" and "close" in 6661 order for linking to succeed. */ 6662 6663 #if defined (__GNUC__) && ! defined (__cplusplus) 6664 int open(int*,int*,int);void*close(int);void g(int*rp,int*up,int un){ 6665 __builtin_expect(un<=0x7f00,1)?__builtin_alloca(un):close(un);if(__builtin_clzl 6666 (up[un])){open(rp,up,un);while(1){if(rp[un-1]!=0)break;un--;}}} 6667 #else 6668 int dummy; 6669 #endif 6670 6671 int main () { return 0; } 6672 EOF 6673 echo "Test compile: freebsd hacked gcc" >&5 6674 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 6675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6676 (eval $gmp_compile) 2>&5 6677 ac_status=$? 6678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6679 test $ac_status = 0; }; then 6680 cc_works_part=yes 6681 if test "$cross_compiling" = no; then 6682 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 6683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6684 (eval $ac_try) 2>&5 6685 ac_status=$? 6686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6687 test $ac_status = 0; }; }; then :; 6688 else 6689 cc_works_part=norun 6690 fi 6691 fi 6692 else 6693 cc_works_part=no 6694 fi 6695 if test "$cc_works_part" != yes; then 6696 echo "failed program was:" >&5 6697 cat conftest.c >&5 6698 fi 6699 rm -f conftest* a.out b.out a.exe a_out.exe 6700 case $cc_works_part in 6701 yes) 6702 6703 ;; 6704 no) 6705 gmp_prog_cc_works="no, freebsd hacked gcc" 6706 ;; 6707 norun) 6708 gmp_prog_cc_works="no, freebsd hacked gcc, program does not run" 6709 ;; 6710 esac 6711 fi 6712 6713 6714 6715 6716 if test "$gmp_prog_cc_works" = yes; then 6717 # remove anything that might look like compiler output to our "||" expression 6718 rm -f conftest* a.out b.out a.exe a_out.exe 6719 cat >conftest.c <<EOF 6720 /* The following is mis-compiled by HP ia-64 cc version 6721 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003] 6722 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets 6723 inlined and its return value somehow botched to be 0 instead of 1. This 6724 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization 6725 level, like +O2 seems ok. This code needs to be run to show the problem, 6726 but that's fine, the offending cc is a native-only compiler so we don't 6727 have to worry about cross compiling. */ 6728 6729 #if ! defined (__cplusplus) 6730 unsigned long 6731 lshift_com (rp, up, n, cnt) 6732 unsigned long *rp; 6733 unsigned long *up; 6734 long n; 6735 unsigned cnt; 6736 { 6737 unsigned long retval, high_limb, low_limb; 6738 unsigned tnc; 6739 long i; 6740 tnc = 8 * sizeof (unsigned long) - cnt; 6741 low_limb = *up++; 6742 retval = low_limb >> tnc; 6743 high_limb = low_limb << cnt; 6744 for (i = n - 1; i != 0; i--) 6745 { 6746 low_limb = *up++; 6747 *rp++ = ~(high_limb | (low_limb >> tnc)); 6748 high_limb = low_limb << cnt; 6749 } 6750 return retval; 6751 } 6752 int 6753 main () 6754 { 6755 unsigned long cy, rp[2], up[2]; 6756 up[0] = ~ 0L; 6757 up[1] = 0; 6758 cy = lshift_com (rp, up, 2L, 1); 6759 if (cy != 1L) 6760 return 1; 6761 return 0; 6762 } 6763 #else 6764 int 6765 main () 6766 { 6767 return 0; 6768 } 6769 #endif 6770 6771 EOF 6772 echo "Test compile: mpn_lshift_com optimization" >&5 6773 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 6774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6775 (eval $gmp_compile) 2>&5 6776 ac_status=$? 6777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6778 test $ac_status = 0; }; then 6779 cc_works_part=yes 6780 if test "$cross_compiling" = no; then 6781 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 6782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6783 (eval $ac_try) 2>&5 6784 ac_status=$? 6785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6786 test $ac_status = 0; }; }; then :; 6787 else 6788 cc_works_part=norun 6789 fi 6790 fi 6791 else 6792 cc_works_part=no 6793 fi 6794 if test "$cc_works_part" != yes; then 6795 echo "failed program was:" >&5 6796 cat conftest.c >&5 6797 fi 6798 rm -f conftest* a.out b.out a.exe a_out.exe 6799 case $cc_works_part in 6800 yes) 6801 6802 ;; 6803 no) 6804 gmp_prog_cc_works="no, mpn_lshift_com optimization" 6805 ;; 6806 norun) 6807 gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run" 6808 ;; 6809 esac 6810 fi 6811 6812 6813 6814 if test "$gmp_prog_cc_works" = yes; then 6815 # remove anything that might look like compiler output to our "||" expression 6816 rm -f conftest* a.out b.out a.exe a_out.exe 6817 cat >conftest.c <<EOF 6818 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under 6819 "icc -O3", After several calls, the function writes partial garbage to 6820 the result vector. Perhaps relates to the chk.a.nc insn. This code needs 6821 to be run to show the problem, but that's fine, the offending cc is a 6822 native-only compiler so we don't have to worry about cross compiling. */ 6823 6824 #if ! defined (__cplusplus) 6825 #include <stdlib.h> 6826 void 6827 lshift_com (rp, up, n, cnt) 6828 unsigned long *rp; 6829 unsigned long *up; 6830 long n; 6831 unsigned cnt; 6832 { 6833 unsigned long high_limb, low_limb; 6834 unsigned tnc; 6835 long i; 6836 up += n; 6837 rp += n; 6838 tnc = 8 * sizeof (unsigned long) - cnt; 6839 low_limb = *--up; 6840 high_limb = low_limb << cnt; 6841 for (i = n - 1; i != 0; i--) 6842 { 6843 low_limb = *--up; 6844 *--rp = ~(high_limb | (low_limb >> tnc)); 6845 high_limb = low_limb << cnt; 6846 } 6847 *--rp = ~high_limb; 6848 } 6849 int 6850 main () 6851 { 6852 unsigned long *r, *r2; 6853 unsigned long a[88 + 1]; 6854 long i; 6855 for (i = 0; i < 88 + 1; i++) 6856 a[i] = ~0L; 6857 r = calloc (10000, sizeof (unsigned long)); 6858 r2 = r; 6859 for (i = 0; i < 528; i += 23) 6860 { 6861 lshift_com (r2, a, 6862 i / (8 * sizeof (unsigned long)) + 1, 6863 i % (8 * sizeof (unsigned long))); 6864 r2 += 88 + 1; 6865 } 6866 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 || 6867 r[2052] != 0 || r[2053] != 0 || r[2054] != 0) 6868 abort (); 6869 free (r); 6870 return 0; 6871 } 6872 #else 6873 int 6874 main () 6875 { 6876 return 0; 6877 } 6878 #endif 6879 6880 EOF 6881 echo "Test compile: mpn_lshift_com optimization 2" >&5 6882 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 6883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6884 (eval $gmp_compile) 2>&5 6885 ac_status=$? 6886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6887 test $ac_status = 0; }; then 6888 cc_works_part=yes 6889 if test "$cross_compiling" = no; then 6890 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 6891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6892 (eval $ac_try) 2>&5 6893 ac_status=$? 6894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6895 test $ac_status = 0; }; }; then :; 6896 else 6897 cc_works_part=norun 6898 fi 6899 fi 6900 else 6901 cc_works_part=no 6902 fi 6903 if test "$cc_works_part" != yes; then 6904 echo "failed program was:" >&5 6905 cat conftest.c >&5 6906 fi 6907 rm -f conftest* a.out b.out a.exe a_out.exe 6908 case $cc_works_part in 6909 yes) 6910 6911 ;; 6912 no) 6913 gmp_prog_cc_works="no, mpn_lshift_com optimization 2" 6914 ;; 6915 norun) 6916 gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run" 6917 ;; 6918 esac 6919 fi 6920 6921 6922 6923 6924 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled 6925 # by recent versions of gcc. 6926 # 6927 if test "$gmp_prog_cc_works" = yes; then 6928 case $host in 6929 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*) 6930 # this problem only arises in PIC code, so don't need to test when 6931 # --disable-shared. We don't necessarily have $enable_shared set to 6932 # yes at this point, it will still be unset for the default (which is 6933 # yes); hence the use of "!= no". 6934 if test "$enable_shared" != no; then 6935 echo "Testing gcc GOT with eax emitted" >&5 6936 cat >conftest.c <<\EOF 6937 int foo; 6938 int bar () { return foo; } 6939 EOF 6940 tmp_got_emitted=no 6941 gmp_compile="$cc $cflags $cppflags -fPIC -S conftest.c >&5 2>&1" 6942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6943 (eval $gmp_compile) 2>&5 6944 ac_status=$? 6945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6946 test $ac_status = 0; }; then 6947 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then 6948 tmp_got_emitted=yes 6949 fi 6950 fi 6951 rm -f conftest.* 6952 echo "Result: $tmp_got_emitted" >&5 6953 if test "$tmp_got_emitted" = yes; then 6954 echo "Testing gas GOT with eax good" >&5 6955 cat >conftest.awk <<\EOF 6956 BEGIN { 6957 want[0] = "001" 6958 want[1] = "043" 6959 want[2] = "105" 6960 want[3] = "147" 6961 want[4] = "211" 6962 want[5] = "253" 6963 want[6] = "315" 6964 want[7] = "357" 6965 6966 want[8] = "005" 6967 want[9] = "002" 6968 want[10] = "000" 6969 want[11] = "000" 6970 want[12] = "000" 6971 6972 want[13] = "376" 6973 want[14] = "334" 6974 want[15] = "272" 6975 want[16] = "230" 6976 want[17] = "166" 6977 want[18] = "124" 6978 want[19] = "062" 6979 want[20] = "020" 6980 6981 result = "yes" 6982 } 6983 { 6984 for (f = 2; f <= NF; f++) 6985 { 6986 for (i = 0; i < 20; i++) 6987 got[i] = got[i+1]; 6988 got[20] = $f; 6989 6990 found = 1 6991 for (i = 0; i < 21; i++) 6992 if (got[i] != want[i]) 6993 { 6994 found = 0 6995 break 6996 } 6997 if (found) 6998 { 6999 result = "no" 7000 exit 7001 } 7002 } 7003 } 7004 END { 7005 print result 7006 } 7007 EOF 7008 cat >conftest.s <<\EOF 7009 .text 7010 .byte 1, 35, 69, 103, 137, 171, 205, 239 7011 addl $_GLOBAL_OFFSET_TABLE_, %eax 7012 .byte 254, 220, 186, 152, 118, 84, 50, 16 7013 EOF 7014 tmp_got_good=yes 7015 gmp_compile="$cc $cflags $cppflags -fPIC -o conftest.o -c conftest.s >&5 2>&1" 7016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7017 (eval $gmp_compile) 2>&5 7018 ac_status=$? 7019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7020 test $ac_status = 0; }; then 7021 tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk` 7022 fi 7023 rm -f conftest.* 7024 echo "Result: $tmp_got_good" >&5 7025 if test "$tmp_got_good" = no; then 7026 gmp_prog_cc_works="no, bad gas GOT with eax" 7027 else 7028 : 7029 fi 7030 7031 else 7032 : 7033 fi 7034 7035 fi 7036 ;; 7037 esac 7038 fi 7039 7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5 7041 $as_echo "$gmp_prog_cc_works" >&6; } 7042 case $gmp_prog_cc_works in 7043 yes) 7044 7045 ;; 7046 *) 7047 continue 7048 ;; 7049 esac 7050 7051 7052 # If we're supposed to be using a "long long" for a limb, check that 7053 # it works. 7054 eval limb_chosen=\"\$limb$abi1\" 7055 test -n "$limb_chosen" || eval limb_chosen=\"\$limb$abi2\" 7056 if test "$limb_chosen" = longlong; then 7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags has long long" >&5 7058 $as_echo_n "checking compiler $cc $cflags $cppflags has long long... " >&6; } 7059 cat >conftest.c <<EOF 7060 long long foo; 7061 long long bar () { return foo; } 7062 int main () { return 0; } 7063 EOF 7064 gmp_prog_cc_works=no 7065 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5" 7066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7067 (eval $gmp_compile) 2>&5 7068 ac_status=$? 7069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7070 test $ac_status = 0; }; then 7071 gmp_prog_cc_works=yes 7072 else 7073 echo "failed program was:" >&5 7074 cat conftest.c >&5 7075 fi 7076 rm -f conftest* a.out b.out a.exe a_out.exe 7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5 7078 $as_echo "$gmp_prog_cc_works" >&6; } 7079 if test $gmp_prog_cc_works = yes; then 7080 : 7081 else 7082 continue 7083 fi 7084 7085 fi 7086 7087 # The tests to perform on this $cc, if any 7088 eval testlist=\"\$${ccbase}${abi1}_testlist\" 7089 test -n "$testlist" || eval testlist=\"\$${ccbase}${abi2}_testlist\" 7090 test -n "$testlist" || eval testlist=\"\$any${abi1}_testlist\" 7091 test -n "$testlist" || eval testlist=\"\$any${abi2}_testlist\" 7092 7093 testlist_pass=yes 7094 for tst in $testlist; do 7095 case $tst in 7096 hpc-hppa-2-0) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HP compiler $cc is good for 64-bits" >&5 7097 $as_echo_n "checking whether HP compiler $cc is good for 64-bits... " >&6; } 7098 # Bad compiler output: 7099 # ccom: HP92453-01 G.10.32.05 HP C Compiler 7100 # Good compiler output: 7101 # ccom: HP92453-01 A.10.32.30 HP C Compiler 7102 # Let A.10.32.30 or higher be ok. 7103 echo >conftest.c 7104 gmp_tmp_vs=`$cc -V -c -o conftest.$OBJEXT conftest.c 2>&1 | grep "^ccom:"` 7105 echo "Version string: $gmp_tmp_vs" >&5 7106 rm conftest* 7107 gmp_tmp_v1=`echo $gmp_tmp_vs | sed 's/.* .\.\([0-9]*\).*/\1/'` 7108 gmp_tmp_v2=`echo $gmp_tmp_vs | sed 's/.* .\..*\.\(.*\)\..* HP C.*/\1/'` 7109 gmp_tmp_v3=`echo $gmp_tmp_vs | sed 's/.* .\..*\..*\.\(.*\) HP C.*/\1/'` 7110 echo "Version number: $gmp_tmp_v1.$gmp_tmp_v2.$gmp_tmp_v3" >&5 7111 if test -z "$gmp_tmp_v1"; then 7112 gmp_hpc_64bit=not-applicable 7113 else 7114 gmp_compare_ge=no 7115 if test -n "$gmp_tmp_v1"; then 7116 if test "$gmp_tmp_v1" -gt 10; then 7117 gmp_compare_ge=yes 7118 else 7119 if test "$gmp_tmp_v1" -eq 10; then 7120 if test -n "$gmp_tmp_v2"; then 7121 if test "$gmp_tmp_v2" -gt 32; then 7122 gmp_compare_ge=yes 7123 else 7124 if test "$gmp_tmp_v2" -eq 32; then 7125 if test -n "$gmp_tmp_v3" && test "$gmp_tmp_v3" -ge 30; then 7126 gmp_compare_ge=yes 7127 fi 7128 7129 fi 7130 fi 7131 fi 7132 7133 fi 7134 fi 7135 fi 7136 7137 7138 gmp_hpc_64bit=$gmp_compare_ge 7139 fi 7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_hpc_64bit" >&5 7141 $as_echo "$gmp_hpc_64bit" >&6; } 7142 if test $gmp_hpc_64bit = yes; then 7143 : 7144 else 7145 testlist_pass=no 7146 fi 7147 ;; 7148 gcc-arm-umodsi) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ARM gcc unsigned division works" >&5 7149 $as_echo_n "checking whether ARM gcc unsigned division works... " >&6; } 7150 tmp_version=`$cc --version` 7151 echo "$tmp_version" >&5 7152 case $tmp_version in 7153 2.95 | 2.95.[123]) 7154 testlist_pass=no 7155 gmp_gcc_arm_umodsi_result="no, gcc 2.95.[0123]" ;; 7156 *) 7157 : 7158 gmp_gcc_arm_umodsi_result=yes ;; 7159 esac 7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_gcc_arm_umodsi_result" >&5 7161 $as_echo "$gmp_gcc_arm_umodsi_result" >&6; } 7162 ;; 7163 gcc-mips-o32) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports o32" >&5 7164 $as_echo_n "checking whether gcc supports o32... " >&6; } 7165 echo 'int x;' >conftest.c 7166 echo "$cc -mabi=32 -c conftest.c" >&5 7167 if $cc -mabi=32 -c conftest.c >conftest.out 2>&1; then 7168 result=yes 7169 else 7170 cat conftest.out >&5 7171 if grep "cc1: Invalid option \`abi=32'" conftest.out >/dev/null; then 7172 result=yes 7173 else 7174 result=no 7175 fi 7176 fi 7177 rm -f conftest.* 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 7179 $as_echo "$result" >&6; } 7180 if test $result = yes; then 7181 : 7182 else 7183 testlist_pass=no 7184 fi 7185 ;; 7186 hppa-level-2.0) { $as_echo "$as_me:${as_lineno-$LINENO}: checking $cc $cflags assembler knows hppa 2.0" >&5 7187 $as_echo_n "checking $cc $cflags assembler knows hppa 2.0... " >&6; } 7188 result=no 7189 cat >conftest.s <<EOF 7190 .level 2.0 7191 EOF 7192 gmp_compile="$cc $cflags -c conftest.s >&5 2>&1" 7193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7194 (eval $gmp_compile) 2>&5 7195 ac_status=$? 7196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7197 test $ac_status = 0; }; then 7198 result=yes 7199 else 7200 echo "failed program was" >&5 7201 cat conftest.s >&5 7202 fi 7203 rm -f conftest* 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 7205 $as_echo "$result" >&6; } 7206 if test "$result" = yes; then 7207 : 7208 else 7209 testlist_pass=no 7210 fi 7211 ;; 7212 sizeof*) echo "configure: testlist $tst" >&5 7213 gmp_sizeof_type=`echo "$tst" | sed 's/sizeof-\([a-z\*]*\).*/\1/'` 7214 gmp_sizeof_want=`echo "$tst" | sed 's/sizeof-[a-z\*]*-\([0-9]*\).*/\1/'` 7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want" >&5 7216 $as_echo_n "checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want... " >&6; } 7217 cat >conftest.c <<EOF 7218 int 7219 main () 7220 { 7221 static int test_array [1 - 2 * (long) (sizeof ($gmp_sizeof_type) != $gmp_sizeof_want)]; 7222 test_array[0] = 0; 7223 return 0; 7224 } 7225 EOF 7226 gmp_c_testlist_sizeof=no 7227 gmp_compile="$cc $cflags -c conftest.c >&5" 7228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7229 (eval $gmp_compile) 2>&5 7230 ac_status=$? 7231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7232 test $ac_status = 0; }; then 7233 gmp_c_testlist_sizeof=yes 7234 fi 7235 rm -f conftest* 7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_c_testlist_sizeof" >&5 7237 $as_echo "$gmp_c_testlist_sizeof" >&6; } 7238 if test $gmp_c_testlist_sizeof = yes; then 7239 : 7240 else 7241 testlist_pass=no 7242 fi 7243 ;; 7244 esac 7245 if test $testlist_pass = no; then break; fi 7246 done 7247 7248 if test $testlist_pass = yes; then 7249 found_compiler=yes 7250 break 7251 fi 7252 done 7253 7254 if test $found_compiler = yes; then break; fi 7255 done 7256 7257 if test $found_compiler = yes; then break; fi 7258 done 7259 7260 if test $found_compiler = yes; then break; fi 7261 done 7262 7263 7264 # If we recognised the CPU, as indicated by $path being set, then insist 7265 # that we have a working compiler, either from our $cclist choices or from 7266 # $CC. We can't let AC_PROG_CC look around for a compiler because it might 7267 # find one that we've rejected (for not supporting the modes our asm code 7268 # demands, etc). 7269 # 7270 # If we didn't recognise the CPU (and this includes host_cpu=none), then 7271 # fall through and let AC_PROG_CC look around for a compiler too. This is 7272 # mostly in the interests of following a standard autoconf setup, after all 7273 # we've already tested cc and gcc adequately (hopefully). As of autoconf 7274 # 2.50 the only thing AC_PROG_CC really adds is a check for "cl" (Microsoft 7275 # C on MS-DOS systems). 7276 # 7277 if test $found_compiler = no && test -n "$path"; then 7278 as_fn_error $? "could not find a working compiler, see config.log for details" "$LINENO" 5 7279 fi 7280 7281 case $host in 7282 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar*-*-* | bulldozer*-*-* | piledriver*-*-* | steamroller*-*-* | excavator*-*-* | zen*-*-* | pentium4-*-* | atom-*-* | silvermont-*-* | goldmont-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-* | nehalem*-*-* | westmere*-*-* | sandybridge*-*-* | ivybridge*-*-* | haswell*-*-* | broadwell*-*-* | skylake*-*-* | kabylake*-*-*) 7283 # If the user asked for a fat build, override the path and flags set above 7284 if test $enable_fat = yes; then 7285 gcc_cflags_cpu="" 7286 gcc_cflags_arch="" 7287 7288 fat_functions="add_n addmul_1 bdiv_dbm1c com cnd_add_n cnd_sub_n 7289 copyd copyi dive_1 divrem_1 7290 gcd_11 lshift lshiftc mod_1 mod_1_1 mod_1_1_cps mod_1_2 7291 mod_1_2_cps mod_1_4 mod_1_4_cps mod_34lsub1 mode1o mul_1 7292 mul_basecase mullo_basecase pre_divrem_1 pre_mod_1 redc_1 7293 redc_2 rshift sqr_basecase sub_n submul_1" 7294 7295 if test "$abi" = 32; then 7296 extra_functions="$extra_functions fat fat_entry" 7297 path="x86/fat x86" 7298 fat_path="x86 x86/fat x86/i486 7299 x86/k6 x86/k6/mmx x86/k6/k62mmx 7300 x86/k7 x86/k7/mmx 7301 x86/k8 x86/k10 x86/bt1 x86/bd1 7302 x86/pentium x86/pentium/mmx 7303 x86/p6 x86/p6/mmx x86/p6/p3mmx x86/p6/sse2 7304 x86/pentium4 x86/pentium4/mmx x86/pentium4/sse2 7305 x86/core2 x86/coreinhm x86/coreisbr 7306 x86/goldmont x86/silvermont 7307 x86/atom x86/atom/mmx x86/atom/sse2 x86/nano" 7308 fi 7309 7310 if test "$abi" = 64; then 7311 gcc_64_cflags="" 7312 extra_functions_64="$extra_functions_64 fat fat_entry" 7313 path_64="x86_64/fat x86_64" 7314 fat_path="x86_64 x86_64/fat 7315 x86_64/k8 x86_64/k10 x86_64/bd1 x86_64/bt1 x86_64/bt2 x86_64/zen 7316 x86_64/pentium4 x86_64/core2 x86_64/coreinhm x86_64/coreisbr 7317 x86_64/coreihwl x86_64/coreibwl x86_64/skylake x86_64/atom 7318 x86_64/silvermont x86_64/goldmont x86_64/nano" 7319 fat_functions="$fat_functions addmul_2 addlsh1_n addlsh2_n sublsh1_n" 7320 fi 7321 7322 fat_thresholds="MUL_TOOM22_THRESHOLD MUL_TOOM33_THRESHOLD 7323 SQR_TOOM2_THRESHOLD SQR_TOOM3_THRESHOLD 7324 BMOD_1_TO_MOD_1_THRESHOLD" 7325 fi 7326 ;; 7327 esac 7328 7329 7330 if test $found_compiler = yes; then 7331 7332 # If we're creating CFLAGS, then look for optional additions. If the user 7333 # set CFLAGS then leave it alone. 7334 # 7335 if test "$test_CFLAGS" != set; then 7336 eval optlist=\"\$${ccbase}${abi1}_cflags_optlist\" 7337 test -n "$optlist" || eval optlist=\"\$${ccbase}${abi2}_cflags_optlist\" 7338 7339 for opt in $optlist; do 7340 eval optflags=\"\$${ccbase}${abi1}_cflags_${opt}\" 7341 test -n "$optflags" || eval optflags=\"\$${ccbase}${abi2}_cflags_${opt}\" 7342 test -n "$optflags" || eval optflags=\"\$${ccbase}_cflags_${opt}\" 7343 7344 for flag in $optflags; do 7345 7346 # ~ represents a space in an option spec 7347 flag=`echo "$flag" | tr '~' ' '` 7348 7349 case $flag in 7350 -march=pentium4 | -march=k8) 7351 # For -march settings which enable SSE2 we exclude certain bad 7352 # gcc versions and we need an OS knowing how to save xmm regs. 7353 # 7354 # This is only for ABI=32, any 64-bit gcc is good and any OS 7355 # knowing x86_64 will know xmm. 7356 # 7357 # -march=k8 was only introduced in gcc 3.3, so we shouldn't need 7358 # the GMP_GCC_PENTIUM4_SSE2 check (for gcc 3.2 and prior). But 7359 # it doesn't hurt to run it anyway, sharing code with the 7360 # pentium4 case. 7361 # 7362 if test "$abi" = 32; then 7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc is good for sse2" >&5 7364 $as_echo_n "checking whether gcc is good for sse2... " >&6; } 7365 case `$cc $cflags $cppflags -dumpversion` in 7366 3.[012] | 3.[012].*) result=no ;; 7367 *) result=yes ;; 7368 esac 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 7370 $as_echo "$result" >&6; } 7371 if test "$result" = yes; then 7372 : 7373 else 7374 continue 7375 fi 7376 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the operating system supports XMM registers" >&5 7378 $as_echo_n "checking whether the operating system supports XMM registers... " >&6; } 7379 if ${gmp_cv_os_x86_xmm+:} false; then : 7380 $as_echo_n "(cached) " >&6 7381 else 7382 if test "$build" = "$host"; then 7383 # remove anything that might look like compiler output to our "||" expression 7384 rm -f conftest* a.out b.out a.exe a_out.exe 7385 cat >conftest.s <<EOF 7386 .text 7387 main: 7388 _main: 7389 .globl main 7390 .globl _main 7391 .byte 0x0f, 0x57, 0xc0 7392 xorl %eax, %eax 7393 ret 7394 EOF 7395 gmp_compile="$cc $cflags $cppflags conftest.s -o conftest >&5" 7396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7397 (eval $gmp_compile) 2>&5 7398 ac_status=$? 7399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7400 test $ac_status = 0; }; then 7401 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7403 (eval $ac_try) 2>&5 7404 ac_status=$? 7405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7406 test $ac_status = 0; }; }; then 7407 gmp_cv_os_x86_xmm=yes 7408 else 7409 gmp_cv_os_x86_xmm=no 7410 fi 7411 else 7412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Oops, cannot compile test program" >&5 7413 $as_echo "$as_me: WARNING: Oops, cannot compile test program" >&2;} 7414 fi 7415 rm -f conftest* 7416 fi 7417 7418 if test -z "$gmp_cv_os_x86_xmm"; then 7419 case $host_os in 7420 freebsd[123] | freebsd[123].*) 7421 gmp_cv_os_x86_xmm=no ;; 7422 freebsd*) 7423 gmp_cv_os_x86_xmm=yes ;; 7424 *) 7425 gmp_cv_os_x86_xmm=probably ;; 7426 esac 7427 fi 7428 7429 fi 7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_os_x86_xmm" >&5 7431 $as_echo "$gmp_cv_os_x86_xmm" >&6; } 7432 7433 if test "$gmp_cv_os_x86_xmm" = probably; then 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not certain of OS support for xmm when cross compiling." >&5 7435 $as_echo "$as_me: WARNING: Not certain of OS support for xmm when cross compiling." >&2;} 7436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&5 7437 $as_echo "$as_me: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&2;} 7438 fi 7439 7440 case $gmp_cv_os_x86_xmm in 7441 no) 7442 continue 7443 ;; 7444 *) 7445 7446 ;; 7447 esac 7448 7449 fi 7450 ;; 7451 -no-cpp-precomp) 7452 # special check, avoiding a warning 7453 if test "$ccbase" = gcc; then 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags -no-cpp-precomp" >&5 7455 $as_echo_n "checking compiler $cc $cflags -no-cpp-precomp... " >&6; } 7456 result=no 7457 cat >conftest.c <<EOF 7458 int main () { return 0; } 7459 EOF 7460 gmp_compile="$cc $cflags -no-cpp-precomp conftest.c >conftest.out 2>&1" 7461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7462 (eval $gmp_compile) 2>&5 7463 ac_status=$? 7464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7465 test $ac_status = 0; }; then 7466 if grep "unrecognized option.*-no-cpp-precomp" conftest.out >/dev/null; then : ; 7467 else 7468 result=yes 7469 fi 7470 fi 7471 cat conftest.out >&5 7472 rm -f conftest* a.out b.out a.exe a_out.exe 7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 7474 $as_echo "$result" >&6; } 7475 if test "$result" = yes; then 7476 cflags="$cflags $flag" 7477 break 7478 else 7479 continue 7480 fi 7481 fi 7482 7483 ;; 7484 -Wa,-m*) 7485 case $host in 7486 alpha*-*-*) 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler $cc $cflags $flag" >&5 7488 $as_echo_n "checking assembler $cc $cflags $flag... " >&6; } 7489 result=no 7490 cat >conftest.c <<EOF 7491 int main () {} 7492 EOF 7493 gmp_compile="$cc $cflags $flag -c conftest.c >conftest.out 2>&1" 7494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7495 (eval $gmp_compile) 2>&5 7496 ac_status=$? 7497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7498 test $ac_status = 0; }; then 7499 if grep "Unknown CPU identifier" conftest.out >/dev/null; then : ; 7500 else 7501 result=yes 7502 fi 7503 fi 7504 cat conftest.out >&5 7505 rm -f conftest* 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 7507 $as_echo "$result" >&6; } 7508 if test "$result" = yes; then 7509 : 7510 else 7511 continue 7512 fi 7513 7514 ;; 7515 esac 7516 ;; 7517 -Wa,-oldas) 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cc $cflags $cppflags -Wa,-oldas" >&5 7519 $as_echo_n "checking for $cc $cflags $cppflags -Wa,-oldas... " >&6; } 7520 result=no 7521 cat >conftest.c <<EOF 7522 EOF 7523 echo "with empty conftest.c" >&5 7524 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5 2>&1" 7525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7526 (eval $gmp_compile) 2>&5 7527 ac_status=$? 7528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7529 test $ac_status = 0; }; then : ; 7530 else 7531 # empty fails 7532 gmp_compile="$cc $cflags $cppflags -Wa,-oldas -c conftest.c >&5 2>&1" 7533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7534 (eval $gmp_compile) 2>&5 7535 ac_status=$? 7536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7537 test $ac_status = 0; }; then 7538 # but with -Wa,-oldas it works 7539 result=yes 7540 fi 7541 fi 7542 rm -f conftest* 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 7544 $as_echo "$result" >&6; } 7545 if test "$result" = yes; then 7546 cflags="$cflags $flag" 7547 break 7548 else 7549 continue 7550 fi 7551 7552 ;; 7553 esac 7554 7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags $flag" >&5 7556 $as_echo_n "checking compiler $cc $cflags $cppflags $flag... " >&6; } 7557 gmp_prog_cc_works=yes 7558 7559 # first see a simple "main()" works, then go on to other checks 7560 if test "$gmp_prog_cc_works" = yes; then 7561 # remove anything that might look like compiler output to our "||" expression 7562 rm -f conftest* a.out b.out a.exe a_out.exe 7563 cat >conftest.c <<EOF 7564 7565 int main () { return 0; } 7566 EOF 7567 echo "Test compile: " >&5 7568 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 7569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7570 (eval $gmp_compile) 2>&5 7571 ac_status=$? 7572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7573 test $ac_status = 0; }; then 7574 cc_works_part=yes 7575 if test "$cross_compiling" = no; then 7576 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7578 (eval $ac_try) 2>&5 7579 ac_status=$? 7580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7581 test $ac_status = 0; }; }; then :; 7582 else 7583 cc_works_part=norun 7584 fi 7585 fi 7586 else 7587 cc_works_part=no 7588 fi 7589 if test "$cc_works_part" != yes; then 7590 echo "failed program was:" >&5 7591 cat conftest.c >&5 7592 fi 7593 rm -f conftest* a.out b.out a.exe a_out.exe 7594 case $cc_works_part in 7595 yes) 7596 7597 ;; 7598 no) 7599 gmp_prog_cc_works="no" 7600 ;; 7601 norun) 7602 gmp_prog_cc_works="no, program does not run" 7603 ;; 7604 esac 7605 fi 7606 7607 7608 7609 7610 if test "$gmp_prog_cc_works" = yes; then 7611 # remove anything that might look like compiler output to our "||" expression 7612 rm -f conftest* a.out b.out a.exe a_out.exe 7613 cat >conftest.c <<EOF 7614 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64 7615 (without -maix64), hence detecting an unusable compiler */ 7616 void *g() { return (void *) 0; } 7617 void *f() { return g(); } 7618 7619 int main () { return 0; } 7620 EOF 7621 echo "Test compile: function pointer return" >&5 7622 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 7623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7624 (eval $gmp_compile) 2>&5 7625 ac_status=$? 7626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7627 test $ac_status = 0; }; then 7628 cc_works_part=yes 7629 if test "$cross_compiling" = no; then 7630 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7632 (eval $ac_try) 2>&5 7633 ac_status=$? 7634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7635 test $ac_status = 0; }; }; then :; 7636 else 7637 cc_works_part=norun 7638 fi 7639 fi 7640 else 7641 cc_works_part=no 7642 fi 7643 if test "$cc_works_part" != yes; then 7644 echo "failed program was:" >&5 7645 cat conftest.c >&5 7646 fi 7647 rm -f conftest* a.out b.out a.exe a_out.exe 7648 case $cc_works_part in 7649 yes) 7650 7651 ;; 7652 no) 7653 gmp_prog_cc_works="no, function pointer return" 7654 ;; 7655 norun) 7656 gmp_prog_cc_works="no, function pointer return, program does not run" 7657 ;; 7658 esac 7659 fi 7660 7661 7662 7663 7664 if test "$gmp_prog_cc_works" = yes; then 7665 # remove anything that might look like compiler output to our "||" expression 7666 rm -f conftest* a.out b.out a.exe a_out.exe 7667 cat >conftest.c <<EOF 7668 /* The following provokes an invalid instruction syntax from i386 gcc 7669 -march=pentiumpro on Solaris 2.8. The native sun assembler 7670 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at 7671 least) doesn't know. */ 7672 int n; 7673 int cmov () { return (n >= 0 ? n : 0); } 7674 7675 int main () { return 0; } 7676 EOF 7677 echo "Test compile: cmov instruction" >&5 7678 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 7679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7680 (eval $gmp_compile) 2>&5 7681 ac_status=$? 7682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7683 test $ac_status = 0; }; then 7684 cc_works_part=yes 7685 if test "$cross_compiling" = no; then 7686 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7688 (eval $ac_try) 2>&5 7689 ac_status=$? 7690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7691 test $ac_status = 0; }; }; then :; 7692 else 7693 cc_works_part=norun 7694 fi 7695 fi 7696 else 7697 cc_works_part=no 7698 fi 7699 if test "$cc_works_part" != yes; then 7700 echo "failed program was:" >&5 7701 cat conftest.c >&5 7702 fi 7703 rm -f conftest* a.out b.out a.exe a_out.exe 7704 case $cc_works_part in 7705 yes) 7706 7707 ;; 7708 no) 7709 gmp_prog_cc_works="no, cmov instruction" 7710 ;; 7711 norun) 7712 gmp_prog_cc_works="no, cmov instruction, program does not run" 7713 ;; 7714 esac 7715 fi 7716 7717 7718 7719 7720 if test "$gmp_prog_cc_works" = yes; then 7721 # remove anything that might look like compiler output to our "||" expression 7722 rm -f conftest* a.out b.out a.exe a_out.exe 7723 cat >conftest.c <<EOF 7724 /* The following provokes a linker invocation problem with gcc 3.0.3 7725 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630 7726 option causes gcc to incorrectly select the 32-bit libgcc.a, not 7727 the 64-bit one, and consequently it misses out on the __fixunsdfdi 7728 helper (double -> uint64 conversion). */ 7729 double d; 7730 unsigned long gcc303 () { return (unsigned long) d; } 7731 7732 int main () { return 0; } 7733 EOF 7734 echo "Test compile: double -> ulong conversion" >&5 7735 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 7736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7737 (eval $gmp_compile) 2>&5 7738 ac_status=$? 7739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7740 test $ac_status = 0; }; then 7741 cc_works_part=yes 7742 if test "$cross_compiling" = no; then 7743 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7745 (eval $ac_try) 2>&5 7746 ac_status=$? 7747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7748 test $ac_status = 0; }; }; then :; 7749 else 7750 cc_works_part=norun 7751 fi 7752 fi 7753 else 7754 cc_works_part=no 7755 fi 7756 if test "$cc_works_part" != yes; then 7757 echo "failed program was:" >&5 7758 cat conftest.c >&5 7759 fi 7760 rm -f conftest* a.out b.out a.exe a_out.exe 7761 case $cc_works_part in 7762 yes) 7763 7764 ;; 7765 no) 7766 gmp_prog_cc_works="no, double -> ulong conversion" 7767 ;; 7768 norun) 7769 gmp_prog_cc_works="no, double -> ulong conversion, program does not run" 7770 ;; 7771 esac 7772 fi 7773 7774 7775 7776 7777 if test "$gmp_prog_cc_works" = yes; then 7778 # remove anything that might look like compiler output to our "||" expression 7779 rm -f conftest* a.out b.out a.exe a_out.exe 7780 cat >conftest.c <<EOF 7781 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if 7782 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0 7783 instruction, and a negation like this comes out using it. */ 7784 double fneg_data; 7785 unsigned long fneg () { return -fneg_data; } 7786 7787 int main () { return 0; } 7788 EOF 7789 echo "Test compile: double negation" >&5 7790 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 7791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7792 (eval $gmp_compile) 2>&5 7793 ac_status=$? 7794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7795 test $ac_status = 0; }; then 7796 cc_works_part=yes 7797 if test "$cross_compiling" = no; then 7798 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7800 (eval $ac_try) 2>&5 7801 ac_status=$? 7802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7803 test $ac_status = 0; }; }; then :; 7804 else 7805 cc_works_part=norun 7806 fi 7807 fi 7808 else 7809 cc_works_part=no 7810 fi 7811 if test "$cc_works_part" != yes; then 7812 echo "failed program was:" >&5 7813 cat conftest.c >&5 7814 fi 7815 rm -f conftest* a.out b.out a.exe a_out.exe 7816 case $cc_works_part in 7817 yes) 7818 7819 ;; 7820 no) 7821 gmp_prog_cc_works="no, double negation" 7822 ;; 7823 norun) 7824 gmp_prog_cc_works="no, double negation, program does not run" 7825 ;; 7826 esac 7827 fi 7828 7829 7830 7831 7832 if test "$gmp_prog_cc_works" = yes; then 7833 # remove anything that might look like compiler output to our "||" expression 7834 rm -f conftest* a.out b.out a.exe a_out.exe 7835 cat >conftest.c <<EOF 7836 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn 7837 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise 7838 those instructions. Not sure how much of the gmp code will come out 7839 wanting sse2, but it's easiest to reject an option we know is bad. */ 7840 double ftod_data; 7841 float ftod () { return (float) ftod_data; } 7842 7843 int main () { return 0; } 7844 EOF 7845 echo "Test compile: double -> float conversion" >&5 7846 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 7847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7848 (eval $gmp_compile) 2>&5 7849 ac_status=$? 7850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7851 test $ac_status = 0; }; then 7852 cc_works_part=yes 7853 if test "$cross_compiling" = no; then 7854 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7856 (eval $ac_try) 2>&5 7857 ac_status=$? 7858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7859 test $ac_status = 0; }; }; then :; 7860 else 7861 cc_works_part=norun 7862 fi 7863 fi 7864 else 7865 cc_works_part=no 7866 fi 7867 if test "$cc_works_part" != yes; then 7868 echo "failed program was:" >&5 7869 cat conftest.c >&5 7870 fi 7871 rm -f conftest* a.out b.out a.exe a_out.exe 7872 case $cc_works_part in 7873 yes) 7874 7875 ;; 7876 no) 7877 gmp_prog_cc_works="no, double -> float conversion" 7878 ;; 7879 norun) 7880 gmp_prog_cc_works="no, double -> float conversion, program does not run" 7881 ;; 7882 esac 7883 fi 7884 7885 7886 7887 7888 if test "$gmp_prog_cc_works" = yes; then 7889 # remove anything that might look like compiler output to our "||" expression 7890 rm -f conftest* a.out b.out a.exe a_out.exe 7891 cat >conftest.c <<EOF 7892 /* The following provokes an internal compiler error from gcc version 7893 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char 7894 values being spilled into floating point registers. The problem doesn't 7895 show up all the time, but has occurred enough in GMP for us to reject 7896 this compiler+flags. */ 7897 #include <string.h> /* for memcpy */ 7898 struct try_t 7899 { 7900 char dst[2]; 7901 char size; 7902 long d0, d1, d2, d3, d4, d5, d6; 7903 char overlap; 7904 }; 7905 struct try_t param[6]; 7906 int 7907 param_init () 7908 { 7909 struct try_t *p; 7910 memcpy (p, ¶m[ 2 ], sizeof (*p)); 7911 memcpy (p, ¶m[ 2 ], sizeof (*p)); 7912 p->size = 2; 7913 memcpy (p, ¶m[ 1 ], sizeof (*p)); 7914 p->dst[0] = 1; 7915 p->overlap = 2; 7916 memcpy (p, ¶m[ 3 ], sizeof (*p)); 7917 p->dst[0] = 1; 7918 p->overlap = 8; 7919 memcpy (p, ¶m[ 4 ], sizeof (*p)); 7920 memcpy (p, ¶m[ 4 ], sizeof (*p)); 7921 p->overlap = 8; 7922 memcpy (p, ¶m[ 5 ], sizeof (*p)); 7923 memcpy (p, ¶m[ 5 ], sizeof (*p)); 7924 memcpy (p, ¶m[ 5 ], sizeof (*p)); 7925 return 0; 7926 } 7927 7928 int main () { return 0; } 7929 EOF 7930 echo "Test compile: gnupro alpha ev6 char spilling" >&5 7931 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 7932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7933 (eval $gmp_compile) 2>&5 7934 ac_status=$? 7935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7936 test $ac_status = 0; }; then 7937 cc_works_part=yes 7938 if test "$cross_compiling" = no; then 7939 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7941 (eval $ac_try) 2>&5 7942 ac_status=$? 7943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7944 test $ac_status = 0; }; }; then :; 7945 else 7946 cc_works_part=norun 7947 fi 7948 fi 7949 else 7950 cc_works_part=no 7951 fi 7952 if test "$cc_works_part" != yes; then 7953 echo "failed program was:" >&5 7954 cat conftest.c >&5 7955 fi 7956 rm -f conftest* a.out b.out a.exe a_out.exe 7957 case $cc_works_part in 7958 yes) 7959 7960 ;; 7961 no) 7962 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling" 7963 ;; 7964 norun) 7965 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run" 7966 ;; 7967 esac 7968 fi 7969 7970 7971 7972 7973 # __builtin_alloca is not available everywhere, check it exists before 7974 # seeing that it works 7975 if test "$gmp_prog_cc_works" = yes; then 7976 # remove anything that might look like compiler output to our "||" expression 7977 rm -f conftest* a.out b.out a.exe a_out.exe 7978 cat >conftest.c <<EOF 7979 int k; int foo () { __builtin_alloca (k); } 7980 EOF 7981 echo "Test compile: __builtin_alloca availability" >&5 7982 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 7983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7984 (eval $gmp_compile) 2>&5 7985 ac_status=$? 7986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7987 test $ac_status = 0; }; then 7988 cc_works_part=yes 7989 if test "$cross_compiling" = no; then 7990 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7992 (eval $ac_try) 2>&5 7993 ac_status=$? 7994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7995 test $ac_status = 0; }; }; then :; 7996 else 7997 cc_works_part=norun 7998 fi 7999 fi 8000 else 8001 cc_works_part=no 8002 fi 8003 if test "$cc_works_part" != yes; then 8004 echo "failed program was:" >&5 8005 cat conftest.c >&5 8006 fi 8007 rm -f conftest* a.out b.out a.exe a_out.exe 8008 case $cc_works_part in 8009 yes) 8010 if test "$gmp_prog_cc_works" = yes; then 8011 # remove anything that might look like compiler output to our "||" expression 8012 rm -f conftest* a.out b.out a.exe a_out.exe 8013 cat >conftest.c <<EOF 8014 /* The following provokes an internal compiler error from Itanium HP-UX cc 8015 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */ 8016 int k; 8017 int foo () 8018 { 8019 int i, **a; 8020 a = __builtin_alloca (k); 8021 for (i = 0; i <= k; i++) 8022 a[i] = __builtin_alloca (1 << i); 8023 } 8024 8025 int main () { return 0; } 8026 EOF 8027 echo "Test compile: alloca array" >&5 8028 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 8029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 8030 (eval $gmp_compile) 2>&5 8031 ac_status=$? 8032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8033 test $ac_status = 0; }; then 8034 cc_works_part=yes 8035 if test "$cross_compiling" = no; then 8036 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 8037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 8038 (eval $ac_try) 2>&5 8039 ac_status=$? 8040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8041 test $ac_status = 0; }; }; then :; 8042 else 8043 cc_works_part=norun 8044 fi 8045 fi 8046 else 8047 cc_works_part=no 8048 fi 8049 if test "$cc_works_part" != yes; then 8050 echo "failed program was:" >&5 8051 cat conftest.c >&5 8052 fi 8053 rm -f conftest* a.out b.out a.exe a_out.exe 8054 case $cc_works_part in 8055 yes) 8056 8057 ;; 8058 no) 8059 gmp_prog_cc_works="no, alloca array" 8060 ;; 8061 norun) 8062 gmp_prog_cc_works="no, alloca array, program does not run" 8063 ;; 8064 esac 8065 fi 8066 8067 8068 8069 ;; 8070 no) 8071 8072 ;; 8073 norun) 8074 8075 ;; 8076 esac 8077 fi 8078 8079 8080 if test "$gmp_prog_cc_works" = yes; then 8081 # remove anything that might look like compiler output to our "||" expression 8082 rm -f conftest* a.out b.out a.exe a_out.exe 8083 cat >conftest.c <<EOF 8084 /* The following provokes an internal error from the assembler on 8085 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this 8086 results in "Internal error related to the source program domain". 8087 8088 For reference it seems to be the combination of nabs+fcirz which is bad, 8089 not either alone. This sort of thing occurs in mpz/get_str.c with the 8090 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps 8091 if that code changes to a scaled-integer style then we won't need this 8092 test. */ 8093 8094 double fp[1]; 8095 int x; 8096 int f () 8097 { 8098 int a; 8099 a = (x >= 0 ? x : -x); 8100 return a * fp[0]; 8101 } 8102 8103 int main () { return 0; } 8104 EOF 8105 echo "Test compile: abs int -> double conversion" >&5 8106 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 8107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 8108 (eval $gmp_compile) 2>&5 8109 ac_status=$? 8110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8111 test $ac_status = 0; }; then 8112 cc_works_part=yes 8113 if test "$cross_compiling" = no; then 8114 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 8115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 8116 (eval $ac_try) 2>&5 8117 ac_status=$? 8118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8119 test $ac_status = 0; }; }; then :; 8120 else 8121 cc_works_part=norun 8122 fi 8123 fi 8124 else 8125 cc_works_part=no 8126 fi 8127 if test "$cc_works_part" != yes; then 8128 echo "failed program was:" >&5 8129 cat conftest.c >&5 8130 fi 8131 rm -f conftest* a.out b.out a.exe a_out.exe 8132 case $cc_works_part in 8133 yes) 8134 8135 ;; 8136 no) 8137 gmp_prog_cc_works="no, abs int -> double conversion" 8138 ;; 8139 norun) 8140 gmp_prog_cc_works="no, abs int -> double conversion, program does not run" 8141 ;; 8142 esac 8143 fi 8144 8145 8146 8147 8148 if test "$gmp_prog_cc_works" = yes; then 8149 # remove anything that might look like compiler output to our "||" expression 8150 rm -f conftest* a.out b.out a.exe a_out.exe 8151 cat >conftest.c <<EOF 8152 /* The following provokes a segfault in the compiler on powerpc-apple-darwin. 8153 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and 8154 1666 to segfault with e.g., -O2 -mpowerpc64. */ 8155 8156 #if defined (__GNUC__) && ! defined (__cplusplus) 8157 typedef unsigned long long t1;typedef t1*t2; 8158 void g(){} 8159 void h(){} 8160 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0) 8161 {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;} 8162 void f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i; 8163 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();}} 8164 #else 8165 int dummy; 8166 #endif 8167 8168 int main () { return 0; } 8169 EOF 8170 echo "Test compile: long long reliability test 1" >&5 8171 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 8172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 8173 (eval $gmp_compile) 2>&5 8174 ac_status=$? 8175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8176 test $ac_status = 0; }; then 8177 cc_works_part=yes 8178 if test "$cross_compiling" = no; then 8179 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 8180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 8181 (eval $ac_try) 2>&5 8182 ac_status=$? 8183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8184 test $ac_status = 0; }; }; then :; 8185 else 8186 cc_works_part=norun 8187 fi 8188 fi 8189 else 8190 cc_works_part=no 8191 fi 8192 if test "$cc_works_part" != yes; then 8193 echo "failed program was:" >&5 8194 cat conftest.c >&5 8195 fi 8196 rm -f conftest* a.out b.out a.exe a_out.exe 8197 case $cc_works_part in 8198 yes) 8199 8200 ;; 8201 no) 8202 gmp_prog_cc_works="no, long long reliability test 1" 8203 ;; 8204 norun) 8205 gmp_prog_cc_works="no, long long reliability test 1, program does not run" 8206 ;; 8207 esac 8208 fi 8209 8210 8211 8212 8213 if test "$gmp_prog_cc_works" = yes; then 8214 # remove anything that might look like compiler output to our "||" expression 8215 rm -f conftest* a.out b.out a.exe a_out.exe 8216 cat >conftest.c <<EOF 8217 /* The following provokes an internal compiler error on powerpc-apple-darwin. 8218 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and 8219 1666 to get an ICE with -O1 -mpowerpc64. */ 8220 8221 #if defined (__GNUC__) && ! defined (__cplusplus) 8222 int g(); 8223 void 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();} 8224 int g(){return 0;} 8225 #else 8226 int dummy; 8227 #endif 8228 8229 int main () { return 0; } 8230 EOF 8231 echo "Test compile: long long reliability test 2" >&5 8232 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 8233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 8234 (eval $gmp_compile) 2>&5 8235 ac_status=$? 8236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8237 test $ac_status = 0; }; then 8238 cc_works_part=yes 8239 if test "$cross_compiling" = no; then 8240 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 8241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 8242 (eval $ac_try) 2>&5 8243 ac_status=$? 8244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8245 test $ac_status = 0; }; }; then :; 8246 else 8247 cc_works_part=norun 8248 fi 8249 fi 8250 else 8251 cc_works_part=no 8252 fi 8253 if test "$cc_works_part" != yes; then 8254 echo "failed program was:" >&5 8255 cat conftest.c >&5 8256 fi 8257 rm -f conftest* a.out b.out a.exe a_out.exe 8258 case $cc_works_part in 8259 yes) 8260 8261 ;; 8262 no) 8263 gmp_prog_cc_works="no, long long reliability test 2" 8264 ;; 8265 norun) 8266 gmp_prog_cc_works="no, long long reliability test 2, program does not run" 8267 ;; 8268 esac 8269 fi 8270 8271 8272 8273 8274 if test "$gmp_prog_cc_works" = yes; then 8275 # remove anything that might look like compiler output to our "||" expression 8276 rm -f conftest* a.out b.out a.exe a_out.exe 8277 cat >conftest.c <<EOF 8278 /* Provokes an ICE on i386-freebsd with the FreeBSD-hacked gcc, under 8279 -O2 -march=amdfam10. We call helper functions here "open" and "close" in 8280 order for linking to succeed. */ 8281 8282 #if defined (__GNUC__) && ! defined (__cplusplus) 8283 int open(int*,int*,int);void*close(int);void g(int*rp,int*up,int un){ 8284 __builtin_expect(un<=0x7f00,1)?__builtin_alloca(un):close(un);if(__builtin_clzl 8285 (up[un])){open(rp,up,un);while(1){if(rp[un-1]!=0)break;un--;}}} 8286 #else 8287 int dummy; 8288 #endif 8289 8290 int main () { return 0; } 8291 EOF 8292 echo "Test compile: freebsd hacked gcc" >&5 8293 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 8294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 8295 (eval $gmp_compile) 2>&5 8296 ac_status=$? 8297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8298 test $ac_status = 0; }; then 8299 cc_works_part=yes 8300 if test "$cross_compiling" = no; then 8301 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 8302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 8303 (eval $ac_try) 2>&5 8304 ac_status=$? 8305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8306 test $ac_status = 0; }; }; then :; 8307 else 8308 cc_works_part=norun 8309 fi 8310 fi 8311 else 8312 cc_works_part=no 8313 fi 8314 if test "$cc_works_part" != yes; then 8315 echo "failed program was:" >&5 8316 cat conftest.c >&5 8317 fi 8318 rm -f conftest* a.out b.out a.exe a_out.exe 8319 case $cc_works_part in 8320 yes) 8321 8322 ;; 8323 no) 8324 gmp_prog_cc_works="no, freebsd hacked gcc" 8325 ;; 8326 norun) 8327 gmp_prog_cc_works="no, freebsd hacked gcc, program does not run" 8328 ;; 8329 esac 8330 fi 8331 8332 8333 8334 8335 if test "$gmp_prog_cc_works" = yes; then 8336 # remove anything that might look like compiler output to our "||" expression 8337 rm -f conftest* a.out b.out a.exe a_out.exe 8338 cat >conftest.c <<EOF 8339 /* The following is mis-compiled by HP ia-64 cc version 8340 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003] 8341 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets 8342 inlined and its return value somehow botched to be 0 instead of 1. This 8343 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization 8344 level, like +O2 seems ok. This code needs to be run to show the problem, 8345 but that's fine, the offending cc is a native-only compiler so we don't 8346 have to worry about cross compiling. */ 8347 8348 #if ! defined (__cplusplus) 8349 unsigned long 8350 lshift_com (rp, up, n, cnt) 8351 unsigned long *rp; 8352 unsigned long *up; 8353 long n; 8354 unsigned cnt; 8355 { 8356 unsigned long retval, high_limb, low_limb; 8357 unsigned tnc; 8358 long i; 8359 tnc = 8 * sizeof (unsigned long) - cnt; 8360 low_limb = *up++; 8361 retval = low_limb >> tnc; 8362 high_limb = low_limb << cnt; 8363 for (i = n - 1; i != 0; i--) 8364 { 8365 low_limb = *up++; 8366 *rp++ = ~(high_limb | (low_limb >> tnc)); 8367 high_limb = low_limb << cnt; 8368 } 8369 return retval; 8370 } 8371 int 8372 main () 8373 { 8374 unsigned long cy, rp[2], up[2]; 8375 up[0] = ~ 0L; 8376 up[1] = 0; 8377 cy = lshift_com (rp, up, 2L, 1); 8378 if (cy != 1L) 8379 return 1; 8380 return 0; 8381 } 8382 #else 8383 int 8384 main () 8385 { 8386 return 0; 8387 } 8388 #endif 8389 8390 EOF 8391 echo "Test compile: mpn_lshift_com optimization" >&5 8392 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 8393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 8394 (eval $gmp_compile) 2>&5 8395 ac_status=$? 8396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8397 test $ac_status = 0; }; then 8398 cc_works_part=yes 8399 if test "$cross_compiling" = no; then 8400 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 8401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 8402 (eval $ac_try) 2>&5 8403 ac_status=$? 8404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8405 test $ac_status = 0; }; }; then :; 8406 else 8407 cc_works_part=norun 8408 fi 8409 fi 8410 else 8411 cc_works_part=no 8412 fi 8413 if test "$cc_works_part" != yes; then 8414 echo "failed program was:" >&5 8415 cat conftest.c >&5 8416 fi 8417 rm -f conftest* a.out b.out a.exe a_out.exe 8418 case $cc_works_part in 8419 yes) 8420 8421 ;; 8422 no) 8423 gmp_prog_cc_works="no, mpn_lshift_com optimization" 8424 ;; 8425 norun) 8426 gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run" 8427 ;; 8428 esac 8429 fi 8430 8431 8432 8433 if test "$gmp_prog_cc_works" = yes; then 8434 # remove anything that might look like compiler output to our "||" expression 8435 rm -f conftest* a.out b.out a.exe a_out.exe 8436 cat >conftest.c <<EOF 8437 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under 8438 "icc -O3", After several calls, the function writes partial garbage to 8439 the result vector. Perhaps relates to the chk.a.nc insn. This code needs 8440 to be run to show the problem, but that's fine, the offending cc is a 8441 native-only compiler so we don't have to worry about cross compiling. */ 8442 8443 #if ! defined (__cplusplus) 8444 #include <stdlib.h> 8445 void 8446 lshift_com (rp, up, n, cnt) 8447 unsigned long *rp; 8448 unsigned long *up; 8449 long n; 8450 unsigned cnt; 8451 { 8452 unsigned long high_limb, low_limb; 8453 unsigned tnc; 8454 long i; 8455 up += n; 8456 rp += n; 8457 tnc = 8 * sizeof (unsigned long) - cnt; 8458 low_limb = *--up; 8459 high_limb = low_limb << cnt; 8460 for (i = n - 1; i != 0; i--) 8461 { 8462 low_limb = *--up; 8463 *--rp = ~(high_limb | (low_limb >> tnc)); 8464 high_limb = low_limb << cnt; 8465 } 8466 *--rp = ~high_limb; 8467 } 8468 int 8469 main () 8470 { 8471 unsigned long *r, *r2; 8472 unsigned long a[88 + 1]; 8473 long i; 8474 for (i = 0; i < 88 + 1; i++) 8475 a[i] = ~0L; 8476 r = calloc (10000, sizeof (unsigned long)); 8477 r2 = r; 8478 for (i = 0; i < 528; i += 23) 8479 { 8480 lshift_com (r2, a, 8481 i / (8 * sizeof (unsigned long)) + 1, 8482 i % (8 * sizeof (unsigned long))); 8483 r2 += 88 + 1; 8484 } 8485 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 || 8486 r[2052] != 0 || r[2053] != 0 || r[2054] != 0) 8487 abort (); 8488 free (r); 8489 return 0; 8490 } 8491 #else 8492 int 8493 main () 8494 { 8495 return 0; 8496 } 8497 #endif 8498 8499 EOF 8500 echo "Test compile: mpn_lshift_com optimization 2" >&5 8501 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 8502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 8503 (eval $gmp_compile) 2>&5 8504 ac_status=$? 8505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8506 test $ac_status = 0; }; then 8507 cc_works_part=yes 8508 if test "$cross_compiling" = no; then 8509 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 8510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 8511 (eval $ac_try) 2>&5 8512 ac_status=$? 8513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8514 test $ac_status = 0; }; }; then :; 8515 else 8516 cc_works_part=norun 8517 fi 8518 fi 8519 else 8520 cc_works_part=no 8521 fi 8522 if test "$cc_works_part" != yes; then 8523 echo "failed program was:" >&5 8524 cat conftest.c >&5 8525 fi 8526 rm -f conftest* a.out b.out a.exe a_out.exe 8527 case $cc_works_part in 8528 yes) 8529 8530 ;; 8531 no) 8532 gmp_prog_cc_works="no, mpn_lshift_com optimization 2" 8533 ;; 8534 norun) 8535 gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run" 8536 ;; 8537 esac 8538 fi 8539 8540 8541 8542 8543 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled 8544 # by recent versions of gcc. 8545 # 8546 if test "$gmp_prog_cc_works" = yes; then 8547 case $host in 8548 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*) 8549 # this problem only arises in PIC code, so don't need to test when 8550 # --disable-shared. We don't necessarily have $enable_shared set to 8551 # yes at this point, it will still be unset for the default (which is 8552 # yes); hence the use of "!= no". 8553 if test "$enable_shared" != no; then 8554 echo "Testing gcc GOT with eax emitted" >&5 8555 cat >conftest.c <<\EOF 8556 int foo; 8557 int bar () { return foo; } 8558 EOF 8559 tmp_got_emitted=no 8560 gmp_compile="$cc $cflags $cppflags $flag -fPIC -S conftest.c >&5 2>&1" 8561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 8562 (eval $gmp_compile) 2>&5 8563 ac_status=$? 8564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8565 test $ac_status = 0; }; then 8566 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then 8567 tmp_got_emitted=yes 8568 fi 8569 fi 8570 rm -f conftest.* 8571 echo "Result: $tmp_got_emitted" >&5 8572 if test "$tmp_got_emitted" = yes; then 8573 echo "Testing gas GOT with eax good" >&5 8574 cat >conftest.awk <<\EOF 8575 BEGIN { 8576 want[0] = "001" 8577 want[1] = "043" 8578 want[2] = "105" 8579 want[3] = "147" 8580 want[4] = "211" 8581 want[5] = "253" 8582 want[6] = "315" 8583 want[7] = "357" 8584 8585 want[8] = "005" 8586 want[9] = "002" 8587 want[10] = "000" 8588 want[11] = "000" 8589 want[12] = "000" 8590 8591 want[13] = "376" 8592 want[14] = "334" 8593 want[15] = "272" 8594 want[16] = "230" 8595 want[17] = "166" 8596 want[18] = "124" 8597 want[19] = "062" 8598 want[20] = "020" 8599 8600 result = "yes" 8601 } 8602 { 8603 for (f = 2; f <= NF; f++) 8604 { 8605 for (i = 0; i < 20; i++) 8606 got[i] = got[i+1]; 8607 got[20] = $f; 8608 8609 found = 1 8610 for (i = 0; i < 21; i++) 8611 if (got[i] != want[i]) 8612 { 8613 found = 0 8614 break 8615 } 8616 if (found) 8617 { 8618 result = "no" 8619 exit 8620 } 8621 } 8622 } 8623 END { 8624 print result 8625 } 8626 EOF 8627 cat >conftest.s <<\EOF 8628 .text 8629 .byte 1, 35, 69, 103, 137, 171, 205, 239 8630 addl $_GLOBAL_OFFSET_TABLE_, %eax 8631 .byte 254, 220, 186, 152, 118, 84, 50, 16 8632 EOF 8633 tmp_got_good=yes 8634 gmp_compile="$cc $cflags $cppflags $flag -fPIC -o conftest.o -c conftest.s >&5 2>&1" 8635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 8636 (eval $gmp_compile) 2>&5 8637 ac_status=$? 8638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8639 test $ac_status = 0; }; then 8640 tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk` 8641 fi 8642 rm -f conftest.* 8643 echo "Result: $tmp_got_good" >&5 8644 if test "$tmp_got_good" = no; then 8645 gmp_prog_cc_works="no, bad gas GOT with eax" 8646 else 8647 : 8648 fi 8649 8650 else 8651 : 8652 fi 8653 8654 fi 8655 ;; 8656 esac 8657 fi 8658 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5 8660 $as_echo "$gmp_prog_cc_works" >&6; } 8661 case $gmp_prog_cc_works in 8662 yes) 8663 cflags="$cflags $flag" 8664 break 8665 ;; 8666 *) 8667 8668 ;; 8669 esac 8670 8671 done 8672 done 8673 fi 8674 8675 ABI="$abi" 8676 CC="$cc" 8677 CFLAGS="$cflags" 8678 CPPFLAGS="$cppflags" 8679 8680 # Could easily have this in config.h too, if desired. 8681 ABI_nodots=`echo $ABI | sed 's/\./_/'` 8682 8683 echo "define_not_for_expansion(\`HAVE_ABI_$ABI_nodots')" >> $gmp_tmpconfigm4p 8684 8685 8686 eval GMP_NONSTD_ABI=\"\$GMP_NONSTD_ABI_$ABI_nodots\" 8687 8688 # GMP_LDFLAGS substitution, selected according to ABI. 8689 # These are needed on libgmp.la and libmp.la, but currently not on 8690 # convenience libraries like tune/libspeed.la or mpz/libmpz.la. 8691 # 8692 eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\" 8693 test -n "$GMP_LDFLAGS" || eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\" 8694 8695 8696 8697 8698 # extra_functions, selected according to ABI 8699 eval tmp=\"\$extra_functions$abi1\" 8700 test -n "$tmp" || eval tmp=\"\$extra_functions$abi2\" 8701 extra_functions="$tmp" 8702 8703 8704 # Cycle counter, selected according to ABI. 8705 # 8706 eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi1\" 8707 test -n "$tmp" || eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi2\" 8708 SPEED_CYCLECOUNTER_OBJ="$tmp" 8709 eval tmp=\"\$cyclecounter_size$abi1\" 8710 test -n "$tmp" || eval tmp=\"\$cyclecounter_size$abi2\" 8711 cyclecounter_size="$tmp" 8712 8713 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then 8714 8715 cat >>confdefs.h <<_ACEOF 8716 #define HAVE_SPEED_CYCLECOUNTER $cyclecounter_size 8717 _ACEOF 8718 8719 fi 8720 8721 8722 8723 # Calling conventions checking, selected according to ABI. 8724 # 8725 eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi1\" 8726 test -n "$tmp" || eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi2\" 8727 if test "$enable_assembly" = "yes"; then 8728 CALLING_CONVENTIONS_OBJS="$tmp" 8729 else 8730 CALLING_CONVENTIONS_OBJS="" 8731 fi 8732 8733 if test -n "$CALLING_CONVENTIONS_OBJS"; then 8734 8735 $as_echo "#define HAVE_CALLING_CONVENTIONS 1" >>confdefs.h 8736 8737 fi 8738 8739 8740 fi 8741 8742 8743 # If the user gave an MPN_PATH, use that verbatim, otherwise choose 8744 # according to the ABI and add "generic". 8745 # 8746 if test -n "$MPN_PATH"; then 8747 path="$MPN_PATH" 8748 else 8749 eval tmp=\"\$path$abi1\" 8750 test -n "$tmp" || eval tmp=\"\$path$abi2\" 8751 path="$tmp generic" 8752 fi 8753 8754 8755 # Long long limb setup for gmp.h. 8756 case $limb_chosen in 8757 longlong) DEFN_LONG_LONG_LIMB="#define _LONG_LONG_LIMB 1" ;; 8758 *) DEFN_LONG_LONG_LIMB="/* #undef _LONG_LONG_LIMB */" ;; 8759 esac 8760 8761 8762 8763 # The C compiler and preprocessor, put into ANSI mode if possible. 8764 ac_ext=c 8765 ac_cpp='$CPP $CPPFLAGS' 8766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8768 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8769 if test -n "$ac_tool_prefix"; then 8770 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 8771 set dummy ${ac_tool_prefix}gcc; ac_word=$2 8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8773 $as_echo_n "checking for $ac_word... " >&6; } 8774 if ${ac_cv_prog_CC+:} false; then : 8775 $as_echo_n "(cached) " >&6 8776 else 8777 if test -n "$CC"; then 8778 ac_cv_prog_CC="$CC" # Let the user override the test. 8779 else 8780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8781 for as_dir in $PATH 8782 do 8783 IFS=$as_save_IFS 8784 test -z "$as_dir" && as_dir=. 8785 for ac_exec_ext in '' $ac_executable_extensions; do 8786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8787 ac_cv_prog_CC="${ac_tool_prefix}gcc" 8788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8789 break 2 8790 fi 8791 done 8792 done 8793 IFS=$as_save_IFS 8794 8795 fi 8796 fi 8797 CC=$ac_cv_prog_CC 8798 if test -n "$CC"; then 8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 8800 $as_echo "$CC" >&6; } 8801 else 8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8803 $as_echo "no" >&6; } 8804 fi 8805 8806 8807 fi 8808 if test -z "$ac_cv_prog_CC"; then 8809 ac_ct_CC=$CC 8810 # Extract the first word of "gcc", so it can be a program name with args. 8811 set dummy gcc; ac_word=$2 8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8813 $as_echo_n "checking for $ac_word... " >&6; } 8814 if ${ac_cv_prog_ac_ct_CC+:} false; then : 8815 $as_echo_n "(cached) " >&6 8816 else 8817 if test -n "$ac_ct_CC"; then 8818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 8819 else 8820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8821 for as_dir in $PATH 8822 do 8823 IFS=$as_save_IFS 8824 test -z "$as_dir" && as_dir=. 8825 for ac_exec_ext in '' $ac_executable_extensions; do 8826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8827 ac_cv_prog_ac_ct_CC="gcc" 8828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8829 break 2 8830 fi 8831 done 8832 done 8833 IFS=$as_save_IFS 8834 8835 fi 8836 fi 8837 ac_ct_CC=$ac_cv_prog_ac_ct_CC 8838 if test -n "$ac_ct_CC"; then 8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 8840 $as_echo "$ac_ct_CC" >&6; } 8841 else 8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8843 $as_echo "no" >&6; } 8844 fi 8845 8846 if test "x$ac_ct_CC" = x; then 8847 CC="" 8848 else 8849 case $cross_compiling:$ac_tool_warned in 8850 yes:) 8851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8853 ac_tool_warned=yes ;; 8854 esac 8855 CC=$ac_ct_CC 8856 fi 8857 else 8858 CC="$ac_cv_prog_CC" 8859 fi 8860 8861 if test -z "$CC"; then 8862 if test -n "$ac_tool_prefix"; then 8863 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 8864 set dummy ${ac_tool_prefix}cc; ac_word=$2 8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8866 $as_echo_n "checking for $ac_word... " >&6; } 8867 if ${ac_cv_prog_CC+:} false; then : 8868 $as_echo_n "(cached) " >&6 8869 else 8870 if test -n "$CC"; then 8871 ac_cv_prog_CC="$CC" # Let the user override the test. 8872 else 8873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8874 for as_dir in $PATH 8875 do 8876 IFS=$as_save_IFS 8877 test -z "$as_dir" && as_dir=. 8878 for ac_exec_ext in '' $ac_executable_extensions; do 8879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8880 ac_cv_prog_CC="${ac_tool_prefix}cc" 8881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8882 break 2 8883 fi 8884 done 8885 done 8886 IFS=$as_save_IFS 8887 8888 fi 8889 fi 8890 CC=$ac_cv_prog_CC 8891 if test -n "$CC"; then 8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 8893 $as_echo "$CC" >&6; } 8894 else 8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8896 $as_echo "no" >&6; } 8897 fi 8898 8899 8900 fi 8901 fi 8902 if test -z "$CC"; then 8903 # Extract the first word of "cc", so it can be a program name with args. 8904 set dummy cc; ac_word=$2 8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8906 $as_echo_n "checking for $ac_word... " >&6; } 8907 if ${ac_cv_prog_CC+:} false; then : 8908 $as_echo_n "(cached) " >&6 8909 else 8910 if test -n "$CC"; then 8911 ac_cv_prog_CC="$CC" # Let the user override the test. 8912 else 8913 ac_prog_rejected=no 8914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8915 for as_dir in $PATH 8916 do 8917 IFS=$as_save_IFS 8918 test -z "$as_dir" && as_dir=. 8919 for ac_exec_ext in '' $ac_executable_extensions; do 8920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8921 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 8922 ac_prog_rejected=yes 8923 continue 8924 fi 8925 ac_cv_prog_CC="cc" 8926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8927 break 2 8928 fi 8929 done 8930 done 8931 IFS=$as_save_IFS 8932 8933 if test $ac_prog_rejected = yes; then 8934 # We found a bogon in the path, so make sure we never use it. 8935 set dummy $ac_cv_prog_CC 8936 shift 8937 if test $# != 0; then 8938 # We chose a different compiler from the bogus one. 8939 # However, it has the same basename, so the bogon will be chosen 8940 # first if we set CC to just the basename; use the full file name. 8941 shift 8942 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 8943 fi 8944 fi 8945 fi 8946 fi 8947 CC=$ac_cv_prog_CC 8948 if test -n "$CC"; then 8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 8950 $as_echo "$CC" >&6; } 8951 else 8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8953 $as_echo "no" >&6; } 8954 fi 8955 8956 8957 fi 8958 if test -z "$CC"; then 8959 if test -n "$ac_tool_prefix"; then 8960 for ac_prog in cl.exe 8961 do 8962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8965 $as_echo_n "checking for $ac_word... " >&6; } 8966 if ${ac_cv_prog_CC+:} false; then : 8967 $as_echo_n "(cached) " >&6 8968 else 8969 if test -n "$CC"; then 8970 ac_cv_prog_CC="$CC" # Let the user override the test. 8971 else 8972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8973 for as_dir in $PATH 8974 do 8975 IFS=$as_save_IFS 8976 test -z "$as_dir" && as_dir=. 8977 for ac_exec_ext in '' $ac_executable_extensions; do 8978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8979 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 8980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8981 break 2 8982 fi 8983 done 8984 done 8985 IFS=$as_save_IFS 8986 8987 fi 8988 fi 8989 CC=$ac_cv_prog_CC 8990 if test -n "$CC"; then 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 8992 $as_echo "$CC" >&6; } 8993 else 8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8995 $as_echo "no" >&6; } 8996 fi 8997 8998 8999 test -n "$CC" && break 9000 done 9001 fi 9002 if test -z "$CC"; then 9003 ac_ct_CC=$CC 9004 for ac_prog in cl.exe 9005 do 9006 # Extract the first word of "$ac_prog", so it can be a program name with args. 9007 set dummy $ac_prog; ac_word=$2 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9009 $as_echo_n "checking for $ac_word... " >&6; } 9010 if ${ac_cv_prog_ac_ct_CC+:} false; then : 9011 $as_echo_n "(cached) " >&6 9012 else 9013 if test -n "$ac_ct_CC"; then 9014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 9015 else 9016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9017 for as_dir in $PATH 9018 do 9019 IFS=$as_save_IFS 9020 test -z "$as_dir" && as_dir=. 9021 for ac_exec_ext in '' $ac_executable_extensions; do 9022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9023 ac_cv_prog_ac_ct_CC="$ac_prog" 9024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9025 break 2 9026 fi 9027 done 9028 done 9029 IFS=$as_save_IFS 9030 9031 fi 9032 fi 9033 ac_ct_CC=$ac_cv_prog_ac_ct_CC 9034 if test -n "$ac_ct_CC"; then 9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 9036 $as_echo "$ac_ct_CC" >&6; } 9037 else 9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9039 $as_echo "no" >&6; } 9040 fi 9041 9042 9043 test -n "$ac_ct_CC" && break 9044 done 9045 9046 if test "x$ac_ct_CC" = x; then 9047 CC="" 9048 else 9049 case $cross_compiling:$ac_tool_warned in 9050 yes:) 9051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9053 ac_tool_warned=yes ;; 9054 esac 9055 CC=$ac_ct_CC 9056 fi 9057 fi 9058 9059 fi 9060 9061 9062 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9064 as_fn_error $? "no acceptable C compiler found in \$PATH 9065 See \`config.log' for more details" "$LINENO" 5; } 9066 9067 # Provide some information about the compiler. 9068 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 9069 set X $ac_compile 9070 ac_compiler=$2 9071 for ac_option in --version -v -V -qversion; do 9072 { { ac_try="$ac_compiler $ac_option >&5" 9073 case "(($ac_try" in 9074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9075 *) ac_try_echo=$ac_try;; 9076 esac 9077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 9078 $as_echo "$ac_try_echo"; } >&5 9079 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 9080 ac_status=$? 9081 if test -s conftest.err; then 9082 sed '10a\ 9083 ... rest of stderr output deleted ... 9084 10q' conftest.err >conftest.er1 9085 cat conftest.er1 >&5 9086 fi 9087 rm -f conftest.er1 conftest.err 9088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9089 test $ac_status = 0; } 9090 done 9091 9092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9093 /* end confdefs.h. */ 9094 9095 int 9096 main () 9097 { 9098 9099 ; 9100 return 0; 9101 } 9102 _ACEOF 9103 ac_clean_files_save=$ac_clean_files 9104 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 9105 # Try to create an executable without -o first, disregard a.out. 9106 # It will help us diagnose broken compilers, and finding out an intuition 9107 # of exeext. 9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 9109 $as_echo_n "checking whether the C compiler works... " >&6; } 9110 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 9111 9112 # The possible output files: 9113 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 9114 9115 ac_rmfiles= 9116 for ac_file in $ac_files 9117 do 9118 case $ac_file in 9119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 9120 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 9121 esac 9122 done 9123 rm -f $ac_rmfiles 9124 9125 if { { ac_try="$ac_link_default" 9126 case "(($ac_try" in 9127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9128 *) ac_try_echo=$ac_try;; 9129 esac 9130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 9131 $as_echo "$ac_try_echo"; } >&5 9132 (eval "$ac_link_default") 2>&5 9133 ac_status=$? 9134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9135 test $ac_status = 0; }; then : 9136 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 9137 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 9138 # in a Makefile. We should not override ac_cv_exeext if it was cached, 9139 # so that the user can short-circuit this test for compilers unknown to 9140 # Autoconf. 9141 for ac_file in $ac_files '' 9142 do 9143 test -f "$ac_file" || continue 9144 case $ac_file in 9145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 9146 ;; 9147 [ab].out ) 9148 # We found the default executable, but exeext='' is most 9149 # certainly right. 9150 break;; 9151 *.* ) 9152 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 9153 then :; else 9154 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 9155 fi 9156 # We set ac_cv_exeext here because the later test for it is not 9157 # safe: cross compilers may not add the suffix if given an `-o' 9158 # argument, so we may need to know it at that point already. 9159 # Even if this section looks crufty: it has the advantage of 9160 # actually working. 9161 break;; 9162 * ) 9163 break;; 9164 esac 9165 done 9166 test "$ac_cv_exeext" = no && ac_cv_exeext= 9167 9168 else 9169 ac_file='' 9170 fi 9171 if test -z "$ac_file"; then : 9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9173 $as_echo "no" >&6; } 9174 $as_echo "$as_me: failed program was:" >&5 9175 sed 's/^/| /' conftest.$ac_ext >&5 9176 9177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9179 as_fn_error 77 "C compiler cannot create executables 9180 See \`config.log' for more details" "$LINENO" 5; } 9181 else 9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9183 $as_echo "yes" >&6; } 9184 fi 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 9186 $as_echo_n "checking for C compiler default output file name... " >&6; } 9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 9188 $as_echo "$ac_file" >&6; } 9189 ac_exeext=$ac_cv_exeext 9190 9191 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 9192 ac_clean_files=$ac_clean_files_save 9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 9194 $as_echo_n "checking for suffix of executables... " >&6; } 9195 if { { ac_try="$ac_link" 9196 case "(($ac_try" in 9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9198 *) ac_try_echo=$ac_try;; 9199 esac 9200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 9201 $as_echo "$ac_try_echo"; } >&5 9202 (eval "$ac_link") 2>&5 9203 ac_status=$? 9204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9205 test $ac_status = 0; }; then : 9206 # If both `conftest.exe' and `conftest' are `present' (well, observable) 9207 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 9208 # work properly (i.e., refer to `conftest.exe'), while it won't with 9209 # `rm'. 9210 for ac_file in conftest.exe conftest conftest.*; do 9211 test -f "$ac_file" || continue 9212 case $ac_file in 9213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 9214 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 9215 break;; 9216 * ) break;; 9217 esac 9218 done 9219 else 9220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9222 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 9223 See \`config.log' for more details" "$LINENO" 5; } 9224 fi 9225 rm -f conftest conftest$ac_cv_exeext 9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 9227 $as_echo "$ac_cv_exeext" >&6; } 9228 9229 rm -f conftest.$ac_ext 9230 EXEEXT=$ac_cv_exeext 9231 ac_exeext=$EXEEXT 9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9233 /* end confdefs.h. */ 9234 #include <stdio.h> 9235 int 9236 main () 9237 { 9238 FILE *f = fopen ("conftest.out", "w"); 9239 return ferror (f) || fclose (f) != 0; 9240 9241 ; 9242 return 0; 9243 } 9244 _ACEOF 9245 ac_clean_files="$ac_clean_files conftest.out" 9246 # Check that the compiler produces executables we can run. If not, either 9247 # the compiler is broken, or we cross compile. 9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 9249 $as_echo_n "checking whether we are cross compiling... " >&6; } 9250 if test "$cross_compiling" != yes; then 9251 { { ac_try="$ac_link" 9252 case "(($ac_try" in 9253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9254 *) ac_try_echo=$ac_try;; 9255 esac 9256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 9257 $as_echo "$ac_try_echo"; } >&5 9258 (eval "$ac_link") 2>&5 9259 ac_status=$? 9260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9261 test $ac_status = 0; } 9262 if { ac_try='./conftest$ac_cv_exeext' 9263 { { case "(($ac_try" in 9264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9265 *) ac_try_echo=$ac_try;; 9266 esac 9267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 9268 $as_echo "$ac_try_echo"; } >&5 9269 (eval "$ac_try") 2>&5 9270 ac_status=$? 9271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9272 test $ac_status = 0; }; }; then 9273 cross_compiling=no 9274 else 9275 if test "$cross_compiling" = maybe; then 9276 cross_compiling=yes 9277 else 9278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9280 as_fn_error $? "cannot run C compiled programs. 9281 If you meant to cross compile, use \`--host'. 9282 See \`config.log' for more details" "$LINENO" 5; } 9283 fi 9284 fi 9285 fi 9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 9287 $as_echo "$cross_compiling" >&6; } 9288 9289 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 9290 ac_clean_files=$ac_clean_files_save 9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 9292 $as_echo_n "checking for suffix of object files... " >&6; } 9293 if ${ac_cv_objext+:} false; then : 9294 $as_echo_n "(cached) " >&6 9295 else 9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9297 /* end confdefs.h. */ 9298 9299 int 9300 main () 9301 { 9302 9303 ; 9304 return 0; 9305 } 9306 _ACEOF 9307 rm -f conftest.o conftest.obj 9308 if { { ac_try="$ac_compile" 9309 case "(($ac_try" in 9310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9311 *) ac_try_echo=$ac_try;; 9312 esac 9313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 9314 $as_echo "$ac_try_echo"; } >&5 9315 (eval "$ac_compile") 2>&5 9316 ac_status=$? 9317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9318 test $ac_status = 0; }; then : 9319 for ac_file in conftest.o conftest.obj conftest.*; do 9320 test -f "$ac_file" || continue; 9321 case $ac_file in 9322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 9323 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 9324 break;; 9325 esac 9326 done 9327 else 9328 $as_echo "$as_me: failed program was:" >&5 9329 sed 's/^/| /' conftest.$ac_ext >&5 9330 9331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9333 as_fn_error $? "cannot compute suffix of object files: cannot compile 9334 See \`config.log' for more details" "$LINENO" 5; } 9335 fi 9336 rm -f conftest.$ac_cv_objext conftest.$ac_ext 9337 fi 9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 9339 $as_echo "$ac_cv_objext" >&6; } 9340 OBJEXT=$ac_cv_objext 9341 ac_objext=$OBJEXT 9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 9343 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 9344 if ${ac_cv_c_compiler_gnu+:} false; then : 9345 $as_echo_n "(cached) " >&6 9346 else 9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9348 /* end confdefs.h. */ 9349 9350 int 9351 main () 9352 { 9353 #ifndef __GNUC__ 9354 choke me 9355 #endif 9356 9357 ; 9358 return 0; 9359 } 9360 _ACEOF 9361 if ac_fn_c_try_compile "$LINENO"; then : 9362 ac_compiler_gnu=yes 9363 else 9364 ac_compiler_gnu=no 9365 fi 9366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9367 ac_cv_c_compiler_gnu=$ac_compiler_gnu 9368 9369 fi 9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 9371 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 9372 if test $ac_compiler_gnu = yes; then 9373 GCC=yes 9374 else 9375 GCC= 9376 fi 9377 ac_test_CFLAGS=${CFLAGS+set} 9378 ac_save_CFLAGS=$CFLAGS 9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 9380 $as_echo_n "checking whether $CC accepts -g... " >&6; } 9381 if ${ac_cv_prog_cc_g+:} false; then : 9382 $as_echo_n "(cached) " >&6 9383 else 9384 ac_save_c_werror_flag=$ac_c_werror_flag 9385 ac_c_werror_flag=yes 9386 ac_cv_prog_cc_g=no 9387 CFLAGS="-g" 9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9389 /* end confdefs.h. */ 9390 9391 int 9392 main () 9393 { 9394 9395 ; 9396 return 0; 9397 } 9398 _ACEOF 9399 if ac_fn_c_try_compile "$LINENO"; then : 9400 ac_cv_prog_cc_g=yes 9401 else 9402 CFLAGS="" 9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9404 /* end confdefs.h. */ 9405 9406 int 9407 main () 9408 { 9409 9410 ; 9411 return 0; 9412 } 9413 _ACEOF 9414 if ac_fn_c_try_compile "$LINENO"; then : 9415 9416 else 9417 ac_c_werror_flag=$ac_save_c_werror_flag 9418 CFLAGS="-g" 9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9420 /* end confdefs.h. */ 9421 9422 int 9423 main () 9424 { 9425 9426 ; 9427 return 0; 9428 } 9429 _ACEOF 9430 if ac_fn_c_try_compile "$LINENO"; then : 9431 ac_cv_prog_cc_g=yes 9432 fi 9433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9434 fi 9435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9436 fi 9437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9438 ac_c_werror_flag=$ac_save_c_werror_flag 9439 fi 9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 9441 $as_echo "$ac_cv_prog_cc_g" >&6; } 9442 if test "$ac_test_CFLAGS" = set; then 9443 CFLAGS=$ac_save_CFLAGS 9444 elif test $ac_cv_prog_cc_g = yes; then 9445 if test "$GCC" = yes; then 9446 CFLAGS="-g -O2" 9447 else 9448 CFLAGS="-g" 9449 fi 9450 else 9451 if test "$GCC" = yes; then 9452 CFLAGS="-O2" 9453 else 9454 CFLAGS= 9455 fi 9456 fi 9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 9458 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 9459 if ${ac_cv_prog_cc_c89+:} false; then : 9460 $as_echo_n "(cached) " >&6 9461 else 9462 ac_cv_prog_cc_c89=no 9463 ac_save_CC=$CC 9464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9465 /* end confdefs.h. */ 9466 #include <stdarg.h> 9467 #include <stdio.h> 9468 struct stat; 9469 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 9470 struct buf { int x; }; 9471 FILE * (*rcsopen) (struct buf *, struct stat *, int); 9472 static char *e (p, i) 9473 char **p; 9474 int i; 9475 { 9476 return p[i]; 9477 } 9478 static char *f (char * (*g) (char **, int), char **p, ...) 9479 { 9480 char *s; 9481 va_list v; 9482 va_start (v,p); 9483 s = g (p, va_arg (v,int)); 9484 va_end (v); 9485 return s; 9486 } 9487 9488 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 9489 function prototypes and stuff, but not '\xHH' hex character constants. 9490 These don't provoke an error unfortunately, instead are silently treated 9491 as 'x'. The following induces an error, until -std is added to get 9492 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 9493 array size at least. It's necessary to write '\x00'==0 to get something 9494 that's true only with -std. */ 9495 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 9496 9497 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 9498 inside strings and character constants. */ 9499 #define FOO(x) 'x' 9500 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 9501 9502 int test (int i, double x); 9503 struct s1 {int (*f) (int a);}; 9504 struct s2 {int (*f) (double a);}; 9505 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 9506 int argc; 9507 char **argv; 9508 int 9509 main () 9510 { 9511 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 9512 ; 9513 return 0; 9514 } 9515 _ACEOF 9516 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 9517 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 9518 do 9519 CC="$ac_save_CC $ac_arg" 9520 if ac_fn_c_try_compile "$LINENO"; then : 9521 ac_cv_prog_cc_c89=$ac_arg 9522 fi 9523 rm -f core conftest.err conftest.$ac_objext 9524 test "x$ac_cv_prog_cc_c89" != "xno" && break 9525 done 9526 rm -f conftest.$ac_ext 9527 CC=$ac_save_CC 9528 9529 fi 9530 # AC_CACHE_VAL 9531 case "x$ac_cv_prog_cc_c89" in 9532 x) 9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 9534 $as_echo "none needed" >&6; } ;; 9535 xno) 9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 9537 $as_echo "unsupported" >&6; } ;; 9538 *) 9539 CC="$CC $ac_cv_prog_cc_c89" 9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 9541 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 9542 esac 9543 if test "x$ac_cv_prog_cc_c89" != xno; then : 9544 9545 fi 9546 9547 ac_ext=c 9548 ac_cpp='$CPP $CPPFLAGS' 9549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9551 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9552 9553 ac_ext=c 9554 ac_cpp='$CPP $CPPFLAGS' 9555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9557 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 9559 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 9560 if ${am_cv_prog_cc_c_o+:} false; then : 9561 $as_echo_n "(cached) " >&6 9562 else 9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9564 /* end confdefs.h. */ 9565 9566 int 9567 main () 9568 { 9569 9570 ; 9571 return 0; 9572 } 9573 _ACEOF 9574 # Make sure it works both with $CC and with simple cc. 9575 # Following AC_PROG_CC_C_O, we do the test twice because some 9576 # compilers refuse to overwrite an existing .o file with -o, 9577 # though they will create one. 9578 am_cv_prog_cc_c_o=yes 9579 for am_i in 1 2; do 9580 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 9581 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 9582 ac_status=$? 9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9584 (exit $ac_status); } \ 9585 && test -f conftest2.$ac_objext; then 9586 : OK 9587 else 9588 am_cv_prog_cc_c_o=no 9589 break 9590 fi 9591 done 9592 rm -f core conftest* 9593 unset am_i 9594 fi 9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 9596 $as_echo "$am_cv_prog_cc_c_o" >&6; } 9597 if test "$am_cv_prog_cc_c_o" != yes; then 9598 # Losing compiler, so override with the script. 9599 # FIXME: It is wrong to rewrite CC. 9600 # But if we don't then we get into trouble of one sort or another. 9601 # A longer-term fix would be to have automake use am__CC in this case, 9602 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 9603 CC="$am_aux_dir/compile $CC" 9604 fi 9605 ac_ext=c 9606 ac_cpp='$CPP $CPPFLAGS' 9607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9609 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9610 9611 9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 9613 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 9614 if ${ac_cv_prog_cc_c99+:} false; then : 9615 $as_echo_n "(cached) " >&6 9616 else 9617 ac_cv_prog_cc_c99=no 9618 ac_save_CC=$CC 9619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9620 /* end confdefs.h. */ 9621 #include <stdarg.h> 9622 #include <stdbool.h> 9623 #include <stdlib.h> 9624 #include <wchar.h> 9625 #include <stdio.h> 9626 9627 // Check varargs macros. These examples are taken from C99 6.10.3.5. 9628 #define debug(...) fprintf (stderr, __VA_ARGS__) 9629 #define showlist(...) puts (#__VA_ARGS__) 9630 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 9631 static void 9632 test_varargs_macros (void) 9633 { 9634 int x = 1234; 9635 int y = 5678; 9636 debug ("Flag"); 9637 debug ("X = %d\n", x); 9638 showlist (The first, second, and third items.); 9639 report (x>y, "x is %d but y is %d", x, y); 9640 } 9641 9642 // Check long long types. 9643 #define BIG64 18446744073709551615ull 9644 #define BIG32 4294967295ul 9645 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 9646 #if !BIG_OK 9647 your preprocessor is broken; 9648 #endif 9649 #if BIG_OK 9650 #else 9651 your preprocessor is broken; 9652 #endif 9653 static long long int bignum = -9223372036854775807LL; 9654 static unsigned long long int ubignum = BIG64; 9655 9656 struct incomplete_array 9657 { 9658 int datasize; 9659 double data[]; 9660 }; 9661 9662 struct named_init { 9663 int number; 9664 const wchar_t *name; 9665 double average; 9666 }; 9667 9668 typedef const char *ccp; 9669 9670 static inline int 9671 test_restrict (ccp restrict text) 9672 { 9673 // See if C++-style comments work. 9674 // Iterate through items via the restricted pointer. 9675 // Also check for declarations in for loops. 9676 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 9677 continue; 9678 return 0; 9679 } 9680 9681 // Check varargs and va_copy. 9682 static void 9683 test_varargs (const char *format, ...) 9684 { 9685 va_list args; 9686 va_start (args, format); 9687 va_list args_copy; 9688 va_copy (args_copy, args); 9689 9690 const char *str; 9691 int number; 9692 float fnumber; 9693 9694 while (*format) 9695 { 9696 switch (*format++) 9697 { 9698 case 's': // string 9699 str = va_arg (args_copy, const char *); 9700 break; 9701 case 'd': // int 9702 number = va_arg (args_copy, int); 9703 break; 9704 case 'f': // float 9705 fnumber = va_arg (args_copy, double); 9706 break; 9707 default: 9708 break; 9709 } 9710 } 9711 va_end (args_copy); 9712 va_end (args); 9713 } 9714 9715 int 9716 main () 9717 { 9718 9719 // Check bool. 9720 _Bool success = false; 9721 9722 // Check restrict. 9723 if (test_restrict ("String literal") == 0) 9724 success = true; 9725 char *restrict newvar = "Another string"; 9726 9727 // Check varargs. 9728 test_varargs ("s, d' f .", "string", 65, 34.234); 9729 test_varargs_macros (); 9730 9731 // Check flexible array members. 9732 struct incomplete_array *ia = 9733 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 9734 ia->datasize = 10; 9735 for (int i = 0; i < ia->datasize; ++i) 9736 ia->data[i] = i * 1.234; 9737 9738 // Check named initializers. 9739 struct named_init ni = { 9740 .number = 34, 9741 .name = L"Test wide string", 9742 .average = 543.34343, 9743 }; 9744 9745 ni.number = 58; 9746 9747 int dynamic_array[ni.number]; 9748 dynamic_array[ni.number - 1] = 543; 9749 9750 // work around unused variable warnings 9751 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 9752 || dynamic_array[ni.number - 1] != 543); 9753 9754 ; 9755 return 0; 9756 } 9757 _ACEOF 9758 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 9759 do 9760 CC="$ac_save_CC $ac_arg" 9761 if ac_fn_c_try_compile "$LINENO"; then : 9762 ac_cv_prog_cc_c99=$ac_arg 9763 fi 9764 rm -f core conftest.err conftest.$ac_objext 9765 test "x$ac_cv_prog_cc_c99" != "xno" && break 9766 done 9767 rm -f conftest.$ac_ext 9768 CC=$ac_save_CC 9769 9770 fi 9771 # AC_CACHE_VAL 9772 case "x$ac_cv_prog_cc_c99" in 9773 x) 9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 9775 $as_echo "none needed" >&6; } ;; 9776 xno) 9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 9778 $as_echo "unsupported" >&6; } ;; 9779 *) 9780 CC="$CC $ac_cv_prog_cc_c99" 9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 9782 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 9783 esac 9784 if test "x$ac_cv_prog_cc_c99" != xno; then : 9785 9786 fi 9787 9788 9789 ac_ext=c 9790 ac_cpp='$CPP $CPPFLAGS' 9791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9793 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 9795 $as_echo_n "checking how to run the C preprocessor... " >&6; } 9796 # On Suns, sometimes $CPP names a directory. 9797 if test -n "$CPP" && test -d "$CPP"; then 9798 CPP= 9799 fi 9800 if test -z "$CPP"; then 9801 if ${ac_cv_prog_CPP+:} false; then : 9802 $as_echo_n "(cached) " >&6 9803 else 9804 # Double quotes because CPP needs to be expanded 9805 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 9806 do 9807 ac_preproc_ok=false 9808 for ac_c_preproc_warn_flag in '' yes 9809 do 9810 # Use a header file that comes with gcc, so configuring glibc 9811 # with a fresh cross-compiler works. 9812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9813 # <limits.h> exists even on freestanding compilers. 9814 # On the NeXT, cc -E runs the code through the compiler's parser, 9815 # not just through cpp. "Syntax error" is here to catch this case. 9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9817 /* end confdefs.h. */ 9818 #ifdef __STDC__ 9819 # include <limits.h> 9820 #else 9821 # include <assert.h> 9822 #endif 9823 Syntax error 9824 _ACEOF 9825 if ac_fn_c_try_cpp "$LINENO"; then : 9826 9827 else 9828 # Broken: fails on valid input. 9829 continue 9830 fi 9831 rm -f conftest.err conftest.i conftest.$ac_ext 9832 9833 # OK, works on sane cases. Now check whether nonexistent headers 9834 # can be detected and how. 9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9836 /* end confdefs.h. */ 9837 #include <ac_nonexistent.h> 9838 _ACEOF 9839 if ac_fn_c_try_cpp "$LINENO"; then : 9840 # Broken: success on invalid input. 9841 continue 9842 else 9843 # Passes both tests. 9844 ac_preproc_ok=: 9845 break 9846 fi 9847 rm -f conftest.err conftest.i conftest.$ac_ext 9848 9849 done 9850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9851 rm -f conftest.i conftest.err conftest.$ac_ext 9852 if $ac_preproc_ok; then : 9853 break 9854 fi 9855 9856 done 9857 ac_cv_prog_CPP=$CPP 9858 9859 fi 9860 CPP=$ac_cv_prog_CPP 9861 else 9862 ac_cv_prog_CPP=$CPP 9863 fi 9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 9865 $as_echo "$CPP" >&6; } 9866 ac_preproc_ok=false 9867 for ac_c_preproc_warn_flag in '' yes 9868 do 9869 # Use a header file that comes with gcc, so configuring glibc 9870 # with a fresh cross-compiler works. 9871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9872 # <limits.h> exists even on freestanding compilers. 9873 # On the NeXT, cc -E runs the code through the compiler's parser, 9874 # not just through cpp. "Syntax error" is here to catch this case. 9875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9876 /* end confdefs.h. */ 9877 #ifdef __STDC__ 9878 # include <limits.h> 9879 #else 9880 # include <assert.h> 9881 #endif 9882 Syntax error 9883 _ACEOF 9884 if ac_fn_c_try_cpp "$LINENO"; then : 9885 9886 else 9887 # Broken: fails on valid input. 9888 continue 9889 fi 9890 rm -f conftest.err conftest.i conftest.$ac_ext 9891 9892 # OK, works on sane cases. Now check whether nonexistent headers 9893 # can be detected and how. 9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9895 /* end confdefs.h. */ 9896 #include <ac_nonexistent.h> 9897 _ACEOF 9898 if ac_fn_c_try_cpp "$LINENO"; then : 9899 # Broken: success on invalid input. 9900 continue 9901 else 9902 # Passes both tests. 9903 ac_preproc_ok=: 9904 break 9905 fi 9906 rm -f conftest.err conftest.i conftest.$ac_ext 9907 9908 done 9909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9910 rm -f conftest.i conftest.err conftest.$ac_ext 9911 if $ac_preproc_ok; then : 9912 9913 else 9914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9916 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 9917 See \`config.log' for more details" "$LINENO" 5; } 9918 fi 9919 9920 ac_ext=c 9921 ac_cpp='$CPP $CPPFLAGS' 9922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9924 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9925 9926 9927 #if test "$ac_cv_prog_cc_c99" = no; then 9928 # AC_MSG_ERROR([Cannot find a C99 capable compiler]) 9929 #fi 9930 9931 # The C compiler on the build system, and associated tests. 9932 9933 if test -n "$CC_FOR_BUILD"; then 9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $CC_FOR_BUILD" >&5 9935 $as_echo_n "checking build system compiler $CC_FOR_BUILD... " >&6; } 9936 # remove anything that might look like compiler output to our "||" expression 9937 rm -f conftest* a.out b.out a.exe a_out.exe 9938 cat >conftest.c <<EOF 9939 int 9940 main () 9941 { 9942 return 0; 9943 } 9944 EOF 9945 gmp_compile="$CC_FOR_BUILD conftest.c" 9946 cc_for_build_works=no 9947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 9948 (eval $gmp_compile) 2>&5 9949 ac_status=$? 9950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9951 test $ac_status = 0; }; then 9952 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then 9953 cc_for_build_works=yes 9954 fi 9955 fi 9956 rm -f conftest* a.out b.out a.exe a_out.exe 9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5 9958 $as_echo "$cc_for_build_works" >&6; } 9959 if test "$cc_for_build_works" = yes; then 9960 : 9961 else 9962 as_fn_error $? "Specified CC_FOR_BUILD doesn't seem to work" "$LINENO" 5 9963 fi 9964 9965 elif test -n "$HOST_CC"; then 9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $HOST_CC" >&5 9967 $as_echo_n "checking build system compiler $HOST_CC... " >&6; } 9968 # remove anything that might look like compiler output to our "||" expression 9969 rm -f conftest* a.out b.out a.exe a_out.exe 9970 cat >conftest.c <<EOF 9971 int 9972 main () 9973 { 9974 return 0; 9975 } 9976 EOF 9977 gmp_compile="$HOST_CC conftest.c" 9978 cc_for_build_works=no 9979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 9980 (eval $gmp_compile) 2>&5 9981 ac_status=$? 9982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9983 test $ac_status = 0; }; then 9984 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then 9985 cc_for_build_works=yes 9986 fi 9987 fi 9988 rm -f conftest* a.out b.out a.exe a_out.exe 9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5 9990 $as_echo "$cc_for_build_works" >&6; } 9991 if test "$cc_for_build_works" = yes; then 9992 CC_FOR_BUILD=$HOST_CC 9993 else 9994 as_fn_error $? "Specified HOST_CC doesn't seem to work" "$LINENO" 5 9995 fi 9996 9997 else 9998 for i in "$CC" "$CC $CFLAGS $CPPFLAGS" cc gcc c89 c99; do 9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $i" >&5 10000 $as_echo_n "checking build system compiler $i... " >&6; } 10001 # remove anything that might look like compiler output to our "||" expression 10002 rm -f conftest* a.out b.out a.exe a_out.exe 10003 cat >conftest.c <<EOF 10004 int 10005 main () 10006 { 10007 return 0; 10008 } 10009 EOF 10010 gmp_compile="$i conftest.c" 10011 cc_for_build_works=no 10012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 10013 (eval $gmp_compile) 2>&5 10014 ac_status=$? 10015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10016 test $ac_status = 0; }; then 10017 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then 10018 cc_for_build_works=yes 10019 fi 10020 fi 10021 rm -f conftest* a.out b.out a.exe a_out.exe 10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5 10023 $as_echo "$cc_for_build_works" >&6; } 10024 if test "$cc_for_build_works" = yes; then 10025 CC_FOR_BUILD=$i 10026 break 10027 else 10028 : 10029 fi 10030 10031 done 10032 if test -z "$CC_FOR_BUILD"; then 10033 as_fn_error $? "Cannot find a build system compiler" "$LINENO" 5 10034 fi 10035 fi 10036 10037 10038 10039 10040 10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system preprocessor" >&5 10042 $as_echo_n "checking for build system preprocessor... " >&6; } 10043 if test -z "$CPP_FOR_BUILD"; then 10044 if ${gmp_cv_prog_cpp_for_build+:} false; then : 10045 $as_echo_n "(cached) " >&6 10046 else 10047 cat >conftest.c <<EOF 10048 #define FOO BAR 10049 EOF 10050 for i in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"; do 10051 gmp_compile="$i conftest.c" 10052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 10053 (eval $gmp_compile) 2>&5 10054 ac_status=$? 10055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10056 test $ac_status = 0; } >&5 2>&1; then 10057 gmp_cv_prog_cpp_for_build=$i 10058 break 10059 fi 10060 done 10061 rm -f conftest* a.out b.out a.exe a_out.exe 10062 if test -z "$gmp_cv_prog_cpp_for_build"; then 10063 as_fn_error $? "Cannot find build system C preprocessor." "$LINENO" 5 10064 fi 10065 10066 fi 10067 10068 CPP_FOR_BUILD=$gmp_cv_prog_cpp_for_build 10069 fi 10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5 10071 $as_echo "$CPP_FOR_BUILD" >&6; } 10072 10073 10074 10075 10076 10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5 10078 $as_echo_n "checking for build system executable suffix... " >&6; } 10079 if ${gmp_cv_prog_exeext_for_build+:} false; then : 10080 $as_echo_n "(cached) " >&6 10081 else 10082 cat >conftest.c <<EOF 10083 int 10084 main () 10085 { 10086 return 0; 10087 } 10088 EOF 10089 for i in .exe ,ff8 ""; do 10090 gmp_compile="$CC_FOR_BUILD conftest.c -o conftest$i" 10091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 10092 (eval $gmp_compile) 2>&5 10093 ac_status=$? 10094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10095 test $ac_status = 0; }; then 10096 if (./conftest) 2>&5; then 10097 gmp_cv_prog_exeext_for_build=$i 10098 break 10099 fi 10100 fi 10101 done 10102 rm -f conftest* 10103 if test "${gmp_cv_prog_exeext_for_build+set}" != set; then 10104 as_fn_error $? "Cannot determine executable suffix" "$LINENO" 5 10105 fi 10106 10107 fi 10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_exeext_for_build" >&5 10109 $as_echo "$gmp_cv_prog_exeext_for_build" >&6; } 10110 EXEEXT_FOR_BUILD=$gmp_cv_prog_exeext_for_build 10111 10112 10113 10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build system compiler is ANSI" >&5 10115 $as_echo_n "checking whether build system compiler is ANSI... " >&6; } 10116 if ${gmp_cv_c_for_build_ansi+:} false; then : 10117 $as_echo_n "(cached) " >&6 10118 else 10119 cat >conftest.c <<EOF 10120 int 10121 main (int argc, char **argv) 10122 { 10123 return 0; 10124 } 10125 EOF 10126 gmp_compile="$CC_FOR_BUILD conftest.c" 10127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 10128 (eval $gmp_compile) 2>&5 10129 ac_status=$? 10130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10131 test $ac_status = 0; }; then 10132 gmp_cv_c_for_build_ansi=yes 10133 else 10134 gmp_cv_c_for_build_ansi=no 10135 fi 10136 rm -f conftest* a.out b.out a.exe a_out.exe 10137 10138 fi 10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_for_build_ansi" >&5 10140 $as_echo "$gmp_cv_c_for_build_ansi" >&6; } 10141 if test "$gmp_cv_c_for_build_ansi" = yes; then 10142 U_FOR_BUILD= 10143 else 10144 U_FOR_BUILD=_ 10145 10146 fi 10147 10148 10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system compiler math library" >&5 10150 $as_echo_n "checking for build system compiler math library... " >&6; } 10151 if ${gmp_cv_check_libm_for_build+:} false; then : 10152 $as_echo_n "(cached) " >&6 10153 else 10154 cat >conftest.c <<EOF 10155 #include <math.h> 10156 int 10157 main () 10158 { 10159 return 0; 10160 } 10161 double d; 10162 double 10163 foo () 10164 { 10165 return log (d); 10166 } 10167 EOF 10168 gmp_compile="$CC_FOR_BUILD conftest.c -lm" 10169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 10170 (eval $gmp_compile) 2>&5 10171 ac_status=$? 10172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10173 test $ac_status = 0; }; then 10174 gmp_cv_check_libm_for_build=-lm 10175 else 10176 gmp_cv_check_libm_for_build=no 10177 fi 10178 rm -f conftest* a.out b.out a.exe a_out.exe 10179 10180 fi 10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_check_libm_for_build" >&5 10182 $as_echo "$gmp_cv_check_libm_for_build" >&6; } 10183 case $gmp_cv_check_libm_for_build in 10184 yes) LIBM_FOR_BUILD=-lm 10185 ;; 10186 no) LIBM_FOR_BUILD= ;; 10187 *) LIBM_FOR_BUILD=$gmp_cv_check_libm_for_build ;; 10188 esac 10189 10190 10191 10192 # How to assemble, used with CFLAGS etc, see mpn/Makeasm.am. 10193 # Using the compiler is a lot easier than figuring out how to invoke the 10194 # assembler directly. 10195 # 10196 test -n "$CCAS" || CCAS="$CC -c" 10197 10198 10199 10200 # The C++ compiler, if desired. 10201 want_cxx=no 10202 if test $enable_cxx != no; then 10203 test_CXXFLAGS=${CXXFLAGS+set} 10204 ac_ext=cpp 10205 ac_cpp='$CXXCPP $CPPFLAGS' 10206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10209 if test -z "$CXX"; then 10210 if test -n "$CCC"; then 10211 CXX=$CCC 10212 else 10213 if test -n "$ac_tool_prefix"; then 10214 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 10215 do 10216 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10217 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10219 $as_echo_n "checking for $ac_word... " >&6; } 10220 if ${ac_cv_prog_CXX+:} false; then : 10221 $as_echo_n "(cached) " >&6 10222 else 10223 if test -n "$CXX"; then 10224 ac_cv_prog_CXX="$CXX" # Let the user override the test. 10225 else 10226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10227 for as_dir in $PATH 10228 do 10229 IFS=$as_save_IFS 10230 test -z "$as_dir" && as_dir=. 10231 for ac_exec_ext in '' $ac_executable_extensions; do 10232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10233 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 10234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10235 break 2 10236 fi 10237 done 10238 done 10239 IFS=$as_save_IFS 10240 10241 fi 10242 fi 10243 CXX=$ac_cv_prog_CXX 10244 if test -n "$CXX"; then 10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 10246 $as_echo "$CXX" >&6; } 10247 else 10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10249 $as_echo "no" >&6; } 10250 fi 10251 10252 10253 test -n "$CXX" && break 10254 done 10255 fi 10256 if test -z "$CXX"; then 10257 ac_ct_CXX=$CXX 10258 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 10259 do 10260 # Extract the first word of "$ac_prog", so it can be a program name with args. 10261 set dummy $ac_prog; ac_word=$2 10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10263 $as_echo_n "checking for $ac_word... " >&6; } 10264 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 10265 $as_echo_n "(cached) " >&6 10266 else 10267 if test -n "$ac_ct_CXX"; then 10268 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 10269 else 10270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10271 for as_dir in $PATH 10272 do 10273 IFS=$as_save_IFS 10274 test -z "$as_dir" && as_dir=. 10275 for ac_exec_ext in '' $ac_executable_extensions; do 10276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10277 ac_cv_prog_ac_ct_CXX="$ac_prog" 10278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10279 break 2 10280 fi 10281 done 10282 done 10283 IFS=$as_save_IFS 10284 10285 fi 10286 fi 10287 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 10288 if test -n "$ac_ct_CXX"; then 10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 10290 $as_echo "$ac_ct_CXX" >&6; } 10291 else 10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10293 $as_echo "no" >&6; } 10294 fi 10295 10296 10297 test -n "$ac_ct_CXX" && break 10298 done 10299 10300 if test "x$ac_ct_CXX" = x; then 10301 CXX="g++" 10302 else 10303 case $cross_compiling:$ac_tool_warned in 10304 yes:) 10305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10307 ac_tool_warned=yes ;; 10308 esac 10309 CXX=$ac_ct_CXX 10310 fi 10311 fi 10312 10313 fi 10314 fi 10315 # Provide some information about the compiler. 10316 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 10317 set X $ac_compile 10318 ac_compiler=$2 10319 for ac_option in --version -v -V -qversion; do 10320 { { ac_try="$ac_compiler $ac_option >&5" 10321 case "(($ac_try" in 10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10323 *) ac_try_echo=$ac_try;; 10324 esac 10325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 10326 $as_echo "$ac_try_echo"; } >&5 10327 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 10328 ac_status=$? 10329 if test -s conftest.err; then 10330 sed '10a\ 10331 ... rest of stderr output deleted ... 10332 10q' conftest.err >conftest.er1 10333 cat conftest.er1 >&5 10334 fi 10335 rm -f conftest.er1 conftest.err 10336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10337 test $ac_status = 0; } 10338 done 10339 10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 10341 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 10342 if ${ac_cv_cxx_compiler_gnu+:} false; then : 10343 $as_echo_n "(cached) " >&6 10344 else 10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10346 /* end confdefs.h. */ 10347 10348 int 10349 main () 10350 { 10351 #ifndef __GNUC__ 10352 choke me 10353 #endif 10354 10355 ; 10356 return 0; 10357 } 10358 _ACEOF 10359 if ac_fn_cxx_try_compile "$LINENO"; then : 10360 ac_compiler_gnu=yes 10361 else 10362 ac_compiler_gnu=no 10363 fi 10364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10365 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 10366 10367 fi 10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 10369 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 10370 if test $ac_compiler_gnu = yes; then 10371 GXX=yes 10372 else 10373 GXX= 10374 fi 10375 ac_test_CXXFLAGS=${CXXFLAGS+set} 10376 ac_save_CXXFLAGS=$CXXFLAGS 10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 10378 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 10379 if ${ac_cv_prog_cxx_g+:} false; then : 10380 $as_echo_n "(cached) " >&6 10381 else 10382 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 10383 ac_cxx_werror_flag=yes 10384 ac_cv_prog_cxx_g=no 10385 CXXFLAGS="-g" 10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10387 /* end confdefs.h. */ 10388 10389 int 10390 main () 10391 { 10392 10393 ; 10394 return 0; 10395 } 10396 _ACEOF 10397 if ac_fn_cxx_try_compile "$LINENO"; then : 10398 ac_cv_prog_cxx_g=yes 10399 else 10400 CXXFLAGS="" 10401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10402 /* end confdefs.h. */ 10403 10404 int 10405 main () 10406 { 10407 10408 ; 10409 return 0; 10410 } 10411 _ACEOF 10412 if ac_fn_cxx_try_compile "$LINENO"; then : 10413 10414 else 10415 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 10416 CXXFLAGS="-g" 10417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10418 /* end confdefs.h. */ 10419 10420 int 10421 main () 10422 { 10423 10424 ; 10425 return 0; 10426 } 10427 _ACEOF 10428 if ac_fn_cxx_try_compile "$LINENO"; then : 10429 ac_cv_prog_cxx_g=yes 10430 fi 10431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10432 fi 10433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10434 fi 10435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10436 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 10437 fi 10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 10439 $as_echo "$ac_cv_prog_cxx_g" >&6; } 10440 if test "$ac_test_CXXFLAGS" = set; then 10441 CXXFLAGS=$ac_save_CXXFLAGS 10442 elif test $ac_cv_prog_cxx_g = yes; then 10443 if test "$GXX" = yes; then 10444 CXXFLAGS="-g -O2" 10445 else 10446 CXXFLAGS="-g" 10447 fi 10448 else 10449 if test "$GXX" = yes; then 10450 CXXFLAGS="-O2" 10451 else 10452 CXXFLAGS= 10453 fi 10454 fi 10455 ac_ext=c 10456 ac_cpp='$CPP $CPPFLAGS' 10457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10459 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10460 10461 10462 echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&5 10463 cxxflags_ac_prog_cxx=$CXXFLAGS 10464 cxxflags_list=ac_prog_cxx 10465 10466 # If the user didn't specify $CXXFLAGS, then try $CFLAGS, with -g removed 10467 # if AC_PROG_CXX thinks that doesn't work. $CFLAGS stands a good chance 10468 # of working, eg. on a GNU system where CC=gcc and CXX=g++. 10469 # 10470 if test "$test_CXXFLAGS" != set; then 10471 cxxflags_cflags=$CFLAGS 10472 cxxflags_list="cflags $cxxflags_list" 10473 if test "$ac_prog_cxx_g" = no; then 10474 cxxflags_cflags=`echo "$cxxflags_cflags" | sed -e 's/ -g //' -e 's/^-g //' -e 's/ -g$//'` 10475 fi 10476 fi 10477 10478 # See if the C++ compiler works. If the user specified CXXFLAGS then all 10479 # we're doing is checking whether AC_PROG_CXX succeeded, since it doesn't 10480 # give a fatal error, just leaves CXX set to a default g++. If on the 10481 # other hand the user didn't specify CXXFLAGS then we get to try here our 10482 # $cxxflags_list alternatives. 10483 # 10484 # Automake includes $CPPFLAGS in a C++ compile, so we do the same here. 10485 # 10486 for cxxflags_choice in $cxxflags_list; do 10487 eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\" 10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS" >&5 10489 $as_echo_n "checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS... " >&6; } 10490 gmp_prog_cxx_works=yes 10491 10492 # start with a plain "main()", then go on to further checks 10493 if test "$gmp_prog_cxx_works" = yes; then 10494 # remove anything that might look like compiler output to our "||" expression 10495 rm -f conftest* a.out b.out a.exe a_out.exe 10496 cat >conftest.cc <<EOF 10497 10498 int main (void) { return 0; } 10499 EOF 10500 echo "Test compile: " >&5 10501 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5" 10502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5 10503 (eval $gmp_cxxcompile) 2>&5 10504 ac_status=$? 10505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10506 test $ac_status = 0; }; then 10507 if test "$cross_compiling" = no; then 10508 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 10509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 10510 (eval $ac_try) 2>&5 10511 ac_status=$? 10512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10513 test $ac_status = 0; }; }; then :; 10514 else 10515 gmp_prog_cxx_works="no, program does not run" 10516 fi 10517 fi 10518 else 10519 gmp_prog_cxx_works="no" 10520 fi 10521 case $gmp_prog_cxx_works in 10522 no*) 10523 echo "failed program was:" >&5 10524 cat conftest.cc >&5 10525 ;; 10526 esac 10527 rm -f conftest* a.out b.out a.exe a_out.exe 10528 fi 10529 10530 10531 if test "$gmp_prog_cxx_works" = yes; then 10532 # remove anything that might look like compiler output to our "||" expression 10533 rm -f conftest* a.out b.out a.exe a_out.exe 10534 cat >conftest.cc <<EOF 10535 namespace foo { } 10536 using namespace foo; 10537 10538 int main (void) { return 0; } 10539 EOF 10540 echo "Test compile: namespace" >&5 10541 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5" 10542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5 10543 (eval $gmp_cxxcompile) 2>&5 10544 ac_status=$? 10545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10546 test $ac_status = 0; }; then 10547 if test "$cross_compiling" = no; then 10548 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 10549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 10550 (eval $ac_try) 2>&5 10551 ac_status=$? 10552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10553 test $ac_status = 0; }; }; then :; 10554 else 10555 gmp_prog_cxx_works="no, namespace, program does not run" 10556 fi 10557 fi 10558 else 10559 gmp_prog_cxx_works="no, namespace" 10560 fi 10561 case $gmp_prog_cxx_works in 10562 no*) 10563 echo "failed program was:" >&5 10564 cat conftest.cc >&5 10565 ;; 10566 esac 10567 rm -f conftest* a.out b.out a.exe a_out.exe 10568 fi 10569 10570 10571 # GMP requires the standard C++ iostream classes 10572 if test "$gmp_prog_cxx_works" = yes; then 10573 # remove anything that might look like compiler output to our "||" expression 10574 rm -f conftest* a.out b.out a.exe a_out.exe 10575 cat >conftest.cc <<EOF 10576 /* This test rejects g++ 2.7.2 which doesn't have <iostream>, only a 10577 pre-standard iostream.h. */ 10578 #include <iostream> 10579 10580 /* This test rejects OSF 5.1 Compaq C++ in its default pre-standard iostream 10581 mode, since that mode puts cout in the global namespace, not "std". */ 10582 void someoutput (void) { std::cout << 123; } 10583 10584 int main (void) { return 0; } 10585 EOF 10586 echo "Test compile: std iostream" >&5 10587 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5" 10588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5 10589 (eval $gmp_cxxcompile) 2>&5 10590 ac_status=$? 10591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10592 test $ac_status = 0; }; then 10593 if test "$cross_compiling" = no; then 10594 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 10595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 10596 (eval $ac_try) 2>&5 10597 ac_status=$? 10598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10599 test $ac_status = 0; }; }; then :; 10600 else 10601 gmp_prog_cxx_works="no, std iostream, program does not run" 10602 fi 10603 fi 10604 else 10605 gmp_prog_cxx_works="no, std iostream" 10606 fi 10607 case $gmp_prog_cxx_works in 10608 no*) 10609 echo "failed program was:" >&5 10610 cat conftest.cc >&5 10611 ;; 10612 esac 10613 rm -f conftest* a.out b.out a.exe a_out.exe 10614 fi 10615 10616 10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cxx_works" >&5 10618 $as_echo "$gmp_prog_cxx_works" >&6; } 10619 case $gmp_prog_cxx_works in 10620 yes) 10621 want_cxx=yes 10622 break 10623 ;; 10624 *) 10625 10626 ;; 10627 esac 10628 10629 done 10630 10631 # If --enable-cxx=yes but a C++ compiler can't be found, then abort. 10632 if test $want_cxx = no && test $enable_cxx = yes; then 10633 as_fn_error $? "C++ compiler not available, see config.log for details" "$LINENO" 5 10634 fi 10635 fi 10636 10637 if test $want_cxx = yes; then 10638 WANT_CXX_TRUE= 10639 WANT_CXX_FALSE='#' 10640 else 10641 WANT_CXX_TRUE='#' 10642 WANT_CXX_FALSE= 10643 fi 10644 10645 10646 # FIXME: We're not interested in CXXCPP for ourselves, but if we don't do it 10647 # here then AC_PROG_LIBTOOL will AC_REQUIRE it (via _LT_AC_TAGCONFIG) and 10648 # hence execute it unconditionally, and that will fail if there's no C++ 10649 # compiler (and no generic /lib/cpp). 10650 # 10651 if test $want_cxx = yes; then 10652 ac_ext=cpp 10653 ac_cpp='$CXXCPP $CPPFLAGS' 10654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 10658 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 10659 if test -z "$CXXCPP"; then 10660 if ${ac_cv_prog_CXXCPP+:} false; then : 10661 $as_echo_n "(cached) " >&6 10662 else 10663 # Double quotes because CXXCPP needs to be expanded 10664 for CXXCPP in "$CXX -E" "/lib/cpp" 10665 do 10666 ac_preproc_ok=false 10667 for ac_cxx_preproc_warn_flag in '' yes 10668 do 10669 # Use a header file that comes with gcc, so configuring glibc 10670 # with a fresh cross-compiler works. 10671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10672 # <limits.h> exists even on freestanding compilers. 10673 # On the NeXT, cc -E runs the code through the compiler's parser, 10674 # not just through cpp. "Syntax error" is here to catch this case. 10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10676 /* end confdefs.h. */ 10677 #ifdef __STDC__ 10678 # include <limits.h> 10679 #else 10680 # include <assert.h> 10681 #endif 10682 Syntax error 10683 _ACEOF 10684 if ac_fn_cxx_try_cpp "$LINENO"; then : 10685 10686 else 10687 # Broken: fails on valid input. 10688 continue 10689 fi 10690 rm -f conftest.err conftest.i conftest.$ac_ext 10691 10692 # OK, works on sane cases. Now check whether nonexistent headers 10693 # can be detected and how. 10694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10695 /* end confdefs.h. */ 10696 #include <ac_nonexistent.h> 10697 _ACEOF 10698 if ac_fn_cxx_try_cpp "$LINENO"; then : 10699 # Broken: success on invalid input. 10700 continue 10701 else 10702 # Passes both tests. 10703 ac_preproc_ok=: 10704 break 10705 fi 10706 rm -f conftest.err conftest.i conftest.$ac_ext 10707 10708 done 10709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 10710 rm -f conftest.i conftest.err conftest.$ac_ext 10711 if $ac_preproc_ok; then : 10712 break 10713 fi 10714 10715 done 10716 ac_cv_prog_CXXCPP=$CXXCPP 10717 10718 fi 10719 CXXCPP=$ac_cv_prog_CXXCPP 10720 else 10721 ac_cv_prog_CXXCPP=$CXXCPP 10722 fi 10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 10724 $as_echo "$CXXCPP" >&6; } 10725 ac_preproc_ok=false 10726 for ac_cxx_preproc_warn_flag in '' yes 10727 do 10728 # Use a header file that comes with gcc, so configuring glibc 10729 # with a fresh cross-compiler works. 10730 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10731 # <limits.h> exists even on freestanding compilers. 10732 # On the NeXT, cc -E runs the code through the compiler's parser, 10733 # not just through cpp. "Syntax error" is here to catch this case. 10734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10735 /* end confdefs.h. */ 10736 #ifdef __STDC__ 10737 # include <limits.h> 10738 #else 10739 # include <assert.h> 10740 #endif 10741 Syntax error 10742 _ACEOF 10743 if ac_fn_cxx_try_cpp "$LINENO"; then : 10744 10745 else 10746 # Broken: fails on valid input. 10747 continue 10748 fi 10749 rm -f conftest.err conftest.i conftest.$ac_ext 10750 10751 # OK, works on sane cases. Now check whether nonexistent headers 10752 # can be detected and how. 10753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10754 /* end confdefs.h. */ 10755 #include <ac_nonexistent.h> 10756 _ACEOF 10757 if ac_fn_cxx_try_cpp "$LINENO"; then : 10758 # Broken: success on invalid input. 10759 continue 10760 else 10761 # Passes both tests. 10762 ac_preproc_ok=: 10763 break 10764 fi 10765 rm -f conftest.err conftest.i conftest.$ac_ext 10766 10767 done 10768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 10769 rm -f conftest.i conftest.err conftest.$ac_ext 10770 if $ac_preproc_ok; then : 10771 10772 else 10773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10775 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 10776 See \`config.log' for more details" "$LINENO" 5; } 10777 fi 10778 10779 ac_ext=c 10780 ac_cpp='$CPP $CPPFLAGS' 10781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10783 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10784 10785 fi 10786 10787 10788 # Path setups for Cray, according to IEEE or CFP. These must come after 10789 # deciding the compiler. 10790 # 10791 10792 10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 10794 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 10795 if ${ac_cv_path_GREP+:} false; then : 10796 $as_echo_n "(cached) " >&6 10797 else 10798 if test -z "$GREP"; then 10799 ac_path_GREP_found=false 10800 # Loop through the user's path and test for each of PROGNAME-LIST 10801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10802 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 10803 do 10804 IFS=$as_save_IFS 10805 test -z "$as_dir" && as_dir=. 10806 for ac_prog in grep ggrep; do 10807 for ac_exec_ext in '' $ac_executable_extensions; do 10808 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 10809 as_fn_executable_p "$ac_path_GREP" || continue 10810 # Check for GNU ac_path_GREP and select it if it is found. 10811 # Check for GNU $ac_path_GREP 10812 case `"$ac_path_GREP" --version 2>&1` in 10813 *GNU*) 10814 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 10815 *) 10816 ac_count=0 10817 $as_echo_n 0123456789 >"conftest.in" 10818 while : 10819 do 10820 cat "conftest.in" "conftest.in" >"conftest.tmp" 10821 mv "conftest.tmp" "conftest.in" 10822 cp "conftest.in" "conftest.nl" 10823 $as_echo 'GREP' >> "conftest.nl" 10824 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 10825 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10826 as_fn_arith $ac_count + 1 && ac_count=$as_val 10827 if test $ac_count -gt ${ac_path_GREP_max-0}; then 10828 # Best one so far, save it but keep looking for a better one 10829 ac_cv_path_GREP="$ac_path_GREP" 10830 ac_path_GREP_max=$ac_count 10831 fi 10832 # 10*(2^10) chars as input seems more than enough 10833 test $ac_count -gt 10 && break 10834 done 10835 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10836 esac 10837 10838 $ac_path_GREP_found && break 3 10839 done 10840 done 10841 done 10842 IFS=$as_save_IFS 10843 if test -z "$ac_cv_path_GREP"; then 10844 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 10845 fi 10846 else 10847 ac_cv_path_GREP=$GREP 10848 fi 10849 10850 fi 10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 10852 $as_echo "$ac_cv_path_GREP" >&6; } 10853 GREP="$ac_cv_path_GREP" 10854 10855 10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 10857 $as_echo_n "checking for egrep... " >&6; } 10858 if ${ac_cv_path_EGREP+:} false; then : 10859 $as_echo_n "(cached) " >&6 10860 else 10861 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 10862 then ac_cv_path_EGREP="$GREP -E" 10863 else 10864 if test -z "$EGREP"; then 10865 ac_path_EGREP_found=false 10866 # Loop through the user's path and test for each of PROGNAME-LIST 10867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 10869 do 10870 IFS=$as_save_IFS 10871 test -z "$as_dir" && as_dir=. 10872 for ac_prog in egrep; do 10873 for ac_exec_ext in '' $ac_executable_extensions; do 10874 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 10875 as_fn_executable_p "$ac_path_EGREP" || continue 10876 # Check for GNU ac_path_EGREP and select it if it is found. 10877 # Check for GNU $ac_path_EGREP 10878 case `"$ac_path_EGREP" --version 2>&1` in 10879 *GNU*) 10880 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 10881 *) 10882 ac_count=0 10883 $as_echo_n 0123456789 >"conftest.in" 10884 while : 10885 do 10886 cat "conftest.in" "conftest.in" >"conftest.tmp" 10887 mv "conftest.tmp" "conftest.in" 10888 cp "conftest.in" "conftest.nl" 10889 $as_echo 'EGREP' >> "conftest.nl" 10890 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 10891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10892 as_fn_arith $ac_count + 1 && ac_count=$as_val 10893 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 10894 # Best one so far, save it but keep looking for a better one 10895 ac_cv_path_EGREP="$ac_path_EGREP" 10896 ac_path_EGREP_max=$ac_count 10897 fi 10898 # 10*(2^10) chars as input seems more than enough 10899 test $ac_count -gt 10 && break 10900 done 10901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10902 esac 10903 10904 $ac_path_EGREP_found && break 3 10905 done 10906 done 10907 done 10908 IFS=$as_save_IFS 10909 if test -z "$ac_cv_path_EGREP"; then 10910 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 10911 fi 10912 else 10913 ac_cv_path_EGREP=$EGREP 10914 fi 10915 10916 fi 10917 fi 10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 10919 $as_echo "$ac_cv_path_EGREP" >&6; } 10920 EGREP="$ac_cv_path_EGREP" 10921 10922 10923 case $host_cpu in 10924 c90 | t90) 10925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10926 /* end confdefs.h. */ 10927 #ifdef _CRAYIEEE 10928 yes 10929 #endif 10930 _ACEOF 10931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10932 $EGREP "yes" >/dev/null 2>&1; then : 10933 add_path="cray/ieee" 10934 else 10935 add_path="cray/cfp"; extra_functions="mulwwc90" 10936 fi 10937 rm -f conftest* 10938 10939 ;; 10940 j90 | sv1) 10941 add_path="cray/cfp"; extra_functions="mulwwj90" 10942 ;; 10943 esac 10944 10945 10946 10947 if test -z "$MPN_PATH"; then 10948 path="$add_path $path" 10949 fi 10950 10951 # For a nail build, also look in "nails" subdirectories. 10952 # 10953 if test $GMP_NAIL_BITS != 0 && test -z "$MPN_PATH"; then 10954 new_path= 10955 for i in $path; do 10956 case $i in 10957 generic) new_path="$new_path $i" ;; 10958 *) new_path="$new_path $i/nails $i" ;; 10959 esac 10960 done 10961 path=$new_path 10962 fi 10963 10964 10965 # Put all directories into CPUVEC_list so as to get a full set of 10966 # CPUVEC_SETUP_$tmp_suffix defines into config.h, even if some of them are 10967 # empty because mmx and/or sse2 had to be dropped. 10968 # 10969 for i in $fat_path; do 10970 tmp_suffix=`echo $i | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'` 10971 CPUVEC_list="$CPUVEC_list CPUVEC_SETUP_$tmp_suffix" 10972 done 10973 10974 10975 # If there's any sse2 or mmx in the path, check whether the assembler 10976 # supports it, and remove if not. 10977 # 10978 # We only need this in ABI=32, for ABI=64 on x86_64 we can assume a new 10979 # enough assembler. 10980 # 10981 case $host in 10982 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar*-*-* | bulldozer*-*-* | piledriver*-*-* | steamroller*-*-* | excavator*-*-* | zen*-*-* | pentium4-*-* | atom-*-* | silvermont-*-* | goldmont-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-* | nehalem*-*-* | westmere*-*-* | sandybridge*-*-* | ivybridge*-*-* | haswell*-*-* | broadwell*-*-* | skylake*-*-* | kabylake*-*-*) 10983 if test "$ABI" = 32; then 10984 case "$path $fat_path" in 10985 *mmx*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about MMX instructions" >&5 10986 $as_echo_n "checking if the assembler knows about MMX instructions... " >&6; } 10987 if ${gmp_cv_asm_x86_mmx+:} false; then : 10988 $as_echo_n "(cached) " >&6 10989 else 10990 cat >conftest.s <<EOF 10991 .text 10992 movq %mm0, %mm1 10993 EOF 10994 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 10995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 10996 (eval $gmp_assemble) 2>&5 10997 ac_status=$? 10998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10999 test $ac_status = 0; }; then 11000 cat conftest.out >&5 11001 gmp_cv_asm_x86_mmx=yes 11002 case $host in 11003 *-*-solaris*) 11004 if (dis conftest.$OBJEXT >conftest.out) 2>/dev/null; then 11005 if grep "0f 6f c1" conftest.out >/dev/null; then 11006 gmp_cv_asm_x86_mmx=movq-bug 11007 fi 11008 else 11009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"dis\" not available to check for \"as\" movq bug" >&5 11010 $as_echo "$as_me: WARNING: \"dis\" not available to check for \"as\" movq bug" >&2;} 11011 fi 11012 esac 11013 else 11014 cat conftest.out >&5 11015 echo "configure: failed program was:" >&5 11016 cat conftest.s >&5 11017 gmp_cv_asm_x86_mmx=no 11018 fi 11019 rm -f conftest* 11020 11021 fi 11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_mmx" >&5 11023 $as_echo "$gmp_cv_asm_x86_mmx" >&6; } 11024 11025 case $gmp_cv_asm_x86_mmx in 11026 movq-bug) 11027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5 11028 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} 11029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5 11030 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;} 11031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but the assembler" >&5 11032 $as_echo "$as_me: WARNING: | Host CPU has MMX code, but the assembler" >&2;} 11033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5 11034 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;} 11035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&5 11036 $as_echo "$as_me: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&2;} 11037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | movq operands are reversed." >&5 11038 $as_echo "$as_me: WARNING: | movq operands are reversed." >&2;} 11039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5 11040 $as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;} 11041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5 11042 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;} 11043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5 11044 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} 11045 ;; 11046 no) 11047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5 11048 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} 11049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5 11050 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;} 11051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&5 11052 $as_echo "$as_me: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&2;} 11053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5 11054 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;} 11055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5 11056 $as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;} 11057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5 11058 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;} 11059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5 11060 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} 11061 ;; 11062 esac 11063 if test "$gmp_cv_asm_x86_mmx" = yes; then 11064 : 11065 else 11066 tmp_path= 11067 for i in $path; do 11068 case $i in 11069 */*mmx*) ;; 11070 *) tmp_path="$tmp_path $i" ;; 11071 esac 11072 done 11073 path="$tmp_path" 11074 11075 tmp_path= 11076 for i in $fat_path; do 11077 case $i in 11078 */*mmx*) ;; 11079 *) tmp_path="$tmp_path $i" ;; 11080 esac 11081 done 11082 fat_path="$tmp_path" 11083 11084 11085 fi 11086 ;; 11087 esac 11088 case "$path $fat_path" in 11089 *sse2*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about SSE2 instructions" >&5 11090 $as_echo_n "checking if the assembler knows about SSE2 instructions... " >&6; } 11091 if ${gmp_cv_asm_x86_sse2+:} false; then : 11092 $as_echo_n "(cached) " >&6 11093 else 11094 cat >conftest.s <<EOF 11095 .text 11096 paddq %mm0, %mm1 11097 EOF 11098 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 11099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 11100 (eval $gmp_assemble) 2>&5 11101 ac_status=$? 11102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11103 test $ac_status = 0; }; then 11104 cat conftest.out >&5 11105 gmp_cv_asm_x86_sse2=yes 11106 else 11107 cat conftest.out >&5 11108 echo "configure: failed program was:" >&5 11109 cat conftest.s >&5 11110 gmp_cv_asm_x86_sse2=no 11111 fi 11112 rm -f conftest* 11113 11114 11115 fi 11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_sse2" >&5 11117 $as_echo "$gmp_cv_asm_x86_sse2" >&6; } 11118 case $gmp_cv_asm_x86_sse2 in 11119 yes) 11120 : 11121 ;; 11122 *) 11123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5 11124 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} 11125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5 11126 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;} 11127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&5 11128 $as_echo "$as_me: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&2;} 11129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5 11130 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;} 11131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-SSE2 replacements will be used." >&5 11132 $as_echo "$as_me: WARNING: | Non-SSE2 replacements will be used." >&2;} 11133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5 11134 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;} 11135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5 11136 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} 11137 tmp_path= 11138 for i in $path; do 11139 case $i in 11140 */sse2) ;; 11141 *) tmp_path="$tmp_path $i" ;; 11142 esac 11143 done 11144 path="$tmp_path" 11145 11146 tmp_path= 11147 for i in $fat_path; do 11148 case $i in 11149 */sse2) ;; 11150 *) tmp_path="$tmp_path $i" ;; 11151 esac 11152 done 11153 fat_path="$tmp_path" 11154 11155 11156 ;; 11157 esac 11158 ;; 11159 esac 11160 fi 11161 ;; 11162 esac 11163 11164 11165 if test "$enable_assembly" = "no"; then 11166 path="generic" 11167 11168 $as_echo "#define NO_ASM 1" >>confdefs.h 11169 11170 # for abi in $abilist; do 11171 # eval unset "path_\$abi" 11172 # eval gcc_${abi}_cflags=\"\$gcc_${abi}_cflags -DNO_ASM\" 11173 # done 11174 fi 11175 11176 11177 cat >&5 <<EOF 11178 Decided: 11179 ABI=$ABI 11180 CC=$CC 11181 CFLAGS=$CFLAGS 11182 CPPFLAGS=$CPPFLAGS 11183 GMP_LDFLAGS=$GMP_LDFLAGS 11184 CXX=$CXX 11185 CXXFLAGS=$CXXFLAGS 11186 path=$path 11187 EOF 11188 echo "using ABI=\"$ABI\"" 11189 echo " CC=\"$CC\"" 11190 echo " CFLAGS=\"$CFLAGS\"" 11191 echo " CPPFLAGS=\"$CPPFLAGS\"" 11192 if test $want_cxx = yes; then 11193 echo " CXX=\"$CXX\"" 11194 echo " CXXFLAGS=\"$CXXFLAGS\"" 11195 fi 11196 echo " MPN_PATH=\"$path\"" 11197 11198 11199 11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports --noexecstack option" >&5 11201 $as_echo_n "checking whether assembler supports --noexecstack option... " >&6; } 11202 if ${cl_cv_as_noexecstack+:} false; then : 11203 $as_echo_n "(cached) " >&6 11204 else 11205 cat > conftest.c <<EOF 11206 void foo() {} 11207 EOF 11208 if { ac_try='${CC} $CFLAGS $CPPFLAGS 11209 -S -o conftest.s conftest.c >/dev/null' 11210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 11211 (eval $ac_try) 2>&5 11212 ac_status=$? 11213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11214 test $ac_status = 0; }; } \ 11215 && grep .note.GNU-stack conftest.s >/dev/null \ 11216 && { ac_try='${CC} $CFLAGS $CPPFLAGS -Wa,--noexecstack 11217 -c -o conftest.o conftest.s >/dev/null' 11218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 11219 (eval $ac_try) 2>&5 11220 ac_status=$? 11221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11222 test $ac_status = 0; }; } 11223 then 11224 cl_cv_as_noexecstack=yes 11225 else 11226 cl_cv_as_noexecstack=no 11227 fi 11228 rm -f conftest* 11229 fi 11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_as_noexecstack" >&5 11231 $as_echo "$cl_cv_as_noexecstack" >&6; } 11232 if test "$cl_cv_as_noexecstack" = yes; then 11233 ASMFLAGS="$ASMFLAGS -Wa,--noexecstack" 11234 fi 11235 11236 11237 11238 11239 gmp_user_AR=$AR 11240 if test -n "$ac_tool_prefix"; then 11241 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 11242 set dummy ${ac_tool_prefix}ar; ac_word=$2 11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11244 $as_echo_n "checking for $ac_word... " >&6; } 11245 if ${ac_cv_prog_AR+:} false; then : 11246 $as_echo_n "(cached) " >&6 11247 else 11248 if test -n "$AR"; then 11249 ac_cv_prog_AR="$AR" # Let the user override the test. 11250 else 11251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11252 for as_dir in $PATH 11253 do 11254 IFS=$as_save_IFS 11255 test -z "$as_dir" && as_dir=. 11256 for ac_exec_ext in '' $ac_executable_extensions; do 11257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11258 ac_cv_prog_AR="${ac_tool_prefix}ar" 11259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11260 break 2 11261 fi 11262 done 11263 done 11264 IFS=$as_save_IFS 11265 11266 fi 11267 fi 11268 AR=$ac_cv_prog_AR 11269 if test -n "$AR"; then 11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 11271 $as_echo "$AR" >&6; } 11272 else 11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11274 $as_echo "no" >&6; } 11275 fi 11276 11277 11278 fi 11279 if test -z "$ac_cv_prog_AR"; then 11280 ac_ct_AR=$AR 11281 # Extract the first word of "ar", so it can be a program name with args. 11282 set dummy ar; ac_word=$2 11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11284 $as_echo_n "checking for $ac_word... " >&6; } 11285 if ${ac_cv_prog_ac_ct_AR+:} false; then : 11286 $as_echo_n "(cached) " >&6 11287 else 11288 if test -n "$ac_ct_AR"; then 11289 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 11290 else 11291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11292 for as_dir in $PATH 11293 do 11294 IFS=$as_save_IFS 11295 test -z "$as_dir" && as_dir=. 11296 for ac_exec_ext in '' $ac_executable_extensions; do 11297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11298 ac_cv_prog_ac_ct_AR="ar" 11299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11300 break 2 11301 fi 11302 done 11303 done 11304 IFS=$as_save_IFS 11305 11306 fi 11307 fi 11308 ac_ct_AR=$ac_cv_prog_ac_ct_AR 11309 if test -n "$ac_ct_AR"; then 11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 11311 $as_echo "$ac_ct_AR" >&6; } 11312 else 11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11314 $as_echo "no" >&6; } 11315 fi 11316 11317 if test "x$ac_ct_AR" = x; then 11318 AR="ar" 11319 else 11320 case $cross_compiling:$ac_tool_warned in 11321 yes:) 11322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11324 ac_tool_warned=yes ;; 11325 esac 11326 AR=$ac_ct_AR 11327 fi 11328 else 11329 AR="$ac_cv_prog_AR" 11330 fi 11331 11332 if test -z "$gmp_user_AR"; then 11333 eval arflags=\"\$ar${abi1}_flags\" 11334 test -n "$arflags" || eval arflags=\"\$ar${abi2}_flags\" 11335 if test -n "$arflags"; then 11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra ar flags" >&5 11337 $as_echo_n "checking for extra ar flags... " >&6; } 11338 AR="$AR $arflags" 11339 ac_cv_prog_AR="$AR $arflags" 11340 ac_cv_prog_ac_ct_AR="$AR $arflags" 11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arflags" >&5 11342 $as_echo "$arflags" >&6; } 11343 fi 11344 fi 11345 if test -z "$AR_FLAGS"; then 11346 AR_FLAGS=cq 11347 fi 11348 11349 11350 gmp_user_NM=$NM 11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11352 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11353 if ${lt_cv_path_NM+:} false; then : 11354 $as_echo_n "(cached) " >&6 11355 else 11356 if test -n "$NM"; then 11357 # Let the user override the test. 11358 lt_cv_path_NM=$NM 11359 else 11360 lt_nm_to_check=${ac_tool_prefix}nm 11361 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11362 lt_nm_to_check="$lt_nm_to_check nm" 11363 fi 11364 for lt_tmp_nm in $lt_nm_to_check; do 11365 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11366 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11367 IFS=$lt_save_ifs 11368 test -z "$ac_dir" && ac_dir=. 11369 tmp_nm=$ac_dir/$lt_tmp_nm 11370 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11371 # Check to see if the nm accepts a BSD-compat flag. 11372 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11373 # nm: unknown option "B" ignored 11374 # Tru64's nm complains that /dev/null is an invalid object file 11375 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11376 case $build_os in 11377 mingw*) lt_bad_file=conftest.nm/nofile ;; 11378 *) lt_bad_file=/dev/null ;; 11379 esac 11380 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11381 *$lt_bad_file* | *'Invalid file or object type'*) 11382 lt_cv_path_NM="$tmp_nm -B" 11383 break 2 11384 ;; 11385 *) 11386 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11387 */dev/null*) 11388 lt_cv_path_NM="$tmp_nm -p" 11389 break 2 11390 ;; 11391 *) 11392 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11393 continue # so that we can try to find one that supports BSD flags 11394 ;; 11395 esac 11396 ;; 11397 esac 11398 fi 11399 done 11400 IFS=$lt_save_ifs 11401 done 11402 : ${lt_cv_path_NM=no} 11403 fi 11404 fi 11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11406 $as_echo "$lt_cv_path_NM" >&6; } 11407 if test no != "$lt_cv_path_NM"; then 11408 NM=$lt_cv_path_NM 11409 else 11410 # Didn't find any BSD compatible name lister, look for dumpbin. 11411 if test -n "$DUMPBIN"; then : 11412 # Let the user override the test. 11413 else 11414 if test -n "$ac_tool_prefix"; then 11415 for ac_prog in dumpbin "link -dump" 11416 do 11417 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11418 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11420 $as_echo_n "checking for $ac_word... " >&6; } 11421 if ${ac_cv_prog_DUMPBIN+:} false; then : 11422 $as_echo_n "(cached) " >&6 11423 else 11424 if test -n "$DUMPBIN"; then 11425 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11426 else 11427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11428 for as_dir in $PATH 11429 do 11430 IFS=$as_save_IFS 11431 test -z "$as_dir" && as_dir=. 11432 for ac_exec_ext in '' $ac_executable_extensions; do 11433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11434 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11436 break 2 11437 fi 11438 done 11439 done 11440 IFS=$as_save_IFS 11441 11442 fi 11443 fi 11444 DUMPBIN=$ac_cv_prog_DUMPBIN 11445 if test -n "$DUMPBIN"; then 11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11447 $as_echo "$DUMPBIN" >&6; } 11448 else 11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11450 $as_echo "no" >&6; } 11451 fi 11452 11453 11454 test -n "$DUMPBIN" && break 11455 done 11456 fi 11457 if test -z "$DUMPBIN"; then 11458 ac_ct_DUMPBIN=$DUMPBIN 11459 for ac_prog in dumpbin "link -dump" 11460 do 11461 # Extract the first word of "$ac_prog", so it can be a program name with args. 11462 set dummy $ac_prog; ac_word=$2 11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11464 $as_echo_n "checking for $ac_word... " >&6; } 11465 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11466 $as_echo_n "(cached) " >&6 11467 else 11468 if test -n "$ac_ct_DUMPBIN"; then 11469 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11470 else 11471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11472 for as_dir in $PATH 11473 do 11474 IFS=$as_save_IFS 11475 test -z "$as_dir" && as_dir=. 11476 for ac_exec_ext in '' $ac_executable_extensions; do 11477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11478 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11480 break 2 11481 fi 11482 done 11483 done 11484 IFS=$as_save_IFS 11485 11486 fi 11487 fi 11488 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11489 if test -n "$ac_ct_DUMPBIN"; then 11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11491 $as_echo "$ac_ct_DUMPBIN" >&6; } 11492 else 11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11494 $as_echo "no" >&6; } 11495 fi 11496 11497 11498 test -n "$ac_ct_DUMPBIN" && break 11499 done 11500 11501 if test "x$ac_ct_DUMPBIN" = x; then 11502 DUMPBIN=":" 11503 else 11504 case $cross_compiling:$ac_tool_warned in 11505 yes:) 11506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11508 ac_tool_warned=yes ;; 11509 esac 11510 DUMPBIN=$ac_ct_DUMPBIN 11511 fi 11512 fi 11513 11514 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11515 *COFF*) 11516 DUMPBIN="$DUMPBIN -symbols -headers" 11517 ;; 11518 *) 11519 DUMPBIN=: 11520 ;; 11521 esac 11522 fi 11523 11524 if test : != "$DUMPBIN"; then 11525 NM=$DUMPBIN 11526 fi 11527 fi 11528 test -z "$NM" && NM=nm 11529 11530 11531 11532 11533 11534 11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11536 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 11537 if ${lt_cv_nm_interface+:} false; then : 11538 $as_echo_n "(cached) " >&6 11539 else 11540 lt_cv_nm_interface="BSD nm" 11541 echo "int some_variable = 0;" > conftest.$ac_ext 11542 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11543 (eval "$ac_compile" 2>conftest.err) 11544 cat conftest.err >&5 11545 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11546 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11547 cat conftest.err >&5 11548 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11549 cat conftest.out >&5 11550 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11551 lt_cv_nm_interface="MS dumpbin" 11552 fi 11553 rm -f conftest* 11554 fi 11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11556 $as_echo "$lt_cv_nm_interface" >&6; } 11557 11558 11559 # FIXME: When cross compiling (ie. $ac_tool_prefix not empty), libtool 11560 # defaults to plain "nm" if a "${ac_tool_prefix}nm" is not found. In this 11561 # case run it again to try the native "nm", firstly so that likely locations 11562 # are searched, secondly so that -B or -p are added if necessary for BSD 11563 # format. This is necessary for instance on OSF with "./configure 11564 # --build=alphaev5-dec-osf --host=alphaev6-dec-osf". 11565 # 11566 if test -z "$gmp_user_NM" && test -n "$ac_tool_prefix" && test "$NM" = nm; then 11567 $as_unset lt_cv_path_NM 11568 gmp_save_ac_tool_prefix=$ac_tool_prefix 11569 ac_tool_prefix= 11570 NM= 11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11572 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11573 if ${lt_cv_path_NM+:} false; then : 11574 $as_echo_n "(cached) " >&6 11575 else 11576 if test -n "$NM"; then 11577 # Let the user override the test. 11578 lt_cv_path_NM=$NM 11579 else 11580 lt_nm_to_check=${ac_tool_prefix}nm 11581 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11582 lt_nm_to_check="$lt_nm_to_check nm" 11583 fi 11584 for lt_tmp_nm in $lt_nm_to_check; do 11585 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11586 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11587 IFS=$lt_save_ifs 11588 test -z "$ac_dir" && ac_dir=. 11589 tmp_nm=$ac_dir/$lt_tmp_nm 11590 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11591 # Check to see if the nm accepts a BSD-compat flag. 11592 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11593 # nm: unknown option "B" ignored 11594 # Tru64's nm complains that /dev/null is an invalid object file 11595 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11596 case $build_os in 11597 mingw*) lt_bad_file=conftest.nm/nofile ;; 11598 *) lt_bad_file=/dev/null ;; 11599 esac 11600 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11601 *$lt_bad_file* | *'Invalid file or object type'*) 11602 lt_cv_path_NM="$tmp_nm -B" 11603 break 2 11604 ;; 11605 *) 11606 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11607 */dev/null*) 11608 lt_cv_path_NM="$tmp_nm -p" 11609 break 2 11610 ;; 11611 *) 11612 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11613 continue # so that we can try to find one that supports BSD flags 11614 ;; 11615 esac 11616 ;; 11617 esac 11618 fi 11619 done 11620 IFS=$lt_save_ifs 11621 done 11622 : ${lt_cv_path_NM=no} 11623 fi 11624 fi 11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11626 $as_echo "$lt_cv_path_NM" >&6; } 11627 if test no != "$lt_cv_path_NM"; then 11628 NM=$lt_cv_path_NM 11629 else 11630 # Didn't find any BSD compatible name lister, look for dumpbin. 11631 if test -n "$DUMPBIN"; then : 11632 # Let the user override the test. 11633 else 11634 if test -n "$ac_tool_prefix"; then 11635 for ac_prog in dumpbin "link -dump" 11636 do 11637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11640 $as_echo_n "checking for $ac_word... " >&6; } 11641 if ${ac_cv_prog_DUMPBIN+:} false; then : 11642 $as_echo_n "(cached) " >&6 11643 else 11644 if test -n "$DUMPBIN"; then 11645 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11646 else 11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11648 for as_dir in $PATH 11649 do 11650 IFS=$as_save_IFS 11651 test -z "$as_dir" && as_dir=. 11652 for ac_exec_ext in '' $ac_executable_extensions; do 11653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11654 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11656 break 2 11657 fi 11658 done 11659 done 11660 IFS=$as_save_IFS 11661 11662 fi 11663 fi 11664 DUMPBIN=$ac_cv_prog_DUMPBIN 11665 if test -n "$DUMPBIN"; then 11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11667 $as_echo "$DUMPBIN" >&6; } 11668 else 11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11670 $as_echo "no" >&6; } 11671 fi 11672 11673 11674 test -n "$DUMPBIN" && break 11675 done 11676 fi 11677 if test -z "$DUMPBIN"; then 11678 ac_ct_DUMPBIN=$DUMPBIN 11679 for ac_prog in dumpbin "link -dump" 11680 do 11681 # Extract the first word of "$ac_prog", so it can be a program name with args. 11682 set dummy $ac_prog; ac_word=$2 11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11684 $as_echo_n "checking for $ac_word... " >&6; } 11685 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11686 $as_echo_n "(cached) " >&6 11687 else 11688 if test -n "$ac_ct_DUMPBIN"; then 11689 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11690 else 11691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11692 for as_dir in $PATH 11693 do 11694 IFS=$as_save_IFS 11695 test -z "$as_dir" && as_dir=. 11696 for ac_exec_ext in '' $ac_executable_extensions; do 11697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11698 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11700 break 2 11701 fi 11702 done 11703 done 11704 IFS=$as_save_IFS 11705 11706 fi 11707 fi 11708 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11709 if test -n "$ac_ct_DUMPBIN"; then 11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11711 $as_echo "$ac_ct_DUMPBIN" >&6; } 11712 else 11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11714 $as_echo "no" >&6; } 11715 fi 11716 11717 11718 test -n "$ac_ct_DUMPBIN" && break 11719 done 11720 11721 if test "x$ac_ct_DUMPBIN" = x; then 11722 DUMPBIN=":" 11723 else 11724 case $cross_compiling:$ac_tool_warned in 11725 yes:) 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11728 ac_tool_warned=yes ;; 11729 esac 11730 DUMPBIN=$ac_ct_DUMPBIN 11731 fi 11732 fi 11733 11734 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11735 *COFF*) 11736 DUMPBIN="$DUMPBIN -symbols -headers" 11737 ;; 11738 *) 11739 DUMPBIN=: 11740 ;; 11741 esac 11742 fi 11743 11744 if test : != "$DUMPBIN"; then 11745 NM=$DUMPBIN 11746 fi 11747 fi 11748 test -z "$NM" && NM=nm 11749 11750 11751 11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11753 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 11754 if ${lt_cv_nm_interface+:} false; then : 11755 $as_echo_n "(cached) " >&6 11756 else 11757 lt_cv_nm_interface="BSD nm" 11758 echo "int some_variable = 0;" > conftest.$ac_ext 11759 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11760 (eval "$ac_compile" 2>conftest.err) 11761 cat conftest.err >&5 11762 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11763 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11764 cat conftest.err >&5 11765 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11766 cat conftest.out >&5 11767 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11768 lt_cv_nm_interface="MS dumpbin" 11769 fi 11770 rm -f conftest* 11771 fi 11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11773 $as_echo "$lt_cv_nm_interface" >&6; } 11774 11775 ac_tool_prefix=$gmp_save_ac_tool_prefix 11776 fi 11777 11778 if test -z "$gmp_user_NM"; then 11779 eval nmflags=\"\$nm${abi1}_flags\" 11780 test -n "$nmflags" || eval nmflags=\"\$nm${abi2}_flags\" 11781 if test -n "$nmflags"; then 11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra nm flags" >&5 11783 $as_echo_n "checking for extra nm flags... " >&6; } 11784 NM="$NM $nmflags" 11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nmflags" >&5 11786 $as_echo "$nmflags" >&6; } 11787 fi 11788 fi 11789 11790 11791 case $host in 11792 # FIXME: On AIX 3 and 4, $libname.a is included in libtool 11793 # $library_names_spec, so libgmp.a becomes a symlink to libgmp.so, making 11794 # it impossible to build shared and static libraries simultaneously. 11795 # Disable shared libraries by default, but let the user override with 11796 # --enable-shared --disable-static. 11797 # 11798 # FIXME: This $libname.a problem looks like it might apply to *-*-amigaos* 11799 # and *-*-os2* too, but wait for someone to test this before worrying 11800 # about it. If there is a problem then of course libtool is the right 11801 # place to fix it. 11802 # 11803 *-*-aix[34]*) 11804 if test -z "$enable_shared"; then enable_shared=no; fi ;; 11805 esac 11806 11807 11808 # Configs for Windows DLLs. 11809 11810 enable_win32_dll=yes 11811 11812 case $host in 11813 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 11814 if test -n "$ac_tool_prefix"; then 11815 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 11816 set dummy ${ac_tool_prefix}as; ac_word=$2 11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11818 $as_echo_n "checking for $ac_word... " >&6; } 11819 if ${ac_cv_prog_AS+:} false; then : 11820 $as_echo_n "(cached) " >&6 11821 else 11822 if test -n "$AS"; then 11823 ac_cv_prog_AS="$AS" # Let the user override the test. 11824 else 11825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11826 for as_dir in $PATH 11827 do 11828 IFS=$as_save_IFS 11829 test -z "$as_dir" && as_dir=. 11830 for ac_exec_ext in '' $ac_executable_extensions; do 11831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11832 ac_cv_prog_AS="${ac_tool_prefix}as" 11833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11834 break 2 11835 fi 11836 done 11837 done 11838 IFS=$as_save_IFS 11839 11840 fi 11841 fi 11842 AS=$ac_cv_prog_AS 11843 if test -n "$AS"; then 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 11845 $as_echo "$AS" >&6; } 11846 else 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11848 $as_echo "no" >&6; } 11849 fi 11850 11851 11852 fi 11853 if test -z "$ac_cv_prog_AS"; then 11854 ac_ct_AS=$AS 11855 # Extract the first word of "as", so it can be a program name with args. 11856 set dummy as; ac_word=$2 11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11858 $as_echo_n "checking for $ac_word... " >&6; } 11859 if ${ac_cv_prog_ac_ct_AS+:} false; then : 11860 $as_echo_n "(cached) " >&6 11861 else 11862 if test -n "$ac_ct_AS"; then 11863 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 11864 else 11865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11866 for as_dir in $PATH 11867 do 11868 IFS=$as_save_IFS 11869 test -z "$as_dir" && as_dir=. 11870 for ac_exec_ext in '' $ac_executable_extensions; do 11871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11872 ac_cv_prog_ac_ct_AS="as" 11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11874 break 2 11875 fi 11876 done 11877 done 11878 IFS=$as_save_IFS 11879 11880 fi 11881 fi 11882 ac_ct_AS=$ac_cv_prog_ac_ct_AS 11883 if test -n "$ac_ct_AS"; then 11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 11885 $as_echo "$ac_ct_AS" >&6; } 11886 else 11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11888 $as_echo "no" >&6; } 11889 fi 11890 11891 if test "x$ac_ct_AS" = x; then 11892 AS="false" 11893 else 11894 case $cross_compiling:$ac_tool_warned in 11895 yes:) 11896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11898 ac_tool_warned=yes ;; 11899 esac 11900 AS=$ac_ct_AS 11901 fi 11902 else 11903 AS="$ac_cv_prog_AS" 11904 fi 11905 11906 if test -n "$ac_tool_prefix"; then 11907 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 11908 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11910 $as_echo_n "checking for $ac_word... " >&6; } 11911 if ${ac_cv_prog_DLLTOOL+:} false; then : 11912 $as_echo_n "(cached) " >&6 11913 else 11914 if test -n "$DLLTOOL"; then 11915 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 11916 else 11917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11918 for as_dir in $PATH 11919 do 11920 IFS=$as_save_IFS 11921 test -z "$as_dir" && as_dir=. 11922 for ac_exec_ext in '' $ac_executable_extensions; do 11923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11924 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11926 break 2 11927 fi 11928 done 11929 done 11930 IFS=$as_save_IFS 11931 11932 fi 11933 fi 11934 DLLTOOL=$ac_cv_prog_DLLTOOL 11935 if test -n "$DLLTOOL"; then 11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 11937 $as_echo "$DLLTOOL" >&6; } 11938 else 11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11940 $as_echo "no" >&6; } 11941 fi 11942 11943 11944 fi 11945 if test -z "$ac_cv_prog_DLLTOOL"; then 11946 ac_ct_DLLTOOL=$DLLTOOL 11947 # Extract the first word of "dlltool", so it can be a program name with args. 11948 set dummy dlltool; ac_word=$2 11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11950 $as_echo_n "checking for $ac_word... " >&6; } 11951 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 11952 $as_echo_n "(cached) " >&6 11953 else 11954 if test -n "$ac_ct_DLLTOOL"; then 11955 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 11956 else 11957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11958 for as_dir in $PATH 11959 do 11960 IFS=$as_save_IFS 11961 test -z "$as_dir" && as_dir=. 11962 for ac_exec_ext in '' $ac_executable_extensions; do 11963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11964 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 11965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11966 break 2 11967 fi 11968 done 11969 done 11970 IFS=$as_save_IFS 11971 11972 fi 11973 fi 11974 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 11975 if test -n "$ac_ct_DLLTOOL"; then 11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 11977 $as_echo "$ac_ct_DLLTOOL" >&6; } 11978 else 11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11980 $as_echo "no" >&6; } 11981 fi 11982 11983 if test "x$ac_ct_DLLTOOL" = x; then 11984 DLLTOOL="false" 11985 else 11986 case $cross_compiling:$ac_tool_warned in 11987 yes:) 11988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11990 ac_tool_warned=yes ;; 11991 esac 11992 DLLTOOL=$ac_ct_DLLTOOL 11993 fi 11994 else 11995 DLLTOOL="$ac_cv_prog_DLLTOOL" 11996 fi 11997 11998 if test -n "$ac_tool_prefix"; then 11999 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12000 set dummy ${ac_tool_prefix}objdump; ac_word=$2 12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12002 $as_echo_n "checking for $ac_word... " >&6; } 12003 if ${ac_cv_prog_OBJDUMP+:} false; then : 12004 $as_echo_n "(cached) " >&6 12005 else 12006 if test -n "$OBJDUMP"; then 12007 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12008 else 12009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12010 for as_dir in $PATH 12011 do 12012 IFS=$as_save_IFS 12013 test -z "$as_dir" && as_dir=. 12014 for ac_exec_ext in '' $ac_executable_extensions; do 12015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12016 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12018 break 2 12019 fi 12020 done 12021 done 12022 IFS=$as_save_IFS 12023 12024 fi 12025 fi 12026 OBJDUMP=$ac_cv_prog_OBJDUMP 12027 if test -n "$OBJDUMP"; then 12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12029 $as_echo "$OBJDUMP" >&6; } 12030 else 12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12032 $as_echo "no" >&6; } 12033 fi 12034 12035 12036 fi 12037 if test -z "$ac_cv_prog_OBJDUMP"; then 12038 ac_ct_OBJDUMP=$OBJDUMP 12039 # Extract the first word of "objdump", so it can be a program name with args. 12040 set dummy objdump; ac_word=$2 12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12042 $as_echo_n "checking for $ac_word... " >&6; } 12043 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 12044 $as_echo_n "(cached) " >&6 12045 else 12046 if test -n "$ac_ct_OBJDUMP"; then 12047 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12048 else 12049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12050 for as_dir in $PATH 12051 do 12052 IFS=$as_save_IFS 12053 test -z "$as_dir" && as_dir=. 12054 for ac_exec_ext in '' $ac_executable_extensions; do 12055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12056 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12058 break 2 12059 fi 12060 done 12061 done 12062 IFS=$as_save_IFS 12063 12064 fi 12065 fi 12066 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12067 if test -n "$ac_ct_OBJDUMP"; then 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12069 $as_echo "$ac_ct_OBJDUMP" >&6; } 12070 else 12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12072 $as_echo "no" >&6; } 12073 fi 12074 12075 if test "x$ac_ct_OBJDUMP" = x; then 12076 OBJDUMP="false" 12077 else 12078 case $cross_compiling:$ac_tool_warned in 12079 yes:) 12080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12082 ac_tool_warned=yes ;; 12083 esac 12084 OBJDUMP=$ac_ct_OBJDUMP 12085 fi 12086 else 12087 OBJDUMP="$ac_cv_prog_OBJDUMP" 12088 fi 12089 12090 ;; 12091 esac 12092 12093 test -z "$AS" && AS=as 12094 12095 12096 12097 12098 12099 test -z "$DLLTOOL" && DLLTOOL=dlltool 12100 12101 12102 12103 12104 12105 test -z "$OBJDUMP" && OBJDUMP=objdump 12106 12107 12108 12109 12110 12111 12112 12113 12114 LIBGMP_DLL=0 12115 12116 case $host in 12117 *-*-cygwin* | *-*-mingw* | *-*-msys | *-*-pw32* | *-*-os2*) 12118 # By default, build only static. 12119 if test -z "$enable_shared"; then 12120 enable_shared=no 12121 fi 12122 # Don't allow both static and DLL. 12123 if test "$enable_shared" != no && test "$enable_static" != no; then 12124 as_fn_error $? "cannot build both static and DLL, since gmp.h is different for each. 12125 Use \"--disable-static --enable-shared\" to build just a DLL." "$LINENO" 5 12126 fi 12127 12128 # "-no-undefined" is required when building a DLL, see documentation on 12129 # AC_LIBTOOL_WIN32_DLL. 12130 # 12131 # "-Wl,--export-all-symbols" is a bit of a hack, it gets all libgmp and 12132 # libgmpxx functions and variables exported. This is what libtool did 12133 # in the past, and it's convenient for us in the test programs. 12134 # 12135 # Maybe it'd be prudent to check for --export-all-symbols before using 12136 # it, but it seems to have been in ld since at least 2000, and there's 12137 # not really any alternative we want to take up at the moment. 12138 # 12139 # "-Wl,output-def" is used to get a .def file for use by MS lib to make 12140 # a .lib import library, described in the manual. libgmp-3.dll.def 12141 # corresponds to the libmp-3.dll.def generated by libtool (as a result 12142 # of -export-symbols on that library). 12143 # 12144 # Incidentally, libtool does generate an import library libgmp.dll.a, 12145 # but it's "ar" format and cannot be used by the MS linker. There 12146 # doesn't seem to be any GNU tool for generating or converting to .lib. 12147 # 12148 # FIXME: The .def files produced by -Wl,output-def include isascii, 12149 # iscsym, iscsymf and toascii, apparently because mingw ctype.h doesn't 12150 # inline isascii (used in gmp). It gives an extern inline for 12151 # __isascii, but for some reason not the plain isascii. 12152 # 12153 if test "$enable_shared" = yes; then 12154 GMP_LDFLAGS="$GMP_LDFLAGS -no-undefined -Wl,--export-all-symbols" 12155 LIBGMP_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmp-3.dll.def" 12156 LIBGMPXX_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmpxx-3.dll.def" 12157 LIBGMP_DLL=1 12158 fi 12159 ;; 12160 esac 12161 12162 12163 # Ensure that $CONFIG_SHELL is available for AC_LIBTOOL_SYS_MAX_CMD_LEN. 12164 # It's often set already by _LT_AC_PROG_ECHO_BACKSLASH or 12165 # _AS_LINENO_PREPARE, but not always. 12166 # 12167 # The symptom of CONFIG_SHELL unset is some "expr" errors during the test, 12168 # and an empty result. This only happens when invoked as "sh configure", 12169 # ie. no path, and can be seen for instance on ia64-*-hpux*. 12170 # 12171 # FIXME: Newer libtool should have it's own fix for this. 12172 # 12173 if test -z "$CONFIG_SHELL"; then 12174 CONFIG_SHELL=$SHELL 12175 fi 12176 12177 # Enable CXX in libtool only if we want it, and never enable GCJ, nor RC on 12178 # mingw and cygwin. Under --disable-cxx this avoids some error messages 12179 # from libtool arising from the fact we didn't actually run AC_PROG_CXX. 12180 # Notice that any user-supplied --with-tags setting takes precedence. 12181 # 12182 # FIXME: Is this the right way to get this effect? Very possibly not, but 12183 # the current _LT_AC_TAGCONFIG doesn't really suggest an alternative. 12184 # 12185 if test "${with_tags+set}" != set; then 12186 if test $want_cxx = yes; then 12187 with_tags=CXX 12188 else 12189 with_tags= 12190 fi 12191 fi 12192 12193 # The dead hand of AC_REQUIRE makes AC_PROG_LIBTOOL expand and execute 12194 # AC_PROG_F77, even when F77 is not in the selected with_tags. This is 12195 # probably harmless, but it's unsightly and bloats our configure, so pretend 12196 # AC_PROG_F77 has been expanded already. 12197 # 12198 # FIXME: Rumour has it libtool will one day provide a way for a configure.in 12199 # to say what it wants from among supported languages etc. 12200 # 12201 #AC_PROVIDE([AC_PROG_F77]) 12202 12203 case `pwd` in 12204 *\ * | *\ *) 12205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 12206 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 12207 esac 12208 12209 12210 12211 macro_version='2.4.6' 12212 macro_revision='2.4.6' 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 ltmain=$ac_aux_dir/ltmain.sh 12227 12228 # Backslashify metacharacters that are still active within 12229 # double-quoted strings. 12230 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 12231 12232 # Same as above, but do not quote variable references. 12233 double_quote_subst='s/\(["`\\]\)/\\\1/g' 12234 12235 # Sed substitution to delay expansion of an escaped shell variable in a 12236 # double_quote_subst'ed string. 12237 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 12238 12239 # Sed substitution to delay expansion of an escaped single quote. 12240 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 12241 12242 # Sed substitution to avoid accidental globbing in evaled expressions 12243 no_glob_subst='s/\*/\\\*/g' 12244 12245 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12246 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 12247 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 12248 12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 12250 $as_echo_n "checking how to print strings... " >&6; } 12251 # Test print first, because it will be a builtin if present. 12252 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 12253 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 12254 ECHO='print -r --' 12255 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 12256 ECHO='printf %s\n' 12257 else 12258 # Use this function as a fallback that always works. 12259 func_fallback_echo () 12260 { 12261 eval 'cat <<_LTECHO_EOF 12262 $1 12263 _LTECHO_EOF' 12264 } 12265 ECHO='func_fallback_echo' 12266 fi 12267 12268 # func_echo_all arg... 12269 # Invoke $ECHO with all args, space-separated. 12270 func_echo_all () 12271 { 12272 $ECHO "" 12273 } 12274 12275 case $ECHO in 12276 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 12277 $as_echo "printf" >&6; } ;; 12278 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 12279 $as_echo "print -r" >&6; } ;; 12280 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 12281 $as_echo "cat" >&6; } ;; 12282 esac 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12298 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12299 if ${ac_cv_path_SED+:} false; then : 12300 $as_echo_n "(cached) " >&6 12301 else 12302 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12303 for ac_i in 1 2 3 4 5 6 7; do 12304 ac_script="$ac_script$as_nl$ac_script" 12305 done 12306 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12307 { ac_script=; unset ac_script;} 12308 if test -z "$SED"; then 12309 ac_path_SED_found=false 12310 # Loop through the user's path and test for each of PROGNAME-LIST 12311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12312 for as_dir in $PATH 12313 do 12314 IFS=$as_save_IFS 12315 test -z "$as_dir" && as_dir=. 12316 for ac_prog in sed gsed; do 12317 for ac_exec_ext in '' $ac_executable_extensions; do 12318 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12319 as_fn_executable_p "$ac_path_SED" || continue 12320 # Check for GNU ac_path_SED and select it if it is found. 12321 # Check for GNU $ac_path_SED 12322 case `"$ac_path_SED" --version 2>&1` in 12323 *GNU*) 12324 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12325 *) 12326 ac_count=0 12327 $as_echo_n 0123456789 >"conftest.in" 12328 while : 12329 do 12330 cat "conftest.in" "conftest.in" >"conftest.tmp" 12331 mv "conftest.tmp" "conftest.in" 12332 cp "conftest.in" "conftest.nl" 12333 $as_echo '' >> "conftest.nl" 12334 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12336 as_fn_arith $ac_count + 1 && ac_count=$as_val 12337 if test $ac_count -gt ${ac_path_SED_max-0}; then 12338 # Best one so far, save it but keep looking for a better one 12339 ac_cv_path_SED="$ac_path_SED" 12340 ac_path_SED_max=$ac_count 12341 fi 12342 # 10*(2^10) chars as input seems more than enough 12343 test $ac_count -gt 10 && break 12344 done 12345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12346 esac 12347 12348 $ac_path_SED_found && break 3 12349 done 12350 done 12351 done 12352 IFS=$as_save_IFS 12353 if test -z "$ac_cv_path_SED"; then 12354 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12355 fi 12356 else 12357 ac_cv_path_SED=$SED 12358 fi 12359 12360 fi 12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12362 $as_echo "$ac_cv_path_SED" >&6; } 12363 SED="$ac_cv_path_SED" 12364 rm -f conftest.sed 12365 12366 test -z "$SED" && SED=sed 12367 Xsed="$SED -e 1s/^X//" 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12380 $as_echo_n "checking for fgrep... " >&6; } 12381 if ${ac_cv_path_FGREP+:} false; then : 12382 $as_echo_n "(cached) " >&6 12383 else 12384 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12385 then ac_cv_path_FGREP="$GREP -F" 12386 else 12387 if test -z "$FGREP"; then 12388 ac_path_FGREP_found=false 12389 # Loop through the user's path and test for each of PROGNAME-LIST 12390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12391 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12392 do 12393 IFS=$as_save_IFS 12394 test -z "$as_dir" && as_dir=. 12395 for ac_prog in fgrep; do 12396 for ac_exec_ext in '' $ac_executable_extensions; do 12397 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12398 as_fn_executable_p "$ac_path_FGREP" || continue 12399 # Check for GNU ac_path_FGREP and select it if it is found. 12400 # Check for GNU $ac_path_FGREP 12401 case `"$ac_path_FGREP" --version 2>&1` in 12402 *GNU*) 12403 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12404 *) 12405 ac_count=0 12406 $as_echo_n 0123456789 >"conftest.in" 12407 while : 12408 do 12409 cat "conftest.in" "conftest.in" >"conftest.tmp" 12410 mv "conftest.tmp" "conftest.in" 12411 cp "conftest.in" "conftest.nl" 12412 $as_echo 'FGREP' >> "conftest.nl" 12413 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12415 as_fn_arith $ac_count + 1 && ac_count=$as_val 12416 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12417 # Best one so far, save it but keep looking for a better one 12418 ac_cv_path_FGREP="$ac_path_FGREP" 12419 ac_path_FGREP_max=$ac_count 12420 fi 12421 # 10*(2^10) chars as input seems more than enough 12422 test $ac_count -gt 10 && break 12423 done 12424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12425 esac 12426 12427 $ac_path_FGREP_found && break 3 12428 done 12429 done 12430 done 12431 IFS=$as_save_IFS 12432 if test -z "$ac_cv_path_FGREP"; then 12433 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12434 fi 12435 else 12436 ac_cv_path_FGREP=$FGREP 12437 fi 12438 12439 fi 12440 fi 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12442 $as_echo "$ac_cv_path_FGREP" >&6; } 12443 FGREP="$ac_cv_path_FGREP" 12444 12445 12446 test -z "$GREP" && GREP=grep 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 # Check whether --with-gnu-ld was given. 12467 if test "${with_gnu_ld+set}" = set; then : 12468 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 12469 else 12470 with_gnu_ld=no 12471 fi 12472 12473 ac_prog=ld 12474 if test yes = "$GCC"; then 12475 # Check if gcc -print-prog-name=ld gives a path. 12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12477 $as_echo_n "checking for ld used by $CC... " >&6; } 12478 case $host in 12479 *-*-mingw*) 12480 # gcc leaves a trailing carriage return, which upsets mingw 12481 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12482 *) 12483 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12484 esac 12485 case $ac_prog in 12486 # Accept absolute paths. 12487 [\\/]* | ?:[\\/]*) 12488 re_direlt='/[^/][^/]*/\.\./' 12489 # Canonicalize the pathname of ld 12490 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12491 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12492 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12493 done 12494 test -z "$LD" && LD=$ac_prog 12495 ;; 12496 "") 12497 # If it fails, then pretend we aren't using GCC. 12498 ac_prog=ld 12499 ;; 12500 *) 12501 # If it is relative, then search for the first ld in PATH. 12502 with_gnu_ld=unknown 12503 ;; 12504 esac 12505 elif test yes = "$with_gnu_ld"; then 12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12507 $as_echo_n "checking for GNU ld... " >&6; } 12508 else 12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12510 $as_echo_n "checking for non-GNU ld... " >&6; } 12511 fi 12512 if ${lt_cv_path_LD+:} false; then : 12513 $as_echo_n "(cached) " >&6 12514 else 12515 if test -z "$LD"; then 12516 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12517 for ac_dir in $PATH; do 12518 IFS=$lt_save_ifs 12519 test -z "$ac_dir" && ac_dir=. 12520 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12521 lt_cv_path_LD=$ac_dir/$ac_prog 12522 # Check to see if the program is GNU ld. I'd rather use --version, 12523 # but apparently some variants of GNU ld only accept -v. 12524 # Break only if it was the GNU/non-GNU ld that we prefer. 12525 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12526 *GNU* | *'with BFD'*) 12527 test no != "$with_gnu_ld" && break 12528 ;; 12529 *) 12530 test yes != "$with_gnu_ld" && break 12531 ;; 12532 esac 12533 fi 12534 done 12535 IFS=$lt_save_ifs 12536 else 12537 lt_cv_path_LD=$LD # Let the user override the test with a path. 12538 fi 12539 fi 12540 12541 LD=$lt_cv_path_LD 12542 if test -n "$LD"; then 12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12544 $as_echo "$LD" >&6; } 12545 else 12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12547 $as_echo "no" >&6; } 12548 fi 12549 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12551 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12552 if ${lt_cv_prog_gnu_ld+:} false; then : 12553 $as_echo_n "(cached) " >&6 12554 else 12555 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12556 case `$LD -v 2>&1 </dev/null` in 12557 *GNU* | *'with BFD'*) 12558 lt_cv_prog_gnu_ld=yes 12559 ;; 12560 *) 12561 lt_cv_prog_gnu_ld=no 12562 ;; 12563 esac 12564 fi 12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12566 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 12567 with_gnu_ld=$lt_cv_prog_gnu_ld 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12578 $as_echo_n "checking whether ln -s works... " >&6; } 12579 LN_S=$as_ln_s 12580 if test "$LN_S" = "ln -s"; then 12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12582 $as_echo "yes" >&6; } 12583 else 12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12585 $as_echo "no, using $LN_S" >&6; } 12586 fi 12587 12588 # find the maximum length of command line arguments 12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12590 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 12591 if ${lt_cv_sys_max_cmd_len+:} false; then : 12592 $as_echo_n "(cached) " >&6 12593 else 12594 i=0 12595 teststring=ABCD 12596 12597 case $build_os in 12598 msdosdjgpp*) 12599 # On DJGPP, this test can blow up pretty badly due to problems in libc 12600 # (any single argument exceeding 2000 bytes causes a buffer overrun 12601 # during glob expansion). Even if it were fixed, the result of this 12602 # check would be larger than it should be. 12603 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12604 ;; 12605 12606 gnu*) 12607 # Under GNU Hurd, this test is not required because there is 12608 # no limit to the length of command line arguments. 12609 # Libtool will interpret -1 as no limit whatsoever 12610 lt_cv_sys_max_cmd_len=-1; 12611 ;; 12612 12613 cygwin* | mingw* | cegcc*) 12614 # On Win9x/ME, this test blows up -- it succeeds, but takes 12615 # about 5 minutes as the teststring grows exponentially. 12616 # Worse, since 9x/ME are not pre-emptively multitasking, 12617 # you end up with a "frozen" computer, even though with patience 12618 # the test eventually succeeds (with a max line length of 256k). 12619 # Instead, let's just punt: use the minimum linelength reported by 12620 # all of the supported platforms: 8192 (on NT/2K/XP). 12621 lt_cv_sys_max_cmd_len=8192; 12622 ;; 12623 12624 mint*) 12625 # On MiNT this can take a long time and run out of memory. 12626 lt_cv_sys_max_cmd_len=8192; 12627 ;; 12628 12629 amigaos*) 12630 # On AmigaOS with pdksh, this test takes hours, literally. 12631 # So we just punt and use a minimum line length of 8192. 12632 lt_cv_sys_max_cmd_len=8192; 12633 ;; 12634 12635 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 12636 # This has been around since 386BSD, at least. Likely further. 12637 if test -x /sbin/sysctl; then 12638 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12639 elif test -x /usr/sbin/sysctl; then 12640 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12641 else 12642 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12643 fi 12644 # And add a safety zone 12645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12646 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12647 ;; 12648 12649 interix*) 12650 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12651 lt_cv_sys_max_cmd_len=196608 12652 ;; 12653 12654 os2*) 12655 # The test takes a long time on OS/2. 12656 lt_cv_sys_max_cmd_len=8192 12657 ;; 12658 12659 osf*) 12660 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12661 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12662 # nice to cause kernel panics so lets avoid the loop below. 12663 # First set a reasonable default. 12664 lt_cv_sys_max_cmd_len=16384 12665 # 12666 if test -x /sbin/sysconfig; then 12667 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12668 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12669 esac 12670 fi 12671 ;; 12672 sco3.2v5*) 12673 lt_cv_sys_max_cmd_len=102400 12674 ;; 12675 sysv5* | sco5v6* | sysv4.2uw2*) 12676 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12677 if test -n "$kargmax"; then 12678 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 12679 else 12680 lt_cv_sys_max_cmd_len=32768 12681 fi 12682 ;; 12683 *) 12684 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12685 if test -n "$lt_cv_sys_max_cmd_len" && \ 12686 test undefined != "$lt_cv_sys_max_cmd_len"; then 12687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12689 else 12690 # Make teststring a little bigger before we do anything with it. 12691 # a 1K string should be a reasonable start. 12692 for i in 1 2 3 4 5 6 7 8; do 12693 teststring=$teststring$teststring 12694 done 12695 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12696 # If test is not a shell built-in, we'll probably end up computing a 12697 # maximum length that is only half of the actual maximum length, but 12698 # we can't tell. 12699 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12700 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12701 test 17 != "$i" # 1/2 MB should be enough 12702 do 12703 i=`expr $i + 1` 12704 teststring=$teststring$teststring 12705 done 12706 # Only check the string length outside the loop. 12707 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12708 teststring= 12709 # Add a significant safety factor because C++ compilers can tack on 12710 # massive amounts of additional arguments before passing them to the 12711 # linker. It appears as though 1/2 is a usable value. 12712 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12713 fi 12714 ;; 12715 esac 12716 12717 fi 12718 12719 if test -n "$lt_cv_sys_max_cmd_len"; then 12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12721 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 12722 else 12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 12724 $as_echo "none" >&6; } 12725 fi 12726 max_cmd_len=$lt_cv_sys_max_cmd_len 12727 12728 12729 12730 12731 12732 12733 : ${CP="cp -f"} 12734 : ${MV="mv -f"} 12735 : ${RM="rm -f"} 12736 12737 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12738 lt_unset=unset 12739 else 12740 lt_unset=false 12741 fi 12742 12743 12744 12745 12746 12747 # test EBCDIC or ASCII 12748 case `echo X|tr X '\101'` in 12749 A) # ASCII based system 12750 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12751 lt_SP2NL='tr \040 \012' 12752 lt_NL2SP='tr \015\012 \040\040' 12753 ;; 12754 *) # EBCDIC based system 12755 lt_SP2NL='tr \100 \n' 12756 lt_NL2SP='tr \r\n \100\100' 12757 ;; 12758 esac 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12769 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 12770 if ${lt_cv_to_host_file_cmd+:} false; then : 12771 $as_echo_n "(cached) " >&6 12772 else 12773 case $host in 12774 *-*-mingw* ) 12775 case $build in 12776 *-*-mingw* ) # actually msys 12777 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12778 ;; 12779 *-*-cygwin* ) 12780 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12781 ;; 12782 * ) # otherwise, assume *nix 12783 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12784 ;; 12785 esac 12786 ;; 12787 *-*-cygwin* ) 12788 case $build in 12789 *-*-mingw* ) # actually msys 12790 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12791 ;; 12792 *-*-cygwin* ) 12793 lt_cv_to_host_file_cmd=func_convert_file_noop 12794 ;; 12795 * ) # otherwise, assume *nix 12796 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12797 ;; 12798 esac 12799 ;; 12800 * ) # unhandled hosts (and "normal" native builds) 12801 lt_cv_to_host_file_cmd=func_convert_file_noop 12802 ;; 12803 esac 12804 12805 fi 12806 12807 to_host_file_cmd=$lt_cv_to_host_file_cmd 12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12809 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 12810 12811 12812 12813 12814 12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12816 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 12817 if ${lt_cv_to_tool_file_cmd+:} false; then : 12818 $as_echo_n "(cached) " >&6 12819 else 12820 #assume ordinary cross tools, or native build. 12821 lt_cv_to_tool_file_cmd=func_convert_file_noop 12822 case $host in 12823 *-*-mingw* ) 12824 case $build in 12825 *-*-mingw* ) # actually msys 12826 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12827 ;; 12828 esac 12829 ;; 12830 esac 12831 12832 fi 12833 12834 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12836 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 12837 12838 12839 12840 12841 12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12843 $as_echo_n "checking for $LD option to reload object files... " >&6; } 12844 if ${lt_cv_ld_reload_flag+:} false; then : 12845 $as_echo_n "(cached) " >&6 12846 else 12847 lt_cv_ld_reload_flag='-r' 12848 fi 12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12850 $as_echo "$lt_cv_ld_reload_flag" >&6; } 12851 reload_flag=$lt_cv_ld_reload_flag 12852 case $reload_flag in 12853 "" | " "*) ;; 12854 *) reload_flag=" $reload_flag" ;; 12855 esac 12856 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12857 case $host_os in 12858 cygwin* | mingw* | pw32* | cegcc*) 12859 if test yes != "$GCC"; then 12860 reload_cmds=false 12861 fi 12862 ;; 12863 darwin*) 12864 if test yes = "$GCC"; then 12865 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12866 else 12867 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12868 fi 12869 ;; 12870 esac 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 if test -n "$ac_tool_prefix"; then 12881 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12882 set dummy ${ac_tool_prefix}objdump; ac_word=$2 12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12884 $as_echo_n "checking for $ac_word... " >&6; } 12885 if ${ac_cv_prog_OBJDUMP+:} false; then : 12886 $as_echo_n "(cached) " >&6 12887 else 12888 if test -n "$OBJDUMP"; then 12889 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12890 else 12891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12892 for as_dir in $PATH 12893 do 12894 IFS=$as_save_IFS 12895 test -z "$as_dir" && as_dir=. 12896 for ac_exec_ext in '' $ac_executable_extensions; do 12897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12898 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12900 break 2 12901 fi 12902 done 12903 done 12904 IFS=$as_save_IFS 12905 12906 fi 12907 fi 12908 OBJDUMP=$ac_cv_prog_OBJDUMP 12909 if test -n "$OBJDUMP"; then 12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12911 $as_echo "$OBJDUMP" >&6; } 12912 else 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12914 $as_echo "no" >&6; } 12915 fi 12916 12917 12918 fi 12919 if test -z "$ac_cv_prog_OBJDUMP"; then 12920 ac_ct_OBJDUMP=$OBJDUMP 12921 # Extract the first word of "objdump", so it can be a program name with args. 12922 set dummy objdump; ac_word=$2 12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12924 $as_echo_n "checking for $ac_word... " >&6; } 12925 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 12926 $as_echo_n "(cached) " >&6 12927 else 12928 if test -n "$ac_ct_OBJDUMP"; then 12929 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12930 else 12931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12932 for as_dir in $PATH 12933 do 12934 IFS=$as_save_IFS 12935 test -z "$as_dir" && as_dir=. 12936 for ac_exec_ext in '' $ac_executable_extensions; do 12937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12938 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12940 break 2 12941 fi 12942 done 12943 done 12944 IFS=$as_save_IFS 12945 12946 fi 12947 fi 12948 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12949 if test -n "$ac_ct_OBJDUMP"; then 12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12951 $as_echo "$ac_ct_OBJDUMP" >&6; } 12952 else 12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12954 $as_echo "no" >&6; } 12955 fi 12956 12957 if test "x$ac_ct_OBJDUMP" = x; then 12958 OBJDUMP="false" 12959 else 12960 case $cross_compiling:$ac_tool_warned in 12961 yes:) 12962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12964 ac_tool_warned=yes ;; 12965 esac 12966 OBJDUMP=$ac_ct_OBJDUMP 12967 fi 12968 else 12969 OBJDUMP="$ac_cv_prog_OBJDUMP" 12970 fi 12971 12972 test -z "$OBJDUMP" && OBJDUMP=objdump 12973 12974 12975 12976 12977 12978 12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12980 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 12981 if ${lt_cv_deplibs_check_method+:} false; then : 12982 $as_echo_n "(cached) " >&6 12983 else 12984 lt_cv_file_magic_cmd='$MAGIC_CMD' 12985 lt_cv_file_magic_test_file= 12986 lt_cv_deplibs_check_method='unknown' 12987 # Need to set the preceding variable on all platforms that support 12988 # interlibrary dependencies. 12989 # 'none' -- dependencies not supported. 12990 # 'unknown' -- same as none, but documents that we really don't know. 12991 # 'pass_all' -- all dependencies passed with no checks. 12992 # 'test_compile' -- check by making test program. 12993 # 'file_magic [[regex]]' -- check by looking for files in library path 12994 # that responds to the $file_magic_cmd with a given extended regex. 12995 # If you have 'file' or equivalent on your system and you're not sure 12996 # whether 'pass_all' will *always* work, you probably want this one. 12997 12998 case $host_os in 12999 aix[4-9]*) 13000 lt_cv_deplibs_check_method=pass_all 13001 ;; 13002 13003 beos*) 13004 lt_cv_deplibs_check_method=pass_all 13005 ;; 13006 13007 bsdi[45]*) 13008 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 13009 lt_cv_file_magic_cmd='/usr/bin/file -L' 13010 lt_cv_file_magic_test_file=/shlib/libc.so 13011 ;; 13012 13013 cygwin*) 13014 # func_win32_libid is a shell function defined in ltmain.sh 13015 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 13016 lt_cv_file_magic_cmd='func_win32_libid' 13017 ;; 13018 13019 mingw* | pw32*) 13020 # Base MSYS/MinGW do not provide the 'file' command needed by 13021 # func_win32_libid shell function, so use a weaker test based on 'objdump', 13022 # unless we find 'file', for example because we are cross-compiling. 13023 if ( file / ) >/dev/null 2>&1; then 13024 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 13025 lt_cv_file_magic_cmd='func_win32_libid' 13026 else 13027 # Keep this pattern in sync with the one in func_win32_libid. 13028 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 13029 lt_cv_file_magic_cmd='$OBJDUMP -f' 13030 fi 13031 ;; 13032 13033 cegcc*) 13034 # use the weaker test based on 'objdump'. See mingw*. 13035 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 13036 lt_cv_file_magic_cmd='$OBJDUMP -f' 13037 ;; 13038 13039 darwin* | rhapsody*) 13040 lt_cv_deplibs_check_method=pass_all 13041 ;; 13042 13043 freebsd* | dragonfly*) 13044 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 13045 case $host_cpu in 13046 i*86 ) 13047 # Not sure whether the presence of OpenBSD here was a mistake. 13048 # Let's accept both of them until this is cleared up. 13049 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 13050 lt_cv_file_magic_cmd=/usr/bin/file 13051 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 13052 ;; 13053 esac 13054 else 13055 lt_cv_deplibs_check_method=pass_all 13056 fi 13057 ;; 13058 13059 haiku*) 13060 lt_cv_deplibs_check_method=pass_all 13061 ;; 13062 13063 hpux10.20* | hpux11*) 13064 lt_cv_file_magic_cmd=/usr/bin/file 13065 case $host_cpu in 13066 ia64*) 13067 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 13068 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 13069 ;; 13070 hppa*64*) 13071 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]' 13072 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 13073 ;; 13074 *) 13075 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 13076 lt_cv_file_magic_test_file=/usr/lib/libc.sl 13077 ;; 13078 esac 13079 ;; 13080 13081 interix[3-9]*) 13082 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 13083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 13084 ;; 13085 13086 irix5* | irix6* | nonstopux*) 13087 case $LD in 13088 *-32|*"-32 ") libmagic=32-bit;; 13089 *-n32|*"-n32 ") libmagic=N32;; 13090 *-64|*"-64 ") libmagic=64-bit;; 13091 *) libmagic=never-match;; 13092 esac 13093 lt_cv_deplibs_check_method=pass_all 13094 ;; 13095 13096 # This must be glibc/ELF. 13097 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13098 lt_cv_deplibs_check_method=pass_all 13099 ;; 13100 13101 netbsd*) 13102 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 13103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 13104 else 13105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 13106 fi 13107 ;; 13108 13109 newos6*) 13110 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 13111 lt_cv_file_magic_cmd=/usr/bin/file 13112 lt_cv_file_magic_test_file=/usr/lib/libnls.so 13113 ;; 13114 13115 *nto* | *qnx*) 13116 lt_cv_deplibs_check_method=pass_all 13117 ;; 13118 13119 openbsd* | bitrig*) 13120 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 13122 else 13123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 13124 fi 13125 ;; 13126 13127 osf3* | osf4* | osf5*) 13128 lt_cv_deplibs_check_method=pass_all 13129 ;; 13130 13131 rdos*) 13132 lt_cv_deplibs_check_method=pass_all 13133 ;; 13134 13135 solaris*) 13136 lt_cv_deplibs_check_method=pass_all 13137 ;; 13138 13139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13140 lt_cv_deplibs_check_method=pass_all 13141 ;; 13142 13143 sysv4 | sysv4.3*) 13144 case $host_vendor in 13145 motorola) 13146 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]' 13147 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 13148 ;; 13149 ncr) 13150 lt_cv_deplibs_check_method=pass_all 13151 ;; 13152 sequent) 13153 lt_cv_file_magic_cmd='/bin/file' 13154 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 13155 ;; 13156 sni) 13157 lt_cv_file_magic_cmd='/bin/file' 13158 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 13159 lt_cv_file_magic_test_file=/lib/libc.so 13160 ;; 13161 siemens) 13162 lt_cv_deplibs_check_method=pass_all 13163 ;; 13164 pc) 13165 lt_cv_deplibs_check_method=pass_all 13166 ;; 13167 esac 13168 ;; 13169 13170 tpf*) 13171 lt_cv_deplibs_check_method=pass_all 13172 ;; 13173 os2*) 13174 lt_cv_deplibs_check_method=pass_all 13175 ;; 13176 esac 13177 13178 fi 13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 13180 $as_echo "$lt_cv_deplibs_check_method" >&6; } 13181 13182 file_magic_glob= 13183 want_nocaseglob=no 13184 if test "$build" = "$host"; then 13185 case $host_os in 13186 mingw* | pw32*) 13187 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 13188 want_nocaseglob=yes 13189 else 13190 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 13191 fi 13192 ;; 13193 esac 13194 fi 13195 13196 file_magic_cmd=$lt_cv_file_magic_cmd 13197 deplibs_check_method=$lt_cv_deplibs_check_method 13198 test -z "$deplibs_check_method" && deplibs_check_method=unknown 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 if test -n "$ac_tool_prefix"; then 13222 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 13223 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13225 $as_echo_n "checking for $ac_word... " >&6; } 13226 if ${ac_cv_prog_DLLTOOL+:} false; then : 13227 $as_echo_n "(cached) " >&6 13228 else 13229 if test -n "$DLLTOOL"; then 13230 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 13231 else 13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13233 for as_dir in $PATH 13234 do 13235 IFS=$as_save_IFS 13236 test -z "$as_dir" && as_dir=. 13237 for ac_exec_ext in '' $ac_executable_extensions; do 13238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13239 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 13240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13241 break 2 13242 fi 13243 done 13244 done 13245 IFS=$as_save_IFS 13246 13247 fi 13248 fi 13249 DLLTOOL=$ac_cv_prog_DLLTOOL 13250 if test -n "$DLLTOOL"; then 13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 13252 $as_echo "$DLLTOOL" >&6; } 13253 else 13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13255 $as_echo "no" >&6; } 13256 fi 13257 13258 13259 fi 13260 if test -z "$ac_cv_prog_DLLTOOL"; then 13261 ac_ct_DLLTOOL=$DLLTOOL 13262 # Extract the first word of "dlltool", so it can be a program name with args. 13263 set dummy dlltool; ac_word=$2 13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13265 $as_echo_n "checking for $ac_word... " >&6; } 13266 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 13267 $as_echo_n "(cached) " >&6 13268 else 13269 if test -n "$ac_ct_DLLTOOL"; then 13270 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 13271 else 13272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13273 for as_dir in $PATH 13274 do 13275 IFS=$as_save_IFS 13276 test -z "$as_dir" && as_dir=. 13277 for ac_exec_ext in '' $ac_executable_extensions; do 13278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13279 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 13280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13281 break 2 13282 fi 13283 done 13284 done 13285 IFS=$as_save_IFS 13286 13287 fi 13288 fi 13289 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 13290 if test -n "$ac_ct_DLLTOOL"; then 13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 13292 $as_echo "$ac_ct_DLLTOOL" >&6; } 13293 else 13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13295 $as_echo "no" >&6; } 13296 fi 13297 13298 if test "x$ac_ct_DLLTOOL" = x; then 13299 DLLTOOL="false" 13300 else 13301 case $cross_compiling:$ac_tool_warned in 13302 yes:) 13303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13305 ac_tool_warned=yes ;; 13306 esac 13307 DLLTOOL=$ac_ct_DLLTOOL 13308 fi 13309 else 13310 DLLTOOL="$ac_cv_prog_DLLTOOL" 13311 fi 13312 13313 test -z "$DLLTOOL" && DLLTOOL=dlltool 13314 13315 13316 13317 13318 13319 13320 13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 13322 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 13323 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 13324 $as_echo_n "(cached) " >&6 13325 else 13326 lt_cv_sharedlib_from_linklib_cmd='unknown' 13327 13328 case $host_os in 13329 cygwin* | mingw* | pw32* | cegcc*) 13330 # two different shell functions defined in ltmain.sh; 13331 # decide which one to use based on capabilities of $DLLTOOL 13332 case `$DLLTOOL --help 2>&1` in 13333 *--identify-strict*) 13334 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 13335 ;; 13336 *) 13337 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 13338 ;; 13339 esac 13340 ;; 13341 *) 13342 # fallback: assume linklib IS sharedlib 13343 lt_cv_sharedlib_from_linklib_cmd=$ECHO 13344 ;; 13345 esac 13346 13347 fi 13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 13349 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 13350 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 13351 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 13352 13353 13354 13355 13356 13357 13358 13359 if test -n "$ac_tool_prefix"; then 13360 for ac_prog in ar 13361 do 13362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13365 $as_echo_n "checking for $ac_word... " >&6; } 13366 if ${ac_cv_prog_AR+:} false; then : 13367 $as_echo_n "(cached) " >&6 13368 else 13369 if test -n "$AR"; then 13370 ac_cv_prog_AR="$AR" # Let the user override the test. 13371 else 13372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13373 for as_dir in $PATH 13374 do 13375 IFS=$as_save_IFS 13376 test -z "$as_dir" && as_dir=. 13377 for ac_exec_ext in '' $ac_executable_extensions; do 13378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13379 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 13380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13381 break 2 13382 fi 13383 done 13384 done 13385 IFS=$as_save_IFS 13386 13387 fi 13388 fi 13389 AR=$ac_cv_prog_AR 13390 if test -n "$AR"; then 13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 13392 $as_echo "$AR" >&6; } 13393 else 13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13395 $as_echo "no" >&6; } 13396 fi 13397 13398 13399 test -n "$AR" && break 13400 done 13401 fi 13402 if test -z "$AR"; then 13403 ac_ct_AR=$AR 13404 for ac_prog in ar 13405 do 13406 # Extract the first word of "$ac_prog", so it can be a program name with args. 13407 set dummy $ac_prog; ac_word=$2 13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13409 $as_echo_n "checking for $ac_word... " >&6; } 13410 if ${ac_cv_prog_ac_ct_AR+:} false; then : 13411 $as_echo_n "(cached) " >&6 13412 else 13413 if test -n "$ac_ct_AR"; then 13414 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13415 else 13416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13417 for as_dir in $PATH 13418 do 13419 IFS=$as_save_IFS 13420 test -z "$as_dir" && as_dir=. 13421 for ac_exec_ext in '' $ac_executable_extensions; do 13422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13423 ac_cv_prog_ac_ct_AR="$ac_prog" 13424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13425 break 2 13426 fi 13427 done 13428 done 13429 IFS=$as_save_IFS 13430 13431 fi 13432 fi 13433 ac_ct_AR=$ac_cv_prog_ac_ct_AR 13434 if test -n "$ac_ct_AR"; then 13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13436 $as_echo "$ac_ct_AR" >&6; } 13437 else 13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13439 $as_echo "no" >&6; } 13440 fi 13441 13442 13443 test -n "$ac_ct_AR" && break 13444 done 13445 13446 if test "x$ac_ct_AR" = x; then 13447 AR="false" 13448 else 13449 case $cross_compiling:$ac_tool_warned in 13450 yes:) 13451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13453 ac_tool_warned=yes ;; 13454 esac 13455 AR=$ac_ct_AR 13456 fi 13457 fi 13458 13459 : ${AR=ar} 13460 : ${AR_FLAGS=cru} 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13473 $as_echo_n "checking for archiver @FILE support... " >&6; } 13474 if ${lt_cv_ar_at_file+:} false; then : 13475 $as_echo_n "(cached) " >&6 13476 else 13477 lt_cv_ar_at_file=no 13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13479 /* end confdefs.h. */ 13480 13481 int 13482 main () 13483 { 13484 13485 ; 13486 return 0; 13487 } 13488 _ACEOF 13489 if ac_fn_c_try_compile "$LINENO"; then : 13490 echo conftest.$ac_objext > conftest.lst 13491 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13493 (eval $lt_ar_try) 2>&5 13494 ac_status=$? 13495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13496 test $ac_status = 0; } 13497 if test 0 -eq "$ac_status"; then 13498 # Ensure the archiver fails upon bogus file names. 13499 rm -f conftest.$ac_objext libconftest.a 13500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13501 (eval $lt_ar_try) 2>&5 13502 ac_status=$? 13503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13504 test $ac_status = 0; } 13505 if test 0 -ne "$ac_status"; then 13506 lt_cv_ar_at_file=@ 13507 fi 13508 fi 13509 rm -f conftest.* libconftest.a 13510 13511 fi 13512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13513 13514 fi 13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13516 $as_echo "$lt_cv_ar_at_file" >&6; } 13517 13518 if test no = "$lt_cv_ar_at_file"; then 13519 archiver_list_spec= 13520 else 13521 archiver_list_spec=$lt_cv_ar_at_file 13522 fi 13523 13524 13525 13526 13527 13528 13529 13530 if test -n "$ac_tool_prefix"; then 13531 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13532 set dummy ${ac_tool_prefix}strip; ac_word=$2 13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13534 $as_echo_n "checking for $ac_word... " >&6; } 13535 if ${ac_cv_prog_STRIP+:} false; then : 13536 $as_echo_n "(cached) " >&6 13537 else 13538 if test -n "$STRIP"; then 13539 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13540 else 13541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13542 for as_dir in $PATH 13543 do 13544 IFS=$as_save_IFS 13545 test -z "$as_dir" && as_dir=. 13546 for ac_exec_ext in '' $ac_executable_extensions; do 13547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13548 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13550 break 2 13551 fi 13552 done 13553 done 13554 IFS=$as_save_IFS 13555 13556 fi 13557 fi 13558 STRIP=$ac_cv_prog_STRIP 13559 if test -n "$STRIP"; then 13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13561 $as_echo "$STRIP" >&6; } 13562 else 13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13564 $as_echo "no" >&6; } 13565 fi 13566 13567 13568 fi 13569 if test -z "$ac_cv_prog_STRIP"; then 13570 ac_ct_STRIP=$STRIP 13571 # Extract the first word of "strip", so it can be a program name with args. 13572 set dummy strip; ac_word=$2 13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13574 $as_echo_n "checking for $ac_word... " >&6; } 13575 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 13576 $as_echo_n "(cached) " >&6 13577 else 13578 if test -n "$ac_ct_STRIP"; then 13579 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13580 else 13581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13582 for as_dir in $PATH 13583 do 13584 IFS=$as_save_IFS 13585 test -z "$as_dir" && as_dir=. 13586 for ac_exec_ext in '' $ac_executable_extensions; do 13587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13588 ac_cv_prog_ac_ct_STRIP="strip" 13589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13590 break 2 13591 fi 13592 done 13593 done 13594 IFS=$as_save_IFS 13595 13596 fi 13597 fi 13598 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13599 if test -n "$ac_ct_STRIP"; then 13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13601 $as_echo "$ac_ct_STRIP" >&6; } 13602 else 13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13604 $as_echo "no" >&6; } 13605 fi 13606 13607 if test "x$ac_ct_STRIP" = x; then 13608 STRIP=":" 13609 else 13610 case $cross_compiling:$ac_tool_warned in 13611 yes:) 13612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13614 ac_tool_warned=yes ;; 13615 esac 13616 STRIP=$ac_ct_STRIP 13617 fi 13618 else 13619 STRIP="$ac_cv_prog_STRIP" 13620 fi 13621 13622 test -z "$STRIP" && STRIP=: 13623 13624 13625 13626 13627 13628 13629 if test -n "$ac_tool_prefix"; then 13630 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13631 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13633 $as_echo_n "checking for $ac_word... " >&6; } 13634 if ${ac_cv_prog_RANLIB+:} false; then : 13635 $as_echo_n "(cached) " >&6 13636 else 13637 if test -n "$RANLIB"; then 13638 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13639 else 13640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13641 for as_dir in $PATH 13642 do 13643 IFS=$as_save_IFS 13644 test -z "$as_dir" && as_dir=. 13645 for ac_exec_ext in '' $ac_executable_extensions; do 13646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13647 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13649 break 2 13650 fi 13651 done 13652 done 13653 IFS=$as_save_IFS 13654 13655 fi 13656 fi 13657 RANLIB=$ac_cv_prog_RANLIB 13658 if test -n "$RANLIB"; then 13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13660 $as_echo "$RANLIB" >&6; } 13661 else 13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13663 $as_echo "no" >&6; } 13664 fi 13665 13666 13667 fi 13668 if test -z "$ac_cv_prog_RANLIB"; then 13669 ac_ct_RANLIB=$RANLIB 13670 # Extract the first word of "ranlib", so it can be a program name with args. 13671 set dummy ranlib; ac_word=$2 13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13673 $as_echo_n "checking for $ac_word... " >&6; } 13674 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 13675 $as_echo_n "(cached) " >&6 13676 else 13677 if test -n "$ac_ct_RANLIB"; then 13678 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13679 else 13680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13681 for as_dir in $PATH 13682 do 13683 IFS=$as_save_IFS 13684 test -z "$as_dir" && as_dir=. 13685 for ac_exec_ext in '' $ac_executable_extensions; do 13686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13687 ac_cv_prog_ac_ct_RANLIB="ranlib" 13688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13689 break 2 13690 fi 13691 done 13692 done 13693 IFS=$as_save_IFS 13694 13695 fi 13696 fi 13697 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13698 if test -n "$ac_ct_RANLIB"; then 13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13700 $as_echo "$ac_ct_RANLIB" >&6; } 13701 else 13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13703 $as_echo "no" >&6; } 13704 fi 13705 13706 if test "x$ac_ct_RANLIB" = x; then 13707 RANLIB=":" 13708 else 13709 case $cross_compiling:$ac_tool_warned in 13710 yes:) 13711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13713 ac_tool_warned=yes ;; 13714 esac 13715 RANLIB=$ac_ct_RANLIB 13716 fi 13717 else 13718 RANLIB="$ac_cv_prog_RANLIB" 13719 fi 13720 13721 test -z "$RANLIB" && RANLIB=: 13722 13723 13724 13725 13726 13727 13728 # Determine commands to create old-style static archives. 13729 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13730 old_postinstall_cmds='chmod 644 $oldlib' 13731 old_postuninstall_cmds= 13732 13733 if test -n "$RANLIB"; then 13734 case $host_os in 13735 bitrig* | openbsd*) 13736 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13737 ;; 13738 *) 13739 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13740 ;; 13741 esac 13742 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13743 fi 13744 13745 case $host_os in 13746 darwin*) 13747 lock_old_archive_extraction=yes ;; 13748 *) 13749 lock_old_archive_extraction=no ;; 13750 esac 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 # If no C compiler was specified, use CC. 13791 LTCC=${LTCC-"$CC"} 13792 13793 # If no C compiler flags were specified, use CFLAGS. 13794 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13795 13796 # Allow CC to be a program name with arguments. 13797 compiler=$CC 13798 13799 13800 # Check for command to grab the raw symbol name followed by C symbol from nm. 13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13802 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 13803 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 13804 $as_echo_n "(cached) " >&6 13805 else 13806 13807 # These are sane defaults that work on at least a few old systems. 13808 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 13809 13810 # Character class describing NM global symbol codes. 13811 symcode='[BCDEGRST]' 13812 13813 # Regexp to match symbols that can be accessed directly from C. 13814 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13815 13816 # Define system-specific variables. 13817 case $host_os in 13818 aix*) 13819 symcode='[BCDT]' 13820 ;; 13821 cygwin* | mingw* | pw32* | cegcc*) 13822 symcode='[ABCDGISTW]' 13823 ;; 13824 hpux*) 13825 if test ia64 = "$host_cpu"; then 13826 symcode='[ABCDEGRST]' 13827 fi 13828 ;; 13829 irix* | nonstopux*) 13830 symcode='[BCDEGRST]' 13831 ;; 13832 osf*) 13833 symcode='[BCDEGQRST]' 13834 ;; 13835 solaris*) 13836 symcode='[BDRT]' 13837 ;; 13838 sco3.2v5*) 13839 symcode='[DT]' 13840 ;; 13841 sysv4.2uw2*) 13842 symcode='[DT]' 13843 ;; 13844 sysv5* | sco5v6* | unixware* | OpenUNIX*) 13845 symcode='[ABDT]' 13846 ;; 13847 sysv4) 13848 symcode='[DFNSTU]' 13849 ;; 13850 esac 13851 13852 # If we're using GNU nm, then use its standard symbol codes. 13853 case `$NM -V 2>&1` in 13854 *GNU* | *'with BFD'*) 13855 symcode='[ABCDGIRSTW]' ;; 13856 esac 13857 13858 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13859 # Gets list of data symbols to import. 13860 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 13861 # Adjust the below global symbol transforms to fixup imported variables. 13862 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13863 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13864 lt_c_name_lib_hook="\ 13865 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13866 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13867 else 13868 # Disable hooks by default. 13869 lt_cv_sys_global_symbol_to_import= 13870 lt_cdecl_hook= 13871 lt_c_name_hook= 13872 lt_c_name_lib_hook= 13873 fi 13874 13875 # Transform an extracted symbol line into a proper C declaration. 13876 # Some systems (esp. on ia64) link data and code symbols differently, 13877 # so use this general approach. 13878 lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 13879 $lt_cdecl_hook\ 13880 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13881 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13882 13883 # Transform an extracted symbol line into symbol name and symbol address 13884 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 13885 $lt_c_name_hook\ 13886 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13887 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13888 13889 # Transform an extracted symbol line into symbol name with lib prefix and 13890 # symbol address. 13891 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 13892 $lt_c_name_lib_hook\ 13893 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13894 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13895 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13896 13897 # Handle CRLF in mingw tool chain 13898 opt_cr= 13899 case $build_os in 13900 mingw*) 13901 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13902 ;; 13903 esac 13904 13905 # Try without a prefix underscore, then with it. 13906 for ac_symprfx in "" "_"; do 13907 13908 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13909 symxfrm="\\1 $ac_symprfx\\2 \\2" 13910 13911 # Write the raw and C identifiers. 13912 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13913 # Fake it for dumpbin and say T for any non-static function, 13914 # D for any global variable and I for any imported variable. 13915 # Also find C++ and __fastcall symbols from MSVC++, 13916 # which start with @ or ?. 13917 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13918 " {last_section=section; section=\$ 3};"\ 13919 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13920 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13921 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13922 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13923 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13924 " \$ 0!~/External *\|/{next};"\ 13925 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13926 " {if(hide[section]) next};"\ 13927 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13928 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13929 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13930 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13931 " ' prfx=^$ac_symprfx" 13932 else 13933 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13934 fi 13935 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 13936 13937 # Check to see that the pipe works correctly. 13938 pipe_works=no 13939 13940 rm -f conftest* 13941 cat > conftest.$ac_ext <<_LT_EOF 13942 #ifdef __cplusplus 13943 extern "C" { 13944 #endif 13945 char nm_test_var; 13946 void nm_test_func(void); 13947 void nm_test_func(void){} 13948 #ifdef __cplusplus 13949 } 13950 #endif 13951 int main(){nm_test_var='a';nm_test_func();return(0);} 13952 _LT_EOF 13953 13954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13955 (eval $ac_compile) 2>&5 13956 ac_status=$? 13957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13958 test $ac_status = 0; }; then 13959 # Now try to grab the symbols. 13960 nlist=conftest.nm 13961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13962 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13963 ac_status=$? 13964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13965 test $ac_status = 0; } && test -s "$nlist"; then 13966 # Try sorting and uniquifying the output. 13967 if sort "$nlist" | uniq > "$nlist"T; then 13968 mv -f "$nlist"T "$nlist" 13969 else 13970 rm -f "$nlist"T 13971 fi 13972 13973 # Make sure that we snagged all the symbols we need. 13974 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13975 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13976 cat <<_LT_EOF > conftest.$ac_ext 13977 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13978 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13979 /* DATA imports from DLLs on WIN32 can't be const, because runtime 13980 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13981 # define LT_DLSYM_CONST 13982 #elif defined __osf__ 13983 /* This system does not cope well with relocations in const data. */ 13984 # define LT_DLSYM_CONST 13985 #else 13986 # define LT_DLSYM_CONST const 13987 #endif 13988 13989 #ifdef __cplusplus 13990 extern "C" { 13991 #endif 13992 13993 _LT_EOF 13994 # Now generate the symbol file. 13995 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13996 13997 cat <<_LT_EOF >> conftest.$ac_ext 13998 13999 /* The mapping between symbol names and symbols. */ 14000 LT_DLSYM_CONST struct { 14001 const char *name; 14002 void *address; 14003 } 14004 lt__PROGRAM__LTX_preloaded_symbols[] = 14005 { 14006 { "@PROGRAM@", (void *) 0 }, 14007 _LT_EOF 14008 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 14009 cat <<\_LT_EOF >> conftest.$ac_ext 14010 {0, (void *) 0} 14011 }; 14012 14013 /* This works around a problem in FreeBSD linker */ 14014 #ifdef FREEBSD_WORKAROUND 14015 static const void *lt_preloaded_setup() { 14016 return lt__PROGRAM__LTX_preloaded_symbols; 14017 } 14018 #endif 14019 14020 #ifdef __cplusplus 14021 } 14022 #endif 14023 _LT_EOF 14024 # Now try linking the two files. 14025 mv conftest.$ac_objext conftstm.$ac_objext 14026 lt_globsym_save_LIBS=$LIBS 14027 lt_globsym_save_CFLAGS=$CFLAGS 14028 LIBS=conftstm.$ac_objext 14029 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 14030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14031 (eval $ac_link) 2>&5 14032 ac_status=$? 14033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14034 test $ac_status = 0; } && test -s conftest$ac_exeext; then 14035 pipe_works=yes 14036 fi 14037 LIBS=$lt_globsym_save_LIBS 14038 CFLAGS=$lt_globsym_save_CFLAGS 14039 else 14040 echo "cannot find nm_test_func in $nlist" >&5 14041 fi 14042 else 14043 echo "cannot find nm_test_var in $nlist" >&5 14044 fi 14045 else 14046 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 14047 fi 14048 else 14049 echo "$progname: failed program was:" >&5 14050 cat conftest.$ac_ext >&5 14051 fi 14052 rm -rf conftest* conftst* 14053 14054 # Do not use the global_symbol_pipe unless it works. 14055 if test yes = "$pipe_works"; then 14056 break 14057 else 14058 lt_cv_sys_global_symbol_pipe= 14059 fi 14060 done 14061 14062 fi 14063 14064 if test -z "$lt_cv_sys_global_symbol_pipe"; then 14065 lt_cv_sys_global_symbol_to_cdecl= 14066 fi 14067 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14069 $as_echo "failed" >&6; } 14070 else 14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 14072 $as_echo "ok" >&6; } 14073 fi 14074 14075 # Response file support. 14076 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 14077 nm_file_list_spec='@' 14078 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 14079 nm_file_list_spec='@' 14080 fi 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 14119 $as_echo_n "checking for sysroot... " >&6; } 14120 14121 # Check whether --with-sysroot was given. 14122 if test "${with_sysroot+set}" = set; then : 14123 withval=$with_sysroot; 14124 else 14125 with_sysroot=no 14126 fi 14127 14128 14129 lt_sysroot= 14130 case $with_sysroot in #( 14131 yes) 14132 if test yes = "$GCC"; then 14133 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 14134 fi 14135 ;; #( 14136 /*) 14137 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 14138 ;; #( 14139 no|'') 14140 ;; #( 14141 *) 14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 14143 $as_echo "$with_sysroot" >&6; } 14144 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 14145 ;; 14146 esac 14147 14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 14149 $as_echo "${lt_sysroot:-no}" >&6; } 14150 14151 14152 14153 14154 14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 14156 $as_echo_n "checking for a working dd... " >&6; } 14157 if ${ac_cv_path_lt_DD+:} false; then : 14158 $as_echo_n "(cached) " >&6 14159 else 14160 printf 0123456789abcdef0123456789abcdef >conftest.i 14161 cat conftest.i conftest.i >conftest2.i 14162 : ${lt_DD:=$DD} 14163 if test -z "$lt_DD"; then 14164 ac_path_lt_DD_found=false 14165 # Loop through the user's path and test for each of PROGNAME-LIST 14166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14167 for as_dir in $PATH 14168 do 14169 IFS=$as_save_IFS 14170 test -z "$as_dir" && as_dir=. 14171 for ac_prog in dd; do 14172 for ac_exec_ext in '' $ac_executable_extensions; do 14173 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 14174 as_fn_executable_p "$ac_path_lt_DD" || continue 14175 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14176 cmp -s conftest.i conftest.out \ 14177 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 14178 fi 14179 $ac_path_lt_DD_found && break 3 14180 done 14181 done 14182 done 14183 IFS=$as_save_IFS 14184 if test -z "$ac_cv_path_lt_DD"; then 14185 : 14186 fi 14187 else 14188 ac_cv_path_lt_DD=$lt_DD 14189 fi 14190 14191 rm -f conftest.i conftest2.i conftest.out 14192 fi 14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 14194 $as_echo "$ac_cv_path_lt_DD" >&6; } 14195 14196 14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 14198 $as_echo_n "checking how to truncate binary pipes... " >&6; } 14199 if ${lt_cv_truncate_bin+:} false; then : 14200 $as_echo_n "(cached) " >&6 14201 else 14202 printf 0123456789abcdef0123456789abcdef >conftest.i 14203 cat conftest.i conftest.i >conftest2.i 14204 lt_cv_truncate_bin= 14205 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14206 cmp -s conftest.i conftest.out \ 14207 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 14208 fi 14209 rm -f conftest.i conftest2.i conftest.out 14210 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 14211 fi 14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 14213 $as_echo "$lt_cv_truncate_bin" >&6; } 14214 14215 14216 14217 14218 14219 14220 14221 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 14222 func_cc_basename () 14223 { 14224 for cc_temp in $*""; do 14225 case $cc_temp in 14226 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14227 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14228 \-*) ;; 14229 *) break;; 14230 esac 14231 done 14232 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14233 } 14234 14235 # Check whether --enable-libtool-lock was given. 14236 if test "${enable_libtool_lock+set}" = set; then : 14237 enableval=$enable_libtool_lock; 14238 fi 14239 14240 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 14241 14242 # Some flags need to be propagated to the compiler or linker for good 14243 # libtool support. 14244 case $host in 14245 ia64-*-hpux*) 14246 # Find out what ABI is being produced by ac_compile, and set mode 14247 # options accordingly. 14248 echo 'int i;' > conftest.$ac_ext 14249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14250 (eval $ac_compile) 2>&5 14251 ac_status=$? 14252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14253 test $ac_status = 0; }; then 14254 case `/usr/bin/file conftest.$ac_objext` in 14255 *ELF-32*) 14256 HPUX_IA64_MODE=32 14257 ;; 14258 *ELF-64*) 14259 HPUX_IA64_MODE=64 14260 ;; 14261 esac 14262 fi 14263 rm -rf conftest* 14264 ;; 14265 *-*-irix6*) 14266 # Find out what ABI is being produced by ac_compile, and set linker 14267 # options accordingly. 14268 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14270 (eval $ac_compile) 2>&5 14271 ac_status=$? 14272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14273 test $ac_status = 0; }; then 14274 if test yes = "$lt_cv_prog_gnu_ld"; then 14275 case `/usr/bin/file conftest.$ac_objext` in 14276 *32-bit*) 14277 LD="${LD-ld} -melf32bsmip" 14278 ;; 14279 *N32*) 14280 LD="${LD-ld} -melf32bmipn32" 14281 ;; 14282 *64-bit*) 14283 LD="${LD-ld} -melf64bmip" 14284 ;; 14285 esac 14286 else 14287 case `/usr/bin/file conftest.$ac_objext` in 14288 *32-bit*) 14289 LD="${LD-ld} -32" 14290 ;; 14291 *N32*) 14292 LD="${LD-ld} -n32" 14293 ;; 14294 *64-bit*) 14295 LD="${LD-ld} -64" 14296 ;; 14297 esac 14298 fi 14299 fi 14300 rm -rf conftest* 14301 ;; 14302 14303 mips64*-*linux*) 14304 # Find out what ABI is being produced by ac_compile, and set linker 14305 # options accordingly. 14306 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14308 (eval $ac_compile) 2>&5 14309 ac_status=$? 14310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14311 test $ac_status = 0; }; then 14312 emul=elf 14313 case `/usr/bin/file conftest.$ac_objext` in 14314 *32-bit*) 14315 emul="${emul}32" 14316 ;; 14317 *64-bit*) 14318 emul="${emul}64" 14319 ;; 14320 esac 14321 case `/usr/bin/file conftest.$ac_objext` in 14322 *MSB*) 14323 emul="${emul}btsmip" 14324 ;; 14325 *LSB*) 14326 emul="${emul}ltsmip" 14327 ;; 14328 esac 14329 case `/usr/bin/file conftest.$ac_objext` in 14330 *N32*) 14331 emul="${emul}n32" 14332 ;; 14333 esac 14334 LD="${LD-ld} -m $emul" 14335 fi 14336 rm -rf conftest* 14337 ;; 14338 14339 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 14340 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 14341 # Find out what ABI is being produced by ac_compile, and set linker 14342 # options accordingly. Note that the listed cases only cover the 14343 # situations where additional linker options are needed (such as when 14344 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 14345 # vice versa); the common cases where no linker options are needed do 14346 # not appear in the list. 14347 echo 'int i;' > conftest.$ac_ext 14348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14349 (eval $ac_compile) 2>&5 14350 ac_status=$? 14351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14352 test $ac_status = 0; }; then 14353 case `/usr/bin/file conftest.o` in 14354 *32-bit*) 14355 case $host in 14356 x86_64-*kfreebsd*-gnu) 14357 LD="${LD-ld} -m elf_i386_fbsd" 14358 ;; 14359 x86_64-*linux*) 14360 case `/usr/bin/file conftest.o` in 14361 *x86-64*) 14362 LD="${LD-ld} -m elf32_x86_64" 14363 ;; 14364 *) 14365 LD="${LD-ld} -m elf_i386" 14366 ;; 14367 esac 14368 ;; 14369 powerpc64le-*linux*) 14370 LD="${LD-ld} -m elf32lppclinux" 14371 ;; 14372 powerpc64-*linux*) 14373 LD="${LD-ld} -m elf32ppclinux" 14374 ;; 14375 s390x-*linux*) 14376 LD="${LD-ld} -m elf_s390" 14377 ;; 14378 sparc64-*linux*) 14379 LD="${LD-ld} -m elf32_sparc" 14380 ;; 14381 esac 14382 ;; 14383 *64-bit*) 14384 case $host in 14385 x86_64-*kfreebsd*-gnu) 14386 LD="${LD-ld} -m elf_x86_64_fbsd" 14387 ;; 14388 x86_64-*linux*) 14389 LD="${LD-ld} -m elf_x86_64" 14390 ;; 14391 powerpcle-*linux*) 14392 LD="${LD-ld} -m elf64lppc" 14393 ;; 14394 powerpc-*linux*) 14395 LD="${LD-ld} -m elf64ppc" 14396 ;; 14397 s390*-*linux*|s390*-*tpf*) 14398 LD="${LD-ld} -m elf64_s390" 14399 ;; 14400 sparc*-*linux*) 14401 LD="${LD-ld} -m elf64_sparc" 14402 ;; 14403 esac 14404 ;; 14405 esac 14406 fi 14407 rm -rf conftest* 14408 ;; 14409 14410 *-*-sco3.2v5*) 14411 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14412 SAVE_CFLAGS=$CFLAGS 14413 CFLAGS="$CFLAGS -belf" 14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14415 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 14416 if ${lt_cv_cc_needs_belf+:} false; then : 14417 $as_echo_n "(cached) " >&6 14418 else 14419 ac_ext=c 14420 ac_cpp='$CPP $CPPFLAGS' 14421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14423 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14424 14425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14426 /* end confdefs.h. */ 14427 14428 int 14429 main () 14430 { 14431 14432 ; 14433 return 0; 14434 } 14435 _ACEOF 14436 if ac_fn_c_try_link "$LINENO"; then : 14437 lt_cv_cc_needs_belf=yes 14438 else 14439 lt_cv_cc_needs_belf=no 14440 fi 14441 rm -f core conftest.err conftest.$ac_objext \ 14442 conftest$ac_exeext conftest.$ac_ext 14443 ac_ext=c 14444 ac_cpp='$CPP $CPPFLAGS' 14445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14447 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14448 14449 fi 14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14451 $as_echo "$lt_cv_cc_needs_belf" >&6; } 14452 if test yes != "$lt_cv_cc_needs_belf"; then 14453 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14454 CFLAGS=$SAVE_CFLAGS 14455 fi 14456 ;; 14457 *-*solaris*) 14458 # Find out what ABI is being produced by ac_compile, and set linker 14459 # options accordingly. 14460 echo 'int i;' > conftest.$ac_ext 14461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14462 (eval $ac_compile) 2>&5 14463 ac_status=$? 14464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14465 test $ac_status = 0; }; then 14466 case `/usr/bin/file conftest.o` in 14467 *64-bit*) 14468 case $lt_cv_prog_gnu_ld in 14469 yes*) 14470 case $host in 14471 i?86-*-solaris*|x86_64-*-solaris*) 14472 LD="${LD-ld} -m elf_x86_64" 14473 ;; 14474 sparc*-*-solaris*) 14475 LD="${LD-ld} -m elf64_sparc" 14476 ;; 14477 esac 14478 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14479 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14480 LD=${LD-ld}_sol2 14481 fi 14482 ;; 14483 *) 14484 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14485 LD="${LD-ld} -64" 14486 fi 14487 ;; 14488 esac 14489 ;; 14490 esac 14491 fi 14492 rm -rf conftest* 14493 ;; 14494 esac 14495 14496 need_locks=$enable_libtool_lock 14497 14498 if test -n "$ac_tool_prefix"; then 14499 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14500 set dummy ${ac_tool_prefix}mt; ac_word=$2 14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14502 $as_echo_n "checking for $ac_word... " >&6; } 14503 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 14504 $as_echo_n "(cached) " >&6 14505 else 14506 if test -n "$MANIFEST_TOOL"; then 14507 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14508 else 14509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14510 for as_dir in $PATH 14511 do 14512 IFS=$as_save_IFS 14513 test -z "$as_dir" && as_dir=. 14514 for ac_exec_ext in '' $ac_executable_extensions; do 14515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14516 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14518 break 2 14519 fi 14520 done 14521 done 14522 IFS=$as_save_IFS 14523 14524 fi 14525 fi 14526 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14527 if test -n "$MANIFEST_TOOL"; then 14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14529 $as_echo "$MANIFEST_TOOL" >&6; } 14530 else 14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14532 $as_echo "no" >&6; } 14533 fi 14534 14535 14536 fi 14537 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14538 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14539 # Extract the first word of "mt", so it can be a program name with args. 14540 set dummy mt; ac_word=$2 14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14542 $as_echo_n "checking for $ac_word... " >&6; } 14543 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 14544 $as_echo_n "(cached) " >&6 14545 else 14546 if test -n "$ac_ct_MANIFEST_TOOL"; then 14547 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14548 else 14549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14550 for as_dir in $PATH 14551 do 14552 IFS=$as_save_IFS 14553 test -z "$as_dir" && as_dir=. 14554 for ac_exec_ext in '' $ac_executable_extensions; do 14555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14556 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14558 break 2 14559 fi 14560 done 14561 done 14562 IFS=$as_save_IFS 14563 14564 fi 14565 fi 14566 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14567 if test -n "$ac_ct_MANIFEST_TOOL"; then 14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14569 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 14570 else 14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14572 $as_echo "no" >&6; } 14573 fi 14574 14575 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14576 MANIFEST_TOOL=":" 14577 else 14578 case $cross_compiling:$ac_tool_warned in 14579 yes:) 14580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14582 ac_tool_warned=yes ;; 14583 esac 14584 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14585 fi 14586 else 14587 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14588 fi 14589 14590 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14592 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14593 if ${lt_cv_path_mainfest_tool+:} false; then : 14594 $as_echo_n "(cached) " >&6 14595 else 14596 lt_cv_path_mainfest_tool=no 14597 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14598 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14599 cat conftest.err >&5 14600 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14601 lt_cv_path_mainfest_tool=yes 14602 fi 14603 rm -f conftest* 14604 fi 14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14606 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 14607 if test yes != "$lt_cv_path_mainfest_tool"; then 14608 MANIFEST_TOOL=: 14609 fi 14610 14611 14612 14613 14614 14615 14616 case $host_os in 14617 rhapsody* | darwin*) 14618 if test -n "$ac_tool_prefix"; then 14619 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14620 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14622 $as_echo_n "checking for $ac_word... " >&6; } 14623 if ${ac_cv_prog_DSYMUTIL+:} false; then : 14624 $as_echo_n "(cached) " >&6 14625 else 14626 if test -n "$DSYMUTIL"; then 14627 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14628 else 14629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14630 for as_dir in $PATH 14631 do 14632 IFS=$as_save_IFS 14633 test -z "$as_dir" && as_dir=. 14634 for ac_exec_ext in '' $ac_executable_extensions; do 14635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14636 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14638 break 2 14639 fi 14640 done 14641 done 14642 IFS=$as_save_IFS 14643 14644 fi 14645 fi 14646 DSYMUTIL=$ac_cv_prog_DSYMUTIL 14647 if test -n "$DSYMUTIL"; then 14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14649 $as_echo "$DSYMUTIL" >&6; } 14650 else 14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14652 $as_echo "no" >&6; } 14653 fi 14654 14655 14656 fi 14657 if test -z "$ac_cv_prog_DSYMUTIL"; then 14658 ac_ct_DSYMUTIL=$DSYMUTIL 14659 # Extract the first word of "dsymutil", so it can be a program name with args. 14660 set dummy dsymutil; ac_word=$2 14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14662 $as_echo_n "checking for $ac_word... " >&6; } 14663 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 14664 $as_echo_n "(cached) " >&6 14665 else 14666 if test -n "$ac_ct_DSYMUTIL"; then 14667 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14668 else 14669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14670 for as_dir in $PATH 14671 do 14672 IFS=$as_save_IFS 14673 test -z "$as_dir" && as_dir=. 14674 for ac_exec_ext in '' $ac_executable_extensions; do 14675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14676 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14678 break 2 14679 fi 14680 done 14681 done 14682 IFS=$as_save_IFS 14683 14684 fi 14685 fi 14686 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14687 if test -n "$ac_ct_DSYMUTIL"; then 14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14689 $as_echo "$ac_ct_DSYMUTIL" >&6; } 14690 else 14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14692 $as_echo "no" >&6; } 14693 fi 14694 14695 if test "x$ac_ct_DSYMUTIL" = x; then 14696 DSYMUTIL=":" 14697 else 14698 case $cross_compiling:$ac_tool_warned in 14699 yes:) 14700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14702 ac_tool_warned=yes ;; 14703 esac 14704 DSYMUTIL=$ac_ct_DSYMUTIL 14705 fi 14706 else 14707 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14708 fi 14709 14710 if test -n "$ac_tool_prefix"; then 14711 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14712 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14714 $as_echo_n "checking for $ac_word... " >&6; } 14715 if ${ac_cv_prog_NMEDIT+:} false; then : 14716 $as_echo_n "(cached) " >&6 14717 else 14718 if test -n "$NMEDIT"; then 14719 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14720 else 14721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14722 for as_dir in $PATH 14723 do 14724 IFS=$as_save_IFS 14725 test -z "$as_dir" && as_dir=. 14726 for ac_exec_ext in '' $ac_executable_extensions; do 14727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14728 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14730 break 2 14731 fi 14732 done 14733 done 14734 IFS=$as_save_IFS 14735 14736 fi 14737 fi 14738 NMEDIT=$ac_cv_prog_NMEDIT 14739 if test -n "$NMEDIT"; then 14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14741 $as_echo "$NMEDIT" >&6; } 14742 else 14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14744 $as_echo "no" >&6; } 14745 fi 14746 14747 14748 fi 14749 if test -z "$ac_cv_prog_NMEDIT"; then 14750 ac_ct_NMEDIT=$NMEDIT 14751 # Extract the first word of "nmedit", so it can be a program name with args. 14752 set dummy nmedit; ac_word=$2 14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14754 $as_echo_n "checking for $ac_word... " >&6; } 14755 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 14756 $as_echo_n "(cached) " >&6 14757 else 14758 if test -n "$ac_ct_NMEDIT"; then 14759 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14760 else 14761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14762 for as_dir in $PATH 14763 do 14764 IFS=$as_save_IFS 14765 test -z "$as_dir" && as_dir=. 14766 for ac_exec_ext in '' $ac_executable_extensions; do 14767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14768 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14770 break 2 14771 fi 14772 done 14773 done 14774 IFS=$as_save_IFS 14775 14776 fi 14777 fi 14778 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14779 if test -n "$ac_ct_NMEDIT"; then 14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14781 $as_echo "$ac_ct_NMEDIT" >&6; } 14782 else 14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14784 $as_echo "no" >&6; } 14785 fi 14786 14787 if test "x$ac_ct_NMEDIT" = x; then 14788 NMEDIT=":" 14789 else 14790 case $cross_compiling:$ac_tool_warned in 14791 yes:) 14792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14794 ac_tool_warned=yes ;; 14795 esac 14796 NMEDIT=$ac_ct_NMEDIT 14797 fi 14798 else 14799 NMEDIT="$ac_cv_prog_NMEDIT" 14800 fi 14801 14802 if test -n "$ac_tool_prefix"; then 14803 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14804 set dummy ${ac_tool_prefix}lipo; ac_word=$2 14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14806 $as_echo_n "checking for $ac_word... " >&6; } 14807 if ${ac_cv_prog_LIPO+:} false; then : 14808 $as_echo_n "(cached) " >&6 14809 else 14810 if test -n "$LIPO"; then 14811 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14812 else 14813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14814 for as_dir in $PATH 14815 do 14816 IFS=$as_save_IFS 14817 test -z "$as_dir" && as_dir=. 14818 for ac_exec_ext in '' $ac_executable_extensions; do 14819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14820 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14822 break 2 14823 fi 14824 done 14825 done 14826 IFS=$as_save_IFS 14827 14828 fi 14829 fi 14830 LIPO=$ac_cv_prog_LIPO 14831 if test -n "$LIPO"; then 14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14833 $as_echo "$LIPO" >&6; } 14834 else 14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14836 $as_echo "no" >&6; } 14837 fi 14838 14839 14840 fi 14841 if test -z "$ac_cv_prog_LIPO"; then 14842 ac_ct_LIPO=$LIPO 14843 # Extract the first word of "lipo", so it can be a program name with args. 14844 set dummy lipo; ac_word=$2 14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14846 $as_echo_n "checking for $ac_word... " >&6; } 14847 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 14848 $as_echo_n "(cached) " >&6 14849 else 14850 if test -n "$ac_ct_LIPO"; then 14851 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14852 else 14853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14854 for as_dir in $PATH 14855 do 14856 IFS=$as_save_IFS 14857 test -z "$as_dir" && as_dir=. 14858 for ac_exec_ext in '' $ac_executable_extensions; do 14859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14860 ac_cv_prog_ac_ct_LIPO="lipo" 14861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14862 break 2 14863 fi 14864 done 14865 done 14866 IFS=$as_save_IFS 14867 14868 fi 14869 fi 14870 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14871 if test -n "$ac_ct_LIPO"; then 14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14873 $as_echo "$ac_ct_LIPO" >&6; } 14874 else 14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14876 $as_echo "no" >&6; } 14877 fi 14878 14879 if test "x$ac_ct_LIPO" = x; then 14880 LIPO=":" 14881 else 14882 case $cross_compiling:$ac_tool_warned in 14883 yes:) 14884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14886 ac_tool_warned=yes ;; 14887 esac 14888 LIPO=$ac_ct_LIPO 14889 fi 14890 else 14891 LIPO="$ac_cv_prog_LIPO" 14892 fi 14893 14894 if test -n "$ac_tool_prefix"; then 14895 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14896 set dummy ${ac_tool_prefix}otool; ac_word=$2 14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14898 $as_echo_n "checking for $ac_word... " >&6; } 14899 if ${ac_cv_prog_OTOOL+:} false; then : 14900 $as_echo_n "(cached) " >&6 14901 else 14902 if test -n "$OTOOL"; then 14903 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14904 else 14905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14906 for as_dir in $PATH 14907 do 14908 IFS=$as_save_IFS 14909 test -z "$as_dir" && as_dir=. 14910 for ac_exec_ext in '' $ac_executable_extensions; do 14911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14912 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14914 break 2 14915 fi 14916 done 14917 done 14918 IFS=$as_save_IFS 14919 14920 fi 14921 fi 14922 OTOOL=$ac_cv_prog_OTOOL 14923 if test -n "$OTOOL"; then 14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14925 $as_echo "$OTOOL" >&6; } 14926 else 14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14928 $as_echo "no" >&6; } 14929 fi 14930 14931 14932 fi 14933 if test -z "$ac_cv_prog_OTOOL"; then 14934 ac_ct_OTOOL=$OTOOL 14935 # Extract the first word of "otool", so it can be a program name with args. 14936 set dummy otool; ac_word=$2 14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14938 $as_echo_n "checking for $ac_word... " >&6; } 14939 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 14940 $as_echo_n "(cached) " >&6 14941 else 14942 if test -n "$ac_ct_OTOOL"; then 14943 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14944 else 14945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14946 for as_dir in $PATH 14947 do 14948 IFS=$as_save_IFS 14949 test -z "$as_dir" && as_dir=. 14950 for ac_exec_ext in '' $ac_executable_extensions; do 14951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14952 ac_cv_prog_ac_ct_OTOOL="otool" 14953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14954 break 2 14955 fi 14956 done 14957 done 14958 IFS=$as_save_IFS 14959 14960 fi 14961 fi 14962 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14963 if test -n "$ac_ct_OTOOL"; then 14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14965 $as_echo "$ac_ct_OTOOL" >&6; } 14966 else 14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14968 $as_echo "no" >&6; } 14969 fi 14970 14971 if test "x$ac_ct_OTOOL" = x; then 14972 OTOOL=":" 14973 else 14974 case $cross_compiling:$ac_tool_warned in 14975 yes:) 14976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14978 ac_tool_warned=yes ;; 14979 esac 14980 OTOOL=$ac_ct_OTOOL 14981 fi 14982 else 14983 OTOOL="$ac_cv_prog_OTOOL" 14984 fi 14985 14986 if test -n "$ac_tool_prefix"; then 14987 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14988 set dummy ${ac_tool_prefix}otool64; ac_word=$2 14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14990 $as_echo_n "checking for $ac_word... " >&6; } 14991 if ${ac_cv_prog_OTOOL64+:} false; then : 14992 $as_echo_n "(cached) " >&6 14993 else 14994 if test -n "$OTOOL64"; then 14995 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14996 else 14997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14998 for as_dir in $PATH 14999 do 15000 IFS=$as_save_IFS 15001 test -z "$as_dir" && as_dir=. 15002 for ac_exec_ext in '' $ac_executable_extensions; do 15003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15004 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 15005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15006 break 2 15007 fi 15008 done 15009 done 15010 IFS=$as_save_IFS 15011 15012 fi 15013 fi 15014 OTOOL64=$ac_cv_prog_OTOOL64 15015 if test -n "$OTOOL64"; then 15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 15017 $as_echo "$OTOOL64" >&6; } 15018 else 15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15020 $as_echo "no" >&6; } 15021 fi 15022 15023 15024 fi 15025 if test -z "$ac_cv_prog_OTOOL64"; then 15026 ac_ct_OTOOL64=$OTOOL64 15027 # Extract the first word of "otool64", so it can be a program name with args. 15028 set dummy otool64; ac_word=$2 15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15030 $as_echo_n "checking for $ac_word... " >&6; } 15031 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 15032 $as_echo_n "(cached) " >&6 15033 else 15034 if test -n "$ac_ct_OTOOL64"; then 15035 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 15036 else 15037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15038 for as_dir in $PATH 15039 do 15040 IFS=$as_save_IFS 15041 test -z "$as_dir" && as_dir=. 15042 for ac_exec_ext in '' $ac_executable_extensions; do 15043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15044 ac_cv_prog_ac_ct_OTOOL64="otool64" 15045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15046 break 2 15047 fi 15048 done 15049 done 15050 IFS=$as_save_IFS 15051 15052 fi 15053 fi 15054 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 15055 if test -n "$ac_ct_OTOOL64"; then 15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 15057 $as_echo "$ac_ct_OTOOL64" >&6; } 15058 else 15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15060 $as_echo "no" >&6; } 15061 fi 15062 15063 if test "x$ac_ct_OTOOL64" = x; then 15064 OTOOL64=":" 15065 else 15066 case $cross_compiling:$ac_tool_warned in 15067 yes:) 15068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15070 ac_tool_warned=yes ;; 15071 esac 15072 OTOOL64=$ac_ct_OTOOL64 15073 fi 15074 else 15075 OTOOL64="$ac_cv_prog_OTOOL64" 15076 fi 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 15105 $as_echo_n "checking for -single_module linker flag... " >&6; } 15106 if ${lt_cv_apple_cc_single_mod+:} false; then : 15107 $as_echo_n "(cached) " >&6 15108 else 15109 lt_cv_apple_cc_single_mod=no 15110 if test -z "$LT_MULTI_MODULE"; then 15111 # By default we will add the -single_module flag. You can override 15112 # by either setting the environment variable LT_MULTI_MODULE 15113 # non-empty at configure time, or by adding -multi_module to the 15114 # link flags. 15115 rm -rf libconftest.dylib* 15116 echo "int foo(void){return 1;}" > conftest.c 15117 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15118 -dynamiclib -Wl,-single_module conftest.c" >&5 15119 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15120 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 15121 _lt_result=$? 15122 # If there is a non-empty error log, and "single_module" 15123 # appears in it, assume the flag caused a linker warning 15124 if test -s conftest.err && $GREP single_module conftest.err; then 15125 cat conftest.err >&5 15126 # Otherwise, if the output was created with a 0 exit code from 15127 # the compiler, it worked. 15128 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 15129 lt_cv_apple_cc_single_mod=yes 15130 else 15131 cat conftest.err >&5 15132 fi 15133 rm -rf libconftest.dylib* 15134 rm -f conftest.* 15135 fi 15136 fi 15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 15138 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 15139 15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 15141 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 15142 if ${lt_cv_ld_exported_symbols_list+:} false; then : 15143 $as_echo_n "(cached) " >&6 15144 else 15145 lt_cv_ld_exported_symbols_list=no 15146 save_LDFLAGS=$LDFLAGS 15147 echo "_main" > conftest.sym 15148 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 15149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15150 /* end confdefs.h. */ 15151 15152 int 15153 main () 15154 { 15155 15156 ; 15157 return 0; 15158 } 15159 _ACEOF 15160 if ac_fn_c_try_link "$LINENO"; then : 15161 lt_cv_ld_exported_symbols_list=yes 15162 else 15163 lt_cv_ld_exported_symbols_list=no 15164 fi 15165 rm -f core conftest.err conftest.$ac_objext \ 15166 conftest$ac_exeext conftest.$ac_ext 15167 LDFLAGS=$save_LDFLAGS 15168 15169 fi 15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 15171 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 15172 15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 15174 $as_echo_n "checking for -force_load linker flag... " >&6; } 15175 if ${lt_cv_ld_force_load+:} false; then : 15176 $as_echo_n "(cached) " >&6 15177 else 15178 lt_cv_ld_force_load=no 15179 cat > conftest.c << _LT_EOF 15180 int forced_loaded() { return 2;} 15181 _LT_EOF 15182 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 15183 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 15184 echo "$AR cru libconftest.a conftest.o" >&5 15185 $AR cru libconftest.a conftest.o 2>&5 15186 echo "$RANLIB libconftest.a" >&5 15187 $RANLIB libconftest.a 2>&5 15188 cat > conftest.c << _LT_EOF 15189 int main() { return 0;} 15190 _LT_EOF 15191 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 15192 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 15193 _lt_result=$? 15194 if test -s conftest.err && $GREP force_load conftest.err; then 15195 cat conftest.err >&5 15196 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 15197 lt_cv_ld_force_load=yes 15198 else 15199 cat conftest.err >&5 15200 fi 15201 rm -f conftest.err libconftest.a conftest conftest.c 15202 rm -rf conftest.dSYM 15203 15204 fi 15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 15206 $as_echo "$lt_cv_ld_force_load" >&6; } 15207 case $host_os in 15208 rhapsody* | darwin1.[012]) 15209 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 15210 darwin1.*) 15211 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15212 darwin*) # darwin 5.x on 15213 # if running on 10.5 or later, the deployment target defaults 15214 # to the OS version, if on x86, and 10.4, the deployment 15215 # target defaults to 10.4. Don't you love it? 15216 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 15217 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 15218 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 15219 10.[012][,.]*) 15220 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15221 10.*) 15222 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 15223 esac 15224 ;; 15225 esac 15226 if test yes = "$lt_cv_apple_cc_single_mod"; then 15227 _lt_dar_single_mod='$single_module' 15228 fi 15229 if test yes = "$lt_cv_ld_exported_symbols_list"; then 15230 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 15231 else 15232 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 15233 fi 15234 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 15235 _lt_dsymutil='~$DSYMUTIL $lib || :' 15236 else 15237 _lt_dsymutil= 15238 fi 15239 ;; 15240 esac 15241 15242 # func_munge_path_list VARIABLE PATH 15243 # ----------------------------------- 15244 # VARIABLE is name of variable containing _space_ separated list of 15245 # directories to be munged by the contents of PATH, which is string 15246 # having a format: 15247 # "DIR[:DIR]:" 15248 # string "DIR[ DIR]" will be prepended to VARIABLE 15249 # ":DIR[:DIR]" 15250 # string "DIR[ DIR]" will be appended to VARIABLE 15251 # "DIRP[:DIRP]::[DIRA:]DIRA" 15252 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15253 # "DIRA[ DIRA]" will be appended to VARIABLE 15254 # "DIR[:DIR]" 15255 # VARIABLE will be replaced by "DIR[ DIR]" 15256 func_munge_path_list () 15257 { 15258 case x$2 in 15259 x) 15260 ;; 15261 *:) 15262 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15263 ;; 15264 x:*) 15265 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15266 ;; 15267 *::*) 15268 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15269 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15270 ;; 15271 *) 15272 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15273 ;; 15274 esac 15275 } 15276 15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 15278 $as_echo_n "checking for ANSI C header files... " >&6; } 15279 if ${ac_cv_header_stdc+:} false; then : 15280 $as_echo_n "(cached) " >&6 15281 else 15282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15283 /* end confdefs.h. */ 15284 #include <stdlib.h> 15285 #include <stdarg.h> 15286 #include <string.h> 15287 #include <float.h> 15288 15289 int 15290 main () 15291 { 15292 15293 ; 15294 return 0; 15295 } 15296 _ACEOF 15297 if ac_fn_c_try_compile "$LINENO"; then : 15298 ac_cv_header_stdc=yes 15299 else 15300 ac_cv_header_stdc=no 15301 fi 15302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15303 15304 if test $ac_cv_header_stdc = yes; then 15305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15307 /* end confdefs.h. */ 15308 #include <string.h> 15309 15310 _ACEOF 15311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15312 $EGREP "memchr" >/dev/null 2>&1; then : 15313 15314 else 15315 ac_cv_header_stdc=no 15316 fi 15317 rm -f conftest* 15318 15319 fi 15320 15321 if test $ac_cv_header_stdc = yes; then 15322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 15323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15324 /* end confdefs.h. */ 15325 #include <stdlib.h> 15326 15327 _ACEOF 15328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15329 $EGREP "free" >/dev/null 2>&1; then : 15330 15331 else 15332 ac_cv_header_stdc=no 15333 fi 15334 rm -f conftest* 15335 15336 fi 15337 15338 if test $ac_cv_header_stdc = yes; then 15339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 15340 if test "$cross_compiling" = yes; then : 15341 : 15342 else 15343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15344 /* end confdefs.h. */ 15345 #include <ctype.h> 15346 #include <stdlib.h> 15347 #if ((' ' & 0x0FF) == 0x020) 15348 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 15349 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 15350 #else 15351 # define ISLOWER(c) \ 15352 (('a' <= (c) && (c) <= 'i') \ 15353 || ('j' <= (c) && (c) <= 'r') \ 15354 || ('s' <= (c) && (c) <= 'z')) 15355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 15356 #endif 15357 15358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 15359 int 15360 main () 15361 { 15362 int i; 15363 for (i = 0; i < 256; i++) 15364 if (XOR (islower (i), ISLOWER (i)) 15365 || toupper (i) != TOUPPER (i)) 15366 return 2; 15367 return 0; 15368 } 15369 _ACEOF 15370 if ac_fn_c_try_run "$LINENO"; then : 15371 15372 else 15373 ac_cv_header_stdc=no 15374 fi 15375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15376 conftest.$ac_objext conftest.beam conftest.$ac_ext 15377 fi 15378 15379 fi 15380 fi 15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 15382 $as_echo "$ac_cv_header_stdc" >&6; } 15383 if test $ac_cv_header_stdc = yes; then 15384 15385 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 15386 15387 fi 15388 15389 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 15390 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 15391 inttypes.h stdint.h unistd.h 15392 do : 15393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15394 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 15395 " 15396 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15397 cat >>confdefs.h <<_ACEOF 15398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15399 _ACEOF 15400 15401 fi 15402 15403 done 15404 15405 15406 for ac_header in dlfcn.h 15407 do : 15408 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 15409 " 15410 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 15411 cat >>confdefs.h <<_ACEOF 15412 #define HAVE_DLFCN_H 1 15413 _ACEOF 15414 15415 fi 15416 15417 done 15418 15419 15420 15421 15422 func_stripname_cnf () 15423 { 15424 case $2 in 15425 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 15426 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 15427 esac 15428 } # func_stripname_cnf 15429 15430 15431 15432 15433 15434 # Set options 15435 15436 15437 15438 enable_dlopen=no 15439 15440 15441 15442 # Check whether --enable-shared was given. 15443 if test "${enable_shared+set}" = set; then : 15444 enableval=$enable_shared; p=${PACKAGE-default} 15445 case $enableval in 15446 yes) enable_shared=yes ;; 15447 no) enable_shared=no ;; 15448 *) 15449 enable_shared=no 15450 # Look at the argument we got. We use all the common list separators. 15451 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15452 for pkg in $enableval; do 15453 IFS=$lt_save_ifs 15454 if test "X$pkg" = "X$p"; then 15455 enable_shared=yes 15456 fi 15457 done 15458 IFS=$lt_save_ifs 15459 ;; 15460 esac 15461 else 15462 enable_shared=yes 15463 fi 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 # Check whether --enable-static was given. 15474 if test "${enable_static+set}" = set; then : 15475 enableval=$enable_static; p=${PACKAGE-default} 15476 case $enableval in 15477 yes) enable_static=yes ;; 15478 no) enable_static=no ;; 15479 *) 15480 enable_static=no 15481 # Look at the argument we got. We use all the common list separators. 15482 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15483 for pkg in $enableval; do 15484 IFS=$lt_save_ifs 15485 if test "X$pkg" = "X$p"; then 15486 enable_static=yes 15487 fi 15488 done 15489 IFS=$lt_save_ifs 15490 ;; 15491 esac 15492 else 15493 enable_static=yes 15494 fi 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 # Check whether --with-pic was given. 15506 if test "${with_pic+set}" = set; then : 15507 withval=$with_pic; lt_p=${PACKAGE-default} 15508 case $withval in 15509 yes|no) pic_mode=$withval ;; 15510 *) 15511 pic_mode=default 15512 # Look at the argument we got. We use all the common list separators. 15513 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15514 for lt_pkg in $withval; do 15515 IFS=$lt_save_ifs 15516 if test "X$lt_pkg" = "X$lt_p"; then 15517 pic_mode=yes 15518 fi 15519 done 15520 IFS=$lt_save_ifs 15521 ;; 15522 esac 15523 else 15524 pic_mode=default 15525 fi 15526 15527 15528 15529 15530 15531 15532 15533 15534 # Check whether --enable-fast-install was given. 15535 if test "${enable_fast_install+set}" = set; then : 15536 enableval=$enable_fast_install; p=${PACKAGE-default} 15537 case $enableval in 15538 yes) enable_fast_install=yes ;; 15539 no) enable_fast_install=no ;; 15540 *) 15541 enable_fast_install=no 15542 # Look at the argument we got. We use all the common list separators. 15543 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15544 for pkg in $enableval; do 15545 IFS=$lt_save_ifs 15546 if test "X$pkg" = "X$p"; then 15547 enable_fast_install=yes 15548 fi 15549 done 15550 IFS=$lt_save_ifs 15551 ;; 15552 esac 15553 else 15554 enable_fast_install=yes 15555 fi 15556 15557 15558 15559 15560 15561 15562 15563 15564 shared_archive_member_spec= 15565 case $host,$enable_shared in 15566 power*-*-aix[5-9]*,yes) 15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15568 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 15569 15570 # Check whether --with-aix-soname was given. 15571 if test "${with_aix_soname+set}" = set; then : 15572 withval=$with_aix_soname; case $withval in 15573 aix|svr4|both) 15574 ;; 15575 *) 15576 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15577 ;; 15578 esac 15579 lt_cv_with_aix_soname=$with_aix_soname 15580 else 15581 if ${lt_cv_with_aix_soname+:} false; then : 15582 $as_echo_n "(cached) " >&6 15583 else 15584 lt_cv_with_aix_soname=aix 15585 fi 15586 15587 with_aix_soname=$lt_cv_with_aix_soname 15588 fi 15589 15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15591 $as_echo "$with_aix_soname" >&6; } 15592 if test aix != "$with_aix_soname"; then 15593 # For the AIX way of multilib, we name the shared archive member 15594 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15595 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15596 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15597 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15598 if test 64 = "${OBJECT_MODE-32}"; then 15599 shared_archive_member_spec=shr_64 15600 else 15601 shared_archive_member_spec=shr 15602 fi 15603 fi 15604 ;; 15605 *) 15606 with_aix_soname=aix 15607 ;; 15608 esac 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 # This can be used to rebuild libtool when needed 15620 LIBTOOL_DEPS=$ltmain 15621 15622 # Always use our own libtool. 15623 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 test -z "$LN_S" && LN_S="ln -s" 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 if test -n "${ZSH_VERSION+set}"; then 15670 setopt NO_GLOB_SUBST 15671 fi 15672 15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15674 $as_echo_n "checking for objdir... " >&6; } 15675 if ${lt_cv_objdir+:} false; then : 15676 $as_echo_n "(cached) " >&6 15677 else 15678 rm -f .libs 2>/dev/null 15679 mkdir .libs 2>/dev/null 15680 if test -d .libs; then 15681 lt_cv_objdir=.libs 15682 else 15683 # MS-DOS does not allow filenames that begin with a dot. 15684 lt_cv_objdir=_libs 15685 fi 15686 rmdir .libs 2>/dev/null 15687 fi 15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15689 $as_echo "$lt_cv_objdir" >&6; } 15690 objdir=$lt_cv_objdir 15691 15692 15693 15694 15695 15696 cat >>confdefs.h <<_ACEOF 15697 #define LT_OBJDIR "$lt_cv_objdir/" 15698 _ACEOF 15699 15700 15701 15702 15703 case $host_os in 15704 aix3*) 15705 # AIX sometimes has problems with the GCC collect2 program. For some 15706 # reason, if we set the COLLECT_NAMES environment variable, the problems 15707 # vanish in a puff of smoke. 15708 if test set != "${COLLECT_NAMES+set}"; then 15709 COLLECT_NAMES= 15710 export COLLECT_NAMES 15711 fi 15712 ;; 15713 esac 15714 15715 # Global variables: 15716 ofile=libtool 15717 can_build_shared=yes 15718 15719 # All known linkers require a '.a' archive for static linking (except MSVC, 15720 # which needs '.lib'). 15721 libext=a 15722 15723 with_gnu_ld=$lt_cv_prog_gnu_ld 15724 15725 old_CC=$CC 15726 old_CFLAGS=$CFLAGS 15727 15728 # Set sane defaults for various variables 15729 test -z "$CC" && CC=cc 15730 test -z "$LTCC" && LTCC=$CC 15731 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15732 test -z "$LD" && LD=ld 15733 test -z "$ac_objext" && ac_objext=o 15734 15735 func_cc_basename $compiler 15736 cc_basename=$func_cc_basename_result 15737 15738 15739 # Only perform the check for file, if the check method requires it 15740 test -z "$MAGIC_CMD" && MAGIC_CMD=file 15741 case $deplibs_check_method in 15742 file_magic*) 15743 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15745 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 15746 if ${lt_cv_path_MAGIC_CMD+:} false; then : 15747 $as_echo_n "(cached) " >&6 15748 else 15749 case $MAGIC_CMD in 15750 [\\/*] | ?:[\\/]*) 15751 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15752 ;; 15753 *) 15754 lt_save_MAGIC_CMD=$MAGIC_CMD 15755 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15756 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15757 for ac_dir in $ac_dummy; do 15758 IFS=$lt_save_ifs 15759 test -z "$ac_dir" && ac_dir=. 15760 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15761 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15762 if test -n "$file_magic_test_file"; then 15763 case $deplibs_check_method in 15764 "file_magic "*) 15765 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15766 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15767 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15768 $EGREP "$file_magic_regex" > /dev/null; then 15769 : 15770 else 15771 cat <<_LT_EOF 1>&2 15772 15773 *** Warning: the command libtool uses to detect shared libraries, 15774 *** $file_magic_cmd, produces output that libtool cannot recognize. 15775 *** The result is that libtool may fail to recognize shared libraries 15776 *** as such. This will affect the creation of libtool libraries that 15777 *** depend on shared libraries, but programs linked with such libtool 15778 *** libraries will work regardless of this problem. Nevertheless, you 15779 *** may want to report the problem to your system manager and/or to 15780 *** bug-libtool (at] gnu.org 15781 15782 _LT_EOF 15783 fi ;; 15784 esac 15785 fi 15786 break 15787 fi 15788 done 15789 IFS=$lt_save_ifs 15790 MAGIC_CMD=$lt_save_MAGIC_CMD 15791 ;; 15792 esac 15793 fi 15794 15795 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15796 if test -n "$MAGIC_CMD"; then 15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15798 $as_echo "$MAGIC_CMD" >&6; } 15799 else 15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15801 $as_echo "no" >&6; } 15802 fi 15803 15804 15805 15806 15807 15808 if test -z "$lt_cv_path_MAGIC_CMD"; then 15809 if test -n "$ac_tool_prefix"; then 15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15811 $as_echo_n "checking for file... " >&6; } 15812 if ${lt_cv_path_MAGIC_CMD+:} false; then : 15813 $as_echo_n "(cached) " >&6 15814 else 15815 case $MAGIC_CMD in 15816 [\\/*] | ?:[\\/]*) 15817 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15818 ;; 15819 *) 15820 lt_save_MAGIC_CMD=$MAGIC_CMD 15821 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15822 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15823 for ac_dir in $ac_dummy; do 15824 IFS=$lt_save_ifs 15825 test -z "$ac_dir" && ac_dir=. 15826 if test -f "$ac_dir/file"; then 15827 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15828 if test -n "$file_magic_test_file"; then 15829 case $deplibs_check_method in 15830 "file_magic "*) 15831 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15832 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15833 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15834 $EGREP "$file_magic_regex" > /dev/null; then 15835 : 15836 else 15837 cat <<_LT_EOF 1>&2 15838 15839 *** Warning: the command libtool uses to detect shared libraries, 15840 *** $file_magic_cmd, produces output that libtool cannot recognize. 15841 *** The result is that libtool may fail to recognize shared libraries 15842 *** as such. This will affect the creation of libtool libraries that 15843 *** depend on shared libraries, but programs linked with such libtool 15844 *** libraries will work regardless of this problem. Nevertheless, you 15845 *** may want to report the problem to your system manager and/or to 15846 *** bug-libtool (at] gnu.org 15847 15848 _LT_EOF 15849 fi ;; 15850 esac 15851 fi 15852 break 15853 fi 15854 done 15855 IFS=$lt_save_ifs 15856 MAGIC_CMD=$lt_save_MAGIC_CMD 15857 ;; 15858 esac 15859 fi 15860 15861 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15862 if test -n "$MAGIC_CMD"; then 15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15864 $as_echo "$MAGIC_CMD" >&6; } 15865 else 15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15867 $as_echo "no" >&6; } 15868 fi 15869 15870 15871 else 15872 MAGIC_CMD=: 15873 fi 15874 fi 15875 15876 fi 15877 ;; 15878 esac 15879 15880 # Use C for the default configuration in the libtool script 15881 15882 lt_save_CC=$CC 15883 ac_ext=c 15884 ac_cpp='$CPP $CPPFLAGS' 15885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15887 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15888 15889 15890 # Source file extension for C test sources. 15891 ac_ext=c 15892 15893 # Object file extension for compiled C test sources. 15894 objext=o 15895 objext=$objext 15896 15897 # Code to be used in simple compile tests 15898 lt_simple_compile_test_code="int some_variable = 0;" 15899 15900 # Code to be used in simple link tests 15901 lt_simple_link_test_code='int main(){return(0);}' 15902 15903 15904 15905 15906 15907 15908 15909 # If no C compiler was specified, use CC. 15910 LTCC=${LTCC-"$CC"} 15911 15912 # If no C compiler flags were specified, use CFLAGS. 15913 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15914 15915 # Allow CC to be a program name with arguments. 15916 compiler=$CC 15917 15918 # Save the default compiler, since it gets overwritten when the other 15919 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15920 compiler_DEFAULT=$CC 15921 15922 # save warnings/boilerplate of simple test code 15923 ac_outfile=conftest.$ac_objext 15924 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15925 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15926 _lt_compiler_boilerplate=`cat conftest.err` 15927 $RM conftest* 15928 15929 ac_outfile=conftest.$ac_objext 15930 echo "$lt_simple_link_test_code" >conftest.$ac_ext 15931 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15932 _lt_linker_boilerplate=`cat conftest.err` 15933 $RM -r conftest* 15934 15935 15936 if test -n "$compiler"; then 15937 15938 lt_prog_compiler_no_builtin_flag= 15939 15940 if test yes = "$GCC"; then 15941 case $cc_basename in 15942 nvcc*) 15943 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15944 *) 15945 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15946 esac 15947 15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15949 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15950 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 15951 $as_echo_n "(cached) " >&6 15952 else 15953 lt_cv_prog_compiler_rtti_exceptions=no 15954 ac_outfile=conftest.$ac_objext 15955 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15956 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15957 # Insert the option either (1) after the last *FLAGS variable, or 15958 # (2) before a word containing "conftest.", or (3) at the end. 15959 # Note that $ac_compile itself does not contain backslashes and begins 15960 # with a dollar sign (not a hyphen), so the echo should work correctly. 15961 # The option is referenced via a variable to avoid confusing sed. 15962 lt_compile=`echo "$ac_compile" | $SED \ 15963 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15965 -e 's:$: $lt_compiler_flag:'` 15966 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15967 (eval "$lt_compile" 2>conftest.err) 15968 ac_status=$? 15969 cat conftest.err >&5 15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15971 if (exit $ac_status) && test -s "$ac_outfile"; then 15972 # The compiler can only warn and ignore the option if not recognized 15973 # So say no if there are warnings other than the usual output. 15974 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15976 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15977 lt_cv_prog_compiler_rtti_exceptions=yes 15978 fi 15979 fi 15980 $RM conftest* 15981 15982 fi 15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15984 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15985 15986 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15987 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15988 else 15989 : 15990 fi 15991 15992 fi 15993 15994 15995 15996 15997 15998 15999 lt_prog_compiler_wl= 16000 lt_prog_compiler_pic= 16001 lt_prog_compiler_static= 16002 16003 16004 if test yes = "$GCC"; then 16005 lt_prog_compiler_wl='-Wl,' 16006 lt_prog_compiler_static='-static' 16007 16008 case $host_os in 16009 aix*) 16010 # All AIX code is PIC. 16011 if test ia64 = "$host_cpu"; then 16012 # AIX 5 now supports IA64 processor 16013 lt_prog_compiler_static='-Bstatic' 16014 fi 16015 lt_prog_compiler_pic='-fPIC' 16016 ;; 16017 16018 amigaos*) 16019 case $host_cpu in 16020 powerpc) 16021 # see comment about AmigaOS4 .so support 16022 lt_prog_compiler_pic='-fPIC' 16023 ;; 16024 m68k) 16025 # FIXME: we need at least 68020 code to build shared libraries, but 16026 # adding the '-m68020' flag to GCC prevents building anything better, 16027 # like '-m68040'. 16028 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 16029 ;; 16030 esac 16031 ;; 16032 16033 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16034 # PIC is the default for these OSes. 16035 ;; 16036 16037 mingw* | cygwin* | pw32* | os2* | cegcc*) 16038 # This hack is so that the source file can tell whether it is being 16039 # built for inclusion in a dll (and should export symbols for example). 16040 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16041 # (--disable-auto-import) libraries 16042 lt_prog_compiler_pic='-DDLL_EXPORT' 16043 case $host_os in 16044 os2*) 16045 lt_prog_compiler_static='$wl-static' 16046 ;; 16047 esac 16048 ;; 16049 16050 darwin* | rhapsody*) 16051 # PIC is the default on this platform 16052 # Common symbols not allowed in MH_DYLIB files 16053 lt_prog_compiler_pic='-fno-common' 16054 ;; 16055 16056 haiku*) 16057 # PIC is the default for Haiku. 16058 # The "-static" flag exists, but is broken. 16059 lt_prog_compiler_static= 16060 ;; 16061 16062 hpux*) 16063 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16064 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16065 # sets the default TLS model and affects inlining. 16066 case $host_cpu in 16067 hppa*64*) 16068 # +Z the default 16069 ;; 16070 *) 16071 lt_prog_compiler_pic='-fPIC' 16072 ;; 16073 esac 16074 ;; 16075 16076 interix[3-9]*) 16077 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16078 # Instead, we relocate shared libraries at runtime. 16079 ;; 16080 16081 msdosdjgpp*) 16082 # Just because we use GCC doesn't mean we suddenly get shared libraries 16083 # on systems that don't support them. 16084 lt_prog_compiler_can_build_shared=no 16085 enable_shared=no 16086 ;; 16087 16088 *nto* | *qnx*) 16089 # QNX uses GNU C++, but need to define -shared option too, otherwise 16090 # it will coredump. 16091 lt_prog_compiler_pic='-fPIC -shared' 16092 ;; 16093 16094 sysv4*MP*) 16095 if test -d /usr/nec; then 16096 lt_prog_compiler_pic=-Kconform_pic 16097 fi 16098 ;; 16099 16100 *) 16101 lt_prog_compiler_pic='-fPIC' 16102 ;; 16103 esac 16104 16105 case $cc_basename in 16106 nvcc*) # Cuda Compiler Driver 2.2 16107 lt_prog_compiler_wl='-Xlinker ' 16108 if test -n "$lt_prog_compiler_pic"; then 16109 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 16110 fi 16111 ;; 16112 esac 16113 else 16114 # PORTME Check for flag to pass linker flags through the system compiler. 16115 case $host_os in 16116 aix*) 16117 lt_prog_compiler_wl='-Wl,' 16118 if test ia64 = "$host_cpu"; then 16119 # AIX 5 now supports IA64 processor 16120 lt_prog_compiler_static='-Bstatic' 16121 else 16122 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 16123 fi 16124 ;; 16125 16126 darwin* | rhapsody*) 16127 # PIC is the default on this platform 16128 # Common symbols not allowed in MH_DYLIB files 16129 lt_prog_compiler_pic='-fno-common' 16130 case $cc_basename in 16131 nagfor*) 16132 # NAG Fortran compiler 16133 lt_prog_compiler_wl='-Wl,-Wl,,' 16134 lt_prog_compiler_pic='-PIC' 16135 lt_prog_compiler_static='-Bstatic' 16136 ;; 16137 esac 16138 ;; 16139 16140 mingw* | cygwin* | pw32* | os2* | cegcc*) 16141 # This hack is so that the source file can tell whether it is being 16142 # built for inclusion in a dll (and should export symbols for example). 16143 lt_prog_compiler_pic='-DDLL_EXPORT' 16144 case $host_os in 16145 os2*) 16146 lt_prog_compiler_static='$wl-static' 16147 ;; 16148 esac 16149 ;; 16150 16151 hpux9* | hpux10* | hpux11*) 16152 lt_prog_compiler_wl='-Wl,' 16153 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16154 # not for PA HP-UX. 16155 case $host_cpu in 16156 hppa*64*|ia64*) 16157 # +Z the default 16158 ;; 16159 *) 16160 lt_prog_compiler_pic='+Z' 16161 ;; 16162 esac 16163 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16164 lt_prog_compiler_static='$wl-a ${wl}archive' 16165 ;; 16166 16167 irix5* | irix6* | nonstopux*) 16168 lt_prog_compiler_wl='-Wl,' 16169 # PIC (with -KPIC) is the default. 16170 lt_prog_compiler_static='-non_shared' 16171 ;; 16172 16173 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16174 case $cc_basename in 16175 # old Intel for x86_64, which still supported -KPIC. 16176 ecc*) 16177 lt_prog_compiler_wl='-Wl,' 16178 lt_prog_compiler_pic='-KPIC' 16179 lt_prog_compiler_static='-static' 16180 ;; 16181 # icc used to be incompatible with GCC. 16182 # ICC 10 doesn't accept -KPIC any more. 16183 icc* | ifort*) 16184 lt_prog_compiler_wl='-Wl,' 16185 lt_prog_compiler_pic='-fPIC' 16186 lt_prog_compiler_static='-static' 16187 ;; 16188 # Lahey Fortran 8.1. 16189 lf95*) 16190 lt_prog_compiler_wl='-Wl,' 16191 lt_prog_compiler_pic='--shared' 16192 lt_prog_compiler_static='--static' 16193 ;; 16194 nagfor*) 16195 # NAG Fortran compiler 16196 lt_prog_compiler_wl='-Wl,-Wl,,' 16197 lt_prog_compiler_pic='-PIC' 16198 lt_prog_compiler_static='-Bstatic' 16199 ;; 16200 tcc*) 16201 # Fabrice Bellard et al's Tiny C Compiler 16202 lt_prog_compiler_wl='-Wl,' 16203 lt_prog_compiler_pic='-fPIC' 16204 lt_prog_compiler_static='-static' 16205 ;; 16206 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 16207 # Portland Group compilers (*not* the Pentium gcc compiler, 16208 # which looks to be a dead project) 16209 lt_prog_compiler_wl='-Wl,' 16210 lt_prog_compiler_pic='-fpic' 16211 lt_prog_compiler_static='-Bstatic' 16212 ;; 16213 ccc*) 16214 lt_prog_compiler_wl='-Wl,' 16215 # All Alpha code is PIC. 16216 lt_prog_compiler_static='-non_shared' 16217 ;; 16218 xl* | bgxl* | bgf* | mpixl*) 16219 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 16220 lt_prog_compiler_wl='-Wl,' 16221 lt_prog_compiler_pic='-qpic' 16222 lt_prog_compiler_static='-qstaticlink' 16223 ;; 16224 *) 16225 case `$CC -V 2>&1 | sed 5q` in 16226 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 16227 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16228 lt_prog_compiler_pic='-KPIC' 16229 lt_prog_compiler_static='-Bstatic' 16230 lt_prog_compiler_wl='' 16231 ;; 16232 *Sun\ F* | *Sun*Fortran*) 16233 lt_prog_compiler_pic='-KPIC' 16234 lt_prog_compiler_static='-Bstatic' 16235 lt_prog_compiler_wl='-Qoption ld ' 16236 ;; 16237 *Sun\ C*) 16238 # Sun C 5.9 16239 lt_prog_compiler_pic='-KPIC' 16240 lt_prog_compiler_static='-Bstatic' 16241 lt_prog_compiler_wl='-Wl,' 16242 ;; 16243 *Intel*\ [CF]*Compiler*) 16244 lt_prog_compiler_wl='-Wl,' 16245 lt_prog_compiler_pic='-fPIC' 16246 lt_prog_compiler_static='-static' 16247 ;; 16248 *Portland\ Group*) 16249 lt_prog_compiler_wl='-Wl,' 16250 lt_prog_compiler_pic='-fpic' 16251 lt_prog_compiler_static='-Bstatic' 16252 ;; 16253 esac 16254 ;; 16255 esac 16256 ;; 16257 16258 newsos6) 16259 lt_prog_compiler_pic='-KPIC' 16260 lt_prog_compiler_static='-Bstatic' 16261 ;; 16262 16263 *nto* | *qnx*) 16264 # QNX uses GNU C++, but need to define -shared option too, otherwise 16265 # it will coredump. 16266 lt_prog_compiler_pic='-fPIC -shared' 16267 ;; 16268 16269 osf3* | osf4* | osf5*) 16270 lt_prog_compiler_wl='-Wl,' 16271 # All OSF/1 code is PIC. 16272 lt_prog_compiler_static='-non_shared' 16273 ;; 16274 16275 rdos*) 16276 lt_prog_compiler_static='-non_shared' 16277 ;; 16278 16279 solaris*) 16280 lt_prog_compiler_pic='-KPIC' 16281 lt_prog_compiler_static='-Bstatic' 16282 case $cc_basename in 16283 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 16284 lt_prog_compiler_wl='-Qoption ld ';; 16285 *) 16286 lt_prog_compiler_wl='-Wl,';; 16287 esac 16288 ;; 16289 16290 sunos4*) 16291 lt_prog_compiler_wl='-Qoption ld ' 16292 lt_prog_compiler_pic='-PIC' 16293 lt_prog_compiler_static='-Bstatic' 16294 ;; 16295 16296 sysv4 | sysv4.2uw2* | sysv4.3*) 16297 lt_prog_compiler_wl='-Wl,' 16298 lt_prog_compiler_pic='-KPIC' 16299 lt_prog_compiler_static='-Bstatic' 16300 ;; 16301 16302 sysv4*MP*) 16303 if test -d /usr/nec; then 16304 lt_prog_compiler_pic='-Kconform_pic' 16305 lt_prog_compiler_static='-Bstatic' 16306 fi 16307 ;; 16308 16309 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16310 lt_prog_compiler_wl='-Wl,' 16311 lt_prog_compiler_pic='-KPIC' 16312 lt_prog_compiler_static='-Bstatic' 16313 ;; 16314 16315 unicos*) 16316 lt_prog_compiler_wl='-Wl,' 16317 lt_prog_compiler_can_build_shared=no 16318 ;; 16319 16320 uts4*) 16321 lt_prog_compiler_pic='-pic' 16322 lt_prog_compiler_static='-Bstatic' 16323 ;; 16324 16325 *) 16326 lt_prog_compiler_can_build_shared=no 16327 ;; 16328 esac 16329 fi 16330 16331 case $host_os in 16332 # For platforms that do not support PIC, -DPIC is meaningless: 16333 *djgpp*) 16334 lt_prog_compiler_pic= 16335 ;; 16336 *) 16337 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 16338 ;; 16339 esac 16340 16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16342 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16343 if ${lt_cv_prog_compiler_pic+:} false; then : 16344 $as_echo_n "(cached) " >&6 16345 else 16346 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 16347 fi 16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 16349 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 16350 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 16351 16352 # 16353 # Check to make sure the PIC flag actually works. 16354 # 16355 if test -n "$lt_prog_compiler_pic"; then 16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 16357 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 16358 if ${lt_cv_prog_compiler_pic_works+:} false; then : 16359 $as_echo_n "(cached) " >&6 16360 else 16361 lt_cv_prog_compiler_pic_works=no 16362 ac_outfile=conftest.$ac_objext 16363 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16364 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 16365 # Insert the option either (1) after the last *FLAGS variable, or 16366 # (2) before a word containing "conftest.", or (3) at the end. 16367 # Note that $ac_compile itself does not contain backslashes and begins 16368 # with a dollar sign (not a hyphen), so the echo should work correctly. 16369 # The option is referenced via a variable to avoid confusing sed. 16370 lt_compile=`echo "$ac_compile" | $SED \ 16371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16373 -e 's:$: $lt_compiler_flag:'` 16374 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16375 (eval "$lt_compile" 2>conftest.err) 16376 ac_status=$? 16377 cat conftest.err >&5 16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16379 if (exit $ac_status) && test -s "$ac_outfile"; then 16380 # The compiler can only warn and ignore the option if not recognized 16381 # So say no if there are warnings other than the usual output. 16382 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16384 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16385 lt_cv_prog_compiler_pic_works=yes 16386 fi 16387 fi 16388 $RM conftest* 16389 16390 fi 16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 16392 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 16393 16394 if test yes = "$lt_cv_prog_compiler_pic_works"; then 16395 case $lt_prog_compiler_pic in 16396 "" | " "*) ;; 16397 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 16398 esac 16399 else 16400 lt_prog_compiler_pic= 16401 lt_prog_compiler_can_build_shared=no 16402 fi 16403 16404 fi 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 # 16417 # Check to make sure the static flag actually works. 16418 # 16419 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 16420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16421 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16422 if ${lt_cv_prog_compiler_static_works+:} false; then : 16423 $as_echo_n "(cached) " >&6 16424 else 16425 lt_cv_prog_compiler_static_works=no 16426 save_LDFLAGS=$LDFLAGS 16427 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16428 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16429 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16430 # The linker can only warn and ignore the option if not recognized 16431 # So say no if there are warnings 16432 if test -s conftest.err; then 16433 # Append any errors to the config.log. 16434 cat conftest.err 1>&5 16435 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16437 if diff conftest.exp conftest.er2 >/dev/null; then 16438 lt_cv_prog_compiler_static_works=yes 16439 fi 16440 else 16441 lt_cv_prog_compiler_static_works=yes 16442 fi 16443 fi 16444 $RM -r conftest* 16445 LDFLAGS=$save_LDFLAGS 16446 16447 fi 16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16449 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 16450 16451 if test yes = "$lt_cv_prog_compiler_static_works"; then 16452 : 16453 else 16454 lt_prog_compiler_static= 16455 fi 16456 16457 16458 16459 16460 16461 16462 16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16464 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16465 if ${lt_cv_prog_compiler_c_o+:} false; then : 16466 $as_echo_n "(cached) " >&6 16467 else 16468 lt_cv_prog_compiler_c_o=no 16469 $RM -r conftest 2>/dev/null 16470 mkdir conftest 16471 cd conftest 16472 mkdir out 16473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16474 16475 lt_compiler_flag="-o out/conftest2.$ac_objext" 16476 # Insert the option either (1) after the last *FLAGS variable, or 16477 # (2) before a word containing "conftest.", or (3) at the end. 16478 # Note that $ac_compile itself does not contain backslashes and begins 16479 # with a dollar sign (not a hyphen), so the echo should work correctly. 16480 lt_compile=`echo "$ac_compile" | $SED \ 16481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16483 -e 's:$: $lt_compiler_flag:'` 16484 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16485 (eval "$lt_compile" 2>out/conftest.err) 16486 ac_status=$? 16487 cat out/conftest.err >&5 16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16489 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16490 then 16491 # The compiler can only warn and ignore the option if not recognized 16492 # So say no if there are warnings 16493 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16494 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16495 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16496 lt_cv_prog_compiler_c_o=yes 16497 fi 16498 fi 16499 chmod u+w . 2>&5 16500 $RM conftest* 16501 # SGI C++ compiler will create directory out/ii_files/ for 16502 # template instantiation 16503 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16504 $RM out/* && rmdir out 16505 cd .. 16506 $RM -r conftest 16507 $RM conftest* 16508 16509 fi 16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16511 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 16512 16513 16514 16515 16516 16517 16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16519 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16520 if ${lt_cv_prog_compiler_c_o+:} false; then : 16521 $as_echo_n "(cached) " >&6 16522 else 16523 lt_cv_prog_compiler_c_o=no 16524 $RM -r conftest 2>/dev/null 16525 mkdir conftest 16526 cd conftest 16527 mkdir out 16528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16529 16530 lt_compiler_flag="-o out/conftest2.$ac_objext" 16531 # Insert the option either (1) after the last *FLAGS variable, or 16532 # (2) before a word containing "conftest.", or (3) at the end. 16533 # Note that $ac_compile itself does not contain backslashes and begins 16534 # with a dollar sign (not a hyphen), so the echo should work correctly. 16535 lt_compile=`echo "$ac_compile" | $SED \ 16536 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16538 -e 's:$: $lt_compiler_flag:'` 16539 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16540 (eval "$lt_compile" 2>out/conftest.err) 16541 ac_status=$? 16542 cat out/conftest.err >&5 16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16544 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16545 then 16546 # The compiler can only warn and ignore the option if not recognized 16547 # So say no if there are warnings 16548 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16549 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16550 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16551 lt_cv_prog_compiler_c_o=yes 16552 fi 16553 fi 16554 chmod u+w . 2>&5 16555 $RM conftest* 16556 # SGI C++ compiler will create directory out/ii_files/ for 16557 # template instantiation 16558 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16559 $RM out/* && rmdir out 16560 cd .. 16561 $RM -r conftest 16562 $RM conftest* 16563 16564 fi 16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16566 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 16567 16568 16569 16570 16571 hard_links=nottested 16572 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16573 # do not overwrite the value of need_locks provided by the user 16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16575 $as_echo_n "checking if we can lock with hard links... " >&6; } 16576 hard_links=yes 16577 $RM conftest* 16578 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16579 touch conftest.a 16580 ln conftest.a conftest.b 2>&5 || hard_links=no 16581 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16583 $as_echo "$hard_links" >&6; } 16584 if test no = "$hard_links"; then 16585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16586 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16587 need_locks=warn 16588 fi 16589 else 16590 need_locks=no 16591 fi 16592 16593 16594 16595 16596 16597 16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16599 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16600 16601 runpath_var= 16602 allow_undefined_flag= 16603 always_export_symbols=no 16604 archive_cmds= 16605 archive_expsym_cmds= 16606 compiler_needs_object=no 16607 enable_shared_with_static_runtimes=no 16608 export_dynamic_flag_spec= 16609 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16610 hardcode_automatic=no 16611 hardcode_direct=no 16612 hardcode_direct_absolute=no 16613 hardcode_libdir_flag_spec= 16614 hardcode_libdir_separator= 16615 hardcode_minus_L=no 16616 hardcode_shlibpath_var=unsupported 16617 inherit_rpath=no 16618 link_all_deplibs=unknown 16619 module_cmds= 16620 module_expsym_cmds= 16621 old_archive_from_new_cmds= 16622 old_archive_from_expsyms_cmds= 16623 thread_safe_flag_spec= 16624 whole_archive_flag_spec= 16625 # include_expsyms should be a list of space-separated symbols to be *always* 16626 # included in the symbol list 16627 include_expsyms= 16628 # exclude_expsyms can be an extended regexp of symbols to exclude 16629 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16630 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16631 # as well as any symbol that contains 'd'. 16632 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16633 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16634 # platforms (ab)use it in PIC code, but their linkers get confused if 16635 # the symbol is explicitly referenced. Since portable code cannot 16636 # rely on this symbol name, it's probably fine to never include it in 16637 # preloaded symbol tables. 16638 # Exclude shared library initialization/finalization symbols. 16639 extract_expsyms_cmds= 16640 16641 case $host_os in 16642 cygwin* | mingw* | pw32* | cegcc*) 16643 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16644 # When not using gcc, we currently assume that we are using 16645 # Microsoft Visual C++. 16646 if test yes != "$GCC"; then 16647 with_gnu_ld=no 16648 fi 16649 ;; 16650 interix*) 16651 # we just hope/assume this is gcc and not c89 (= MSVC++) 16652 with_gnu_ld=yes 16653 ;; 16654 openbsd* | bitrig*) 16655 with_gnu_ld=no 16656 ;; 16657 esac 16658 16659 ld_shlibs=yes 16660 16661 # On some targets, GNU ld is compatible enough with the native linker 16662 # that we're better off using the native interface for both. 16663 lt_use_gnu_ld_interface=no 16664 if test yes = "$with_gnu_ld"; then 16665 case $host_os in 16666 aix*) 16667 # The AIX port of GNU ld has always aspired to compatibility 16668 # with the native linker. However, as the warning in the GNU ld 16669 # block says, versions before 2.19.5* couldn't really create working 16670 # shared libraries, regardless of the interface used. 16671 case `$LD -v 2>&1` in 16672 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16673 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16674 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16675 *) 16676 lt_use_gnu_ld_interface=yes 16677 ;; 16678 esac 16679 ;; 16680 *) 16681 lt_use_gnu_ld_interface=yes 16682 ;; 16683 esac 16684 fi 16685 16686 if test yes = "$lt_use_gnu_ld_interface"; then 16687 # If archive_cmds runs LD, not CC, wlarc should be empty 16688 wlarc='$wl' 16689 16690 # Set some defaults for GNU ld with shared library support. These 16691 # are reset later if shared libraries are not supported. Putting them 16692 # here allows them to be overridden if necessary. 16693 runpath_var=LD_RUN_PATH 16694 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16695 export_dynamic_flag_spec='$wl--export-dynamic' 16696 # ancient GNU ld didn't support --whole-archive et. al. 16697 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16698 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16699 else 16700 whole_archive_flag_spec= 16701 fi 16702 supports_anon_versioning=no 16703 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 16704 *GNU\ gold*) supports_anon_versioning=yes ;; 16705 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16706 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16707 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16708 *\ 2.11.*) ;; # other 2.11 versions 16709 *) supports_anon_versioning=yes ;; 16710 esac 16711 16712 # See if GNU ld supports shared libraries. 16713 case $host_os in 16714 aix[3-9]*) 16715 # On AIX/PPC, the GNU linker is very broken 16716 if test ia64 != "$host_cpu"; then 16717 ld_shlibs=no 16718 cat <<_LT_EOF 1>&2 16719 16720 *** Warning: the GNU linker, at least up to release 2.19, is reported 16721 *** to be unable to reliably create shared libraries on AIX. 16722 *** Therefore, libtool is disabling shared libraries support. If you 16723 *** really care for shared libraries, you may want to install binutils 16724 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16725 *** You will then need to restart the configuration process. 16726 16727 _LT_EOF 16728 fi 16729 ;; 16730 16731 amigaos*) 16732 case $host_cpu in 16733 powerpc) 16734 # see comment about AmigaOS4 .so support 16735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16736 archive_expsym_cmds='' 16737 ;; 16738 m68k) 16739 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)' 16740 hardcode_libdir_flag_spec='-L$libdir' 16741 hardcode_minus_L=yes 16742 ;; 16743 esac 16744 ;; 16745 16746 beos*) 16747 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16748 allow_undefined_flag=unsupported 16749 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 16750 # support --undefined. This deserves some investigation. FIXME 16751 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16752 else 16753 ld_shlibs=no 16754 fi 16755 ;; 16756 16757 cygwin* | mingw* | pw32* | cegcc*) 16758 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16759 # as there is no search path for DLLs. 16760 hardcode_libdir_flag_spec='-L$libdir' 16761 export_dynamic_flag_spec='$wl--export-all-symbols' 16762 allow_undefined_flag=unsupported 16763 always_export_symbols=no 16764 enable_shared_with_static_runtimes=yes 16765 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' 16766 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16767 16768 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16770 # If the export-symbols file already is a .def file, use it as 16771 # is; otherwise, prepend EXPORTS... 16772 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16773 cp $export_symbols $output_objdir/$soname.def; 16774 else 16775 echo EXPORTS > $output_objdir/$soname.def; 16776 cat $export_symbols >> $output_objdir/$soname.def; 16777 fi~ 16778 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16779 else 16780 ld_shlibs=no 16781 fi 16782 ;; 16783 16784 haiku*) 16785 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16786 link_all_deplibs=yes 16787 ;; 16788 16789 os2*) 16790 hardcode_libdir_flag_spec='-L$libdir' 16791 hardcode_minus_L=yes 16792 allow_undefined_flag=unsupported 16793 shrext_cmds=.dll 16794 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16795 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16796 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16797 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16798 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16799 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16800 emximp -o $lib $output_objdir/$libname.def' 16801 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16802 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16803 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16804 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16805 prefix_cmds="$SED"~ 16806 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16807 prefix_cmds="$prefix_cmds -e 1d"; 16808 fi~ 16809 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16810 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16811 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16812 emximp -o $lib $output_objdir/$libname.def' 16813 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16814 enable_shared_with_static_runtimes=yes 16815 ;; 16816 16817 interix[3-9]*) 16818 hardcode_direct=no 16819 hardcode_shlibpath_var=no 16820 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16821 export_dynamic_flag_spec='$wl-E' 16822 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16823 # Instead, shared libraries are loaded at an image base (0x10000000 by 16824 # default) and relocated if they conflict, which is a slow very memory 16825 # consuming and fragmenting process. To avoid this, we pick a random, 16826 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16827 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16828 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16829 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' 16830 ;; 16831 16832 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16833 tmp_diet=no 16834 if test linux-dietlibc = "$host_os"; then 16835 case $cc_basename in 16836 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16837 esac 16838 fi 16839 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16840 && test no = "$tmp_diet" 16841 then 16842 tmp_addflag=' $pic_flag' 16843 tmp_sharedflag='-shared' 16844 case $cc_basename,$host_cpu in 16845 pgcc*) # Portland Group C compiler 16846 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' 16847 tmp_addflag=' $pic_flag' 16848 ;; 16849 pgf77* | pgf90* | pgf95* | pgfortran*) 16850 # Portland Group f77 and f90 compilers 16851 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' 16852 tmp_addflag=' $pic_flag -Mnomain' ;; 16853 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16854 tmp_addflag=' -i_dynamic' ;; 16855 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16856 tmp_addflag=' -i_dynamic -nofor_main' ;; 16857 ifc* | ifort*) # Intel Fortran compiler 16858 tmp_addflag=' -nofor_main' ;; 16859 lf95*) # Lahey Fortran 8.1 16860 whole_archive_flag_spec= 16861 tmp_sharedflag='--shared' ;; 16862 nagfor*) # NAGFOR 5.3 16863 tmp_sharedflag='-Wl,-shared' ;; 16864 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16865 tmp_sharedflag='-qmkshrobj' 16866 tmp_addflag= ;; 16867 nvcc*) # Cuda Compiler Driver 2.2 16868 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' 16869 compiler_needs_object=yes 16870 ;; 16871 esac 16872 case `$CC -V 2>&1 | sed 5q` in 16873 *Sun\ C*) # Sun C 5.9 16874 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' 16875 compiler_needs_object=yes 16876 tmp_sharedflag='-G' ;; 16877 *Sun\ F*) # Sun Fortran 8.3 16878 tmp_sharedflag='-G' ;; 16879 esac 16880 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16881 16882 if test yes = "$supports_anon_versioning"; then 16883 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16884 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16885 echo "local: *; };" >> $output_objdir/$libname.ver~ 16886 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16887 fi 16888 16889 case $cc_basename in 16890 tcc*) 16891 export_dynamic_flag_spec='-rdynamic' 16892 ;; 16893 xlf* | bgf* | bgxlf* | mpixlf*) 16894 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16895 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16896 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16897 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16898 if test yes = "$supports_anon_versioning"; then 16899 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16900 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16901 echo "local: *; };" >> $output_objdir/$libname.ver~ 16902 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16903 fi 16904 ;; 16905 esac 16906 else 16907 ld_shlibs=no 16908 fi 16909 ;; 16910 16911 netbsd*) 16912 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16913 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16914 wlarc= 16915 else 16916 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16917 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16918 fi 16919 ;; 16920 16921 solaris*) 16922 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16923 ld_shlibs=no 16924 cat <<_LT_EOF 1>&2 16925 16926 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 16927 *** create shared libraries on Solaris systems. Therefore, libtool 16928 *** is disabling shared libraries support. We urge you to upgrade GNU 16929 *** binutils to release 2.9.1 or newer. Another option is to modify 16930 *** your PATH or compiler configuration so that the native linker is 16931 *** used, and then restart. 16932 16933 _LT_EOF 16934 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16935 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16936 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16937 else 16938 ld_shlibs=no 16939 fi 16940 ;; 16941 16942 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16943 case `$LD -v 2>&1` in 16944 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16945 ld_shlibs=no 16946 cat <<_LT_EOF 1>&2 16947 16948 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16949 *** reliably create shared libraries on SCO systems. Therefore, libtool 16950 *** is disabling shared libraries support. We urge you to upgrade GNU 16951 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16952 *** your PATH or compiler configuration so that the native linker is 16953 *** used, and then restart. 16954 16955 _LT_EOF 16956 ;; 16957 *) 16958 # For security reasons, it is highly recommended that you always 16959 # use absolute paths for naming shared libraries, and exclude the 16960 # DT_RUNPATH tag from executables and libraries. But doing so 16961 # requires that you compile everything twice, which is a pain. 16962 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16963 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16965 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16966 else 16967 ld_shlibs=no 16968 fi 16969 ;; 16970 esac 16971 ;; 16972 16973 sunos4*) 16974 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16975 wlarc= 16976 hardcode_direct=yes 16977 hardcode_shlibpath_var=no 16978 ;; 16979 16980 *) 16981 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16982 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16983 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16984 else 16985 ld_shlibs=no 16986 fi 16987 ;; 16988 esac 16989 16990 if test no = "$ld_shlibs"; then 16991 runpath_var= 16992 hardcode_libdir_flag_spec= 16993 export_dynamic_flag_spec= 16994 whole_archive_flag_spec= 16995 fi 16996 else 16997 # PORTME fill in a description of your system's linker (not GNU ld) 16998 case $host_os in 16999 aix3*) 17000 allow_undefined_flag=unsupported 17001 always_export_symbols=yes 17002 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' 17003 # Note: this linker hardcodes the directories in LIBPATH if there 17004 # are no directories specified by -L. 17005 hardcode_minus_L=yes 17006 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 17007 # Neither direct hardcoding nor static linking is supported with a 17008 # broken collect2. 17009 hardcode_direct=unsupported 17010 fi 17011 ;; 17012 17013 aix[4-9]*) 17014 if test ia64 = "$host_cpu"; then 17015 # On IA64, the linker does run time linking by default, so we don't 17016 # have to do anything special. 17017 aix_use_runtimelinking=no 17018 exp_sym_flag='-Bexport' 17019 no_entry_flag= 17020 else 17021 # If we're using GNU nm, then we don't want the "-C" option. 17022 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 17023 # Without the "-l" option, or with the "-B" option, AIX nm treats 17024 # weak defined symbols like other global defined symbols, whereas 17025 # GNU nm marks them as "W". 17026 # While the 'weak' keyword is ignored in the Export File, we need 17027 # it in the Import File for the 'aix-soname' feature, so we have 17028 # to replace the "-B" option with "-P" for AIX nm. 17029 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17030 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 17031 else 17032 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 17033 fi 17034 aix_use_runtimelinking=no 17035 17036 # Test if we are trying to use run time linking or normal 17037 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17038 # have runtime linking enabled, and use it for executables. 17039 # For shared libraries, we enable/disable runtime linking 17040 # depending on the kind of the shared library created - 17041 # when "with_aix_soname,aix_use_runtimelinking" is: 17042 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 17043 # "aix,yes" lib.so shared, rtl:yes, for executables 17044 # lib.a static archive 17045 # "both,no" lib.so.V(shr.o) shared, rtl:yes 17046 # lib.a(lib.so.V) shared, rtl:no, for executables 17047 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 17048 # lib.a(lib.so.V) shared, rtl:no 17049 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 17050 # lib.a static archive 17051 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17052 for ld_flag in $LDFLAGS; do 17053 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 17054 aix_use_runtimelinking=yes 17055 break 17056 fi 17057 done 17058 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 17059 # With aix-soname=svr4, we create the lib.so.V shared archives only, 17060 # so we don't have lib.a shared libs to link our executables. 17061 # We have to force runtime linking in this case. 17062 aix_use_runtimelinking=yes 17063 LDFLAGS="$LDFLAGS -Wl,-brtl" 17064 fi 17065 ;; 17066 esac 17067 17068 exp_sym_flag='-bexport' 17069 no_entry_flag='-bnoentry' 17070 fi 17071 17072 # When large executables or shared objects are built, AIX ld can 17073 # have problems creating the table of contents. If linking a library 17074 # or program results in "error TOC overflow" add -mminimal-toc to 17075 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17076 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17077 17078 archive_cmds='' 17079 hardcode_direct=yes 17080 hardcode_direct_absolute=yes 17081 hardcode_libdir_separator=':' 17082 link_all_deplibs=yes 17083 file_list_spec='$wl-f,' 17084 case $with_aix_soname,$aix_use_runtimelinking in 17085 aix,*) ;; # traditional, no import file 17086 svr4,* | *,yes) # use import file 17087 # The Import File defines what to hardcode. 17088 hardcode_direct=no 17089 hardcode_direct_absolute=no 17090 ;; 17091 esac 17092 17093 if test yes = "$GCC"; then 17094 case $host_os in aix4.[012]|aix4.[012].*) 17095 # We only want to do this on AIX 4.2 and lower, the check 17096 # below for broken collect2 doesn't work under 4.3+ 17097 collect2name=`$CC -print-prog-name=collect2` 17098 if test -f "$collect2name" && 17099 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 17100 then 17101 # We have reworked collect2 17102 : 17103 else 17104 # We have old collect2 17105 hardcode_direct=unsupported 17106 # It fails to find uninstalled libraries when the uninstalled 17107 # path is not listed in the libpath. Setting hardcode_minus_L 17108 # to unsupported forces relinking 17109 hardcode_minus_L=yes 17110 hardcode_libdir_flag_spec='-L$libdir' 17111 hardcode_libdir_separator= 17112 fi 17113 ;; 17114 esac 17115 shared_flag='-shared' 17116 if test yes = "$aix_use_runtimelinking"; then 17117 shared_flag="$shared_flag "'$wl-G' 17118 fi 17119 # Need to ensure runtime linking is disabled for the traditional 17120 # shared library, or the linker may eventually find shared libraries 17121 # /with/ Import File - we do not want to mix them. 17122 shared_flag_aix='-shared' 17123 shared_flag_svr4='-shared $wl-G' 17124 else 17125 # not using gcc 17126 if test ia64 = "$host_cpu"; then 17127 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17128 # chokes on -Wl,-G. The following line is correct: 17129 shared_flag='-G' 17130 else 17131 if test yes = "$aix_use_runtimelinking"; then 17132 shared_flag='$wl-G' 17133 else 17134 shared_flag='$wl-bM:SRE' 17135 fi 17136 shared_flag_aix='$wl-bM:SRE' 17137 shared_flag_svr4='$wl-G' 17138 fi 17139 fi 17140 17141 export_dynamic_flag_spec='$wl-bexpall' 17142 # It seems that -bexpall does not export symbols beginning with 17143 # underscore (_), so it is better to generate a list of symbols to export. 17144 always_export_symbols=yes 17145 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 17146 # Warning - without using the other runtime loading flags (-brtl), 17147 # -berok will link without error, but may produce a broken library. 17148 allow_undefined_flag='-berok' 17149 # Determine the default libpath from the value encoded in an 17150 # empty executable. 17151 if test set = "${lt_cv_aix_libpath+set}"; then 17152 aix_libpath=$lt_cv_aix_libpath 17153 else 17154 if ${lt_cv_aix_libpath_+:} false; then : 17155 $as_echo_n "(cached) " >&6 17156 else 17157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17158 /* end confdefs.h. */ 17159 17160 int 17161 main () 17162 { 17163 17164 ; 17165 return 0; 17166 } 17167 _ACEOF 17168 if ac_fn_c_try_link "$LINENO"; then : 17169 17170 lt_aix_libpath_sed=' 17171 /Import File Strings/,/^$/ { 17172 /^0/ { 17173 s/^0 *\([^ ]*\) *$/\1/ 17174 p 17175 } 17176 }' 17177 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17178 # Check for a 64-bit object if we didn't find anything. 17179 if test -z "$lt_cv_aix_libpath_"; then 17180 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17181 fi 17182 fi 17183 rm -f core conftest.err conftest.$ac_objext \ 17184 conftest$ac_exeext conftest.$ac_ext 17185 if test -z "$lt_cv_aix_libpath_"; then 17186 lt_cv_aix_libpath_=/usr/lib:/lib 17187 fi 17188 17189 fi 17190 17191 aix_libpath=$lt_cv_aix_libpath_ 17192 fi 17193 17194 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17195 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 17196 else 17197 if test ia64 = "$host_cpu"; then 17198 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 17199 allow_undefined_flag="-z nodefs" 17200 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" 17201 else 17202 # Determine the default libpath from the value encoded in an 17203 # empty executable. 17204 if test set = "${lt_cv_aix_libpath+set}"; then 17205 aix_libpath=$lt_cv_aix_libpath 17206 else 17207 if ${lt_cv_aix_libpath_+:} false; then : 17208 $as_echo_n "(cached) " >&6 17209 else 17210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17211 /* end confdefs.h. */ 17212 17213 int 17214 main () 17215 { 17216 17217 ; 17218 return 0; 17219 } 17220 _ACEOF 17221 if ac_fn_c_try_link "$LINENO"; then : 17222 17223 lt_aix_libpath_sed=' 17224 /Import File Strings/,/^$/ { 17225 /^0/ { 17226 s/^0 *\([^ ]*\) *$/\1/ 17227 p 17228 } 17229 }' 17230 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17231 # Check for a 64-bit object if we didn't find anything. 17232 if test -z "$lt_cv_aix_libpath_"; then 17233 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17234 fi 17235 fi 17236 rm -f core conftest.err conftest.$ac_objext \ 17237 conftest$ac_exeext conftest.$ac_ext 17238 if test -z "$lt_cv_aix_libpath_"; then 17239 lt_cv_aix_libpath_=/usr/lib:/lib 17240 fi 17241 17242 fi 17243 17244 aix_libpath=$lt_cv_aix_libpath_ 17245 fi 17246 17247 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17248 # Warning - without using the other run time loading flags, 17249 # -berok will link without error, but may produce a broken library. 17250 no_undefined_flag=' $wl-bernotok' 17251 allow_undefined_flag=' $wl-berok' 17252 if test yes = "$with_gnu_ld"; then 17253 # We only use this code for GNU lds that support --whole-archive. 17254 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 17255 else 17256 # Exported symbols can be pulled into shared objects from archives 17257 whole_archive_flag_spec='$convenience' 17258 fi 17259 archive_cmds_need_lc=yes 17260 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 17261 # -brtl affects multiple linker settings, -berok does not and is overridden later 17262 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 17263 if test svr4 != "$with_aix_soname"; then 17264 # This is similar to how AIX traditionally builds its shared libraries. 17265 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 17266 fi 17267 if test aix != "$with_aix_soname"; then 17268 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 17269 else 17270 # used by -dlpreopen to get the symbols 17271 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 17272 fi 17273 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 17274 fi 17275 fi 17276 ;; 17277 17278 amigaos*) 17279 case $host_cpu in 17280 powerpc) 17281 # see comment about AmigaOS4 .so support 17282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17283 archive_expsym_cmds='' 17284 ;; 17285 m68k) 17286 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)' 17287 hardcode_libdir_flag_spec='-L$libdir' 17288 hardcode_minus_L=yes 17289 ;; 17290 esac 17291 ;; 17292 17293 bsdi[45]*) 17294 export_dynamic_flag_spec=-rdynamic 17295 ;; 17296 17297 cygwin* | mingw* | pw32* | cegcc*) 17298 # When not using gcc, we currently assume that we are using 17299 # Microsoft Visual C++. 17300 # hardcode_libdir_flag_spec is actually meaningless, as there is 17301 # no search path for DLLs. 17302 case $cc_basename in 17303 cl*) 17304 # Native MSVC 17305 hardcode_libdir_flag_spec=' ' 17306 allow_undefined_flag=unsupported 17307 always_export_symbols=yes 17308 file_list_spec='@' 17309 # Tell ltmain to make .lib files, not .a files. 17310 libext=lib 17311 # Tell ltmain to make .dll files, not .so files. 17312 shrext_cmds=.dll 17313 # FIXME: Setting linknames here is a bad hack. 17314 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 17315 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 17316 cp "$export_symbols" "$output_objdir/$soname.def"; 17317 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 17318 else 17319 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 17320 fi~ 17321 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 17322 linknames=' 17323 # The linker will not automatically build a static lib if we build a DLL. 17324 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 17325 enable_shared_with_static_runtimes=yes 17326 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17327 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17328 # Don't use ranlib 17329 old_postinstall_cmds='chmod 644 $oldlib' 17330 postlink_cmds='lt_outputfile="@OUTPUT@"~ 17331 lt_tool_outputfile="@TOOL_OUTPUT@"~ 17332 case $lt_outputfile in 17333 *.exe|*.EXE) ;; 17334 *) 17335 lt_outputfile=$lt_outputfile.exe 17336 lt_tool_outputfile=$lt_tool_outputfile.exe 17337 ;; 17338 esac~ 17339 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 17340 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 17341 $RM "$lt_outputfile.manifest"; 17342 fi' 17343 ;; 17344 *) 17345 # Assume MSVC wrapper 17346 hardcode_libdir_flag_spec=' ' 17347 allow_undefined_flag=unsupported 17348 # Tell ltmain to make .lib files, not .a files. 17349 libext=lib 17350 # Tell ltmain to make .dll files, not .so files. 17351 shrext_cmds=.dll 17352 # FIXME: Setting linknames here is a bad hack. 17353 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 17354 # The linker will automatically build a .lib file if we build a DLL. 17355 old_archive_from_new_cmds='true' 17356 # FIXME: Should let the user specify the lib program. 17357 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 17358 enable_shared_with_static_runtimes=yes 17359 ;; 17360 esac 17361 ;; 17362 17363 darwin* | rhapsody*) 17364 17365 17366 archive_cmds_need_lc=no 17367 hardcode_direct=no 17368 hardcode_automatic=yes 17369 hardcode_shlibpath_var=unsupported 17370 if test yes = "$lt_cv_ld_force_load"; then 17371 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\"`' 17372 17373 else 17374 whole_archive_flag_spec='' 17375 fi 17376 link_all_deplibs=yes 17377 allow_undefined_flag=$_lt_dar_allow_undefined 17378 case $cc_basename in 17379 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 17380 *) _lt_dar_can_shared=$GCC ;; 17381 esac 17382 if test yes = "$_lt_dar_can_shared"; then 17383 output_verbose_link_cmd=func_echo_all 17384 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 17385 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 17386 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" 17387 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" 17388 17389 else 17390 ld_shlibs=no 17391 fi 17392 17393 ;; 17394 17395 dgux*) 17396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17397 hardcode_libdir_flag_spec='-L$libdir' 17398 hardcode_shlibpath_var=no 17399 ;; 17400 17401 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17402 # support. Future versions do this automatically, but an explicit c++rt0.o 17403 # does not break anything, and helps significantly (at the cost of a little 17404 # extra space). 17405 freebsd2.2*) 17406 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17407 hardcode_libdir_flag_spec='-R$libdir' 17408 hardcode_direct=yes 17409 hardcode_shlibpath_var=no 17410 ;; 17411 17412 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17413 freebsd2.*) 17414 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17415 hardcode_direct=yes 17416 hardcode_minus_L=yes 17417 hardcode_shlibpath_var=no 17418 ;; 17419 17420 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17421 freebsd* | dragonfly*) 17422 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17423 hardcode_libdir_flag_spec='-R$libdir' 17424 hardcode_direct=yes 17425 hardcode_shlibpath_var=no 17426 ;; 17427 17428 hpux9*) 17429 if test yes = "$GCC"; then 17430 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 17431 else 17432 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 17433 fi 17434 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17435 hardcode_libdir_separator=: 17436 hardcode_direct=yes 17437 17438 # hardcode_minus_L: Not really in the search PATH, 17439 # but as the default location of the library. 17440 hardcode_minus_L=yes 17441 export_dynamic_flag_spec='$wl-E' 17442 ;; 17443 17444 hpux10*) 17445 if test yes,no = "$GCC,$with_gnu_ld"; then 17446 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17447 else 17448 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17449 fi 17450 if test no = "$with_gnu_ld"; then 17451 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17452 hardcode_libdir_separator=: 17453 hardcode_direct=yes 17454 hardcode_direct_absolute=yes 17455 export_dynamic_flag_spec='$wl-E' 17456 # hardcode_minus_L: Not really in the search PATH, 17457 # but as the default location of the library. 17458 hardcode_minus_L=yes 17459 fi 17460 ;; 17461 17462 hpux11*) 17463 if test yes,no = "$GCC,$with_gnu_ld"; then 17464 case $host_cpu in 17465 hppa*64*) 17466 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17467 ;; 17468 ia64*) 17469 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17470 ;; 17471 *) 17472 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17473 ;; 17474 esac 17475 else 17476 case $host_cpu in 17477 hppa*64*) 17478 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17479 ;; 17480 ia64*) 17481 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17482 ;; 17483 *) 17484 17485 # Older versions of the 11.00 compiler do not understand -b yet 17486 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17488 $as_echo_n "checking if $CC understands -b... " >&6; } 17489 if ${lt_cv_prog_compiler__b+:} false; then : 17490 $as_echo_n "(cached) " >&6 17491 else 17492 lt_cv_prog_compiler__b=no 17493 save_LDFLAGS=$LDFLAGS 17494 LDFLAGS="$LDFLAGS -b" 17495 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17496 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17497 # The linker can only warn and ignore the option if not recognized 17498 # So say no if there are warnings 17499 if test -s conftest.err; then 17500 # Append any errors to the config.log. 17501 cat conftest.err 1>&5 17502 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17504 if diff conftest.exp conftest.er2 >/dev/null; then 17505 lt_cv_prog_compiler__b=yes 17506 fi 17507 else 17508 lt_cv_prog_compiler__b=yes 17509 fi 17510 fi 17511 $RM -r conftest* 17512 LDFLAGS=$save_LDFLAGS 17513 17514 fi 17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17516 $as_echo "$lt_cv_prog_compiler__b" >&6; } 17517 17518 if test yes = "$lt_cv_prog_compiler__b"; then 17519 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17520 else 17521 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17522 fi 17523 17524 ;; 17525 esac 17526 fi 17527 if test no = "$with_gnu_ld"; then 17528 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17529 hardcode_libdir_separator=: 17530 17531 case $host_cpu in 17532 hppa*64*|ia64*) 17533 hardcode_direct=no 17534 hardcode_shlibpath_var=no 17535 ;; 17536 *) 17537 hardcode_direct=yes 17538 hardcode_direct_absolute=yes 17539 export_dynamic_flag_spec='$wl-E' 17540 17541 # hardcode_minus_L: Not really in the search PATH, 17542 # but as the default location of the library. 17543 hardcode_minus_L=yes 17544 ;; 17545 esac 17546 fi 17547 ;; 17548 17549 irix5* | irix6* | nonstopux*) 17550 if test yes = "$GCC"; then 17551 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' 17552 # Try to use the -exported_symbol ld option, if it does not 17553 # work, assume that -exports_file does not work either and 17554 # implicitly export all symbols. 17555 # This should be the same for all languages, so no per-tag cache variable. 17556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17557 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17558 if ${lt_cv_irix_exported_symbol+:} false; then : 17559 $as_echo_n "(cached) " >&6 17560 else 17561 save_LDFLAGS=$LDFLAGS 17562 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17564 /* end confdefs.h. */ 17565 int foo (void) { return 0; } 17566 _ACEOF 17567 if ac_fn_c_try_link "$LINENO"; then : 17568 lt_cv_irix_exported_symbol=yes 17569 else 17570 lt_cv_irix_exported_symbol=no 17571 fi 17572 rm -f core conftest.err conftest.$ac_objext \ 17573 conftest$ac_exeext conftest.$ac_ext 17574 LDFLAGS=$save_LDFLAGS 17575 fi 17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17577 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 17578 if test yes = "$lt_cv_irix_exported_symbol"; then 17579 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' 17580 fi 17581 else 17582 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' 17583 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' 17584 fi 17585 archive_cmds_need_lc='no' 17586 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17587 hardcode_libdir_separator=: 17588 inherit_rpath=yes 17589 link_all_deplibs=yes 17590 ;; 17591 17592 linux*) 17593 case $cc_basename in 17594 tcc*) 17595 # Fabrice Bellard et al's Tiny C Compiler 17596 ld_shlibs=yes 17597 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17598 ;; 17599 esac 17600 ;; 17601 17602 netbsd*) 17603 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17604 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17605 else 17606 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17607 fi 17608 hardcode_libdir_flag_spec='-R$libdir' 17609 hardcode_direct=yes 17610 hardcode_shlibpath_var=no 17611 ;; 17612 17613 newsos6) 17614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17615 hardcode_direct=yes 17616 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17617 hardcode_libdir_separator=: 17618 hardcode_shlibpath_var=no 17619 ;; 17620 17621 *nto* | *qnx*) 17622 ;; 17623 17624 openbsd* | bitrig*) 17625 if test -f /usr/libexec/ld.so; then 17626 hardcode_direct=yes 17627 hardcode_shlibpath_var=no 17628 hardcode_direct_absolute=yes 17629 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17630 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17631 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17632 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17633 export_dynamic_flag_spec='$wl-E' 17634 else 17635 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17636 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17637 fi 17638 else 17639 ld_shlibs=no 17640 fi 17641 ;; 17642 17643 os2*) 17644 hardcode_libdir_flag_spec='-L$libdir' 17645 hardcode_minus_L=yes 17646 allow_undefined_flag=unsupported 17647 shrext_cmds=.dll 17648 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17649 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17650 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17651 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17652 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17653 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17654 emximp -o $lib $output_objdir/$libname.def' 17655 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17656 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17657 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17658 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17659 prefix_cmds="$SED"~ 17660 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17661 prefix_cmds="$prefix_cmds -e 1d"; 17662 fi~ 17663 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17664 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17665 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17666 emximp -o $lib $output_objdir/$libname.def' 17667 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17668 enable_shared_with_static_runtimes=yes 17669 ;; 17670 17671 osf3*) 17672 if test yes = "$GCC"; then 17673 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17674 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' 17675 else 17676 allow_undefined_flag=' -expect_unresolved \*' 17677 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' 17678 fi 17679 archive_cmds_need_lc='no' 17680 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17681 hardcode_libdir_separator=: 17682 ;; 17683 17684 osf4* | osf5*) # as osf3* with the addition of -msym flag 17685 if test yes = "$GCC"; then 17686 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17687 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' 17688 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17689 else 17690 allow_undefined_flag=' -expect_unresolved \*' 17691 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' 17692 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~ 17693 $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' 17694 17695 # Both c and cxx compiler support -rpath directly 17696 hardcode_libdir_flag_spec='-rpath $libdir' 17697 fi 17698 archive_cmds_need_lc='no' 17699 hardcode_libdir_separator=: 17700 ;; 17701 17702 solaris*) 17703 no_undefined_flag=' -z defs' 17704 if test yes = "$GCC"; then 17705 wlarc='$wl' 17706 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17707 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17708 $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' 17709 else 17710 case `$CC -V 2>&1` in 17711 *"Compilers 5.0"*) 17712 wlarc='' 17713 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17714 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17715 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17716 ;; 17717 *) 17718 wlarc='$wl' 17719 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17720 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17721 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17722 ;; 17723 esac 17724 fi 17725 hardcode_libdir_flag_spec='-R$libdir' 17726 hardcode_shlibpath_var=no 17727 case $host_os in 17728 solaris2.[0-5] | solaris2.[0-5].*) ;; 17729 *) 17730 # The compiler driver will combine and reorder linker options, 17731 # but understands '-z linker_flag'. GCC discards it without '$wl', 17732 # but is careful enough not to reorder. 17733 # Supported since Solaris 2.6 (maybe 2.5.1?) 17734 if test yes = "$GCC"; then 17735 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17736 else 17737 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17738 fi 17739 ;; 17740 esac 17741 link_all_deplibs=yes 17742 ;; 17743 17744 sunos4*) 17745 if test sequent = "$host_vendor"; then 17746 # Use $CC to link under sequent, because it throws in some extra .o 17747 # files that make .init and .fini sections work. 17748 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17749 else 17750 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17751 fi 17752 hardcode_libdir_flag_spec='-L$libdir' 17753 hardcode_direct=yes 17754 hardcode_minus_L=yes 17755 hardcode_shlibpath_var=no 17756 ;; 17757 17758 sysv4) 17759 case $host_vendor in 17760 sni) 17761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17762 hardcode_direct=yes # is this really true??? 17763 ;; 17764 siemens) 17765 ## LD is ld it makes a PLAMLIB 17766 ## CC just makes a GrossModule. 17767 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17768 reload_cmds='$CC -r -o $output$reload_objs' 17769 hardcode_direct=no 17770 ;; 17771 motorola) 17772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17773 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17774 ;; 17775 esac 17776 runpath_var='LD_RUN_PATH' 17777 hardcode_shlibpath_var=no 17778 ;; 17779 17780 sysv4.3*) 17781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17782 hardcode_shlibpath_var=no 17783 export_dynamic_flag_spec='-Bexport' 17784 ;; 17785 17786 sysv4*MP*) 17787 if test -d /usr/nec; then 17788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17789 hardcode_shlibpath_var=no 17790 runpath_var=LD_RUN_PATH 17791 hardcode_runpath_var=yes 17792 ld_shlibs=yes 17793 fi 17794 ;; 17795 17796 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17797 no_undefined_flag='$wl-z,text' 17798 archive_cmds_need_lc=no 17799 hardcode_shlibpath_var=no 17800 runpath_var='LD_RUN_PATH' 17801 17802 if test yes = "$GCC"; then 17803 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17804 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17805 else 17806 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17807 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17808 fi 17809 ;; 17810 17811 sysv5* | sco3.2v5* | sco5v6*) 17812 # Note: We CANNOT use -z defs as we might desire, because we do not 17813 # link with -lc, and that would cause any symbols used from libc to 17814 # always be unresolved, which means just about no library would 17815 # ever link correctly. If we're not using GNU ld we use -z text 17816 # though, which does catch some bad symbols but isn't as heavy-handed 17817 # as -z defs. 17818 no_undefined_flag='$wl-z,text' 17819 allow_undefined_flag='$wl-z,nodefs' 17820 archive_cmds_need_lc=no 17821 hardcode_shlibpath_var=no 17822 hardcode_libdir_flag_spec='$wl-R,$libdir' 17823 hardcode_libdir_separator=':' 17824 link_all_deplibs=yes 17825 export_dynamic_flag_spec='$wl-Bexport' 17826 runpath_var='LD_RUN_PATH' 17827 17828 if test yes = "$GCC"; then 17829 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17830 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17831 else 17832 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17833 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17834 fi 17835 ;; 17836 17837 uts4*) 17838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17839 hardcode_libdir_flag_spec='-L$libdir' 17840 hardcode_shlibpath_var=no 17841 ;; 17842 17843 *) 17844 ld_shlibs=no 17845 ;; 17846 esac 17847 17848 if test sni = "$host_vendor"; then 17849 case $host in 17850 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17851 export_dynamic_flag_spec='$wl-Blargedynsym' 17852 ;; 17853 esac 17854 fi 17855 fi 17856 17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17858 $as_echo "$ld_shlibs" >&6; } 17859 test no = "$ld_shlibs" && can_build_shared=no 17860 17861 with_gnu_ld=$with_gnu_ld 17862 17863 17864 17865 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876 17877 # 17878 # Do we need to explicitly link libc? 17879 # 17880 case "x$archive_cmds_need_lc" in 17881 x|xyes) 17882 # Assume -lc should be added 17883 archive_cmds_need_lc=yes 17884 17885 if test yes,yes = "$GCC,$enable_shared"; then 17886 case $archive_cmds in 17887 *'~'*) 17888 # FIXME: we may have to deal with multi-command sequences. 17889 ;; 17890 '$CC '*) 17891 # Test whether the compiler implicitly links with -lc since on some 17892 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17893 # to ld, don't add -lc before -lgcc. 17894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17895 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 17896 if ${lt_cv_archive_cmds_need_lc+:} false; then : 17897 $as_echo_n "(cached) " >&6 17898 else 17899 $RM conftest* 17900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17901 17902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17903 (eval $ac_compile) 2>&5 17904 ac_status=$? 17905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17906 test $ac_status = 0; } 2>conftest.err; then 17907 soname=conftest 17908 lib=conftest 17909 libobjs=conftest.$ac_objext 17910 deplibs= 17911 wl=$lt_prog_compiler_wl 17912 pic_flag=$lt_prog_compiler_pic 17913 compiler_flags=-v 17914 linker_flags=-v 17915 verstring= 17916 output_objdir=. 17917 libname=conftest 17918 lt_save_allow_undefined_flag=$allow_undefined_flag 17919 allow_undefined_flag= 17920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17921 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17922 ac_status=$? 17923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17924 test $ac_status = 0; } 17925 then 17926 lt_cv_archive_cmds_need_lc=no 17927 else 17928 lt_cv_archive_cmds_need_lc=yes 17929 fi 17930 allow_undefined_flag=$lt_save_allow_undefined_flag 17931 else 17932 cat conftest.err 1>&5 17933 fi 17934 $RM conftest* 17935 17936 fi 17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17938 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 17939 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17940 ;; 17941 esac 17942 fi 17943 ;; 17944 esac 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 18098 $as_echo_n "checking dynamic linker characteristics... " >&6; } 18099 18100 if test yes = "$GCC"; then 18101 case $host_os in 18102 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 18103 *) lt_awk_arg='/^libraries:/' ;; 18104 esac 18105 case $host_os in 18106 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 18107 *) lt_sed_strip_eq='s|=/|/|g' ;; 18108 esac 18109 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 18110 case $lt_search_path_spec in 18111 *\;*) 18112 # if the path contains ";" then we assume it to be the separator 18113 # otherwise default to the standard path separator (i.e. ":") - it is 18114 # assumed that no part of a normal pathname contains ";" but that should 18115 # okay in the real world where ";" in dirpaths is itself problematic. 18116 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 18117 ;; 18118 *) 18119 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 18120 ;; 18121 esac 18122 # Ok, now we have the path, separated by spaces, we can step through it 18123 # and add multilib dir if necessary... 18124 lt_tmp_lt_search_path_spec= 18125 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 18126 # ...but if some path component already ends with the multilib dir we assume 18127 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 18128 case "$lt_multi_os_dir; $lt_search_path_spec " in 18129 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 18130 lt_multi_os_dir= 18131 ;; 18132 esac 18133 for lt_sys_path in $lt_search_path_spec; do 18134 if test -d "$lt_sys_path$lt_multi_os_dir"; then 18135 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 18136 elif test -n "$lt_multi_os_dir"; then 18137 test -d "$lt_sys_path" && \ 18138 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 18139 fi 18140 done 18141 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 18142 BEGIN {RS = " "; FS = "/|\n";} { 18143 lt_foo = ""; 18144 lt_count = 0; 18145 for (lt_i = NF; lt_i > 0; lt_i--) { 18146 if ($lt_i != "" && $lt_i != ".") { 18147 if ($lt_i == "..") { 18148 lt_count++; 18149 } else { 18150 if (lt_count == 0) { 18151 lt_foo = "/" $lt_i lt_foo; 18152 } else { 18153 lt_count--; 18154 } 18155 } 18156 } 18157 } 18158 if (lt_foo != "") { lt_freq[lt_foo]++; } 18159 if (lt_freq[lt_foo] == 1) { print lt_foo; } 18160 }'` 18161 # AWK program above erroneously prepends '/' to C:/dos/paths 18162 # for these hosts. 18163 case $host_os in 18164 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 18165 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 18166 esac 18167 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 18168 else 18169 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18170 fi 18171 library_names_spec= 18172 libname_spec='lib$name' 18173 soname_spec= 18174 shrext_cmds=.so 18175 postinstall_cmds= 18176 postuninstall_cmds= 18177 finish_cmds= 18178 finish_eval= 18179 shlibpath_var= 18180 shlibpath_overrides_runpath=unknown 18181 version_type=none 18182 dynamic_linker="$host_os ld.so" 18183 sys_lib_dlsearch_path_spec="/lib /usr/lib" 18184 need_lib_prefix=unknown 18185 hardcode_into_libs=no 18186 18187 # when you set need_version to no, make sure it does not cause -set_version 18188 # flags to be left without arguments 18189 need_version=unknown 18190 18191 18192 18193 case $host_os in 18194 aix3*) 18195 version_type=linux # correct to gnu/linux during the next big refactor 18196 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 18197 shlibpath_var=LIBPATH 18198 18199 # AIX 3 has no versioning support, so we append a major version to the name. 18200 soname_spec='$libname$release$shared_ext$major' 18201 ;; 18202 18203 aix[4-9]*) 18204 version_type=linux # correct to gnu/linux during the next big refactor 18205 need_lib_prefix=no 18206 need_version=no 18207 hardcode_into_libs=yes 18208 if test ia64 = "$host_cpu"; then 18209 # AIX 5 supports IA64 18210 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 18211 shlibpath_var=LD_LIBRARY_PATH 18212 else 18213 # With GCC up to 2.95.x, collect2 would create an import file 18214 # for dependence libraries. The import file would start with 18215 # the line '#! .'. This would cause the generated library to 18216 # depend on '.', always an invalid library. This was fixed in 18217 # development snapshots of GCC prior to 3.0. 18218 case $host_os in 18219 aix4 | aix4.[01] | aix4.[01].*) 18220 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18221 echo ' yes ' 18222 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 18223 : 18224 else 18225 can_build_shared=no 18226 fi 18227 ;; 18228 esac 18229 # Using Import Files as archive members, it is possible to support 18230 # filename-based versioning of shared library archives on AIX. While 18231 # this would work for both with and without runtime linking, it will 18232 # prevent static linking of such archives. So we do filename-based 18233 # shared library versioning with .so extension only, which is used 18234 # when both runtime linking and shared linking is enabled. 18235 # Unfortunately, runtime linking may impact performance, so we do 18236 # not want this to be the default eventually. Also, we use the 18237 # versioned .so libs for executables only if there is the -brtl 18238 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 18239 # To allow for filename-based versioning support, we need to create 18240 # libNAME.so.V as an archive file, containing: 18241 # *) an Import File, referring to the versioned filename of the 18242 # archive as well as the shared archive member, telling the 18243 # bitwidth (32 or 64) of that shared object, and providing the 18244 # list of exported symbols of that shared object, eventually 18245 # decorated with the 'weak' keyword 18246 # *) the shared object with the F_LOADONLY flag set, to really avoid 18247 # it being seen by the linker. 18248 # At run time we better use the real file rather than another symlink, 18249 # but for link time we create the symlink libNAME.so -> libNAME.so.V 18250 18251 case $with_aix_soname,$aix_use_runtimelinking in 18252 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 18253 # soname into executable. Probably we can add versioning support to 18254 # collect2, so additional links can be useful in future. 18255 aix,yes) # traditional libtool 18256 dynamic_linker='AIX unversionable lib.so' 18257 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18258 # instead of lib<name>.a to let people know that these are not 18259 # typical AIX shared libraries. 18260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18261 ;; 18262 aix,no) # traditional AIX only 18263 dynamic_linker='AIX lib.a(lib.so.V)' 18264 # We preserve .a as extension for shared libraries through AIX4.2 18265 # and later when we are not doing run time linking. 18266 library_names_spec='$libname$release.a $libname.a' 18267 soname_spec='$libname$release$shared_ext$major' 18268 ;; 18269 svr4,*) # full svr4 only 18270 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 18271 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18272 # We do not specify a path in Import Files, so LIBPATH fires. 18273 shlibpath_overrides_runpath=yes 18274 ;; 18275 *,yes) # both, prefer svr4 18276 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 18277 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18278 # unpreferred sharedlib libNAME.a needs extra handling 18279 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 18280 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 18281 # We do not specify a path in Import Files, so LIBPATH fires. 18282 shlibpath_overrides_runpath=yes 18283 ;; 18284 *,no) # both, prefer aix 18285 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 18286 library_names_spec='$libname$release.a $libname.a' 18287 soname_spec='$libname$release$shared_ext$major' 18288 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 18289 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 18290 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 18291 ;; 18292 esac 18293 shlibpath_var=LIBPATH 18294 fi 18295 ;; 18296 18297 amigaos*) 18298 case $host_cpu in 18299 powerpc) 18300 # Since July 2007 AmigaOS4 officially supports .so libraries. 18301 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18303 ;; 18304 m68k) 18305 library_names_spec='$libname.ixlibrary $libname.a' 18306 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18307 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 18308 ;; 18309 esac 18310 ;; 18311 18312 beos*) 18313 library_names_spec='$libname$shared_ext' 18314 dynamic_linker="$host_os ld.so" 18315 shlibpath_var=LIBRARY_PATH 18316 ;; 18317 18318 bsdi[45]*) 18319 version_type=linux # correct to gnu/linux during the next big refactor 18320 need_version=no 18321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18322 soname_spec='$libname$release$shared_ext$major' 18323 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18324 shlibpath_var=LD_LIBRARY_PATH 18325 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18326 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18327 # the default ld.so.conf also contains /usr/contrib/lib and 18328 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18329 # libtool to hard-code these into programs 18330 ;; 18331 18332 cygwin* | mingw* | pw32* | cegcc*) 18333 version_type=windows 18334 shrext_cmds=.dll 18335 need_version=no 18336 need_lib_prefix=no 18337 18338 case $GCC,$cc_basename in 18339 yes,*) 18340 # gcc 18341 library_names_spec='$libname.dll.a' 18342 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18343 postinstall_cmds='base_file=`basename \$file`~ 18344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18345 dldir=$destdir/`dirname \$dlpath`~ 18346 test -d \$dldir || mkdir -p \$dldir~ 18347 $install_prog $dir/$dlname \$dldir/$dlname~ 18348 chmod a+x \$dldir/$dlname~ 18349 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18350 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18351 fi' 18352 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18353 dlpath=$dir/\$dldll~ 18354 $RM \$dlpath' 18355 shlibpath_overrides_runpath=yes 18356 18357 case $host_os in 18358 cygwin*) 18359 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18360 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18361 18362 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 18363 ;; 18364 mingw* | cegcc*) 18365 # MinGW DLLs use traditional 'lib' prefix 18366 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18367 ;; 18368 pw32*) 18369 # pw32 DLLs use 'pw' prefix rather than 'lib' 18370 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18371 ;; 18372 esac 18373 dynamic_linker='Win32 ld.exe' 18374 ;; 18375 18376 *,cl*) 18377 # Native MSVC 18378 libname_spec='$name' 18379 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18380 library_names_spec='$libname.dll.lib' 18381 18382 case $build_os in 18383 mingw*) 18384 sys_lib_search_path_spec= 18385 lt_save_ifs=$IFS 18386 IFS=';' 18387 for lt_path in $LIB 18388 do 18389 IFS=$lt_save_ifs 18390 # Let DOS variable expansion print the short 8.3 style file name. 18391 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18392 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18393 done 18394 IFS=$lt_save_ifs 18395 # Convert to MSYS style. 18396 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18397 ;; 18398 cygwin*) 18399 # Convert to unix form, then to dos form, then back to unix form 18400 # but this time dos style (no spaces!) so that the unix form looks 18401 # like /cygdrive/c/PROGRA~1:/cygdr... 18402 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18403 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18404 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18405 ;; 18406 *) 18407 sys_lib_search_path_spec=$LIB 18408 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18409 # It is most probably a Windows format PATH. 18410 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18411 else 18412 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18413 fi 18414 # FIXME: find the short name or the path components, as spaces are 18415 # common. (e.g. "Program Files" -> "PROGRA~1") 18416 ;; 18417 esac 18418 18419 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18420 postinstall_cmds='base_file=`basename \$file`~ 18421 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18422 dldir=$destdir/`dirname \$dlpath`~ 18423 test -d \$dldir || mkdir -p \$dldir~ 18424 $install_prog $dir/$dlname \$dldir/$dlname' 18425 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18426 dlpath=$dir/\$dldll~ 18427 $RM \$dlpath' 18428 shlibpath_overrides_runpath=yes 18429 dynamic_linker='Win32 link.exe' 18430 ;; 18431 18432 *) 18433 # Assume MSVC wrapper 18434 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18435 dynamic_linker='Win32 ld.exe' 18436 ;; 18437 esac 18438 # FIXME: first we should search . and the directory the executable is in 18439 shlibpath_var=PATH 18440 ;; 18441 18442 darwin* | rhapsody*) 18443 dynamic_linker="$host_os dyld" 18444 version_type=darwin 18445 need_lib_prefix=no 18446 need_version=no 18447 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18448 soname_spec='$libname$release$major$shared_ext' 18449 shlibpath_overrides_runpath=yes 18450 shlibpath_var=DYLD_LIBRARY_PATH 18451 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18452 18453 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18454 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18455 ;; 18456 18457 dgux*) 18458 version_type=linux # correct to gnu/linux during the next big refactor 18459 need_lib_prefix=no 18460 need_version=no 18461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18462 soname_spec='$libname$release$shared_ext$major' 18463 shlibpath_var=LD_LIBRARY_PATH 18464 ;; 18465 18466 freebsd* | dragonfly*) 18467 # DragonFly does not have aout. When/if they implement a new 18468 # versioning mechanism, adjust this. 18469 if test -x /usr/bin/objformat; then 18470 objformat=`/usr/bin/objformat` 18471 else 18472 case $host_os in 18473 freebsd[23].*) objformat=aout ;; 18474 *) objformat=elf ;; 18475 esac 18476 fi 18477 version_type=freebsd-$objformat 18478 case $version_type in 18479 freebsd-elf*) 18480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18481 soname_spec='$libname$release$shared_ext$major' 18482 need_version=no 18483 need_lib_prefix=no 18484 ;; 18485 freebsd-*) 18486 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18487 need_version=yes 18488 ;; 18489 esac 18490 shlibpath_var=LD_LIBRARY_PATH 18491 case $host_os in 18492 freebsd2.*) 18493 shlibpath_overrides_runpath=yes 18494 ;; 18495 freebsd3.[01]* | freebsdelf3.[01]*) 18496 shlibpath_overrides_runpath=yes 18497 hardcode_into_libs=yes 18498 ;; 18499 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18500 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18501 shlibpath_overrides_runpath=no 18502 hardcode_into_libs=yes 18503 ;; 18504 *) # from 4.6 on, and DragonFly 18505 shlibpath_overrides_runpath=yes 18506 hardcode_into_libs=yes 18507 ;; 18508 esac 18509 ;; 18510 18511 haiku*) 18512 version_type=linux # correct to gnu/linux during the next big refactor 18513 need_lib_prefix=no 18514 need_version=no 18515 dynamic_linker="$host_os runtime_loader" 18516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18517 soname_spec='$libname$release$shared_ext$major' 18518 shlibpath_var=LIBRARY_PATH 18519 shlibpath_overrides_runpath=no 18520 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18521 hardcode_into_libs=yes 18522 ;; 18523 18524 hpux9* | hpux10* | hpux11*) 18525 # Give a soname corresponding to the major version so that dld.sl refuses to 18526 # link against other versions. 18527 version_type=sunos 18528 need_lib_prefix=no 18529 need_version=no 18530 case $host_cpu in 18531 ia64*) 18532 shrext_cmds='.so' 18533 hardcode_into_libs=yes 18534 dynamic_linker="$host_os dld.so" 18535 shlibpath_var=LD_LIBRARY_PATH 18536 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18538 soname_spec='$libname$release$shared_ext$major' 18539 if test 32 = "$HPUX_IA64_MODE"; then 18540 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18541 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18542 else 18543 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18544 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18545 fi 18546 ;; 18547 hppa*64*) 18548 shrext_cmds='.sl' 18549 hardcode_into_libs=yes 18550 dynamic_linker="$host_os dld.sl" 18551 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18554 soname_spec='$libname$release$shared_ext$major' 18555 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18557 ;; 18558 *) 18559 shrext_cmds='.sl' 18560 dynamic_linker="$host_os dld.sl" 18561 shlibpath_var=SHLIB_PATH 18562 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18564 soname_spec='$libname$release$shared_ext$major' 18565 ;; 18566 esac 18567 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18568 postinstall_cmds='chmod 555 $lib' 18569 # or fails outright, so override atomically: 18570 install_override_mode=555 18571 ;; 18572 18573 interix[3-9]*) 18574 version_type=linux # correct to gnu/linux during the next big refactor 18575 need_lib_prefix=no 18576 need_version=no 18577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18578 soname_spec='$libname$release$shared_ext$major' 18579 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18580 shlibpath_var=LD_LIBRARY_PATH 18581 shlibpath_overrides_runpath=no 18582 hardcode_into_libs=yes 18583 ;; 18584 18585 irix5* | irix6* | nonstopux*) 18586 case $host_os in 18587 nonstopux*) version_type=nonstopux ;; 18588 *) 18589 if test yes = "$lt_cv_prog_gnu_ld"; then 18590 version_type=linux # correct to gnu/linux during the next big refactor 18591 else 18592 version_type=irix 18593 fi ;; 18594 esac 18595 need_lib_prefix=no 18596 need_version=no 18597 soname_spec='$libname$release$shared_ext$major' 18598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18599 case $host_os in 18600 irix5* | nonstopux*) 18601 libsuff= shlibsuff= 18602 ;; 18603 *) 18604 case $LD in # libtool.m4 will add one of these switches to LD 18605 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18606 libsuff= shlibsuff= libmagic=32-bit;; 18607 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18608 libsuff=32 shlibsuff=N32 libmagic=N32;; 18609 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18610 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18611 *) libsuff= shlibsuff= libmagic=never-match;; 18612 esac 18613 ;; 18614 esac 18615 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18616 shlibpath_overrides_runpath=no 18617 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18618 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18619 hardcode_into_libs=yes 18620 ;; 18621 18622 # No shared lib support for Linux oldld, aout, or coff. 18623 linux*oldld* | linux*aout* | linux*coff*) 18624 dynamic_linker=no 18625 ;; 18626 18627 linux*android*) 18628 version_type=none # Android doesn't support versioned libraries. 18629 need_lib_prefix=no 18630 need_version=no 18631 library_names_spec='$libname$release$shared_ext' 18632 soname_spec='$libname$release$shared_ext' 18633 finish_cmds= 18634 shlibpath_var=LD_LIBRARY_PATH 18635 shlibpath_overrides_runpath=yes 18636 18637 # This implies no fast_install, which is unacceptable. 18638 # Some rework will be needed to allow for fast_install 18639 # before this can be enabled. 18640 hardcode_into_libs=yes 18641 18642 dynamic_linker='Android linker' 18643 # Don't embed -rpath directories since the linker doesn't support them. 18644 hardcode_libdir_flag_spec='-L$libdir' 18645 ;; 18646 18647 # This must be glibc/ELF. 18648 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18649 version_type=linux # correct to gnu/linux during the next big refactor 18650 need_lib_prefix=no 18651 need_version=no 18652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18653 soname_spec='$libname$release$shared_ext$major' 18654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18655 shlibpath_var=LD_LIBRARY_PATH 18656 shlibpath_overrides_runpath=no 18657 18658 # Some binutils ld are patched to set DT_RUNPATH 18659 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 18660 $as_echo_n "(cached) " >&6 18661 else 18662 lt_cv_shlibpath_overrides_runpath=no 18663 save_LDFLAGS=$LDFLAGS 18664 save_libdir=$libdir 18665 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18666 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18668 /* end confdefs.h. */ 18669 18670 int 18671 main () 18672 { 18673 18674 ; 18675 return 0; 18676 } 18677 _ACEOF 18678 if ac_fn_c_try_link "$LINENO"; then : 18679 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 18680 lt_cv_shlibpath_overrides_runpath=yes 18681 fi 18682 fi 18683 rm -f core conftest.err conftest.$ac_objext \ 18684 conftest$ac_exeext conftest.$ac_ext 18685 LDFLAGS=$save_LDFLAGS 18686 libdir=$save_libdir 18687 18688 fi 18689 18690 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18691 18692 # This implies no fast_install, which is unacceptable. 18693 # Some rework will be needed to allow for fast_install 18694 # before this can be enabled. 18695 hardcode_into_libs=yes 18696 18697 # Ideally, we could use ldconfig to report *all* directores which are 18698 # searched for libraries, however this is still not possible. Aside from not 18699 # being certain /sbin/ldconfig is available, command 18700 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18701 # even though it is searched at run-time. Try to do the best guess by 18702 # appending ld.so.conf contents (and includes) to the search path. 18703 if test -f /etc/ld.so.conf; then 18704 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' ' '` 18705 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18706 fi 18707 18708 # We used to test for /lib/ld.so.1 and disable shared libraries on 18709 # powerpc, because MkLinux only supported shared libraries with the 18710 # GNU dynamic linker. Since this was broken with cross compilers, 18711 # most powerpc-linux boxes support dynamic linking these days and 18712 # people can always --disable-shared, the test was removed, and we 18713 # assume the GNU/Linux dynamic linker is in use. 18714 dynamic_linker='GNU/Linux ld.so' 18715 ;; 18716 18717 netbsd*) 18718 version_type=sunos 18719 need_lib_prefix=no 18720 need_version=no 18721 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18722 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18724 dynamic_linker='NetBSD (a.out) ld.so' 18725 else 18726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18727 soname_spec='$libname$release$shared_ext$major' 18728 dynamic_linker='NetBSD ld.elf_so' 18729 fi 18730 shlibpath_var=LD_LIBRARY_PATH 18731 shlibpath_overrides_runpath=yes 18732 hardcode_into_libs=yes 18733 ;; 18734 18735 newsos6) 18736 version_type=linux # correct to gnu/linux during the next big refactor 18737 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18738 shlibpath_var=LD_LIBRARY_PATH 18739 shlibpath_overrides_runpath=yes 18740 ;; 18741 18742 *nto* | *qnx*) 18743 version_type=qnx 18744 need_lib_prefix=no 18745 need_version=no 18746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18747 soname_spec='$libname$release$shared_ext$major' 18748 shlibpath_var=LD_LIBRARY_PATH 18749 shlibpath_overrides_runpath=no 18750 hardcode_into_libs=yes 18751 dynamic_linker='ldqnx.so' 18752 ;; 18753 18754 openbsd* | bitrig*) 18755 version_type=sunos 18756 sys_lib_dlsearch_path_spec=/usr/lib 18757 need_lib_prefix=no 18758 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18759 need_version=no 18760 else 18761 need_version=yes 18762 fi 18763 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18765 shlibpath_var=LD_LIBRARY_PATH 18766 shlibpath_overrides_runpath=yes 18767 ;; 18768 18769 os2*) 18770 libname_spec='$name' 18771 version_type=windows 18772 shrext_cmds=.dll 18773 need_version=no 18774 need_lib_prefix=no 18775 # OS/2 can only load a DLL with a base name of 8 characters or less. 18776 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18777 v=$($ECHO $release$versuffix | tr -d .-); 18778 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18779 $ECHO $n$v`$shared_ext' 18780 library_names_spec='${libname}_dll.$libext' 18781 dynamic_linker='OS/2 ld.exe' 18782 shlibpath_var=BEGINLIBPATH 18783 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18785 postinstall_cmds='base_file=`basename \$file`~ 18786 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18787 dldir=$destdir/`dirname \$dlpath`~ 18788 test -d \$dldir || mkdir -p \$dldir~ 18789 $install_prog $dir/$dlname \$dldir/$dlname~ 18790 chmod a+x \$dldir/$dlname~ 18791 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18792 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18793 fi' 18794 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18795 dlpath=$dir/\$dldll~ 18796 $RM \$dlpath' 18797 ;; 18798 18799 osf3* | osf4* | osf5*) 18800 version_type=osf 18801 need_lib_prefix=no 18802 need_version=no 18803 soname_spec='$libname$release$shared_ext$major' 18804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18805 shlibpath_var=LD_LIBRARY_PATH 18806 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18807 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18808 ;; 18809 18810 rdos*) 18811 dynamic_linker=no 18812 ;; 18813 18814 solaris*) 18815 version_type=linux # correct to gnu/linux during the next big refactor 18816 need_lib_prefix=no 18817 need_version=no 18818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18819 soname_spec='$libname$release$shared_ext$major' 18820 shlibpath_var=LD_LIBRARY_PATH 18821 shlibpath_overrides_runpath=yes 18822 hardcode_into_libs=yes 18823 # ldd complains unless libraries are executable 18824 postinstall_cmds='chmod +x $lib' 18825 ;; 18826 18827 sunos4*) 18828 version_type=sunos 18829 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18831 shlibpath_var=LD_LIBRARY_PATH 18832 shlibpath_overrides_runpath=yes 18833 if test yes = "$with_gnu_ld"; then 18834 need_lib_prefix=no 18835 fi 18836 need_version=yes 18837 ;; 18838 18839 sysv4 | sysv4.3*) 18840 version_type=linux # correct to gnu/linux during the next big refactor 18841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18842 soname_spec='$libname$release$shared_ext$major' 18843 shlibpath_var=LD_LIBRARY_PATH 18844 case $host_vendor in 18845 sni) 18846 shlibpath_overrides_runpath=no 18847 need_lib_prefix=no 18848 runpath_var=LD_RUN_PATH 18849 ;; 18850 siemens) 18851 need_lib_prefix=no 18852 ;; 18853 motorola) 18854 need_lib_prefix=no 18855 need_version=no 18856 shlibpath_overrides_runpath=no 18857 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18858 ;; 18859 esac 18860 ;; 18861 18862 sysv4*MP*) 18863 if test -d /usr/nec; then 18864 version_type=linux # correct to gnu/linux during the next big refactor 18865 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18866 soname_spec='$libname$shared_ext.$major' 18867 shlibpath_var=LD_LIBRARY_PATH 18868 fi 18869 ;; 18870 18871 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18872 version_type=sco 18873 need_lib_prefix=no 18874 need_version=no 18875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18876 soname_spec='$libname$release$shared_ext$major' 18877 shlibpath_var=LD_LIBRARY_PATH 18878 shlibpath_overrides_runpath=yes 18879 hardcode_into_libs=yes 18880 if test yes = "$with_gnu_ld"; then 18881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18882 else 18883 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18884 case $host_os in 18885 sco3.2v5*) 18886 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18887 ;; 18888 esac 18889 fi 18890 sys_lib_dlsearch_path_spec='/usr/lib' 18891 ;; 18892 18893 tpf*) 18894 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18895 version_type=linux # correct to gnu/linux during the next big refactor 18896 need_lib_prefix=no 18897 need_version=no 18898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18899 shlibpath_var=LD_LIBRARY_PATH 18900 shlibpath_overrides_runpath=no 18901 hardcode_into_libs=yes 18902 ;; 18903 18904 uts4*) 18905 version_type=linux # correct to gnu/linux during the next big refactor 18906 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18907 soname_spec='$libname$release$shared_ext$major' 18908 shlibpath_var=LD_LIBRARY_PATH 18909 ;; 18910 18911 *) 18912 dynamic_linker=no 18913 ;; 18914 esac 18915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18916 $as_echo "$dynamic_linker" >&6; } 18917 test no = "$dynamic_linker" && can_build_shared=no 18918 18919 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18920 if test yes = "$GCC"; then 18921 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18922 fi 18923 18924 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18925 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18926 fi 18927 18928 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18929 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18930 fi 18931 18932 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18933 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18934 18935 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18936 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18937 18938 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18939 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18940 18941 18942 18943 18944 18945 18946 18947 18948 18949 18950 18951 18952 18953 18954 18955 18956 18957 18958 18959 18960 18961 18962 18963 18964 18965 18966 18967 18968 18969 18970 18971 18972 18973 18974 18975 18976 18977 18978 18979 18980 18981 18982 18983 18984 18985 18986 18987 18988 18989 18990 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000 19001 19002 19003 19004 19005 19006 19007 19008 19009 19010 19011 19012 19013 19014 19015 19016 19017 19018 19019 19020 19021 19022 19023 19024 19025 19026 19027 19028 19029 19030 19031 19032 19033 19034 19035 19036 19037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 19038 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 19039 hardcode_action= 19040 if test -n "$hardcode_libdir_flag_spec" || 19041 test -n "$runpath_var" || 19042 test yes = "$hardcode_automatic"; then 19043 19044 # We can hardcode non-existent directories. 19045 if test no != "$hardcode_direct" && 19046 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19047 # have to relink, otherwise we might link with an installed library 19048 # when we should be linking with a yet-to-be-installed one 19049 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 19050 test no != "$hardcode_minus_L"; then 19051 # Linking always hardcodes the temporary library directory. 19052 hardcode_action=relink 19053 else 19054 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19055 hardcode_action=immediate 19056 fi 19057 else 19058 # We cannot hardcode anything, or else we can only hardcode existing 19059 # directories. 19060 hardcode_action=unsupported 19061 fi 19062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 19063 $as_echo "$hardcode_action" >&6; } 19064 19065 if test relink = "$hardcode_action" || 19066 test yes = "$inherit_rpath"; then 19067 # Fast installation is not supported 19068 enable_fast_install=no 19069 elif test yes = "$shlibpath_overrides_runpath" || 19070 test no = "$enable_shared"; then 19071 # Fast installation is not necessary 19072 enable_fast_install=needless 19073 fi 19074 19075 19076 19077 19078 19079 19080 if test yes != "$enable_dlopen"; then 19081 enable_dlopen=unknown 19082 enable_dlopen_self=unknown 19083 enable_dlopen_self_static=unknown 19084 else 19085 lt_cv_dlopen=no 19086 lt_cv_dlopen_libs= 19087 19088 case $host_os in 19089 beos*) 19090 lt_cv_dlopen=load_add_on 19091 lt_cv_dlopen_libs= 19092 lt_cv_dlopen_self=yes 19093 ;; 19094 19095 mingw* | pw32* | cegcc*) 19096 lt_cv_dlopen=LoadLibrary 19097 lt_cv_dlopen_libs= 19098 ;; 19099 19100 cygwin*) 19101 lt_cv_dlopen=dlopen 19102 lt_cv_dlopen_libs= 19103 ;; 19104 19105 darwin*) 19106 # if libdl is installed we need to link against it 19107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19108 $as_echo_n "checking for dlopen in -ldl... " >&6; } 19109 if ${ac_cv_lib_dl_dlopen+:} false; then : 19110 $as_echo_n "(cached) " >&6 19111 else 19112 ac_check_lib_save_LIBS=$LIBS 19113 LIBS="-ldl $LIBS" 19114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19115 /* end confdefs.h. */ 19116 19117 /* Override any GCC internal prototype to avoid an error. 19118 Use char because int might match the return type of a GCC 19119 builtin and then its argument prototype would still apply. */ 19120 #ifdef __cplusplus 19121 extern "C" 19122 #endif 19123 char dlopen (); 19124 int 19125 main () 19126 { 19127 return dlopen (); 19128 ; 19129 return 0; 19130 } 19131 _ACEOF 19132 if ac_fn_c_try_link "$LINENO"; then : 19133 ac_cv_lib_dl_dlopen=yes 19134 else 19135 ac_cv_lib_dl_dlopen=no 19136 fi 19137 rm -f core conftest.err conftest.$ac_objext \ 19138 conftest$ac_exeext conftest.$ac_ext 19139 LIBS=$ac_check_lib_save_LIBS 19140 fi 19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19142 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 19143 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 19144 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19145 else 19146 19147 lt_cv_dlopen=dyld 19148 lt_cv_dlopen_libs= 19149 lt_cv_dlopen_self=yes 19150 19151 fi 19152 19153 ;; 19154 19155 tpf*) 19156 # Don't try to run any link tests for TPF. We know it's impossible 19157 # because TPF is a cross-compiler, and we know how we open DSOs. 19158 lt_cv_dlopen=dlopen 19159 lt_cv_dlopen_libs= 19160 lt_cv_dlopen_self=no 19161 ;; 19162 19163 *) 19164 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 19165 if test "x$ac_cv_func_shl_load" = xyes; then : 19166 lt_cv_dlopen=shl_load 19167 else 19168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 19169 $as_echo_n "checking for shl_load in -ldld... " >&6; } 19170 if ${ac_cv_lib_dld_shl_load+:} false; then : 19171 $as_echo_n "(cached) " >&6 19172 else 19173 ac_check_lib_save_LIBS=$LIBS 19174 LIBS="-ldld $LIBS" 19175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19176 /* end confdefs.h. */ 19177 19178 /* Override any GCC internal prototype to avoid an error. 19179 Use char because int might match the return type of a GCC 19180 builtin and then its argument prototype would still apply. */ 19181 #ifdef __cplusplus 19182 extern "C" 19183 #endif 19184 char shl_load (); 19185 int 19186 main () 19187 { 19188 return shl_load (); 19189 ; 19190 return 0; 19191 } 19192 _ACEOF 19193 if ac_fn_c_try_link "$LINENO"; then : 19194 ac_cv_lib_dld_shl_load=yes 19195 else 19196 ac_cv_lib_dld_shl_load=no 19197 fi 19198 rm -f core conftest.err conftest.$ac_objext \ 19199 conftest$ac_exeext conftest.$ac_ext 19200 LIBS=$ac_check_lib_save_LIBS 19201 fi 19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 19203 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 19204 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 19205 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 19206 else 19207 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 19208 if test "x$ac_cv_func_dlopen" = xyes; then : 19209 lt_cv_dlopen=dlopen 19210 else 19211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19212 $as_echo_n "checking for dlopen in -ldl... " >&6; } 19213 if ${ac_cv_lib_dl_dlopen+:} false; then : 19214 $as_echo_n "(cached) " >&6 19215 else 19216 ac_check_lib_save_LIBS=$LIBS 19217 LIBS="-ldl $LIBS" 19218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19219 /* end confdefs.h. */ 19220 19221 /* Override any GCC internal prototype to avoid an error. 19222 Use char because int might match the return type of a GCC 19223 builtin and then its argument prototype would still apply. */ 19224 #ifdef __cplusplus 19225 extern "C" 19226 #endif 19227 char dlopen (); 19228 int 19229 main () 19230 { 19231 return dlopen (); 19232 ; 19233 return 0; 19234 } 19235 _ACEOF 19236 if ac_fn_c_try_link "$LINENO"; then : 19237 ac_cv_lib_dl_dlopen=yes 19238 else 19239 ac_cv_lib_dl_dlopen=no 19240 fi 19241 rm -f core conftest.err conftest.$ac_objext \ 19242 conftest$ac_exeext conftest.$ac_ext 19243 LIBS=$ac_check_lib_save_LIBS 19244 fi 19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19246 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 19247 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 19248 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19249 else 19250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 19251 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 19252 if ${ac_cv_lib_svld_dlopen+:} false; then : 19253 $as_echo_n "(cached) " >&6 19254 else 19255 ac_check_lib_save_LIBS=$LIBS 19256 LIBS="-lsvld $LIBS" 19257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19258 /* end confdefs.h. */ 19259 19260 /* Override any GCC internal prototype to avoid an error. 19261 Use char because int might match the return type of a GCC 19262 builtin and then its argument prototype would still apply. */ 19263 #ifdef __cplusplus 19264 extern "C" 19265 #endif 19266 char dlopen (); 19267 int 19268 main () 19269 { 19270 return dlopen (); 19271 ; 19272 return 0; 19273 } 19274 _ACEOF 19275 if ac_fn_c_try_link "$LINENO"; then : 19276 ac_cv_lib_svld_dlopen=yes 19277 else 19278 ac_cv_lib_svld_dlopen=no 19279 fi 19280 rm -f core conftest.err conftest.$ac_objext \ 19281 conftest$ac_exeext conftest.$ac_ext 19282 LIBS=$ac_check_lib_save_LIBS 19283 fi 19284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 19285 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 19286 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 19287 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 19288 else 19289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 19290 $as_echo_n "checking for dld_link in -ldld... " >&6; } 19291 if ${ac_cv_lib_dld_dld_link+:} false; then : 19292 $as_echo_n "(cached) " >&6 19293 else 19294 ac_check_lib_save_LIBS=$LIBS 19295 LIBS="-ldld $LIBS" 19296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19297 /* end confdefs.h. */ 19298 19299 /* Override any GCC internal prototype to avoid an error. 19300 Use char because int might match the return type of a GCC 19301 builtin and then its argument prototype would still apply. */ 19302 #ifdef __cplusplus 19303 extern "C" 19304 #endif 19305 char dld_link (); 19306 int 19307 main () 19308 { 19309 return dld_link (); 19310 ; 19311 return 0; 19312 } 19313 _ACEOF 19314 if ac_fn_c_try_link "$LINENO"; then : 19315 ac_cv_lib_dld_dld_link=yes 19316 else 19317 ac_cv_lib_dld_dld_link=no 19318 fi 19319 rm -f core conftest.err conftest.$ac_objext \ 19320 conftest$ac_exeext conftest.$ac_ext 19321 LIBS=$ac_check_lib_save_LIBS 19322 fi 19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 19324 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 19325 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 19326 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 19327 fi 19328 19329 19330 fi 19331 19332 19333 fi 19334 19335 19336 fi 19337 19338 19339 fi 19340 19341 19342 fi 19343 19344 ;; 19345 esac 19346 19347 if test no = "$lt_cv_dlopen"; then 19348 enable_dlopen=no 19349 else 19350 enable_dlopen=yes 19351 fi 19352 19353 case $lt_cv_dlopen in 19354 dlopen) 19355 save_CPPFLAGS=$CPPFLAGS 19356 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 19357 19358 save_LDFLAGS=$LDFLAGS 19359 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 19360 19361 save_LIBS=$LIBS 19362 LIBS="$lt_cv_dlopen_libs $LIBS" 19363 19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 19365 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 19366 if ${lt_cv_dlopen_self+:} false; then : 19367 $as_echo_n "(cached) " >&6 19368 else 19369 if test yes = "$cross_compiling"; then : 19370 lt_cv_dlopen_self=cross 19371 else 19372 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19373 lt_status=$lt_dlunknown 19374 cat > conftest.$ac_ext <<_LT_EOF 19375 #line $LINENO "configure" 19376 #include "confdefs.h" 19377 19378 #if HAVE_DLFCN_H 19379 #include <dlfcn.h> 19380 #endif 19381 19382 #include <stdio.h> 19383 19384 #ifdef RTLD_GLOBAL 19385 # define LT_DLGLOBAL RTLD_GLOBAL 19386 #else 19387 # ifdef DL_GLOBAL 19388 # define LT_DLGLOBAL DL_GLOBAL 19389 # else 19390 # define LT_DLGLOBAL 0 19391 # endif 19392 #endif 19393 19394 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19395 find out it does not work in some platform. */ 19396 #ifndef LT_DLLAZY_OR_NOW 19397 # ifdef RTLD_LAZY 19398 # define LT_DLLAZY_OR_NOW RTLD_LAZY 19399 # else 19400 # ifdef DL_LAZY 19401 # define LT_DLLAZY_OR_NOW DL_LAZY 19402 # else 19403 # ifdef RTLD_NOW 19404 # define LT_DLLAZY_OR_NOW RTLD_NOW 19405 # else 19406 # ifdef DL_NOW 19407 # define LT_DLLAZY_OR_NOW DL_NOW 19408 # else 19409 # define LT_DLLAZY_OR_NOW 0 19410 # endif 19411 # endif 19412 # endif 19413 # endif 19414 #endif 19415 19416 /* When -fvisibility=hidden is used, assume the code has been annotated 19417 correspondingly for the symbols needed. */ 19418 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19419 int fnord () __attribute__((visibility("default"))); 19420 #endif 19421 19422 int fnord () { return 42; } 19423 int main () 19424 { 19425 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19426 int status = $lt_dlunknown; 19427 19428 if (self) 19429 { 19430 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19431 else 19432 { 19433 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19434 else puts (dlerror ()); 19435 } 19436 /* dlclose (self); */ 19437 } 19438 else 19439 puts (dlerror ()); 19440 19441 return status; 19442 } 19443 _LT_EOF 19444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19445 (eval $ac_link) 2>&5 19446 ac_status=$? 19447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19448 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19449 (./conftest; exit; ) >&5 2>/dev/null 19450 lt_status=$? 19451 case x$lt_status in 19452 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19453 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19454 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19455 esac 19456 else : 19457 # compilation failed 19458 lt_cv_dlopen_self=no 19459 fi 19460 fi 19461 rm -fr conftest* 19462 19463 19464 fi 19465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19466 $as_echo "$lt_cv_dlopen_self" >&6; } 19467 19468 if test yes = "$lt_cv_dlopen_self"; then 19469 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19471 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 19472 if ${lt_cv_dlopen_self_static+:} false; then : 19473 $as_echo_n "(cached) " >&6 19474 else 19475 if test yes = "$cross_compiling"; then : 19476 lt_cv_dlopen_self_static=cross 19477 else 19478 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19479 lt_status=$lt_dlunknown 19480 cat > conftest.$ac_ext <<_LT_EOF 19481 #line $LINENO "configure" 19482 #include "confdefs.h" 19483 19484 #if HAVE_DLFCN_H 19485 #include <dlfcn.h> 19486 #endif 19487 19488 #include <stdio.h> 19489 19490 #ifdef RTLD_GLOBAL 19491 # define LT_DLGLOBAL RTLD_GLOBAL 19492 #else 19493 # ifdef DL_GLOBAL 19494 # define LT_DLGLOBAL DL_GLOBAL 19495 # else 19496 # define LT_DLGLOBAL 0 19497 # endif 19498 #endif 19499 19500 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19501 find out it does not work in some platform. */ 19502 #ifndef LT_DLLAZY_OR_NOW 19503 # ifdef RTLD_LAZY 19504 # define LT_DLLAZY_OR_NOW RTLD_LAZY 19505 # else 19506 # ifdef DL_LAZY 19507 # define LT_DLLAZY_OR_NOW DL_LAZY 19508 # else 19509 # ifdef RTLD_NOW 19510 # define LT_DLLAZY_OR_NOW RTLD_NOW 19511 # else 19512 # ifdef DL_NOW 19513 # define LT_DLLAZY_OR_NOW DL_NOW 19514 # else 19515 # define LT_DLLAZY_OR_NOW 0 19516 # endif 19517 # endif 19518 # endif 19519 # endif 19520 #endif 19521 19522 /* When -fvisibility=hidden is used, assume the code has been annotated 19523 correspondingly for the symbols needed. */ 19524 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19525 int fnord () __attribute__((visibility("default"))); 19526 #endif 19527 19528 int fnord () { return 42; } 19529 int main () 19530 { 19531 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19532 int status = $lt_dlunknown; 19533 19534 if (self) 19535 { 19536 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19537 else 19538 { 19539 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19540 else puts (dlerror ()); 19541 } 19542 /* dlclose (self); */ 19543 } 19544 else 19545 puts (dlerror ()); 19546 19547 return status; 19548 } 19549 _LT_EOF 19550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19551 (eval $ac_link) 2>&5 19552 ac_status=$? 19553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19554 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19555 (./conftest; exit; ) >&5 2>/dev/null 19556 lt_status=$? 19557 case x$lt_status in 19558 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19559 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19560 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19561 esac 19562 else : 19563 # compilation failed 19564 lt_cv_dlopen_self_static=no 19565 fi 19566 fi 19567 rm -fr conftest* 19568 19569 19570 fi 19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19572 $as_echo "$lt_cv_dlopen_self_static" >&6; } 19573 fi 19574 19575 CPPFLAGS=$save_CPPFLAGS 19576 LDFLAGS=$save_LDFLAGS 19577 LIBS=$save_LIBS 19578 ;; 19579 esac 19580 19581 case $lt_cv_dlopen_self in 19582 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19583 *) enable_dlopen_self=unknown ;; 19584 esac 19585 19586 case $lt_cv_dlopen_self_static in 19587 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19588 *) enable_dlopen_self_static=unknown ;; 19589 esac 19590 fi 19591 19592 19593 19594 19595 19596 19597 19598 19599 19600 19601 19602 19603 19604 19605 19606 19607 19608 striplib= 19609 old_striplib= 19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19611 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 19612 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19613 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 19614 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19616 $as_echo "yes" >&6; } 19617 else 19618 # FIXME - insert some real tests, host_os isn't really good enough 19619 case $host_os in 19620 darwin*) 19621 if test -n "$STRIP"; then 19622 striplib="$STRIP -x" 19623 old_striplib="$STRIP -S" 19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19625 $as_echo "yes" >&6; } 19626 else 19627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19628 $as_echo "no" >&6; } 19629 fi 19630 ;; 19631 *) 19632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19633 $as_echo "no" >&6; } 19634 ;; 19635 esac 19636 fi 19637 19638 19639 19640 19641 19642 19643 19644 19645 19646 19647 19648 19649 # Report what library types will actually be built 19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19651 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 19652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19653 $as_echo "$can_build_shared" >&6; } 19654 19655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19656 $as_echo_n "checking whether to build shared libraries... " >&6; } 19657 test no = "$can_build_shared" && enable_shared=no 19658 19659 # On AIX, shared libraries and static libraries use the same namespace, and 19660 # are all built from PIC. 19661 case $host_os in 19662 aix3*) 19663 test yes = "$enable_shared" && enable_static=no 19664 if test -n "$RANLIB"; then 19665 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19666 postinstall_cmds='$RANLIB $lib' 19667 fi 19668 ;; 19669 19670 aix[4-9]*) 19671 if test ia64 != "$host_cpu"; then 19672 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19673 yes,aix,yes) ;; # shared object as lib.so file only 19674 yes,svr4,*) ;; # shared object as lib.so archive member only 19675 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19676 esac 19677 fi 19678 ;; 19679 esac 19680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19681 $as_echo "$enable_shared" >&6; } 19682 19683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19684 $as_echo_n "checking whether to build static libraries... " >&6; } 19685 # Make sure either enable_shared or enable_static is yes. 19686 test yes = "$enable_shared" || enable_static=yes 19687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19688 $as_echo "$enable_static" >&6; } 19689 19690 19691 19692 19693 fi 19694 ac_ext=c 19695 ac_cpp='$CPP $CPPFLAGS' 19696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19698 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19699 19700 CC=$lt_save_CC 19701 19702 if test -n "$CXX" && ( test no != "$CXX" && 19703 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 19704 (test g++ != "$CXX"))); then 19705 ac_ext=cpp 19706 ac_cpp='$CXXCPP $CPPFLAGS' 19707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 19711 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 19712 if test -z "$CXXCPP"; then 19713 if ${ac_cv_prog_CXXCPP+:} false; then : 19714 $as_echo_n "(cached) " >&6 19715 else 19716 # Double quotes because CXXCPP needs to be expanded 19717 for CXXCPP in "$CXX -E" "/lib/cpp" 19718 do 19719 ac_preproc_ok=false 19720 for ac_cxx_preproc_warn_flag in '' yes 19721 do 19722 # Use a header file that comes with gcc, so configuring glibc 19723 # with a fresh cross-compiler works. 19724 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19725 # <limits.h> exists even on freestanding compilers. 19726 # On the NeXT, cc -E runs the code through the compiler's parser, 19727 # not just through cpp. "Syntax error" is here to catch this case. 19728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19729 /* end confdefs.h. */ 19730 #ifdef __STDC__ 19731 # include <limits.h> 19732 #else 19733 # include <assert.h> 19734 #endif 19735 Syntax error 19736 _ACEOF 19737 if ac_fn_cxx_try_cpp "$LINENO"; then : 19738 19739 else 19740 # Broken: fails on valid input. 19741 continue 19742 fi 19743 rm -f conftest.err conftest.i conftest.$ac_ext 19744 19745 # OK, works on sane cases. Now check whether nonexistent headers 19746 # can be detected and how. 19747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19748 /* end confdefs.h. */ 19749 #include <ac_nonexistent.h> 19750 _ACEOF 19751 if ac_fn_cxx_try_cpp "$LINENO"; then : 19752 # Broken: success on invalid input. 19753 continue 19754 else 19755 # Passes both tests. 19756 ac_preproc_ok=: 19757 break 19758 fi 19759 rm -f conftest.err conftest.i conftest.$ac_ext 19760 19761 done 19762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 19763 rm -f conftest.i conftest.err conftest.$ac_ext 19764 if $ac_preproc_ok; then : 19765 break 19766 fi 19767 19768 done 19769 ac_cv_prog_CXXCPP=$CXXCPP 19770 19771 fi 19772 CXXCPP=$ac_cv_prog_CXXCPP 19773 else 19774 ac_cv_prog_CXXCPP=$CXXCPP 19775 fi 19776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 19777 $as_echo "$CXXCPP" >&6; } 19778 ac_preproc_ok=false 19779 for ac_cxx_preproc_warn_flag in '' yes 19780 do 19781 # Use a header file that comes with gcc, so configuring glibc 19782 # with a fresh cross-compiler works. 19783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19784 # <limits.h> exists even on freestanding compilers. 19785 # On the NeXT, cc -E runs the code through the compiler's parser, 19786 # not just through cpp. "Syntax error" is here to catch this case. 19787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19788 /* end confdefs.h. */ 19789 #ifdef __STDC__ 19790 # include <limits.h> 19791 #else 19792 # include <assert.h> 19793 #endif 19794 Syntax error 19795 _ACEOF 19796 if ac_fn_cxx_try_cpp "$LINENO"; then : 19797 19798 else 19799 # Broken: fails on valid input. 19800 continue 19801 fi 19802 rm -f conftest.err conftest.i conftest.$ac_ext 19803 19804 # OK, works on sane cases. Now check whether nonexistent headers 19805 # can be detected and how. 19806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19807 /* end confdefs.h. */ 19808 #include <ac_nonexistent.h> 19809 _ACEOF 19810 if ac_fn_cxx_try_cpp "$LINENO"; then : 19811 # Broken: success on invalid input. 19812 continue 19813 else 19814 # Passes both tests. 19815 ac_preproc_ok=: 19816 break 19817 fi 19818 rm -f conftest.err conftest.i conftest.$ac_ext 19819 19820 done 19821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 19822 rm -f conftest.i conftest.err conftest.$ac_ext 19823 if $ac_preproc_ok; then : 19824 19825 else 19826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19828 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 19829 See \`config.log' for more details" "$LINENO" 5; } 19830 fi 19831 19832 ac_ext=c 19833 ac_cpp='$CPP $CPPFLAGS' 19834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19836 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19837 19838 else 19839 _lt_caught_CXX_error=yes 19840 fi 19841 19842 ac_ext=cpp 19843 ac_cpp='$CXXCPP $CPPFLAGS' 19844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19847 19848 archive_cmds_need_lc_CXX=no 19849 allow_undefined_flag_CXX= 19850 always_export_symbols_CXX=no 19851 archive_expsym_cmds_CXX= 19852 compiler_needs_object_CXX=no 19853 export_dynamic_flag_spec_CXX= 19854 hardcode_direct_CXX=no 19855 hardcode_direct_absolute_CXX=no 19856 hardcode_libdir_flag_spec_CXX= 19857 hardcode_libdir_separator_CXX= 19858 hardcode_minus_L_CXX=no 19859 hardcode_shlibpath_var_CXX=unsupported 19860 hardcode_automatic_CXX=no 19861 inherit_rpath_CXX=no 19862 module_cmds_CXX= 19863 module_expsym_cmds_CXX= 19864 link_all_deplibs_CXX=unknown 19865 old_archive_cmds_CXX=$old_archive_cmds 19866 reload_flag_CXX=$reload_flag 19867 reload_cmds_CXX=$reload_cmds 19868 no_undefined_flag_CXX= 19869 whole_archive_flag_spec_CXX= 19870 enable_shared_with_static_runtimes_CXX=no 19871 19872 # Source file extension for C++ test sources. 19873 ac_ext=cpp 19874 19875 # Object file extension for compiled C++ test sources. 19876 objext=o 19877 objext_CXX=$objext 19878 19879 # No sense in running all these tests if we already determined that 19880 # the CXX compiler isn't working. Some variables (like enable_shared) 19881 # are currently assumed to apply to all compilers on this platform, 19882 # and will be corrupted by setting them based on a non-working compiler. 19883 if test yes != "$_lt_caught_CXX_error"; then 19884 # Code to be used in simple compile tests 19885 lt_simple_compile_test_code="int some_variable = 0;" 19886 19887 # Code to be used in simple link tests 19888 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 19889 19890 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 19891 19892 19893 19894 19895 19896 19897 # If no C compiler was specified, use CC. 19898 LTCC=${LTCC-"$CC"} 19899 19900 # If no C compiler flags were specified, use CFLAGS. 19901 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19902 19903 # Allow CC to be a program name with arguments. 19904 compiler=$CC 19905 19906 19907 # save warnings/boilerplate of simple test code 19908 ac_outfile=conftest.$ac_objext 19909 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19910 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19911 _lt_compiler_boilerplate=`cat conftest.err` 19912 $RM conftest* 19913 19914 ac_outfile=conftest.$ac_objext 19915 echo "$lt_simple_link_test_code" >conftest.$ac_ext 19916 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19917 _lt_linker_boilerplate=`cat conftest.err` 19918 $RM -r conftest* 19919 19920 19921 # Allow CC to be a program name with arguments. 19922 lt_save_CC=$CC 19923 lt_save_CFLAGS=$CFLAGS 19924 lt_save_LD=$LD 19925 lt_save_GCC=$GCC 19926 GCC=$GXX 19927 lt_save_with_gnu_ld=$with_gnu_ld 19928 lt_save_path_LD=$lt_cv_path_LD 19929 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 19930 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 19931 else 19932 $as_unset lt_cv_prog_gnu_ld 19933 fi 19934 if test -n "${lt_cv_path_LDCXX+set}"; then 19935 lt_cv_path_LD=$lt_cv_path_LDCXX 19936 else 19937 $as_unset lt_cv_path_LD 19938 fi 19939 test -z "${LDCXX+set}" || LD=$LDCXX 19940 CC=${CXX-"c++"} 19941 CFLAGS=$CXXFLAGS 19942 compiler=$CC 19943 compiler_CXX=$CC 19944 func_cc_basename $compiler 19945 cc_basename=$func_cc_basename_result 19946 19947 19948 if test -n "$compiler"; then 19949 # We don't want -fno-exception when compiling C++ code, so set the 19950 # no_builtin_flag separately 19951 if test yes = "$GXX"; then 19952 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 19953 else 19954 lt_prog_compiler_no_builtin_flag_CXX= 19955 fi 19956 19957 if test yes = "$GXX"; then 19958 # Set up default GNU C++ configuration 19959 19960 19961 19962 # Check whether --with-gnu-ld was given. 19963 if test "${with_gnu_ld+set}" = set; then : 19964 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 19965 else 19966 with_gnu_ld=no 19967 fi 19968 19969 ac_prog=ld 19970 if test yes = "$GCC"; then 19971 # Check if gcc -print-prog-name=ld gives a path. 19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 19973 $as_echo_n "checking for ld used by $CC... " >&6; } 19974 case $host in 19975 *-*-mingw*) 19976 # gcc leaves a trailing carriage return, which upsets mingw 19977 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 19978 *) 19979 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 19980 esac 19981 case $ac_prog in 19982 # Accept absolute paths. 19983 [\\/]* | ?:[\\/]*) 19984 re_direlt='/[^/][^/]*/\.\./' 19985 # Canonicalize the pathname of ld 19986 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 19987 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 19988 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 19989 done 19990 test -z "$LD" && LD=$ac_prog 19991 ;; 19992 "") 19993 # If it fails, then pretend we aren't using GCC. 19994 ac_prog=ld 19995 ;; 19996 *) 19997 # If it is relative, then search for the first ld in PATH. 19998 with_gnu_ld=unknown 19999 ;; 20000 esac 20001 elif test yes = "$with_gnu_ld"; then 20002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 20003 $as_echo_n "checking for GNU ld... " >&6; } 20004 else 20005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 20006 $as_echo_n "checking for non-GNU ld... " >&6; } 20007 fi 20008 if ${lt_cv_path_LD+:} false; then : 20009 $as_echo_n "(cached) " >&6 20010 else 20011 if test -z "$LD"; then 20012 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 20013 for ac_dir in $PATH; do 20014 IFS=$lt_save_ifs 20015 test -z "$ac_dir" && ac_dir=. 20016 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 20017 lt_cv_path_LD=$ac_dir/$ac_prog 20018 # Check to see if the program is GNU ld. I'd rather use --version, 20019 # but apparently some variants of GNU ld only accept -v. 20020 # Break only if it was the GNU/non-GNU ld that we prefer. 20021 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 20022 *GNU* | *'with BFD'*) 20023 test no != "$with_gnu_ld" && break 20024 ;; 20025 *) 20026 test yes != "$with_gnu_ld" && break 20027 ;; 20028 esac 20029 fi 20030 done 20031 IFS=$lt_save_ifs 20032 else 20033 lt_cv_path_LD=$LD # Let the user override the test with a path. 20034 fi 20035 fi 20036 20037 LD=$lt_cv_path_LD 20038 if test -n "$LD"; then 20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 20040 $as_echo "$LD" >&6; } 20041 else 20042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20043 $as_echo "no" >&6; } 20044 fi 20045 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 20046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 20047 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 20048 if ${lt_cv_prog_gnu_ld+:} false; then : 20049 $as_echo_n "(cached) " >&6 20050 else 20051 # I'd rather use --version here, but apparently some GNU lds only accept -v. 20052 case `$LD -v 2>&1 </dev/null` in 20053 *GNU* | *'with BFD'*) 20054 lt_cv_prog_gnu_ld=yes 20055 ;; 20056 *) 20057 lt_cv_prog_gnu_ld=no 20058 ;; 20059 esac 20060 fi 20061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 20062 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 20063 with_gnu_ld=$lt_cv_prog_gnu_ld 20064 20065 20066 20067 20068 20069 20070 20071 # Check if GNU C++ uses GNU ld as the underlying linker, since the 20072 # archiving commands below assume that GNU ld is being used. 20073 if test yes = "$with_gnu_ld"; then 20074 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 20075 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' 20076 20077 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 20078 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 20079 20080 # If archive_cmds runs LD, not CC, wlarc should be empty 20081 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 20082 # investigate it a little bit more. (MM) 20083 wlarc='$wl' 20084 20085 # ancient GNU ld didn't support --whole-archive et. al. 20086 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 20087 $GREP 'no-whole-archive' > /dev/null; then 20088 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 20089 else 20090 whole_archive_flag_spec_CXX= 20091 fi 20092 else 20093 with_gnu_ld=no 20094 wlarc= 20095 20096 # A generic and very simple default shared library creation 20097 # command for GNU C++ for the case where it uses the native 20098 # linker, instead of GNU ld. If possible, this setting should 20099 # overridden to take advantage of the native linker features on 20100 # the platform it is being used on. 20101 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 20102 fi 20103 20104 # Commands to make compiler produce verbose output that lists 20105 # what "hidden" libraries, object files and flags are used when 20106 # linking a shared library. 20107 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20108 20109 else 20110 GXX=no 20111 with_gnu_ld=no 20112 wlarc= 20113 fi 20114 20115 # PORTME: fill in a description of your system's C++ link characteristics 20116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 20117 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 20118 ld_shlibs_CXX=yes 20119 case $host_os in 20120 aix3*) 20121 # FIXME: insert proper C++ library support 20122 ld_shlibs_CXX=no 20123 ;; 20124 aix[4-9]*) 20125 if test ia64 = "$host_cpu"; then 20126 # On IA64, the linker does run time linking by default, so we don't 20127 # have to do anything special. 20128 aix_use_runtimelinking=no 20129 exp_sym_flag='-Bexport' 20130 no_entry_flag= 20131 else 20132 aix_use_runtimelinking=no 20133 20134 # Test if we are trying to use run time linking or normal 20135 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 20136 # have runtime linking enabled, and use it for executables. 20137 # For shared libraries, we enable/disable runtime linking 20138 # depending on the kind of the shared library created - 20139 # when "with_aix_soname,aix_use_runtimelinking" is: 20140 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 20141 # "aix,yes" lib.so shared, rtl:yes, for executables 20142 # lib.a static archive 20143 # "both,no" lib.so.V(shr.o) shared, rtl:yes 20144 # lib.a(lib.so.V) shared, rtl:no, for executables 20145 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 20146 # lib.a(lib.so.V) shared, rtl:no 20147 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 20148 # lib.a static archive 20149 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 20150 for ld_flag in $LDFLAGS; do 20151 case $ld_flag in 20152 *-brtl*) 20153 aix_use_runtimelinking=yes 20154 break 20155 ;; 20156 esac 20157 done 20158 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 20159 # With aix-soname=svr4, we create the lib.so.V shared archives only, 20160 # so we don't have lib.a shared libs to link our executables. 20161 # We have to force runtime linking in this case. 20162 aix_use_runtimelinking=yes 20163 LDFLAGS="$LDFLAGS -Wl,-brtl" 20164 fi 20165 ;; 20166 esac 20167 20168 exp_sym_flag='-bexport' 20169 no_entry_flag='-bnoentry' 20170 fi 20171 20172 # When large executables or shared objects are built, AIX ld can 20173 # have problems creating the table of contents. If linking a library 20174 # or program results in "error TOC overflow" add -mminimal-toc to 20175 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 20176 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 20177 20178 archive_cmds_CXX='' 20179 hardcode_direct_CXX=yes 20180 hardcode_direct_absolute_CXX=yes 20181 hardcode_libdir_separator_CXX=':' 20182 link_all_deplibs_CXX=yes 20183 file_list_spec_CXX='$wl-f,' 20184 case $with_aix_soname,$aix_use_runtimelinking in 20185 aix,*) ;; # no import file 20186 svr4,* | *,yes) # use import file 20187 # The Import File defines what to hardcode. 20188 hardcode_direct_CXX=no 20189 hardcode_direct_absolute_CXX=no 20190 ;; 20191 esac 20192 20193 if test yes = "$GXX"; then 20194 case $host_os in aix4.[012]|aix4.[012].*) 20195 # We only want to do this on AIX 4.2 and lower, the check 20196 # below for broken collect2 doesn't work under 4.3+ 20197 collect2name=`$CC -print-prog-name=collect2` 20198 if test -f "$collect2name" && 20199 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 20200 then 20201 # We have reworked collect2 20202 : 20203 else 20204 # We have old collect2 20205 hardcode_direct_CXX=unsupported 20206 # It fails to find uninstalled libraries when the uninstalled 20207 # path is not listed in the libpath. Setting hardcode_minus_L 20208 # to unsupported forces relinking 20209 hardcode_minus_L_CXX=yes 20210 hardcode_libdir_flag_spec_CXX='-L$libdir' 20211 hardcode_libdir_separator_CXX= 20212 fi 20213 esac 20214 shared_flag='-shared' 20215 if test yes = "$aix_use_runtimelinking"; then 20216 shared_flag=$shared_flag' $wl-G' 20217 fi 20218 # Need to ensure runtime linking is disabled for the traditional 20219 # shared library, or the linker may eventually find shared libraries 20220 # /with/ Import File - we do not want to mix them. 20221 shared_flag_aix='-shared' 20222 shared_flag_svr4='-shared $wl-G' 20223 else 20224 # not using gcc 20225 if test ia64 = "$host_cpu"; then 20226 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 20227 # chokes on -Wl,-G. The following line is correct: 20228 shared_flag='-G' 20229 else 20230 if test yes = "$aix_use_runtimelinking"; then 20231 shared_flag='$wl-G' 20232 else 20233 shared_flag='$wl-bM:SRE' 20234 fi 20235 shared_flag_aix='$wl-bM:SRE' 20236 shared_flag_svr4='$wl-G' 20237 fi 20238 fi 20239 20240 export_dynamic_flag_spec_CXX='$wl-bexpall' 20241 # It seems that -bexpall does not export symbols beginning with 20242 # underscore (_), so it is better to generate a list of symbols to 20243 # export. 20244 always_export_symbols_CXX=yes 20245 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 20246 # Warning - without using the other runtime loading flags (-brtl), 20247 # -berok will link without error, but may produce a broken library. 20248 # The "-G" linker flag allows undefined symbols. 20249 no_undefined_flag_CXX='-bernotok' 20250 # Determine the default libpath from the value encoded in an empty 20251 # executable. 20252 if test set = "${lt_cv_aix_libpath+set}"; then 20253 aix_libpath=$lt_cv_aix_libpath 20254 else 20255 if ${lt_cv_aix_libpath__CXX+:} false; then : 20256 $as_echo_n "(cached) " >&6 20257 else 20258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20259 /* end confdefs.h. */ 20260 20261 int 20262 main () 20263 { 20264 20265 ; 20266 return 0; 20267 } 20268 _ACEOF 20269 if ac_fn_cxx_try_link "$LINENO"; then : 20270 20271 lt_aix_libpath_sed=' 20272 /Import File Strings/,/^$/ { 20273 /^0/ { 20274 s/^0 *\([^ ]*\) *$/\1/ 20275 p 20276 } 20277 }' 20278 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20279 # Check for a 64-bit object if we didn't find anything. 20280 if test -z "$lt_cv_aix_libpath__CXX"; then 20281 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20282 fi 20283 fi 20284 rm -f core conftest.err conftest.$ac_objext \ 20285 conftest$ac_exeext conftest.$ac_ext 20286 if test -z "$lt_cv_aix_libpath__CXX"; then 20287 lt_cv_aix_libpath__CXX=/usr/lib:/lib 20288 fi 20289 20290 fi 20291 20292 aix_libpath=$lt_cv_aix_libpath__CXX 20293 fi 20294 20295 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 20296 20297 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 20298 else 20299 if test ia64 = "$host_cpu"; then 20300 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 20301 allow_undefined_flag_CXX="-z nodefs" 20302 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" 20303 else 20304 # Determine the default libpath from the value encoded in an 20305 # empty executable. 20306 if test set = "${lt_cv_aix_libpath+set}"; then 20307 aix_libpath=$lt_cv_aix_libpath 20308 else 20309 if ${lt_cv_aix_libpath__CXX+:} false; then : 20310 $as_echo_n "(cached) " >&6 20311 else 20312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20313 /* end confdefs.h. */ 20314 20315 int 20316 main () 20317 { 20318 20319 ; 20320 return 0; 20321 } 20322 _ACEOF 20323 if ac_fn_cxx_try_link "$LINENO"; then : 20324 20325 lt_aix_libpath_sed=' 20326 /Import File Strings/,/^$/ { 20327 /^0/ { 20328 s/^0 *\([^ ]*\) *$/\1/ 20329 p 20330 } 20331 }' 20332 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20333 # Check for a 64-bit object if we didn't find anything. 20334 if test -z "$lt_cv_aix_libpath__CXX"; then 20335 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20336 fi 20337 fi 20338 rm -f core conftest.err conftest.$ac_objext \ 20339 conftest$ac_exeext conftest.$ac_ext 20340 if test -z "$lt_cv_aix_libpath__CXX"; then 20341 lt_cv_aix_libpath__CXX=/usr/lib:/lib 20342 fi 20343 20344 fi 20345 20346 aix_libpath=$lt_cv_aix_libpath__CXX 20347 fi 20348 20349 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 20350 # Warning - without using the other run time loading flags, 20351 # -berok will link without error, but may produce a broken library. 20352 no_undefined_flag_CXX=' $wl-bernotok' 20353 allow_undefined_flag_CXX=' $wl-berok' 20354 if test yes = "$with_gnu_ld"; then 20355 # We only use this code for GNU lds that support --whole-archive. 20356 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 20357 else 20358 # Exported symbols can be pulled into shared objects from archives 20359 whole_archive_flag_spec_CXX='$convenience' 20360 fi 20361 archive_cmds_need_lc_CXX=yes 20362 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 20363 # -brtl affects multiple linker settings, -berok does not and is overridden later 20364 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 20365 if test svr4 != "$with_aix_soname"; then 20366 # This is similar to how AIX traditionally builds its shared 20367 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 20368 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 20369 fi 20370 if test aix != "$with_aix_soname"; then 20371 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 20372 else 20373 # used by -dlpreopen to get the symbols 20374 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 20375 fi 20376 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 20377 fi 20378 fi 20379 ;; 20380 20381 beos*) 20382 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 20383 allow_undefined_flag_CXX=unsupported 20384 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 20385 # support --undefined. This deserves some investigation. FIXME 20386 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20387 else 20388 ld_shlibs_CXX=no 20389 fi 20390 ;; 20391 20392 chorus*) 20393 case $cc_basename in 20394 *) 20395 # FIXME: insert proper C++ library support 20396 ld_shlibs_CXX=no 20397 ;; 20398 esac 20399 ;; 20400 20401 cygwin* | mingw* | pw32* | cegcc*) 20402 case $GXX,$cc_basename in 20403 ,cl* | no,cl*) 20404 # Native MSVC 20405 # hardcode_libdir_flag_spec is actually meaningless, as there is 20406 # no search path for DLLs. 20407 hardcode_libdir_flag_spec_CXX=' ' 20408 allow_undefined_flag_CXX=unsupported 20409 always_export_symbols_CXX=yes 20410 file_list_spec_CXX='@' 20411 # Tell ltmain to make .lib files, not .a files. 20412 libext=lib 20413 # Tell ltmain to make .dll files, not .so files. 20414 shrext_cmds=.dll 20415 # FIXME: Setting linknames here is a bad hack. 20416 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 20417 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 20418 cp "$export_symbols" "$output_objdir/$soname.def"; 20419 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 20420 else 20421 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 20422 fi~ 20423 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 20424 linknames=' 20425 # The linker will not automatically build a static lib if we build a DLL. 20426 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 20427 enable_shared_with_static_runtimes_CXX=yes 20428 # Don't use ranlib 20429 old_postinstall_cmds_CXX='chmod 644 $oldlib' 20430 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 20431 lt_tool_outputfile="@TOOL_OUTPUT@"~ 20432 case $lt_outputfile in 20433 *.exe|*.EXE) ;; 20434 *) 20435 lt_outputfile=$lt_outputfile.exe 20436 lt_tool_outputfile=$lt_tool_outputfile.exe 20437 ;; 20438 esac~ 20439 func_to_tool_file "$lt_outputfile"~ 20440 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 20441 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 20442 $RM "$lt_outputfile.manifest"; 20443 fi' 20444 ;; 20445 *) 20446 # g++ 20447 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 20448 # as there is no search path for DLLs. 20449 hardcode_libdir_flag_spec_CXX='-L$libdir' 20450 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 20451 allow_undefined_flag_CXX=unsupported 20452 always_export_symbols_CXX=no 20453 enable_shared_with_static_runtimes_CXX=yes 20454 20455 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 20456 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' 20457 # If the export-symbols file already is a .def file, use it as 20458 # is; otherwise, prepend EXPORTS... 20459 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 20460 cp $export_symbols $output_objdir/$soname.def; 20461 else 20462 echo EXPORTS > $output_objdir/$soname.def; 20463 cat $export_symbols >> $output_objdir/$soname.def; 20464 fi~ 20465 $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' 20466 else 20467 ld_shlibs_CXX=no 20468 fi 20469 ;; 20470 esac 20471 ;; 20472 darwin* | rhapsody*) 20473 20474 20475 archive_cmds_need_lc_CXX=no 20476 hardcode_direct_CXX=no 20477 hardcode_automatic_CXX=yes 20478 hardcode_shlibpath_var_CXX=unsupported 20479 if test yes = "$lt_cv_ld_force_load"; then 20480 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\"`' 20481 20482 else 20483 whole_archive_flag_spec_CXX='' 20484 fi 20485 link_all_deplibs_CXX=yes 20486 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 20487 case $cc_basename in 20488 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 20489 *) _lt_dar_can_shared=$GCC ;; 20490 esac 20491 if test yes = "$_lt_dar_can_shared"; then 20492 output_verbose_link_cmd=func_echo_all 20493 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" 20494 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 20495 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" 20496 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" 20497 if test yes != "$lt_cv_apple_cc_single_mod"; then 20498 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" 20499 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" 20500 fi 20501 20502 else 20503 ld_shlibs_CXX=no 20504 fi 20505 20506 ;; 20507 20508 os2*) 20509 hardcode_libdir_flag_spec_CXX='-L$libdir' 20510 hardcode_minus_L_CXX=yes 20511 allow_undefined_flag_CXX=unsupported 20512 shrext_cmds=.dll 20513 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20514 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20515 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20516 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20517 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 20518 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20519 emximp -o $lib $output_objdir/$libname.def' 20520 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20521 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20522 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20523 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20524 prefix_cmds="$SED"~ 20525 if test EXPORTS = "`$SED 1q $export_symbols`"; then 20526 prefix_cmds="$prefix_cmds -e 1d"; 20527 fi~ 20528 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 20529 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 20530 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20531 emximp -o $lib $output_objdir/$libname.def' 20532 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 20533 enable_shared_with_static_runtimes_CXX=yes 20534 ;; 20535 20536 dgux*) 20537 case $cc_basename in 20538 ec++*) 20539 # FIXME: insert proper C++ library support 20540 ld_shlibs_CXX=no 20541 ;; 20542 ghcx*) 20543 # Green Hills C++ Compiler 20544 # FIXME: insert proper C++ library support 20545 ld_shlibs_CXX=no 20546 ;; 20547 *) 20548 # FIXME: insert proper C++ library support 20549 ld_shlibs_CXX=no 20550 ;; 20551 esac 20552 ;; 20553 20554 freebsd2.*) 20555 # C++ shared libraries reported to be fairly broken before 20556 # switch to ELF 20557 ld_shlibs_CXX=no 20558 ;; 20559 20560 freebsd-elf*) 20561 archive_cmds_need_lc_CXX=no 20562 ;; 20563 20564 freebsd* | dragonfly*) 20565 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 20566 # conventions 20567 ld_shlibs_CXX=yes 20568 ;; 20569 20570 haiku*) 20571 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20572 link_all_deplibs_CXX=yes 20573 ;; 20574 20575 hpux9*) 20576 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 20577 hardcode_libdir_separator_CXX=: 20578 export_dynamic_flag_spec_CXX='$wl-E' 20579 hardcode_direct_CXX=yes 20580 hardcode_minus_L_CXX=yes # Not in the search PATH, 20581 # but as the default 20582 # location of the library. 20583 20584 case $cc_basename in 20585 CC*) 20586 # FIXME: insert proper C++ library support 20587 ld_shlibs_CXX=no 20588 ;; 20589 aCC*) 20590 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 20591 # Commands to make compiler produce verbose output that lists 20592 # what "hidden" libraries, object files and flags are used when 20593 # linking a shared library. 20594 # 20595 # There doesn't appear to be a way to prevent this compiler from 20596 # explicitly linking system object files so we need to strip them 20597 # from the output so that they don't get included in the library 20598 # dependencies. 20599 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"' 20600 ;; 20601 *) 20602 if test yes = "$GXX"; then 20603 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 20604 else 20605 # FIXME: insert proper C++ library support 20606 ld_shlibs_CXX=no 20607 fi 20608 ;; 20609 esac 20610 ;; 20611 20612 hpux10*|hpux11*) 20613 if test no = "$with_gnu_ld"; then 20614 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 20615 hardcode_libdir_separator_CXX=: 20616 20617 case $host_cpu in 20618 hppa*64*|ia64*) 20619 ;; 20620 *) 20621 export_dynamic_flag_spec_CXX='$wl-E' 20622 ;; 20623 esac 20624 fi 20625 case $host_cpu in 20626 hppa*64*|ia64*) 20627 hardcode_direct_CXX=no 20628 hardcode_shlibpath_var_CXX=no 20629 ;; 20630 *) 20631 hardcode_direct_CXX=yes 20632 hardcode_direct_absolute_CXX=yes 20633 hardcode_minus_L_CXX=yes # Not in the search PATH, 20634 # but as the default 20635 # location of the library. 20636 ;; 20637 esac 20638 20639 case $cc_basename in 20640 CC*) 20641 # FIXME: insert proper C++ library support 20642 ld_shlibs_CXX=no 20643 ;; 20644 aCC*) 20645 case $host_cpu in 20646 hppa*64*) 20647 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20648 ;; 20649 ia64*) 20650 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20651 ;; 20652 *) 20653 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20654 ;; 20655 esac 20656 # Commands to make compiler produce verbose output that lists 20657 # what "hidden" libraries, object files and flags are used when 20658 # linking a shared library. 20659 # 20660 # There doesn't appear to be a way to prevent this compiler from 20661 # explicitly linking system object files so we need to strip them 20662 # from the output so that they don't get included in the library 20663 # dependencies. 20664 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"' 20665 ;; 20666 *) 20667 if test yes = "$GXX"; then 20668 if test no = "$with_gnu_ld"; then 20669 case $host_cpu in 20670 hppa*64*) 20671 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20672 ;; 20673 ia64*) 20674 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20675 ;; 20676 *) 20677 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' 20678 ;; 20679 esac 20680 fi 20681 else 20682 # FIXME: insert proper C++ library support 20683 ld_shlibs_CXX=no 20684 fi 20685 ;; 20686 esac 20687 ;; 20688 20689 interix[3-9]*) 20690 hardcode_direct_CXX=no 20691 hardcode_shlibpath_var_CXX=no 20692 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 20693 export_dynamic_flag_spec_CXX='$wl-E' 20694 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 20695 # Instead, shared libraries are loaded at an image base (0x10000000 by 20696 # default) and relocated if they conflict, which is a slow very memory 20697 # consuming and fragmenting process. To avoid this, we pick a random, 20698 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 20699 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 20700 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' 20701 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' 20702 ;; 20703 irix5* | irix6*) 20704 case $cc_basename in 20705 CC*) 20706 # SGI C++ 20707 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' 20708 20709 # Archives containing C++ object files must be created using 20710 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 20711 # necessary to make sure instantiated templates are included 20712 # in the archive. 20713 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 20714 ;; 20715 *) 20716 if test yes = "$GXX"; then 20717 if test no = "$with_gnu_ld"; then 20718 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' 20719 else 20720 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' 20721 fi 20722 fi 20723 link_all_deplibs_CXX=yes 20724 ;; 20725 esac 20726 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 20727 hardcode_libdir_separator_CXX=: 20728 inherit_rpath_CXX=yes 20729 ;; 20730 20731 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 20732 case $cc_basename in 20733 KCC*) 20734 # Kuck and Associates, Inc. (KAI) C++ Compiler 20735 20736 # KCC will only create a shared library if the output file 20737 # ends with ".so" (or ".sl" for HP-UX), so rename the library 20738 # to its proper name (with version) after linking. 20739 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' 20740 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' 20741 # Commands to make compiler produce verbose output that lists 20742 # what "hidden" libraries, object files and flags are used when 20743 # linking a shared library. 20744 # 20745 # There doesn't appear to be a way to prevent this compiler from 20746 # explicitly linking system object files so we need to strip them 20747 # from the output so that they don't get included in the library 20748 # dependencies. 20749 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"' 20750 20751 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 20752 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 20753 20754 # Archives containing C++ object files must be created using 20755 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 20756 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 20757 ;; 20758 icpc* | ecpc* ) 20759 # Intel C++ 20760 with_gnu_ld=yes 20761 # version 8.0 and above of icpc choke on multiply defined symbols 20762 # if we add $predep_objects and $postdep_objects, however 7.1 and 20763 # earlier do not add the objects themselves. 20764 case `$CC -V 2>&1` in 20765 *"Version 7."*) 20766 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 20767 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' 20768 ;; 20769 *) # Version 8.0 or newer 20770 tmp_idyn= 20771 case $host_cpu in 20772 ia64*) tmp_idyn=' -i_dynamic';; 20773 esac 20774 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20775 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' 20776 ;; 20777 esac 20778 archive_cmds_need_lc_CXX=no 20779 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 20780 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 20781 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 20782 ;; 20783 pgCC* | pgcpp*) 20784 # Portland Group C++ compiler 20785 case `$CC -V` in 20786 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 20787 prelink_cmds_CXX='tpldir=Template.dir~ 20788 rm -rf $tpldir~ 20789 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 20790 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 20791 old_archive_cmds_CXX='tpldir=Template.dir~ 20792 rm -rf $tpldir~ 20793 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 20794 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 20795 $RANLIB $oldlib' 20796 archive_cmds_CXX='tpldir=Template.dir~ 20797 rm -rf $tpldir~ 20798 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 20799 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 20800 archive_expsym_cmds_CXX='tpldir=Template.dir~ 20801 rm -rf $tpldir~ 20802 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 20803 $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' 20804 ;; 20805 *) # Version 6 and above use weak symbols 20806 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 20807 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' 20808 ;; 20809 esac 20810 20811 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 20812 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 20813 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' 20814 ;; 20815 cxx*) 20816 # Compaq C++ 20817 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 20818 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' 20819 20820 runpath_var=LD_RUN_PATH 20821 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 20822 hardcode_libdir_separator_CXX=: 20823 20824 # Commands to make compiler produce verbose output that lists 20825 # what "hidden" libraries, object files and flags are used when 20826 # linking a shared library. 20827 # 20828 # There doesn't appear to be a way to prevent this compiler from 20829 # explicitly linking system object files so we need to strip them 20830 # from the output so that they don't get included in the library 20831 # dependencies. 20832 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' 20833 ;; 20834 xl* | mpixl* | bgxl*) 20835 # IBM XL 8.0 on PPC, with GNU ld 20836 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 20837 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 20838 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20839 if test yes = "$supports_anon_versioning"; then 20840 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 20841 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 20842 echo "local: *; };" >> $output_objdir/$libname.ver~ 20843 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 20844 fi 20845 ;; 20846 *) 20847 case `$CC -V 2>&1 | sed 5q` in 20848 *Sun\ C*) 20849 # Sun C++ 5.9 20850 no_undefined_flag_CXX=' -zdefs' 20851 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20852 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' 20853 hardcode_libdir_flag_spec_CXX='-R$libdir' 20854 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' 20855 compiler_needs_object_CXX=yes 20856 20857 # Not sure whether something based on 20858 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 20859 # would be better. 20860 output_verbose_link_cmd='func_echo_all' 20861 20862 # Archives containing C++ object files must be created using 20863 # "CC -xar", where "CC" is the Sun C++ compiler. This is 20864 # necessary to make sure instantiated templates are included 20865 # in the archive. 20866 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 20867 ;; 20868 esac 20869 ;; 20870 esac 20871 ;; 20872 20873 lynxos*) 20874 # FIXME: insert proper C++ library support 20875 ld_shlibs_CXX=no 20876 ;; 20877 20878 m88k*) 20879 # FIXME: insert proper C++ library support 20880 ld_shlibs_CXX=no 20881 ;; 20882 20883 mvs*) 20884 case $cc_basename in 20885 cxx*) 20886 # FIXME: insert proper C++ library support 20887 ld_shlibs_CXX=no 20888 ;; 20889 *) 20890 # FIXME: insert proper C++ library support 20891 ld_shlibs_CXX=no 20892 ;; 20893 esac 20894 ;; 20895 20896 netbsd*) 20897 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20898 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 20899 wlarc= 20900 hardcode_libdir_flag_spec_CXX='-R$libdir' 20901 hardcode_direct_CXX=yes 20902 hardcode_shlibpath_var_CXX=no 20903 fi 20904 # Workaround some broken pre-1.5 toolchains 20905 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 20906 ;; 20907 20908 *nto* | *qnx*) 20909 ld_shlibs_CXX=yes 20910 ;; 20911 20912 openbsd* | bitrig*) 20913 if test -f /usr/libexec/ld.so; then 20914 hardcode_direct_CXX=yes 20915 hardcode_shlibpath_var_CXX=no 20916 hardcode_direct_absolute_CXX=yes 20917 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 20918 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 20919 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 20920 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 20921 export_dynamic_flag_spec_CXX='$wl-E' 20922 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 20923 fi 20924 output_verbose_link_cmd=func_echo_all 20925 else 20926 ld_shlibs_CXX=no 20927 fi 20928 ;; 20929 20930 osf3* | osf4* | osf5*) 20931 case $cc_basename in 20932 KCC*) 20933 # Kuck and Associates, Inc. (KAI) C++ Compiler 20934 20935 # KCC will only create a shared library if the output file 20936 # ends with ".so" (or ".sl" for HP-UX), so rename the library 20937 # to its proper name (with version) after linking. 20938 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' 20939 20940 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 20941 hardcode_libdir_separator_CXX=: 20942 20943 # Archives containing C++ object files must be created using 20944 # the KAI C++ compiler. 20945 case $host in 20946 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 20947 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 20948 esac 20949 ;; 20950 RCC*) 20951 # Rational C++ 2.4.1 20952 # FIXME: insert proper C++ library support 20953 ld_shlibs_CXX=no 20954 ;; 20955 cxx*) 20956 case $host in 20957 osf3*) 20958 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 20959 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' 20960 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 20961 ;; 20962 *) 20963 allow_undefined_flag_CXX=' -expect_unresolved \*' 20964 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' 20965 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 20966 echo "-hidden">> $lib.exp~ 20967 $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~ 20968 $RM $lib.exp' 20969 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 20970 ;; 20971 esac 20972 20973 hardcode_libdir_separator_CXX=: 20974 20975 # Commands to make compiler produce verbose output that lists 20976 # what "hidden" libraries, object files and flags are used when 20977 # linking a shared library. 20978 # 20979 # There doesn't appear to be a way to prevent this compiler from 20980 # explicitly linking system object files so we need to strip them 20981 # from the output so that they don't get included in the library 20982 # dependencies. 20983 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"' 20984 ;; 20985 *) 20986 if test yes,no = "$GXX,$with_gnu_ld"; then 20987 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 20988 case $host in 20989 osf3*) 20990 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' 20991 ;; 20992 *) 20993 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' 20994 ;; 20995 esac 20996 20997 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 20998 hardcode_libdir_separator_CXX=: 20999 21000 # Commands to make compiler produce verbose output that lists 21001 # what "hidden" libraries, object files and flags are used when 21002 # linking a shared library. 21003 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 21004 21005 else 21006 # FIXME: insert proper C++ library support 21007 ld_shlibs_CXX=no 21008 fi 21009 ;; 21010 esac 21011 ;; 21012 21013 psos*) 21014 # FIXME: insert proper C++ library support 21015 ld_shlibs_CXX=no 21016 ;; 21017 21018 sunos4*) 21019 case $cc_basename in 21020 CC*) 21021 # Sun C++ 4.x 21022 # FIXME: insert proper C++ library support 21023 ld_shlibs_CXX=no 21024 ;; 21025 lcc*) 21026 # Lucid 21027 # FIXME: insert proper C++ library support 21028 ld_shlibs_CXX=no 21029 ;; 21030 *) 21031 # FIXME: insert proper C++ library support 21032 ld_shlibs_CXX=no 21033 ;; 21034 esac 21035 ;; 21036 21037 solaris*) 21038 case $cc_basename in 21039 CC* | sunCC*) 21040 # Sun C++ 4.2, 5.x and Centerline C++ 21041 archive_cmds_need_lc_CXX=yes 21042 no_undefined_flag_CXX=' -zdefs' 21043 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21044 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21045 $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' 21046 21047 hardcode_libdir_flag_spec_CXX='-R$libdir' 21048 hardcode_shlibpath_var_CXX=no 21049 case $host_os in 21050 solaris2.[0-5] | solaris2.[0-5].*) ;; 21051 *) 21052 # The compiler driver will combine and reorder linker options, 21053 # but understands '-z linker_flag'. 21054 # Supported since Solaris 2.6 (maybe 2.5.1?) 21055 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 21056 ;; 21057 esac 21058 link_all_deplibs_CXX=yes 21059 21060 output_verbose_link_cmd='func_echo_all' 21061 21062 # Archives containing C++ object files must be created using 21063 # "CC -xar", where "CC" is the Sun C++ compiler. This is 21064 # necessary to make sure instantiated templates are included 21065 # in the archive. 21066 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 21067 ;; 21068 gcx*) 21069 # Green Hills C++ Compiler 21070 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 21071 21072 # The C++ compiler must be used to create the archive. 21073 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 21074 ;; 21075 *) 21076 # GNU C++ compiler with Solaris linker 21077 if test yes,no = "$GXX,$with_gnu_ld"; then 21078 no_undefined_flag_CXX=' $wl-z ${wl}defs' 21079 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 21080 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 21081 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21082 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 21083 21084 # Commands to make compiler produce verbose output that lists 21085 # what "hidden" libraries, object files and flags are used when 21086 # linking a shared library. 21087 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 21088 else 21089 # g++ 2.7 appears to require '-G' NOT '-shared' on this 21090 # platform. 21091 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 21092 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21093 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 21094 21095 # Commands to make compiler produce verbose output that lists 21096 # what "hidden" libraries, object files and flags are used when 21097 # linking a shared library. 21098 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 21099 fi 21100 21101 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 21102 case $host_os in 21103 solaris2.[0-5] | solaris2.[0-5].*) ;; 21104 *) 21105 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 21106 ;; 21107 esac 21108 fi 21109 ;; 21110 esac 21111 ;; 21112 21113 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 21114 no_undefined_flag_CXX='$wl-z,text' 21115 archive_cmds_need_lc_CXX=no 21116 hardcode_shlibpath_var_CXX=no 21117 runpath_var='LD_RUN_PATH' 21118 21119 case $cc_basename in 21120 CC*) 21121 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21122 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21123 ;; 21124 *) 21125 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21126 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21127 ;; 21128 esac 21129 ;; 21130 21131 sysv5* | sco3.2v5* | sco5v6*) 21132 # Note: We CANNOT use -z defs as we might desire, because we do not 21133 # link with -lc, and that would cause any symbols used from libc to 21134 # always be unresolved, which means just about no library would 21135 # ever link correctly. If we're not using GNU ld we use -z text 21136 # though, which does catch some bad symbols but isn't as heavy-handed 21137 # as -z defs. 21138 no_undefined_flag_CXX='$wl-z,text' 21139 allow_undefined_flag_CXX='$wl-z,nodefs' 21140 archive_cmds_need_lc_CXX=no 21141 hardcode_shlibpath_var_CXX=no 21142 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 21143 hardcode_libdir_separator_CXX=':' 21144 link_all_deplibs_CXX=yes 21145 export_dynamic_flag_spec_CXX='$wl-Bexport' 21146 runpath_var='LD_RUN_PATH' 21147 21148 case $cc_basename in 21149 CC*) 21150 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21151 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21152 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 21153 '"$old_archive_cmds_CXX" 21154 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 21155 '"$reload_cmds_CXX" 21156 ;; 21157 *) 21158 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21159 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21160 ;; 21161 esac 21162 ;; 21163 21164 tandem*) 21165 case $cc_basename in 21166 NCC*) 21167 # NonStop-UX NCC 3.20 21168 # FIXME: insert proper C++ library support 21169 ld_shlibs_CXX=no 21170 ;; 21171 *) 21172 # FIXME: insert proper C++ library support 21173 ld_shlibs_CXX=no 21174 ;; 21175 esac 21176 ;; 21177 21178 vxworks*) 21179 # FIXME: insert proper C++ library support 21180 ld_shlibs_CXX=no 21181 ;; 21182 21183 *) 21184 # FIXME: insert proper C++ library support 21185 ld_shlibs_CXX=no 21186 ;; 21187 esac 21188 21189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 21190 $as_echo "$ld_shlibs_CXX" >&6; } 21191 test no = "$ld_shlibs_CXX" && can_build_shared=no 21192 21193 GCC_CXX=$GXX 21194 LD_CXX=$LD 21195 21196 ## CAVEAT EMPTOR: 21197 ## There is no encapsulation within the following macros, do not change 21198 ## the running order or otherwise move them around unless you know exactly 21199 ## what you are doing... 21200 # Dependencies to place before and after the object being linked: 21201 predep_objects_CXX= 21202 postdep_objects_CXX= 21203 predeps_CXX= 21204 postdeps_CXX= 21205 compiler_lib_search_path_CXX= 21206 21207 cat > conftest.$ac_ext <<_LT_EOF 21208 class Foo 21209 { 21210 public: 21211 Foo (void) { a = 0; } 21212 private: 21213 int a; 21214 }; 21215 _LT_EOF 21216 21217 21218 _lt_libdeps_save_CFLAGS=$CFLAGS 21219 case "$CC $CFLAGS " in #( 21220 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 21221 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 21222 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 21223 esac 21224 21225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 21226 (eval $ac_compile) 2>&5 21227 ac_status=$? 21228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21229 test $ac_status = 0; }; then 21230 # Parse the compiler output and extract the necessary 21231 # objects, libraries and library flags. 21232 21233 # Sentinel used to keep track of whether or not we are before 21234 # the conftest object file. 21235 pre_test_object_deps_done=no 21236 21237 for p in `eval "$output_verbose_link_cmd"`; do 21238 case $prev$p in 21239 21240 -L* | -R* | -l*) 21241 # Some compilers place space between "-{L,R}" and the path. 21242 # Remove the space. 21243 if test x-L = "$p" || 21244 test x-R = "$p"; then 21245 prev=$p 21246 continue 21247 fi 21248 21249 # Expand the sysroot to ease extracting the directories later. 21250 if test -z "$prev"; then 21251 case $p in 21252 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 21253 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 21254 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 21255 esac 21256 fi 21257 case $p in 21258 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 21259 esac 21260 if test no = "$pre_test_object_deps_done"; then 21261 case $prev in 21262 -L | -R) 21263 # Internal compiler library paths should come after those 21264 # provided the user. The postdeps already come after the 21265 # user supplied libs so there is no need to process them. 21266 if test -z "$compiler_lib_search_path_CXX"; then 21267 compiler_lib_search_path_CXX=$prev$p 21268 else 21269 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 21270 fi 21271 ;; 21272 # The "-l" case would never come before the object being 21273 # linked, so don't bother handling this case. 21274 esac 21275 else 21276 if test -z "$postdeps_CXX"; then 21277 postdeps_CXX=$prev$p 21278 else 21279 postdeps_CXX="${postdeps_CXX} $prev$p" 21280 fi 21281 fi 21282 prev= 21283 ;; 21284 21285 *.lto.$objext) ;; # Ignore GCC LTO objects 21286 *.$objext) 21287 # This assumes that the test object file only shows up 21288 # once in the compiler output. 21289 if test "$p" = "conftest.$objext"; then 21290 pre_test_object_deps_done=yes 21291 continue 21292 fi 21293 21294 if test no = "$pre_test_object_deps_done"; then 21295 if test -z "$predep_objects_CXX"; then 21296 predep_objects_CXX=$p 21297 else 21298 predep_objects_CXX="$predep_objects_CXX $p" 21299 fi 21300 else 21301 if test -z "$postdep_objects_CXX"; then 21302 postdep_objects_CXX=$p 21303 else 21304 postdep_objects_CXX="$postdep_objects_CXX $p" 21305 fi 21306 fi 21307 ;; 21308 21309 *) ;; # Ignore the rest. 21310 21311 esac 21312 done 21313 21314 # Clean up. 21315 rm -f a.out a.exe 21316 else 21317 echo "libtool.m4: error: problem compiling CXX test program" 21318 fi 21319 21320 $RM -f confest.$objext 21321 CFLAGS=$_lt_libdeps_save_CFLAGS 21322 21323 # PORTME: override above test on systems where it is broken 21324 case $host_os in 21325 interix[3-9]*) 21326 # Interix 3.5 installs completely hosed .la files for C++, so rather than 21327 # hack all around it, let's just trust "g++" to DTRT. 21328 predep_objects_CXX= 21329 postdep_objects_CXX= 21330 postdeps_CXX= 21331 ;; 21332 esac 21333 21334 21335 case " $postdeps_CXX " in 21336 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 21337 esac 21338 compiler_lib_search_dirs_CXX= 21339 if test -n "${compiler_lib_search_path_CXX}"; then 21340 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 21341 fi 21342 21343 21344 21345 21346 21347 21348 21349 21350 21351 21352 21353 21354 21355 21356 21357 21358 21359 21360 21361 21362 21363 21364 21365 21366 21367 21368 21369 21370 21371 21372 21373 lt_prog_compiler_wl_CXX= 21374 lt_prog_compiler_pic_CXX= 21375 lt_prog_compiler_static_CXX= 21376 21377 21378 # C++ specific cases for pic, static, wl, etc. 21379 if test yes = "$GXX"; then 21380 lt_prog_compiler_wl_CXX='-Wl,' 21381 lt_prog_compiler_static_CXX='-static' 21382 21383 case $host_os in 21384 aix*) 21385 # All AIX code is PIC. 21386 if test ia64 = "$host_cpu"; then 21387 # AIX 5 now supports IA64 processor 21388 lt_prog_compiler_static_CXX='-Bstatic' 21389 fi 21390 lt_prog_compiler_pic_CXX='-fPIC' 21391 ;; 21392 21393 amigaos*) 21394 case $host_cpu in 21395 powerpc) 21396 # see comment about AmigaOS4 .so support 21397 lt_prog_compiler_pic_CXX='-fPIC' 21398 ;; 21399 m68k) 21400 # FIXME: we need at least 68020 code to build shared libraries, but 21401 # adding the '-m68020' flag to GCC prevents building anything better, 21402 # like '-m68040'. 21403 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 21404 ;; 21405 esac 21406 ;; 21407 21408 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 21409 # PIC is the default for these OSes. 21410 ;; 21411 mingw* | cygwin* | os2* | pw32* | cegcc*) 21412 # This hack is so that the source file can tell whether it is being 21413 # built for inclusion in a dll (and should export symbols for example). 21414 # Although the cygwin gcc ignores -fPIC, still need this for old-style 21415 # (--disable-auto-import) libraries 21416 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 21417 case $host_os in 21418 os2*) 21419 lt_prog_compiler_static_CXX='$wl-static' 21420 ;; 21421 esac 21422 ;; 21423 darwin* | rhapsody*) 21424 # PIC is the default on this platform 21425 # Common symbols not allowed in MH_DYLIB files 21426 lt_prog_compiler_pic_CXX='-fno-common' 21427 ;; 21428 *djgpp*) 21429 # DJGPP does not support shared libraries at all 21430 lt_prog_compiler_pic_CXX= 21431 ;; 21432 haiku*) 21433 # PIC is the default for Haiku. 21434 # The "-static" flag exists, but is broken. 21435 lt_prog_compiler_static_CXX= 21436 ;; 21437 interix[3-9]*) 21438 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 21439 # Instead, we relocate shared libraries at runtime. 21440 ;; 21441 sysv4*MP*) 21442 if test -d /usr/nec; then 21443 lt_prog_compiler_pic_CXX=-Kconform_pic 21444 fi 21445 ;; 21446 hpux*) 21447 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 21448 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 21449 # sets the default TLS model and affects inlining. 21450 case $host_cpu in 21451 hppa*64*) 21452 ;; 21453 *) 21454 lt_prog_compiler_pic_CXX='-fPIC' 21455 ;; 21456 esac 21457 ;; 21458 *qnx* | *nto*) 21459 # QNX uses GNU C++, but need to define -shared option too, otherwise 21460 # it will coredump. 21461 lt_prog_compiler_pic_CXX='-fPIC -shared' 21462 ;; 21463 *) 21464 lt_prog_compiler_pic_CXX='-fPIC' 21465 ;; 21466 esac 21467 else 21468 case $host_os in 21469 aix[4-9]*) 21470 # All AIX code is PIC. 21471 if test ia64 = "$host_cpu"; then 21472 # AIX 5 now supports IA64 processor 21473 lt_prog_compiler_static_CXX='-Bstatic' 21474 else 21475 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 21476 fi 21477 ;; 21478 chorus*) 21479 case $cc_basename in 21480 cxch68*) 21481 # Green Hills C++ Compiler 21482 # _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" 21483 ;; 21484 esac 21485 ;; 21486 mingw* | cygwin* | os2* | pw32* | cegcc*) 21487 # This hack is so that the source file can tell whether it is being 21488 # built for inclusion in a dll (and should export symbols for example). 21489 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 21490 ;; 21491 dgux*) 21492 case $cc_basename in 21493 ec++*) 21494 lt_prog_compiler_pic_CXX='-KPIC' 21495 ;; 21496 ghcx*) 21497 # Green Hills C++ Compiler 21498 lt_prog_compiler_pic_CXX='-pic' 21499 ;; 21500 *) 21501 ;; 21502 esac 21503 ;; 21504 freebsd* | dragonfly*) 21505 # FreeBSD uses GNU C++ 21506 ;; 21507 hpux9* | hpux10* | hpux11*) 21508 case $cc_basename in 21509 CC*) 21510 lt_prog_compiler_wl_CXX='-Wl,' 21511 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 21512 if test ia64 != "$host_cpu"; then 21513 lt_prog_compiler_pic_CXX='+Z' 21514 fi 21515 ;; 21516 aCC*) 21517 lt_prog_compiler_wl_CXX='-Wl,' 21518 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 21519 case $host_cpu in 21520 hppa*64*|ia64*) 21521 # +Z the default 21522 ;; 21523 *) 21524 lt_prog_compiler_pic_CXX='+Z' 21525 ;; 21526 esac 21527 ;; 21528 *) 21529 ;; 21530 esac 21531 ;; 21532 interix*) 21533 # This is c89, which is MS Visual C++ (no shared libs) 21534 # Anyone wants to do a port? 21535 ;; 21536 irix5* | irix6* | nonstopux*) 21537 case $cc_basename in 21538 CC*) 21539 lt_prog_compiler_wl_CXX='-Wl,' 21540 lt_prog_compiler_static_CXX='-non_shared' 21541 # CC pic flag -KPIC is the default. 21542 ;; 21543 *) 21544 ;; 21545 esac 21546 ;; 21547 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 21548 case $cc_basename in 21549 KCC*) 21550 # KAI C++ Compiler 21551 lt_prog_compiler_wl_CXX='--backend -Wl,' 21552 lt_prog_compiler_pic_CXX='-fPIC' 21553 ;; 21554 ecpc* ) 21555 # old Intel C++ for x86_64, which still supported -KPIC. 21556 lt_prog_compiler_wl_CXX='-Wl,' 21557 lt_prog_compiler_pic_CXX='-KPIC' 21558 lt_prog_compiler_static_CXX='-static' 21559 ;; 21560 icpc* ) 21561 # Intel C++, used to be incompatible with GCC. 21562 # ICC 10 doesn't accept -KPIC any more. 21563 lt_prog_compiler_wl_CXX='-Wl,' 21564 lt_prog_compiler_pic_CXX='-fPIC' 21565 lt_prog_compiler_static_CXX='-static' 21566 ;; 21567 pgCC* | pgcpp*) 21568 # Portland Group C++ compiler 21569 lt_prog_compiler_wl_CXX='-Wl,' 21570 lt_prog_compiler_pic_CXX='-fpic' 21571 lt_prog_compiler_static_CXX='-Bstatic' 21572 ;; 21573 cxx*) 21574 # Compaq C++ 21575 # Make sure the PIC flag is empty. It appears that all Alpha 21576 # Linux and Compaq Tru64 Unix objects are PIC. 21577 lt_prog_compiler_pic_CXX= 21578 lt_prog_compiler_static_CXX='-non_shared' 21579 ;; 21580 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 21581 # IBM XL 8.0, 9.0 on PPC and BlueGene 21582 lt_prog_compiler_wl_CXX='-Wl,' 21583 lt_prog_compiler_pic_CXX='-qpic' 21584 lt_prog_compiler_static_CXX='-qstaticlink' 21585 ;; 21586 *) 21587 case `$CC -V 2>&1 | sed 5q` in 21588 *Sun\ C*) 21589 # Sun C++ 5.9 21590 lt_prog_compiler_pic_CXX='-KPIC' 21591 lt_prog_compiler_static_CXX='-Bstatic' 21592 lt_prog_compiler_wl_CXX='-Qoption ld ' 21593 ;; 21594 esac 21595 ;; 21596 esac 21597 ;; 21598 lynxos*) 21599 ;; 21600 m88k*) 21601 ;; 21602 mvs*) 21603 case $cc_basename in 21604 cxx*) 21605 lt_prog_compiler_pic_CXX='-W c,exportall' 21606 ;; 21607 *) 21608 ;; 21609 esac 21610 ;; 21611 netbsd*) 21612 ;; 21613 *qnx* | *nto*) 21614 # QNX uses GNU C++, but need to define -shared option too, otherwise 21615 # it will coredump. 21616 lt_prog_compiler_pic_CXX='-fPIC -shared' 21617 ;; 21618 osf3* | osf4* | osf5*) 21619 case $cc_basename in 21620 KCC*) 21621 lt_prog_compiler_wl_CXX='--backend -Wl,' 21622 ;; 21623 RCC*) 21624 # Rational C++ 2.4.1 21625 lt_prog_compiler_pic_CXX='-pic' 21626 ;; 21627 cxx*) 21628 # Digital/Compaq C++ 21629 lt_prog_compiler_wl_CXX='-Wl,' 21630 # Make sure the PIC flag is empty. It appears that all Alpha 21631 # Linux and Compaq Tru64 Unix objects are PIC. 21632 lt_prog_compiler_pic_CXX= 21633 lt_prog_compiler_static_CXX='-non_shared' 21634 ;; 21635 *) 21636 ;; 21637 esac 21638 ;; 21639 psos*) 21640 ;; 21641 solaris*) 21642 case $cc_basename in 21643 CC* | sunCC*) 21644 # Sun C++ 4.2, 5.x and Centerline C++ 21645 lt_prog_compiler_pic_CXX='-KPIC' 21646 lt_prog_compiler_static_CXX='-Bstatic' 21647 lt_prog_compiler_wl_CXX='-Qoption ld ' 21648 ;; 21649 gcx*) 21650 # Green Hills C++ Compiler 21651 lt_prog_compiler_pic_CXX='-PIC' 21652 ;; 21653 *) 21654 ;; 21655 esac 21656 ;; 21657 sunos4*) 21658 case $cc_basename in 21659 CC*) 21660 # Sun C++ 4.x 21661 lt_prog_compiler_pic_CXX='-pic' 21662 lt_prog_compiler_static_CXX='-Bstatic' 21663 ;; 21664 lcc*) 21665 # Lucid 21666 lt_prog_compiler_pic_CXX='-pic' 21667 ;; 21668 *) 21669 ;; 21670 esac 21671 ;; 21672 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 21673 case $cc_basename in 21674 CC*) 21675 lt_prog_compiler_wl_CXX='-Wl,' 21676 lt_prog_compiler_pic_CXX='-KPIC' 21677 lt_prog_compiler_static_CXX='-Bstatic' 21678 ;; 21679 esac 21680 ;; 21681 tandem*) 21682 case $cc_basename in 21683 NCC*) 21684 # NonStop-UX NCC 3.20 21685 lt_prog_compiler_pic_CXX='-KPIC' 21686 ;; 21687 *) 21688 ;; 21689 esac 21690 ;; 21691 vxworks*) 21692 ;; 21693 *) 21694 lt_prog_compiler_can_build_shared_CXX=no 21695 ;; 21696 esac 21697 fi 21698 21699 case $host_os in 21700 # For platforms that do not support PIC, -DPIC is meaningless: 21701 *djgpp*) 21702 lt_prog_compiler_pic_CXX= 21703 ;; 21704 *) 21705 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 21706 ;; 21707 esac 21708 21709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 21710 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 21711 if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 21712 $as_echo_n "(cached) " >&6 21713 else 21714 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 21715 fi 21716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 21717 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 21718 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 21719 21720 # 21721 # Check to make sure the PIC flag actually works. 21722 # 21723 if test -n "$lt_prog_compiler_pic_CXX"; then 21724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 21725 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 21726 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 21727 $as_echo_n "(cached) " >&6 21728 else 21729 lt_cv_prog_compiler_pic_works_CXX=no 21730 ac_outfile=conftest.$ac_objext 21731 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21732 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 21733 # Insert the option either (1) after the last *FLAGS variable, or 21734 # (2) before a word containing "conftest.", or (3) at the end. 21735 # Note that $ac_compile itself does not contain backslashes and begins 21736 # with a dollar sign (not a hyphen), so the echo should work correctly. 21737 # The option is referenced via a variable to avoid confusing sed. 21738 lt_compile=`echo "$ac_compile" | $SED \ 21739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 21740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21741 -e 's:$: $lt_compiler_flag:'` 21742 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 21743 (eval "$lt_compile" 2>conftest.err) 21744 ac_status=$? 21745 cat conftest.err >&5 21746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21747 if (exit $ac_status) && test -s "$ac_outfile"; then 21748 # The compiler can only warn and ignore the option if not recognized 21749 # So say no if there are warnings other than the usual output. 21750 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 21751 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 21752 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 21753 lt_cv_prog_compiler_pic_works_CXX=yes 21754 fi 21755 fi 21756 $RM conftest* 21757 21758 fi 21759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 21760 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 21761 21762 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 21763 case $lt_prog_compiler_pic_CXX in 21764 "" | " "*) ;; 21765 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 21766 esac 21767 else 21768 lt_prog_compiler_pic_CXX= 21769 lt_prog_compiler_can_build_shared_CXX=no 21770 fi 21771 21772 fi 21773 21774 21775 21776 21777 21778 # 21779 # Check to make sure the static flag actually works. 21780 # 21781 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 21783 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 21784 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 21785 $as_echo_n "(cached) " >&6 21786 else 21787 lt_cv_prog_compiler_static_works_CXX=no 21788 save_LDFLAGS=$LDFLAGS 21789 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 21790 echo "$lt_simple_link_test_code" > conftest.$ac_ext 21791 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 21792 # The linker can only warn and ignore the option if not recognized 21793 # So say no if there are warnings 21794 if test -s conftest.err; then 21795 # Append any errors to the config.log. 21796 cat conftest.err 1>&5 21797 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 21798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 21799 if diff conftest.exp conftest.er2 >/dev/null; then 21800 lt_cv_prog_compiler_static_works_CXX=yes 21801 fi 21802 else 21803 lt_cv_prog_compiler_static_works_CXX=yes 21804 fi 21805 fi 21806 $RM -r conftest* 21807 LDFLAGS=$save_LDFLAGS 21808 21809 fi 21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 21811 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 21812 21813 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 21814 : 21815 else 21816 lt_prog_compiler_static_CXX= 21817 fi 21818 21819 21820 21821 21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 21823 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 21824 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 21825 $as_echo_n "(cached) " >&6 21826 else 21827 lt_cv_prog_compiler_c_o_CXX=no 21828 $RM -r conftest 2>/dev/null 21829 mkdir conftest 21830 cd conftest 21831 mkdir out 21832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21833 21834 lt_compiler_flag="-o out/conftest2.$ac_objext" 21835 # Insert the option either (1) after the last *FLAGS variable, or 21836 # (2) before a word containing "conftest.", or (3) at the end. 21837 # Note that $ac_compile itself does not contain backslashes and begins 21838 # with a dollar sign (not a hyphen), so the echo should work correctly. 21839 lt_compile=`echo "$ac_compile" | $SED \ 21840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 21841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21842 -e 's:$: $lt_compiler_flag:'` 21843 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 21844 (eval "$lt_compile" 2>out/conftest.err) 21845 ac_status=$? 21846 cat out/conftest.err >&5 21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21848 if (exit $ac_status) && test -s out/conftest2.$ac_objext 21849 then 21850 # The compiler can only warn and ignore the option if not recognized 21851 # So say no if there are warnings 21852 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 21853 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 21854 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 21855 lt_cv_prog_compiler_c_o_CXX=yes 21856 fi 21857 fi 21858 chmod u+w . 2>&5 21859 $RM conftest* 21860 # SGI C++ compiler will create directory out/ii_files/ for 21861 # template instantiation 21862 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 21863 $RM out/* && rmdir out 21864 cd .. 21865 $RM -r conftest 21866 $RM conftest* 21867 21868 fi 21869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 21870 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 21871 21872 21873 21874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 21875 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 21876 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 21877 $as_echo_n "(cached) " >&6 21878 else 21879 lt_cv_prog_compiler_c_o_CXX=no 21880 $RM -r conftest 2>/dev/null 21881 mkdir conftest 21882 cd conftest 21883 mkdir out 21884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21885 21886 lt_compiler_flag="-o out/conftest2.$ac_objext" 21887 # Insert the option either (1) after the last *FLAGS variable, or 21888 # (2) before a word containing "conftest.", or (3) at the end. 21889 # Note that $ac_compile itself does not contain backslashes and begins 21890 # with a dollar sign (not a hyphen), so the echo should work correctly. 21891 lt_compile=`echo "$ac_compile" | $SED \ 21892 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 21893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21894 -e 's:$: $lt_compiler_flag:'` 21895 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 21896 (eval "$lt_compile" 2>out/conftest.err) 21897 ac_status=$? 21898 cat out/conftest.err >&5 21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21900 if (exit $ac_status) && test -s out/conftest2.$ac_objext 21901 then 21902 # The compiler can only warn and ignore the option if not recognized 21903 # So say no if there are warnings 21904 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 21905 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 21906 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 21907 lt_cv_prog_compiler_c_o_CXX=yes 21908 fi 21909 fi 21910 chmod u+w . 2>&5 21911 $RM conftest* 21912 # SGI C++ compiler will create directory out/ii_files/ for 21913 # template instantiation 21914 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 21915 $RM out/* && rmdir out 21916 cd .. 21917 $RM -r conftest 21918 $RM conftest* 21919 21920 fi 21921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 21922 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 21923 21924 21925 21926 21927 hard_links=nottested 21928 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 21929 # do not overwrite the value of need_locks provided by the user 21930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 21931 $as_echo_n "checking if we can lock with hard links... " >&6; } 21932 hard_links=yes 21933 $RM conftest* 21934 ln conftest.a conftest.b 2>/dev/null && hard_links=no 21935 touch conftest.a 21936 ln conftest.a conftest.b 2>&5 || hard_links=no 21937 ln conftest.a conftest.b 2>/dev/null && hard_links=no 21938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 21939 $as_echo "$hard_links" >&6; } 21940 if test no = "$hard_links"; then 21941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 21942 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 21943 need_locks=warn 21944 fi 21945 else 21946 need_locks=no 21947 fi 21948 21949 21950 21951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 21952 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 21953 21954 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 21955 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 21956 case $host_os in 21957 aix[4-9]*) 21958 # If we're using GNU nm, then we don't want the "-C" option. 21959 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 21960 # Without the "-l" option, or with the "-B" option, AIX nm treats 21961 # weak defined symbols like other global defined symbols, whereas 21962 # GNU nm marks them as "W". 21963 # While the 'weak' keyword is ignored in the Export File, we need 21964 # it in the Import File for the 'aix-soname' feature, so we have 21965 # to replace the "-B" option with "-P" for AIX nm. 21966 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 21967 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 21968 else 21969 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 21970 fi 21971 ;; 21972 pw32*) 21973 export_symbols_cmds_CXX=$ltdll_cmds 21974 ;; 21975 cygwin* | mingw* | cegcc*) 21976 case $cc_basename in 21977 cl*) 21978 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 21979 ;; 21980 *) 21981 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' 21982 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 21983 ;; 21984 esac 21985 ;; 21986 *) 21987 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 21988 ;; 21989 esac 21990 21991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 21992 $as_echo "$ld_shlibs_CXX" >&6; } 21993 test no = "$ld_shlibs_CXX" && can_build_shared=no 21994 21995 with_gnu_ld_CXX=$with_gnu_ld 21996 21997 21998 21999 22000 22001 22002 # 22003 # Do we need to explicitly link libc? 22004 # 22005 case "x$archive_cmds_need_lc_CXX" in 22006 x|xyes) 22007 # Assume -lc should be added 22008 archive_cmds_need_lc_CXX=yes 22009 22010 if test yes,yes = "$GCC,$enable_shared"; then 22011 case $archive_cmds_CXX in 22012 *'~'*) 22013 # FIXME: we may have to deal with multi-command sequences. 22014 ;; 22015 '$CC '*) 22016 # Test whether the compiler implicitly links with -lc since on some 22017 # systems, -lgcc has to come before -lc. If gcc already passes -lc 22018 # to ld, don't add -lc before -lgcc. 22019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 22020 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 22021 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 22022 $as_echo_n "(cached) " >&6 22023 else 22024 $RM conftest* 22025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22026 22027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 22028 (eval $ac_compile) 2>&5 22029 ac_status=$? 22030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22031 test $ac_status = 0; } 2>conftest.err; then 22032 soname=conftest 22033 lib=conftest 22034 libobjs=conftest.$ac_objext 22035 deplibs= 22036 wl=$lt_prog_compiler_wl_CXX 22037 pic_flag=$lt_prog_compiler_pic_CXX 22038 compiler_flags=-v 22039 linker_flags=-v 22040 verstring= 22041 output_objdir=. 22042 libname=conftest 22043 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 22044 allow_undefined_flag_CXX= 22045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 22046 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 22047 ac_status=$? 22048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22049 test $ac_status = 0; } 22050 then 22051 lt_cv_archive_cmds_need_lc_CXX=no 22052 else 22053 lt_cv_archive_cmds_need_lc_CXX=yes 22054 fi 22055 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 22056 else 22057 cat conftest.err 1>&5 22058 fi 22059 $RM conftest* 22060 22061 fi 22062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 22063 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 22064 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 22065 ;; 22066 esac 22067 fi 22068 ;; 22069 esac 22070 22071 22072 22073 22074 22075 22076 22077 22078 22079 22080 22081 22082 22083 22084 22085 22086 22087 22088 22089 22090 22091 22092 22093 22094 22095 22096 22097 22098 22099 22100 22101 22102 22103 22104 22105 22106 22107 22108 22109 22110 22111 22112 22113 22114 22115 22116 22117 22118 22119 22120 22121 22122 22123 22124 22125 22126 22127 22128 22129 22130 22131 22132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 22133 $as_echo_n "checking dynamic linker characteristics... " >&6; } 22134 22135 library_names_spec= 22136 libname_spec='lib$name' 22137 soname_spec= 22138 shrext_cmds=.so 22139 postinstall_cmds= 22140 postuninstall_cmds= 22141 finish_cmds= 22142 finish_eval= 22143 shlibpath_var= 22144 shlibpath_overrides_runpath=unknown 22145 version_type=none 22146 dynamic_linker="$host_os ld.so" 22147 sys_lib_dlsearch_path_spec="/lib /usr/lib" 22148 need_lib_prefix=unknown 22149 hardcode_into_libs=no 22150 22151 # when you set need_version to no, make sure it does not cause -set_version 22152 # flags to be left without arguments 22153 need_version=unknown 22154 22155 22156 22157 case $host_os in 22158 aix3*) 22159 version_type=linux # correct to gnu/linux during the next big refactor 22160 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 22161 shlibpath_var=LIBPATH 22162 22163 # AIX 3 has no versioning support, so we append a major version to the name. 22164 soname_spec='$libname$release$shared_ext$major' 22165 ;; 22166 22167 aix[4-9]*) 22168 version_type=linux # correct to gnu/linux during the next big refactor 22169 need_lib_prefix=no 22170 need_version=no 22171 hardcode_into_libs=yes 22172 if test ia64 = "$host_cpu"; then 22173 # AIX 5 supports IA64 22174 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 22175 shlibpath_var=LD_LIBRARY_PATH 22176 else 22177 # With GCC up to 2.95.x, collect2 would create an import file 22178 # for dependence libraries. The import file would start with 22179 # the line '#! .'. This would cause the generated library to 22180 # depend on '.', always an invalid library. This was fixed in 22181 # development snapshots of GCC prior to 3.0. 22182 case $host_os in 22183 aix4 | aix4.[01] | aix4.[01].*) 22184 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 22185 echo ' yes ' 22186 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 22187 : 22188 else 22189 can_build_shared=no 22190 fi 22191 ;; 22192 esac 22193 # Using Import Files as archive members, it is possible to support 22194 # filename-based versioning of shared library archives on AIX. While 22195 # this would work for both with and without runtime linking, it will 22196 # prevent static linking of such archives. So we do filename-based 22197 # shared library versioning with .so extension only, which is used 22198 # when both runtime linking and shared linking is enabled. 22199 # Unfortunately, runtime linking may impact performance, so we do 22200 # not want this to be the default eventually. Also, we use the 22201 # versioned .so libs for executables only if there is the -brtl 22202 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 22203 # To allow for filename-based versioning support, we need to create 22204 # libNAME.so.V as an archive file, containing: 22205 # *) an Import File, referring to the versioned filename of the 22206 # archive as well as the shared archive member, telling the 22207 # bitwidth (32 or 64) of that shared object, and providing the 22208 # list of exported symbols of that shared object, eventually 22209 # decorated with the 'weak' keyword 22210 # *) the shared object with the F_LOADONLY flag set, to really avoid 22211 # it being seen by the linker. 22212 # At run time we better use the real file rather than another symlink, 22213 # but for link time we create the symlink libNAME.so -> libNAME.so.V 22214 22215 case $with_aix_soname,$aix_use_runtimelinking in 22216 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 22217 # soname into executable. Probably we can add versioning support to 22218 # collect2, so additional links can be useful in future. 22219 aix,yes) # traditional libtool 22220 dynamic_linker='AIX unversionable lib.so' 22221 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 22222 # instead of lib<name>.a to let people know that these are not 22223 # typical AIX shared libraries. 22224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22225 ;; 22226 aix,no) # traditional AIX only 22227 dynamic_linker='AIX lib.a(lib.so.V)' 22228 # We preserve .a as extension for shared libraries through AIX4.2 22229 # and later when we are not doing run time linking. 22230 library_names_spec='$libname$release.a $libname.a' 22231 soname_spec='$libname$release$shared_ext$major' 22232 ;; 22233 svr4,*) # full svr4 only 22234 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 22235 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 22236 # We do not specify a path in Import Files, so LIBPATH fires. 22237 shlibpath_overrides_runpath=yes 22238 ;; 22239 *,yes) # both, prefer svr4 22240 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 22241 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 22242 # unpreferred sharedlib libNAME.a needs extra handling 22243 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 22244 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 22245 # We do not specify a path in Import Files, so LIBPATH fires. 22246 shlibpath_overrides_runpath=yes 22247 ;; 22248 *,no) # both, prefer aix 22249 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 22250 library_names_spec='$libname$release.a $libname.a' 22251 soname_spec='$libname$release$shared_ext$major' 22252 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 22253 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 22254 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 22255 ;; 22256 esac 22257 shlibpath_var=LIBPATH 22258 fi 22259 ;; 22260 22261 amigaos*) 22262 case $host_cpu in 22263 powerpc) 22264 # Since July 2007 AmigaOS4 officially supports .so libraries. 22265 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 22266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22267 ;; 22268 m68k) 22269 library_names_spec='$libname.ixlibrary $libname.a' 22270 # Create ${libname}_ixlibrary.a entries in /sys/libs. 22271 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 22272 ;; 22273 esac 22274 ;; 22275 22276 beos*) 22277 library_names_spec='$libname$shared_ext' 22278 dynamic_linker="$host_os ld.so" 22279 shlibpath_var=LIBRARY_PATH 22280 ;; 22281 22282 bsdi[45]*) 22283 version_type=linux # correct to gnu/linux during the next big refactor 22284 need_version=no 22285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22286 soname_spec='$libname$release$shared_ext$major' 22287 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 22288 shlibpath_var=LD_LIBRARY_PATH 22289 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 22290 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 22291 # the default ld.so.conf also contains /usr/contrib/lib and 22292 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 22293 # libtool to hard-code these into programs 22294 ;; 22295 22296 cygwin* | mingw* | pw32* | cegcc*) 22297 version_type=windows 22298 shrext_cmds=.dll 22299 need_version=no 22300 need_lib_prefix=no 22301 22302 case $GCC,$cc_basename in 22303 yes,*) 22304 # gcc 22305 library_names_spec='$libname.dll.a' 22306 # DLL is installed to $(libdir)/../bin by postinstall_cmds 22307 postinstall_cmds='base_file=`basename \$file`~ 22308 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 22309 dldir=$destdir/`dirname \$dlpath`~ 22310 test -d \$dldir || mkdir -p \$dldir~ 22311 $install_prog $dir/$dlname \$dldir/$dlname~ 22312 chmod a+x \$dldir/$dlname~ 22313 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 22314 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 22315 fi' 22316 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 22317 dlpath=$dir/\$dldll~ 22318 $RM \$dlpath' 22319 shlibpath_overrides_runpath=yes 22320 22321 case $host_os in 22322 cygwin*) 22323 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 22324 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22325 22326 ;; 22327 mingw* | cegcc*) 22328 # MinGW DLLs use traditional 'lib' prefix 22329 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22330 ;; 22331 pw32*) 22332 # pw32 DLLs use 'pw' prefix rather than 'lib' 22333 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22334 ;; 22335 esac 22336 dynamic_linker='Win32 ld.exe' 22337 ;; 22338 22339 *,cl*) 22340 # Native MSVC 22341 libname_spec='$name' 22342 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22343 library_names_spec='$libname.dll.lib' 22344 22345 case $build_os in 22346 mingw*) 22347 sys_lib_search_path_spec= 22348 lt_save_ifs=$IFS 22349 IFS=';' 22350 for lt_path in $LIB 22351 do 22352 IFS=$lt_save_ifs 22353 # Let DOS variable expansion print the short 8.3 style file name. 22354 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 22355 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 22356 done 22357 IFS=$lt_save_ifs 22358 # Convert to MSYS style. 22359 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 22360 ;; 22361 cygwin*) 22362 # Convert to unix form, then to dos form, then back to unix form 22363 # but this time dos style (no spaces!) so that the unix form looks 22364 # like /cygdrive/c/PROGRA~1:/cygdr... 22365 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 22366 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 22367 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 22368 ;; 22369 *) 22370 sys_lib_search_path_spec=$LIB 22371 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 22372 # It is most probably a Windows format PATH. 22373 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 22374 else 22375 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 22376 fi 22377 # FIXME: find the short name or the path components, as spaces are 22378 # common. (e.g. "Program Files" -> "PROGRA~1") 22379 ;; 22380 esac 22381 22382 # DLL is installed to $(libdir)/../bin by postinstall_cmds 22383 postinstall_cmds='base_file=`basename \$file`~ 22384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 22385 dldir=$destdir/`dirname \$dlpath`~ 22386 test -d \$dldir || mkdir -p \$dldir~ 22387 $install_prog $dir/$dlname \$dldir/$dlname' 22388 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 22389 dlpath=$dir/\$dldll~ 22390 $RM \$dlpath' 22391 shlibpath_overrides_runpath=yes 22392 dynamic_linker='Win32 link.exe' 22393 ;; 22394 22395 *) 22396 # Assume MSVC wrapper 22397 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 22398 dynamic_linker='Win32 ld.exe' 22399 ;; 22400 esac 22401 # FIXME: first we should search . and the directory the executable is in 22402 shlibpath_var=PATH 22403 ;; 22404 22405 darwin* | rhapsody*) 22406 dynamic_linker="$host_os dyld" 22407 version_type=darwin 22408 need_lib_prefix=no 22409 need_version=no 22410 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 22411 soname_spec='$libname$release$major$shared_ext' 22412 shlibpath_overrides_runpath=yes 22413 shlibpath_var=DYLD_LIBRARY_PATH 22414 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 22415 22416 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 22417 ;; 22418 22419 dgux*) 22420 version_type=linux # correct to gnu/linux during the next big refactor 22421 need_lib_prefix=no 22422 need_version=no 22423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22424 soname_spec='$libname$release$shared_ext$major' 22425 shlibpath_var=LD_LIBRARY_PATH 22426 ;; 22427 22428 freebsd* | dragonfly*) 22429 # DragonFly does not have aout. When/if they implement a new 22430 # versioning mechanism, adjust this. 22431 if test -x /usr/bin/objformat; then 22432 objformat=`/usr/bin/objformat` 22433 else 22434 case $host_os in 22435 freebsd[23].*) objformat=aout ;; 22436 *) objformat=elf ;; 22437 esac 22438 fi 22439 version_type=freebsd-$objformat 22440 case $version_type in 22441 freebsd-elf*) 22442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22443 soname_spec='$libname$release$shared_ext$major' 22444 need_version=no 22445 need_lib_prefix=no 22446 ;; 22447 freebsd-*) 22448 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 22449 need_version=yes 22450 ;; 22451 esac 22452 shlibpath_var=LD_LIBRARY_PATH 22453 case $host_os in 22454 freebsd2.*) 22455 shlibpath_overrides_runpath=yes 22456 ;; 22457 freebsd3.[01]* | freebsdelf3.[01]*) 22458 shlibpath_overrides_runpath=yes 22459 hardcode_into_libs=yes 22460 ;; 22461 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 22462 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 22463 shlibpath_overrides_runpath=no 22464 hardcode_into_libs=yes 22465 ;; 22466 *) # from 4.6 on, and DragonFly 22467 shlibpath_overrides_runpath=yes 22468 hardcode_into_libs=yes 22469 ;; 22470 esac 22471 ;; 22472 22473 haiku*) 22474 version_type=linux # correct to gnu/linux during the next big refactor 22475 need_lib_prefix=no 22476 need_version=no 22477 dynamic_linker="$host_os runtime_loader" 22478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22479 soname_spec='$libname$release$shared_ext$major' 22480 shlibpath_var=LIBRARY_PATH 22481 shlibpath_overrides_runpath=no 22482 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 22483 hardcode_into_libs=yes 22484 ;; 22485 22486 hpux9* | hpux10* | hpux11*) 22487 # Give a soname corresponding to the major version so that dld.sl refuses to 22488 # link against other versions. 22489 version_type=sunos 22490 need_lib_prefix=no 22491 need_version=no 22492 case $host_cpu in 22493 ia64*) 22494 shrext_cmds='.so' 22495 hardcode_into_libs=yes 22496 dynamic_linker="$host_os dld.so" 22497 shlibpath_var=LD_LIBRARY_PATH 22498 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 22499 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22500 soname_spec='$libname$release$shared_ext$major' 22501 if test 32 = "$HPUX_IA64_MODE"; then 22502 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 22503 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 22504 else 22505 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 22506 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 22507 fi 22508 ;; 22509 hppa*64*) 22510 shrext_cmds='.sl' 22511 hardcode_into_libs=yes 22512 dynamic_linker="$host_os dld.sl" 22513 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 22514 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 22515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22516 soname_spec='$libname$release$shared_ext$major' 22517 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 22518 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22519 ;; 22520 *) 22521 shrext_cmds='.sl' 22522 dynamic_linker="$host_os dld.sl" 22523 shlibpath_var=SHLIB_PATH 22524 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 22525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22526 soname_spec='$libname$release$shared_ext$major' 22527 ;; 22528 esac 22529 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 22530 postinstall_cmds='chmod 555 $lib' 22531 # or fails outright, so override atomically: 22532 install_override_mode=555 22533 ;; 22534 22535 interix[3-9]*) 22536 version_type=linux # correct to gnu/linux during the next big refactor 22537 need_lib_prefix=no 22538 need_version=no 22539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22540 soname_spec='$libname$release$shared_ext$major' 22541 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 22542 shlibpath_var=LD_LIBRARY_PATH 22543 shlibpath_overrides_runpath=no 22544 hardcode_into_libs=yes 22545 ;; 22546 22547 irix5* | irix6* | nonstopux*) 22548 case $host_os in 22549 nonstopux*) version_type=nonstopux ;; 22550 *) 22551 if test yes = "$lt_cv_prog_gnu_ld"; then 22552 version_type=linux # correct to gnu/linux during the next big refactor 22553 else 22554 version_type=irix 22555 fi ;; 22556 esac 22557 need_lib_prefix=no 22558 need_version=no 22559 soname_spec='$libname$release$shared_ext$major' 22560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 22561 case $host_os in 22562 irix5* | nonstopux*) 22563 libsuff= shlibsuff= 22564 ;; 22565 *) 22566 case $LD in # libtool.m4 will add one of these switches to LD 22567 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 22568 libsuff= shlibsuff= libmagic=32-bit;; 22569 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 22570 libsuff=32 shlibsuff=N32 libmagic=N32;; 22571 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 22572 libsuff=64 shlibsuff=64 libmagic=64-bit;; 22573 *) libsuff= shlibsuff= libmagic=never-match;; 22574 esac 22575 ;; 22576 esac 22577 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 22578 shlibpath_overrides_runpath=no 22579 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 22580 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 22581 hardcode_into_libs=yes 22582 ;; 22583 22584 # No shared lib support for Linux oldld, aout, or coff. 22585 linux*oldld* | linux*aout* | linux*coff*) 22586 dynamic_linker=no 22587 ;; 22588 22589 linux*android*) 22590 version_type=none # Android doesn't support versioned libraries. 22591 need_lib_prefix=no 22592 need_version=no 22593 library_names_spec='$libname$release$shared_ext' 22594 soname_spec='$libname$release$shared_ext' 22595 finish_cmds= 22596 shlibpath_var=LD_LIBRARY_PATH 22597 shlibpath_overrides_runpath=yes 22598 22599 # This implies no fast_install, which is unacceptable. 22600 # Some rework will be needed to allow for fast_install 22601 # before this can be enabled. 22602 hardcode_into_libs=yes 22603 22604 dynamic_linker='Android linker' 22605 # Don't embed -rpath directories since the linker doesn't support them. 22606 hardcode_libdir_flag_spec_CXX='-L$libdir' 22607 ;; 22608 22609 # This must be glibc/ELF. 22610 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 22611 version_type=linux # correct to gnu/linux during the next big refactor 22612 need_lib_prefix=no 22613 need_version=no 22614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22615 soname_spec='$libname$release$shared_ext$major' 22616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 22617 shlibpath_var=LD_LIBRARY_PATH 22618 shlibpath_overrides_runpath=no 22619 22620 # Some binutils ld are patched to set DT_RUNPATH 22621 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 22622 $as_echo_n "(cached) " >&6 22623 else 22624 lt_cv_shlibpath_overrides_runpath=no 22625 save_LDFLAGS=$LDFLAGS 22626 save_libdir=$libdir 22627 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 22628 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 22629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22630 /* end confdefs.h. */ 22631 22632 int 22633 main () 22634 { 22635 22636 ; 22637 return 0; 22638 } 22639 _ACEOF 22640 if ac_fn_cxx_try_link "$LINENO"; then : 22641 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 22642 lt_cv_shlibpath_overrides_runpath=yes 22643 fi 22644 fi 22645 rm -f core conftest.err conftest.$ac_objext \ 22646 conftest$ac_exeext conftest.$ac_ext 22647 LDFLAGS=$save_LDFLAGS 22648 libdir=$save_libdir 22649 22650 fi 22651 22652 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 22653 22654 # This implies no fast_install, which is unacceptable. 22655 # Some rework will be needed to allow for fast_install 22656 # before this can be enabled. 22657 hardcode_into_libs=yes 22658 22659 # Ideally, we could use ldconfig to report *all* directores which are 22660 # searched for libraries, however this is still not possible. Aside from not 22661 # being certain /sbin/ldconfig is available, command 22662 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 22663 # even though it is searched at run-time. Try to do the best guess by 22664 # appending ld.so.conf contents (and includes) to the search path. 22665 if test -f /etc/ld.so.conf; then 22666 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' ' '` 22667 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 22668 fi 22669 22670 # We used to test for /lib/ld.so.1 and disable shared libraries on 22671 # powerpc, because MkLinux only supported shared libraries with the 22672 # GNU dynamic linker. Since this was broken with cross compilers, 22673 # most powerpc-linux boxes support dynamic linking these days and 22674 # people can always --disable-shared, the test was removed, and we 22675 # assume the GNU/Linux dynamic linker is in use. 22676 dynamic_linker='GNU/Linux ld.so' 22677 ;; 22678 22679 netbsd*) 22680 version_type=sunos 22681 need_lib_prefix=no 22682 need_version=no 22683 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 22684 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 22685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 22686 dynamic_linker='NetBSD (a.out) ld.so' 22687 else 22688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22689 soname_spec='$libname$release$shared_ext$major' 22690 dynamic_linker='NetBSD ld.elf_so' 22691 fi 22692 shlibpath_var=LD_LIBRARY_PATH 22693 shlibpath_overrides_runpath=yes 22694 hardcode_into_libs=yes 22695 ;; 22696 22697 newsos6) 22698 version_type=linux # correct to gnu/linux during the next big refactor 22699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22700 shlibpath_var=LD_LIBRARY_PATH 22701 shlibpath_overrides_runpath=yes 22702 ;; 22703 22704 *nto* | *qnx*) 22705 version_type=qnx 22706 need_lib_prefix=no 22707 need_version=no 22708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22709 soname_spec='$libname$release$shared_ext$major' 22710 shlibpath_var=LD_LIBRARY_PATH 22711 shlibpath_overrides_runpath=no 22712 hardcode_into_libs=yes 22713 dynamic_linker='ldqnx.so' 22714 ;; 22715 22716 openbsd* | bitrig*) 22717 version_type=sunos 22718 sys_lib_dlsearch_path_spec=/usr/lib 22719 need_lib_prefix=no 22720 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 22721 need_version=no 22722 else 22723 need_version=yes 22724 fi 22725 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 22726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 22727 shlibpath_var=LD_LIBRARY_PATH 22728 shlibpath_overrides_runpath=yes 22729 ;; 22730 22731 os2*) 22732 libname_spec='$name' 22733 version_type=windows 22734 shrext_cmds=.dll 22735 need_version=no 22736 need_lib_prefix=no 22737 # OS/2 can only load a DLL with a base name of 8 characters or less. 22738 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 22739 v=$($ECHO $release$versuffix | tr -d .-); 22740 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 22741 $ECHO $n$v`$shared_ext' 22742 library_names_spec='${libname}_dll.$libext' 22743 dynamic_linker='OS/2 ld.exe' 22744 shlibpath_var=BEGINLIBPATH 22745 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 22746 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22747 postinstall_cmds='base_file=`basename \$file`~ 22748 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 22749 dldir=$destdir/`dirname \$dlpath`~ 22750 test -d \$dldir || mkdir -p \$dldir~ 22751 $install_prog $dir/$dlname \$dldir/$dlname~ 22752 chmod a+x \$dldir/$dlname~ 22753 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 22754 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 22755 fi' 22756 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 22757 dlpath=$dir/\$dldll~ 22758 $RM \$dlpath' 22759 ;; 22760 22761 osf3* | osf4* | osf5*) 22762 version_type=osf 22763 need_lib_prefix=no 22764 need_version=no 22765 soname_spec='$libname$release$shared_ext$major' 22766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22767 shlibpath_var=LD_LIBRARY_PATH 22768 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 22769 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22770 ;; 22771 22772 rdos*) 22773 dynamic_linker=no 22774 ;; 22775 22776 solaris*) 22777 version_type=linux # correct to gnu/linux during the next big refactor 22778 need_lib_prefix=no 22779 need_version=no 22780 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22781 soname_spec='$libname$release$shared_ext$major' 22782 shlibpath_var=LD_LIBRARY_PATH 22783 shlibpath_overrides_runpath=yes 22784 hardcode_into_libs=yes 22785 # ldd complains unless libraries are executable 22786 postinstall_cmds='chmod +x $lib' 22787 ;; 22788 22789 sunos4*) 22790 version_type=sunos 22791 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 22792 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 22793 shlibpath_var=LD_LIBRARY_PATH 22794 shlibpath_overrides_runpath=yes 22795 if test yes = "$with_gnu_ld"; then 22796 need_lib_prefix=no 22797 fi 22798 need_version=yes 22799 ;; 22800 22801 sysv4 | sysv4.3*) 22802 version_type=linux # correct to gnu/linux during the next big refactor 22803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22804 soname_spec='$libname$release$shared_ext$major' 22805 shlibpath_var=LD_LIBRARY_PATH 22806 case $host_vendor in 22807 sni) 22808 shlibpath_overrides_runpath=no 22809 need_lib_prefix=no 22810 runpath_var=LD_RUN_PATH 22811 ;; 22812 siemens) 22813 need_lib_prefix=no 22814 ;; 22815 motorola) 22816 need_lib_prefix=no 22817 need_version=no 22818 shlibpath_overrides_runpath=no 22819 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 22820 ;; 22821 esac 22822 ;; 22823 22824 sysv4*MP*) 22825 if test -d /usr/nec; then 22826 version_type=linux # correct to gnu/linux during the next big refactor 22827 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 22828 soname_spec='$libname$shared_ext.$major' 22829 shlibpath_var=LD_LIBRARY_PATH 22830 fi 22831 ;; 22832 22833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 22834 version_type=sco 22835 need_lib_prefix=no 22836 need_version=no 22837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 22838 soname_spec='$libname$release$shared_ext$major' 22839 shlibpath_var=LD_LIBRARY_PATH 22840 shlibpath_overrides_runpath=yes 22841 hardcode_into_libs=yes 22842 if test yes = "$with_gnu_ld"; then 22843 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 22844 else 22845 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 22846 case $host_os in 22847 sco3.2v5*) 22848 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 22849 ;; 22850 esac 22851 fi 22852 sys_lib_dlsearch_path_spec='/usr/lib' 22853 ;; 22854 22855 tpf*) 22856 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 22857 version_type=linux # correct to gnu/linux during the next big refactor 22858 need_lib_prefix=no 22859 need_version=no 22860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22861 shlibpath_var=LD_LIBRARY_PATH 22862 shlibpath_overrides_runpath=no 22863 hardcode_into_libs=yes 22864 ;; 22865 22866 uts4*) 22867 version_type=linux # correct to gnu/linux during the next big refactor 22868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22869 soname_spec='$libname$release$shared_ext$major' 22870 shlibpath_var=LD_LIBRARY_PATH 22871 ;; 22872 22873 *) 22874 dynamic_linker=no 22875 ;; 22876 esac 22877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 22878 $as_echo "$dynamic_linker" >&6; } 22879 test no = "$dynamic_linker" && can_build_shared=no 22880 22881 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 22882 if test yes = "$GCC"; then 22883 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 22884 fi 22885 22886 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 22887 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 22888 fi 22889 22890 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 22891 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 22892 fi 22893 22894 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 22895 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 22896 22897 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 22898 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 22899 22900 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 22901 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 22902 22903 22904 22905 22906 22907 22908 22909 22910 22911 22912 22913 22914 22915 22916 22917 22918 22919 22920 22921 22922 22923 22924 22925 22926 22927 22928 22929 22930 22931 22932 22933 22934 22935 22936 22937 22938 22939 22940 22941 22942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 22943 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 22944 hardcode_action_CXX= 22945 if test -n "$hardcode_libdir_flag_spec_CXX" || 22946 test -n "$runpath_var_CXX" || 22947 test yes = "$hardcode_automatic_CXX"; then 22948 22949 # We can hardcode non-existent directories. 22950 if test no != "$hardcode_direct_CXX" && 22951 # If the only mechanism to avoid hardcoding is shlibpath_var, we 22952 # have to relink, otherwise we might link with an installed library 22953 # when we should be linking with a yet-to-be-installed one 22954 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 22955 test no != "$hardcode_minus_L_CXX"; then 22956 # Linking always hardcodes the temporary library directory. 22957 hardcode_action_CXX=relink 22958 else 22959 # We can link without hardcoding, and we can hardcode nonexisting dirs. 22960 hardcode_action_CXX=immediate 22961 fi 22962 else 22963 # We cannot hardcode anything, or else we can only hardcode existing 22964 # directories. 22965 hardcode_action_CXX=unsupported 22966 fi 22967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 22968 $as_echo "$hardcode_action_CXX" >&6; } 22969 22970 if test relink = "$hardcode_action_CXX" || 22971 test yes = "$inherit_rpath_CXX"; then 22972 # Fast installation is not supported 22973 enable_fast_install=no 22974 elif test yes = "$shlibpath_overrides_runpath" || 22975 test no = "$enable_shared"; then 22976 # Fast installation is not necessary 22977 enable_fast_install=needless 22978 fi 22979 22980 22981 22982 22983 22984 22985 22986 fi # test -n "$compiler" 22987 22988 CC=$lt_save_CC 22989 CFLAGS=$lt_save_CFLAGS 22990 LDCXX=$LD 22991 LD=$lt_save_LD 22992 GCC=$lt_save_GCC 22993 with_gnu_ld=$lt_save_with_gnu_ld 22994 lt_cv_path_LDCXX=$lt_cv_path_LD 22995 lt_cv_path_LD=$lt_save_path_LD 22996 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 22997 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 22998 fi # test yes != "$_lt_caught_CXX_error" 22999 23000 ac_ext=c 23001 ac_cpp='$CPP $CPPFLAGS' 23002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23004 ac_compiler_gnu=$ac_cv_c_compiler_gnu 23005 23006 23007 23008 23009 23010 23011 23012 23013 23014 23015 23016 23017 23018 23019 23020 ac_config_commands="$ac_config_commands libtool" 23021 23022 23023 23024 23025 # Only expand once: 23026 23027 23028 23029 # Generate an error here if attempting to build both shared and static when 23030 # $libname.a is in $library_names_spec (as mentioned above), rather than 23031 # wait for ar or ld to fail. 23032 # 23033 if test "$enable_shared" = yes && test "$enable_static" = yes; then 23034 case $library_names_spec in 23035 *libname.a*) 23036 as_fn_error $? "cannot create both shared and static libraries on this system, --disable one of the two" "$LINENO" 5 23037 ;; 23038 esac 23039 fi 23040 23041 if test "$enable_static" = yes; then 23042 ENABLE_STATIC_TRUE= 23043 ENABLE_STATIC_FALSE='#' 23044 else 23045 ENABLE_STATIC_TRUE='#' 23046 ENABLE_STATIC_FALSE= 23047 fi 23048 23049 23050 23051 # Many of these library and header checks are for the benefit of 23052 # supplementary programs. libgmp doesn't use anything too weird. 23053 23054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 23055 $as_echo_n "checking for ANSI C header files... " >&6; } 23056 if ${ac_cv_header_stdc+:} false; then : 23057 $as_echo_n "(cached) " >&6 23058 else 23059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23060 /* end confdefs.h. */ 23061 #include <stdlib.h> 23062 #include <stdarg.h> 23063 #include <string.h> 23064 #include <float.h> 23065 23066 int 23067 main () 23068 { 23069 23070 ; 23071 return 0; 23072 } 23073 _ACEOF 23074 if ac_fn_c_try_compile "$LINENO"; then : 23075 ac_cv_header_stdc=yes 23076 else 23077 ac_cv_header_stdc=no 23078 fi 23079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23080 23081 if test $ac_cv_header_stdc = yes; then 23082 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 23083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23084 /* end confdefs.h. */ 23085 #include <string.h> 23086 23087 _ACEOF 23088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23089 $EGREP "memchr" >/dev/null 2>&1; then : 23090 23091 else 23092 ac_cv_header_stdc=no 23093 fi 23094 rm -f conftest* 23095 23096 fi 23097 23098 if test $ac_cv_header_stdc = yes; then 23099 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 23100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23101 /* end confdefs.h. */ 23102 #include <stdlib.h> 23103 23104 _ACEOF 23105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23106 $EGREP "free" >/dev/null 2>&1; then : 23107 23108 else 23109 ac_cv_header_stdc=no 23110 fi 23111 rm -f conftest* 23112 23113 fi 23114 23115 if test $ac_cv_header_stdc = yes; then 23116 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 23117 if test "$cross_compiling" = yes; then : 23118 : 23119 else 23120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23121 /* end confdefs.h. */ 23122 #include <ctype.h> 23123 #include <stdlib.h> 23124 #if ((' ' & 0x0FF) == 0x020) 23125 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 23126 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 23127 #else 23128 # define ISLOWER(c) \ 23129 (('a' <= (c) && (c) <= 'i') \ 23130 || ('j' <= (c) && (c) <= 'r') \ 23131 || ('s' <= (c) && (c) <= 'z')) 23132 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 23133 #endif 23134 23135 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 23136 int 23137 main () 23138 { 23139 int i; 23140 for (i = 0; i < 256; i++) 23141 if (XOR (islower (i), ISLOWER (i)) 23142 || toupper (i) != TOUPPER (i)) 23143 return 2; 23144 return 0; 23145 } 23146 _ACEOF 23147 if ac_fn_c_try_run "$LINENO"; then : 23148 23149 else 23150 ac_cv_header_stdc=no 23151 fi 23152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23153 conftest.$ac_objext conftest.beam conftest.$ac_ext 23154 fi 23155 23156 fi 23157 fi 23158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 23159 $as_echo "$ac_cv_header_stdc" >&6; } 23160 if test $ac_cv_header_stdc = yes; then 23161 23162 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 23163 23164 fi 23165 23166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 23167 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 23168 if ${ac_cv_header_time+:} false; then : 23169 $as_echo_n "(cached) " >&6 23170 else 23171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23172 /* end confdefs.h. */ 23173 #include <sys/types.h> 23174 #include <sys/time.h> 23175 #include <time.h> 23176 23177 int 23178 main () 23179 { 23180 if ((struct tm *) 0) 23181 return 0; 23182 ; 23183 return 0; 23184 } 23185 _ACEOF 23186 if ac_fn_c_try_compile "$LINENO"; then : 23187 ac_cv_header_time=yes 23188 else 23189 ac_cv_header_time=no 23190 fi 23191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23192 fi 23193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 23194 $as_echo "$ac_cv_header_time" >&6; } 23195 if test $ac_cv_header_time = yes; then 23196 23197 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 23198 23199 fi 23200 23201 23202 # Reasons for testing: 23203 # float.h - not in SunOS bundled cc 23204 # invent.h - IRIX specific 23205 # langinfo.h - X/Open standard only, not in djgpp for instance 23206 # locale.h - old systems won't have this 23207 # nl_types.h - X/Open standard only, not in djgpp for instance 23208 # (usually langinfo.h gives nl_item etc, but not on netbsd 1.4.1) 23209 # sys/attributes.h - IRIX specific 23210 # sys/iograph.h - IRIX specific 23211 # sys/mman.h - not in Cray Unicos 23212 # sys/param.h - not in mingw 23213 # sys/processor.h - solaris specific, though also present in macos 23214 # sys/pstat.h - HPUX specific 23215 # sys/resource.h - not in mingw 23216 # sys/sysctl.h - not in mingw 23217 # sys/sysinfo.h - OSF specific 23218 # sys/syssgi.h - IRIX specific 23219 # sys/systemcfg.h - AIX specific 23220 # sys/time.h - autoconf suggests testing, don't know anywhere without it 23221 # sys/times.h - not in mingw 23222 # machine/hal_sysinfo.h - OSF specific 23223 # 23224 # inttypes.h, stdint.h, unistd.h and sys/types.h are already in the autoconf 23225 # default tests 23226 # 23227 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 23228 do : 23229 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23230 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23231 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23232 cat >>confdefs.h <<_ACEOF 23233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23234 _ACEOF 23235 23236 fi 23237 23238 done 23239 23240 23241 # On SunOS, sys/resource.h needs sys/time.h (for struct timeval) 23242 for ac_header in sys/resource.h 23243 do : 23244 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#if TIME_WITH_SYS_TIME 23245 # include <sys/time.h> 23246 # include <time.h> 23247 #else 23248 # if HAVE_SYS_TIME_H 23249 # include <sys/time.h> 23250 # else 23251 # include <time.h> 23252 # endif 23253 #endif 23254 " 23255 if test "x$ac_cv_header_sys_resource_h" = xyes; then : 23256 cat >>confdefs.h <<_ACEOF 23257 #define HAVE_SYS_RESOURCE_H 1 23258 _ACEOF 23259 23260 fi 23261 23262 done 23263 23264 23265 # On NetBSD and OpenBSD, sys/sysctl.h needs sys/param.h for various constants 23266 for ac_header in sys/sysctl.h 23267 do : 23268 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if HAVE_SYS_PARAM_H 23269 # include <sys/param.h> 23270 #endif 23271 " 23272 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 23273 cat >>confdefs.h <<_ACEOF 23274 #define HAVE_SYS_SYSCTL_H 1 23275 _ACEOF 23276 23277 fi 23278 23279 done 23280 23281 23282 # On OSF 4.0, <machine/hal_sysinfo.h> must have <sys/sysinfo.h> for ulong_t 23283 for ac_header in machine/hal_sysinfo.h 23284 do : 23285 ac_fn_c_check_header_compile "$LINENO" "machine/hal_sysinfo.h" "ac_cv_header_machine_hal_sysinfo_h" "#if HAVE_SYS_SYSINFO_H 23286 # include <sys/sysinfo.h> 23287 #endif 23288 " 23289 if test "x$ac_cv_header_machine_hal_sysinfo_h" = xyes; then : 23290 cat >>confdefs.h <<_ACEOF 23291 #define HAVE_MACHINE_HAL_SYSINFO_H 1 23292 _ACEOF 23293 23294 fi 23295 23296 done 23297 23298 23299 # Reasons for testing: 23300 # optarg - not declared in mingw 23301 # fgetc, fscanf, ungetc, vfprintf - not declared in SunOS 4 23302 # sys_errlist, sys_nerr - not declared in SunOS 4 23303 # 23304 # optarg should be in unistd.h and the rest in stdio.h, both of which are 23305 # in the autoconf default includes. 23306 # 23307 # sys_errlist and sys_nerr are supposed to be in <errno.h> on SunOS according 23308 # to the man page (but aren't), in glibc they're in stdio.h. 23309 # 23310 ac_fn_c_check_decl "$LINENO" "fgetc" "ac_cv_have_decl_fgetc" "$ac_includes_default" 23311 if test "x$ac_cv_have_decl_fgetc" = xyes; then : 23312 ac_have_decl=1 23313 else 23314 ac_have_decl=0 23315 fi 23316 23317 cat >>confdefs.h <<_ACEOF 23318 #define HAVE_DECL_FGETC $ac_have_decl 23319 _ACEOF 23320 ac_fn_c_check_decl "$LINENO" "fscanf" "ac_cv_have_decl_fscanf" "$ac_includes_default" 23321 if test "x$ac_cv_have_decl_fscanf" = xyes; then : 23322 ac_have_decl=1 23323 else 23324 ac_have_decl=0 23325 fi 23326 23327 cat >>confdefs.h <<_ACEOF 23328 #define HAVE_DECL_FSCANF $ac_have_decl 23329 _ACEOF 23330 ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "$ac_includes_default" 23331 if test "x$ac_cv_have_decl_optarg" = xyes; then : 23332 ac_have_decl=1 23333 else 23334 ac_have_decl=0 23335 fi 23336 23337 cat >>confdefs.h <<_ACEOF 23338 #define HAVE_DECL_OPTARG $ac_have_decl 23339 _ACEOF 23340 ac_fn_c_check_decl "$LINENO" "ungetc" "ac_cv_have_decl_ungetc" "$ac_includes_default" 23341 if test "x$ac_cv_have_decl_ungetc" = xyes; then : 23342 ac_have_decl=1 23343 else 23344 ac_have_decl=0 23345 fi 23346 23347 cat >>confdefs.h <<_ACEOF 23348 #define HAVE_DECL_UNGETC $ac_have_decl 23349 _ACEOF 23350 ac_fn_c_check_decl "$LINENO" "vfprintf" "ac_cv_have_decl_vfprintf" "$ac_includes_default" 23351 if test "x$ac_cv_have_decl_vfprintf" = xyes; then : 23352 ac_have_decl=1 23353 else 23354 ac_have_decl=0 23355 fi 23356 23357 cat >>confdefs.h <<_ACEOF 23358 #define HAVE_DECL_VFPRINTF $ac_have_decl 23359 _ACEOF 23360 23361 ac_fn_c_check_decl "$LINENO" "sys_errlist" "ac_cv_have_decl_sys_errlist" "#include <stdio.h> 23362 #include <errno.h> 23363 " 23364 if test "x$ac_cv_have_decl_sys_errlist" = xyes; then : 23365 ac_have_decl=1 23366 else 23367 ac_have_decl=0 23368 fi 23369 23370 cat >>confdefs.h <<_ACEOF 23371 #define HAVE_DECL_SYS_ERRLIST $ac_have_decl 23372 _ACEOF 23373 ac_fn_c_check_decl "$LINENO" "sys_nerr" "ac_cv_have_decl_sys_nerr" "#include <stdio.h> 23374 #include <errno.h> 23375 " 23376 if test "x$ac_cv_have_decl_sys_nerr" = xyes; then : 23377 ac_have_decl=1 23378 else 23379 ac_have_decl=0 23380 fi 23381 23382 cat >>confdefs.h <<_ACEOF 23383 #define HAVE_DECL_SYS_NERR $ac_have_decl 23384 _ACEOF 23385 23386 23387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 23388 $as_echo_n "checking return type of signal handlers... " >&6; } 23389 if ${ac_cv_type_signal+:} false; then : 23390 $as_echo_n "(cached) " >&6 23391 else 23392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23393 /* end confdefs.h. */ 23394 #include <sys/types.h> 23395 #include <signal.h> 23396 23397 int 23398 main () 23399 { 23400 return *(signal (0, 0)) (0) == 1; 23401 ; 23402 return 0; 23403 } 23404 _ACEOF 23405 if ac_fn_c_try_compile "$LINENO"; then : 23406 ac_cv_type_signal=int 23407 else 23408 ac_cv_type_signal=void 23409 fi 23410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23411 fi 23412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 23413 $as_echo "$ac_cv_type_signal" >&6; } 23414 23415 cat >>confdefs.h <<_ACEOF 23416 #define RETSIGTYPE $ac_cv_type_signal 23417 _ACEOF 23418 23419 23420 23421 # Reasons for testing: 23422 # intmax_t - C99 23423 # long double - not in the HP bundled K&R cc 23424 # long long - only in reasonably recent compilers 23425 # ptrdiff_t - seems to be everywhere, maybe don't need to check this 23426 # quad_t - BSD specific 23427 # uint_least32_t - C99 23428 # 23429 # the default includes are sufficient for all these types 23430 # 23431 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 23432 if test "x$ac_cv_type_intmax_t" = xyes; then : 23433 23434 cat >>confdefs.h <<_ACEOF 23435 #define HAVE_INTMAX_T 1 23436 _ACEOF 23437 23438 23439 fi 23440 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default" 23441 if test "x$ac_cv_type_long_double" = xyes; then : 23442 23443 cat >>confdefs.h <<_ACEOF 23444 #define HAVE_LONG_DOUBLE 1 23445 _ACEOF 23446 23447 23448 fi 23449 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 23450 if test "x$ac_cv_type_long_long" = xyes; then : 23451 23452 cat >>confdefs.h <<_ACEOF 23453 #define HAVE_LONG_LONG 1 23454 _ACEOF 23455 23456 23457 fi 23458 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 23459 if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 23460 23461 cat >>confdefs.h <<_ACEOF 23462 #define HAVE_PTRDIFF_T 1 23463 _ACEOF 23464 23465 23466 fi 23467 ac_fn_c_check_type "$LINENO" "quad_t" "ac_cv_type_quad_t" "$ac_includes_default" 23468 if test "x$ac_cv_type_quad_t" = xyes; then : 23469 23470 cat >>confdefs.h <<_ACEOF 23471 #define HAVE_QUAD_T 1 23472 _ACEOF 23473 23474 23475 fi 23476 ac_fn_c_check_type "$LINENO" "uint_least32_t" "ac_cv_type_uint_least32_t" "$ac_includes_default" 23477 if test "x$ac_cv_type_uint_least32_t" = xyes; then : 23478 23479 cat >>confdefs.h <<_ACEOF 23480 #define HAVE_UINT_LEAST32_T 1 23481 _ACEOF 23482 23483 23484 fi 23485 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 23486 if test "x$ac_cv_type_intptr_t" = xyes; then : 23487 23488 cat >>confdefs.h <<_ACEOF 23489 #define HAVE_INTPTR_T 1 23490 _ACEOF 23491 23492 23493 fi 23494 23495 23496 # FIXME: Really want #ifndef __cplusplus around the #define volatile 23497 # replacement autoconf gives, since volatile is always available in C++. 23498 # But we don't use it in C++ currently. 23499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 23500 $as_echo_n "checking for working volatile... " >&6; } 23501 if ${ac_cv_c_volatile+:} false; then : 23502 $as_echo_n "(cached) " >&6 23503 else 23504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23505 /* end confdefs.h. */ 23506 23507 int 23508 main () 23509 { 23510 23511 volatile int x; 23512 int * volatile y = (int *) 0; 23513 return !x && !y; 23514 ; 23515 return 0; 23516 } 23517 _ACEOF 23518 if ac_fn_c_try_compile "$LINENO"; then : 23519 ac_cv_c_volatile=yes 23520 else 23521 ac_cv_c_volatile=no 23522 fi 23523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23524 fi 23525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 23526 $as_echo "$ac_cv_c_volatile" >&6; } 23527 if test $ac_cv_c_volatile = no; then 23528 23529 $as_echo "#define volatile /**/" >>confdefs.h 23530 23531 fi 23532 23533 23534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 23535 $as_echo_n "checking for C/C++ restrict keyword... " >&6; } 23536 if ${ac_cv_c_restrict+:} false; then : 23537 $as_echo_n "(cached) " >&6 23538 else 23539 ac_cv_c_restrict=no 23540 # The order here caters to the fact that C++ does not require restrict. 23541 for ac_kw in __restrict __restrict__ _Restrict restrict; do 23542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23543 /* end confdefs.h. */ 23544 typedef int * int_ptr; 23545 int foo (int_ptr $ac_kw ip) { 23546 return ip[0]; 23547 } 23548 int 23549 main () 23550 { 23551 int s[1]; 23552 int * $ac_kw t = s; 23553 t[0] = 0; 23554 return foo(t) 23555 ; 23556 return 0; 23557 } 23558 _ACEOF 23559 if ac_fn_c_try_compile "$LINENO"; then : 23560 ac_cv_c_restrict=$ac_kw 23561 fi 23562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23563 test "$ac_cv_c_restrict" != no && break 23564 done 23565 23566 fi 23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 23568 $as_echo "$ac_cv_c_restrict" >&6; } 23569 23570 case $ac_cv_c_restrict in 23571 restrict) ;; 23572 no) $as_echo "#define restrict /**/" >>confdefs.h 23573 ;; 23574 *) cat >>confdefs.h <<_ACEOF 23575 #define restrict $ac_cv_c_restrict 23576 _ACEOF 23577 ;; 23578 esac 23579 23580 23581 # GMP_C_STDARG 23582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((const)) works" >&5 23583 $as_echo_n "checking whether gcc __attribute__ ((const)) works... " >&6; } 23584 if ${gmp_cv_c_attribute_const+:} false; then : 23585 $as_echo_n "(cached) " >&6 23586 else 23587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23588 /* end confdefs.h. */ 23589 int foo (int x) __attribute__ ((const)); 23590 int 23591 main () 23592 { 23593 23594 ; 23595 return 0; 23596 } 23597 _ACEOF 23598 if ac_fn_c_try_compile "$LINENO"; then : 23599 gmp_cv_c_attribute_const=yes 23600 else 23601 gmp_cv_c_attribute_const=no 23602 fi 23603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23604 23605 fi 23606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_const" >&5 23607 $as_echo "$gmp_cv_c_attribute_const" >&6; } 23608 if test $gmp_cv_c_attribute_const = yes; then 23609 23610 $as_echo "#define HAVE_ATTRIBUTE_CONST 1" >>confdefs.h 23611 23612 fi 23613 23614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((malloc)) works" >&5 23615 $as_echo_n "checking whether gcc __attribute__ ((malloc)) works... " >&6; } 23616 if ${gmp_cv_c_attribute_malloc+:} false; then : 23617 $as_echo_n "(cached) " >&6 23618 else 23619 cat >conftest.c <<EOF 23620 void *foo (int x) __attribute__ ((malloc)); 23621 EOF 23622 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1" 23623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 23624 (eval $gmp_compile) 2>&5 23625 ac_status=$? 23626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23627 test $ac_status = 0; }; then 23628 if grep "attribute directive ignored" conftest.out >/dev/null; then 23629 gmp_cv_c_attribute_malloc=no 23630 else 23631 gmp_cv_c_attribute_malloc=yes 23632 fi 23633 else 23634 gmp_cv_c_attribute_malloc=no 23635 fi 23636 cat conftest.out >&5 23637 rm -f conftest* 23638 23639 fi 23640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_malloc" >&5 23641 $as_echo "$gmp_cv_c_attribute_malloc" >&6; } 23642 if test $gmp_cv_c_attribute_malloc = yes; then 23643 23644 $as_echo "#define HAVE_ATTRIBUTE_MALLOC 1" >>confdefs.h 23645 23646 fi 23647 23648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5 23649 $as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; } 23650 if ${gmp_cv_c_attribute_mode+:} false; then : 23651 $as_echo_n "(cached) " >&6 23652 else 23653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23654 /* end confdefs.h. */ 23655 typedef int SItype __attribute__ ((mode (SI))); 23656 int 23657 main () 23658 { 23659 23660 ; 23661 return 0; 23662 } 23663 _ACEOF 23664 if ac_fn_c_try_compile "$LINENO"; then : 23665 gmp_cv_c_attribute_mode=yes 23666 else 23667 gmp_cv_c_attribute_mode=no 23668 fi 23669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23670 23671 fi 23672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5 23673 $as_echo "$gmp_cv_c_attribute_mode" >&6; } 23674 if test $gmp_cv_c_attribute_mode = yes; then 23675 23676 $as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h 23677 23678 fi 23679 23680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((noreturn)) works" >&5 23681 $as_echo_n "checking whether gcc __attribute__ ((noreturn)) works... " >&6; } 23682 if ${gmp_cv_c_attribute_noreturn+:} false; then : 23683 $as_echo_n "(cached) " >&6 23684 else 23685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23686 /* end confdefs.h. */ 23687 void foo (int x) __attribute__ ((noreturn)); 23688 int 23689 main () 23690 { 23691 23692 ; 23693 return 0; 23694 } 23695 _ACEOF 23696 if ac_fn_c_try_compile "$LINENO"; then : 23697 gmp_cv_c_attribute_noreturn=yes 23698 else 23699 gmp_cv_c_attribute_noreturn=no 23700 fi 23701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23702 23703 fi 23704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_noreturn" >&5 23705 $as_echo "$gmp_cv_c_attribute_noreturn" >&6; } 23706 if test $gmp_cv_c_attribute_noreturn = yes; then 23707 23708 $as_echo "#define HAVE_ATTRIBUTE_NORETURN 1" >>confdefs.h 23709 23710 fi 23711 23712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc hidden aliases work" >&5 23713 $as_echo_n "checking whether gcc hidden aliases work... " >&6; } 23714 if ${gmp_cv_c_hidden_alias+:} false; then : 23715 $as_echo_n "(cached) " >&6 23716 else 23717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23718 /* end confdefs.h. */ 23719 void hid() __attribute__ ((visibility("hidden"))); 23720 void hid() {} 23721 void pub() __attribute__ ((alias("hid"))); 23722 int 23723 main () 23724 { 23725 23726 ; 23727 return 0; 23728 } 23729 _ACEOF 23730 if ac_fn_c_try_compile "$LINENO"; then : 23731 gmp_cv_c_hidden_alias=yes 23732 else 23733 gmp_cv_c_hidden_alias=no 23734 fi 23735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23736 23737 fi 23738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_hidden_alias" >&5 23739 $as_echo "$gmp_cv_c_hidden_alias" >&6; } 23740 if test $gmp_cv_c_hidden_alias = yes; then 23741 23742 $as_echo "#define HAVE_HIDDEN_ALIAS 1" >>confdefs.h 23743 23744 fi 23745 23746 23747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 23748 $as_echo_n "checking for inline... " >&6; } 23749 if ${ac_cv_c_inline+:} false; then : 23750 $as_echo_n "(cached) " >&6 23751 else 23752 ac_cv_c_inline=no 23753 for ac_kw in inline __inline__ __inline; do 23754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23755 /* end confdefs.h. */ 23756 #ifndef __cplusplus 23757 typedef int foo_t; 23758 static $ac_kw foo_t static_foo () {return 0; } 23759 $ac_kw foo_t foo () {return 0; } 23760 #endif 23761 23762 _ACEOF 23763 if ac_fn_c_try_compile "$LINENO"; then : 23764 ac_cv_c_inline=$ac_kw 23765 fi 23766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23767 test "$ac_cv_c_inline" != no && break 23768 done 23769 23770 fi 23771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 23772 $as_echo "$ac_cv_c_inline" >&6; } 23773 23774 case $ac_cv_c_inline in 23775 inline | yes) ;; 23776 *) 23777 case $ac_cv_c_inline in 23778 no) ac_val=;; 23779 *) ac_val=$ac_cv_c_inline;; 23780 esac 23781 cat >>confdefs.h <<_ACEOF 23782 #ifndef __cplusplus 23783 #define inline $ac_val 23784 #endif 23785 _ACEOF 23786 ;; 23787 esac 23788 23789 23790 case $ac_cv_c_inline in 23791 no) ;; 23792 *) 23793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23794 /* end confdefs.h. */ 23795 #define __GMP_WITHIN_CONFIGURE_INLINE 1 23796 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ 23797 #define GMP_NAIL_BITS $GMP_NAIL_BITS 23798 #define GMP_LIMB_BITS 123 23799 $DEFN_LONG_LONG_LIMB 23800 #include "$srcdir/gmp-h.in" 23801 23802 #ifndef __GMP_EXTERN_INLINE 23803 die die die 23804 #endif 23805 23806 int 23807 main () 23808 { 23809 23810 ; 23811 return 0; 23812 } 23813 _ACEOF 23814 if ac_fn_c_try_compile "$LINENO"; then : 23815 23816 else 23817 case $ac_cv_c_inline in 23818 yes) tmp_inline=inline ;; 23819 *) tmp_inline=$ac_cv_c_inline ;; 23820 esac 23821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5 23822 $as_echo "$as_me: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&2;} 23823 fi 23824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23825 ;; 23826 esac 23827 23828 23829 # from libtool 23830 LIBM= 23831 case $host in 23832 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 23833 # These system don't have libm, or don't need it 23834 ;; 23835 *-ncr-sysv4.3*) 23836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 23837 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } 23838 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : 23839 $as_echo_n "(cached) " >&6 23840 else 23841 ac_check_lib_save_LIBS=$LIBS 23842 LIBS="-lmw $LIBS" 23843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23844 /* end confdefs.h. */ 23845 23846 /* Override any GCC internal prototype to avoid an error. 23847 Use char because int might match the return type of a GCC 23848 builtin and then its argument prototype would still apply. */ 23849 #ifdef __cplusplus 23850 extern "C" 23851 #endif 23852 char _mwvalidcheckl (); 23853 int 23854 main () 23855 { 23856 return _mwvalidcheckl (); 23857 ; 23858 return 0; 23859 } 23860 _ACEOF 23861 if ac_fn_c_try_link "$LINENO"; then : 23862 ac_cv_lib_mw__mwvalidcheckl=yes 23863 else 23864 ac_cv_lib_mw__mwvalidcheckl=no 23865 fi 23866 rm -f core conftest.err conftest.$ac_objext \ 23867 conftest$ac_exeext conftest.$ac_ext 23868 LIBS=$ac_check_lib_save_LIBS 23869 fi 23870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 23871 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } 23872 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : 23873 LIBM=-lmw 23874 fi 23875 23876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 23877 $as_echo_n "checking for cos in -lm... " >&6; } 23878 if ${ac_cv_lib_m_cos+:} false; then : 23879 $as_echo_n "(cached) " >&6 23880 else 23881 ac_check_lib_save_LIBS=$LIBS 23882 LIBS="-lm $LIBS" 23883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23884 /* end confdefs.h. */ 23885 23886 /* Override any GCC internal prototype to avoid an error. 23887 Use char because int might match the return type of a GCC 23888 builtin and then its argument prototype would still apply. */ 23889 #ifdef __cplusplus 23890 extern "C" 23891 #endif 23892 char cos (); 23893 int 23894 main () 23895 { 23896 return cos (); 23897 ; 23898 return 0; 23899 } 23900 _ACEOF 23901 if ac_fn_c_try_link "$LINENO"; then : 23902 ac_cv_lib_m_cos=yes 23903 else 23904 ac_cv_lib_m_cos=no 23905 fi 23906 rm -f core conftest.err conftest.$ac_objext \ 23907 conftest$ac_exeext conftest.$ac_ext 23908 LIBS=$ac_check_lib_save_LIBS 23909 fi 23910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 23911 $as_echo "$ac_cv_lib_m_cos" >&6; } 23912 if test "x$ac_cv_lib_m_cos" = xyes; then : 23913 LIBM="$LIBM -lm" 23914 fi 23915 23916 ;; 23917 *) 23918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 23919 $as_echo_n "checking for cos in -lm... " >&6; } 23920 if ${ac_cv_lib_m_cos+:} false; then : 23921 $as_echo_n "(cached) " >&6 23922 else 23923 ac_check_lib_save_LIBS=$LIBS 23924 LIBS="-lm $LIBS" 23925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23926 /* end confdefs.h. */ 23927 23928 /* Override any GCC internal prototype to avoid an error. 23929 Use char because int might match the return type of a GCC 23930 builtin and then its argument prototype would still apply. */ 23931 #ifdef __cplusplus 23932 extern "C" 23933 #endif 23934 char cos (); 23935 int 23936 main () 23937 { 23938 return cos (); 23939 ; 23940 return 0; 23941 } 23942 _ACEOF 23943 if ac_fn_c_try_link "$LINENO"; then : 23944 ac_cv_lib_m_cos=yes 23945 else 23946 ac_cv_lib_m_cos=no 23947 fi 23948 rm -f core conftest.err conftest.$ac_objext \ 23949 conftest$ac_exeext conftest.$ac_ext 23950 LIBS=$ac_check_lib_save_LIBS 23951 fi 23952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 23953 $as_echo "$ac_cv_lib_m_cos" >&6; } 23954 if test "x$ac_cv_lib_m_cos" = xyes; then : 23955 LIBM=-lm 23956 fi 23957 23958 ;; 23959 esac 23960 23961 23962 23963 23964 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 23965 # for constant arguments. Useless! 23966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 23967 $as_echo_n "checking for working alloca.h... " >&6; } 23968 if ${gmp_cv_header_alloca+:} false; then : 23969 $as_echo_n "(cached) " >&6 23970 else 23971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23972 /* end confdefs.h. */ 23973 #include <alloca.h> 23974 int 23975 main () 23976 { 23977 char *p = (char *) alloca (2 * sizeof (int)); 23978 ; 23979 return 0; 23980 } 23981 _ACEOF 23982 if ac_fn_c_try_link "$LINENO"; then : 23983 gmp_cv_header_alloca=yes 23984 else 23985 gmp_cv_header_alloca=no 23986 fi 23987 rm -f core conftest.err conftest.$ac_objext \ 23988 conftest$ac_exeext conftest.$ac_ext 23989 fi 23990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_header_alloca" >&5 23991 $as_echo "$gmp_cv_header_alloca" >&6; } 23992 if test $gmp_cv_header_alloca = yes; then 23993 23994 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 23995 23996 fi 23997 23998 23999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca (via gmp-impl.h)" >&5 24000 $as_echo_n "checking for alloca (via gmp-impl.h)... " >&6; } 24001 if ${gmp_cv_func_alloca+:} false; then : 24002 $as_echo_n "(cached) " >&6 24003 else 24004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24005 /* end confdefs.h. */ 24006 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ 24007 #define GMP_NAIL_BITS $GMP_NAIL_BITS 24008 #define GMP_LIMB_BITS 123 24009 $DEFN_LONG_LONG_LIMB 24010 #include "$srcdir/gmp-h.in" 24011 24012 #include "$srcdir/gmp-impl.h" 24013 24014 int 24015 main () 24016 { 24017 char *p = (char *) alloca (1); 24018 ; 24019 return 0; 24020 } 24021 _ACEOF 24022 if ac_fn_c_try_link "$LINENO"; then : 24023 gmp_cv_func_alloca=yes 24024 else 24025 gmp_cv_func_alloca=no 24026 fi 24027 rm -f core conftest.err conftest.$ac_objext \ 24028 conftest$ac_exeext conftest.$ac_ext 24029 fi 24030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_alloca" >&5 24031 $as_echo "$gmp_cv_func_alloca" >&6; } 24032 if test $gmp_cv_func_alloca = yes; then 24033 24034 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 24035 24036 fi 24037 24038 24039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to allocate temporary memory" >&5 24040 $as_echo_n "checking how to allocate temporary memory... " >&6; } 24041 if ${gmp_cv_option_alloca+:} false; then : 24042 $as_echo_n "(cached) " >&6 24043 else 24044 case $enable_alloca in 24045 yes) 24046 gmp_cv_option_alloca=alloca 24047 ;; 24048 no) 24049 gmp_cv_option_alloca=malloc-reentrant 24050 ;; 24051 reentrant | notreentrant) 24052 case $gmp_cv_func_alloca in 24053 yes) gmp_cv_option_alloca=alloca ;; 24054 *) gmp_cv_option_alloca=malloc-$enable_alloca ;; 24055 esac 24056 ;; 24057 *) 24058 gmp_cv_option_alloca=$enable_alloca 24059 ;; 24060 esac 24061 24062 fi 24063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_option_alloca" >&5 24064 $as_echo "$gmp_cv_option_alloca" >&6; } 24065 24066 24067 24068 case $gmp_cv_option_alloca in 24069 alloca) 24070 if test $gmp_cv_func_alloca = no; then 24071 as_fn_error $? "--enable-alloca=alloca specified, but alloca not available" "$LINENO" 5 24072 fi 24073 $as_echo "#define WANT_TMP_ALLOCA 1" >>confdefs.h 24074 24075 TAL_OBJECT=tal-reent$U.lo 24076 ;; 24077 malloc-reentrant) 24078 $as_echo "#define WANT_TMP_REENTRANT 1" >>confdefs.h 24079 24080 TAL_OBJECT=tal-reent$U.lo 24081 ;; 24082 malloc-notreentrant) 24083 $as_echo "#define WANT_TMP_NOTREENTRANT 1" >>confdefs.h 24084 24085 TAL_OBJECT=tal-notreent$U.lo 24086 ;; 24087 debug) 24088 $as_echo "#define WANT_TMP_DEBUG 1" >>confdefs.h 24089 24090 TAL_OBJECT=tal-debug$U.lo 24091 ;; 24092 *) 24093 # checks at the start of configure.in should protect us 24094 as_fn_error $? "unrecognised --enable-alloca=$gmp_cv_option_alloca" "$LINENO" 5 24095 ;; 24096 esac 24097 24098 24099 24100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24101 /* end confdefs.h. */ 24102 #include <stdio.h> 24103 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ 24104 #define GMP_NAIL_BITS $GMP_NAIL_BITS 24105 #define GMP_LIMB_BITS 123 24106 $DEFN_LONG_LONG_LIMB 24107 #include "$srcdir/gmp-h.in" 24108 24109 #if ! _GMP_H_HAVE_FILE 24110 die die die 24111 #endif 24112 24113 int 24114 main () 24115 { 24116 24117 ; 24118 return 0; 24119 } 24120 _ACEOF 24121 if ac_fn_c_try_compile "$LINENO"; then : 24122 24123 else 24124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&5 24125 $as_echo "$as_me: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&2;} 24126 fi 24127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24128 24129 24130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 24131 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 24132 if ${ac_cv_c_bigendian+:} false; then : 24133 $as_echo_n "(cached) " >&6 24134 else 24135 ac_cv_c_bigendian=unknown 24136 # See if we're dealing with a universal compiler. 24137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24138 /* end confdefs.h. */ 24139 #ifndef __APPLE_CC__ 24140 not a universal capable compiler 24141 #endif 24142 typedef int dummy; 24143 24144 _ACEOF 24145 if ac_fn_c_try_compile "$LINENO"; then : 24146 24147 # Check for potential -arch flags. It is not universal unless 24148 # there are at least two -arch flags with different values. 24149 ac_arch= 24150 ac_prev= 24151 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 24152 if test -n "$ac_prev"; then 24153 case $ac_word in 24154 i?86 | x86_64 | ppc | ppc64) 24155 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 24156 ac_arch=$ac_word 24157 else 24158 ac_cv_c_bigendian=universal 24159 break 24160 fi 24161 ;; 24162 esac 24163 ac_prev= 24164 elif test "x$ac_word" = "x-arch"; then 24165 ac_prev=arch 24166 fi 24167 done 24168 fi 24169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24170 if test $ac_cv_c_bigendian = unknown; then 24171 # See if sys/param.h defines the BYTE_ORDER macro. 24172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24173 /* end confdefs.h. */ 24174 #include <sys/types.h> 24175 #include <sys/param.h> 24176 24177 int 24178 main () 24179 { 24180 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 24181 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 24182 && LITTLE_ENDIAN) 24183 bogus endian macros 24184 #endif 24185 24186 ; 24187 return 0; 24188 } 24189 _ACEOF 24190 if ac_fn_c_try_compile "$LINENO"; then : 24191 # It does; now see whether it defined to BIG_ENDIAN or not. 24192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24193 /* end confdefs.h. */ 24194 #include <sys/types.h> 24195 #include <sys/param.h> 24196 24197 int 24198 main () 24199 { 24200 #if BYTE_ORDER != BIG_ENDIAN 24201 not big endian 24202 #endif 24203 24204 ; 24205 return 0; 24206 } 24207 _ACEOF 24208 if ac_fn_c_try_compile "$LINENO"; then : 24209 ac_cv_c_bigendian=yes 24210 else 24211 ac_cv_c_bigendian=no 24212 fi 24213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24214 fi 24215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24216 fi 24217 if test $ac_cv_c_bigendian = unknown; then 24218 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 24219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24220 /* end confdefs.h. */ 24221 #include <limits.h> 24222 24223 int 24224 main () 24225 { 24226 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 24227 bogus endian macros 24228 #endif 24229 24230 ; 24231 return 0; 24232 } 24233 _ACEOF 24234 if ac_fn_c_try_compile "$LINENO"; then : 24235 # It does; now see whether it defined to _BIG_ENDIAN or not. 24236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24237 /* end confdefs.h. */ 24238 #include <limits.h> 24239 24240 int 24241 main () 24242 { 24243 #ifndef _BIG_ENDIAN 24244 not big endian 24245 #endif 24246 24247 ; 24248 return 0; 24249 } 24250 _ACEOF 24251 if ac_fn_c_try_compile "$LINENO"; then : 24252 ac_cv_c_bigendian=yes 24253 else 24254 ac_cv_c_bigendian=no 24255 fi 24256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24257 fi 24258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24259 fi 24260 if test $ac_cv_c_bigendian = unknown; then 24261 # Compile a test program. 24262 if test "$cross_compiling" = yes; then : 24263 # Try to guess by grepping values from an object file. 24264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24265 /* end confdefs.h. */ 24266 short int ascii_mm[] = 24267 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 24268 short int ascii_ii[] = 24269 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 24270 int use_ascii (int i) { 24271 return ascii_mm[i] + ascii_ii[i]; 24272 } 24273 short int ebcdic_ii[] = 24274 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 24275 short int ebcdic_mm[] = 24276 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 24277 int use_ebcdic (int i) { 24278 return ebcdic_mm[i] + ebcdic_ii[i]; 24279 } 24280 extern int foo; 24281 24282 int 24283 main () 24284 { 24285 return use_ascii (foo) == use_ebcdic (foo); 24286 ; 24287 return 0; 24288 } 24289 _ACEOF 24290 if ac_fn_c_try_compile "$LINENO"; then : 24291 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 24292 ac_cv_c_bigendian=yes 24293 fi 24294 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 24295 if test "$ac_cv_c_bigendian" = unknown; then 24296 ac_cv_c_bigendian=no 24297 else 24298 # finding both strings is unlikely to happen, but who knows? 24299 ac_cv_c_bigendian=unknown 24300 fi 24301 fi 24302 fi 24303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24304 else 24305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24306 /* end confdefs.h. */ 24307 $ac_includes_default 24308 int 24309 main () 24310 { 24311 24312 /* Are we little or big endian? From Harbison&Steele. */ 24313 union 24314 { 24315 long int l; 24316 char c[sizeof (long int)]; 24317 } u; 24318 u.l = 1; 24319 return u.c[sizeof (long int) - 1] == 1; 24320 24321 ; 24322 return 0; 24323 } 24324 _ACEOF 24325 if ac_fn_c_try_run "$LINENO"; then : 24326 ac_cv_c_bigendian=no 24327 else 24328 ac_cv_c_bigendian=yes 24329 fi 24330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24331 conftest.$ac_objext conftest.beam conftest.$ac_ext 24332 fi 24333 24334 fi 24335 fi 24336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 24337 $as_echo "$ac_cv_c_bigendian" >&6; } 24338 case $ac_cv_c_bigendian in #( 24339 yes) 24340 $as_echo "#define HAVE_LIMB_BIG_ENDIAN 1" >>confdefs.h 24341 24342 24343 echo "define_not_for_expansion(\`HAVE_LIMB_BIG_ENDIAN')" >> $gmp_tmpconfigm4p 24344 ;; #( 24345 no) 24346 $as_echo "#define HAVE_LIMB_LITTLE_ENDIAN 1" >>confdefs.h 24347 24348 24349 echo "define_not_for_expansion(\`HAVE_LIMB_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p 24350 24351 ;; #( 24352 universal) 24353 24354 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 24355 24356 ;; #( 24357 *) 24358 : ;; 24359 esac 24360 24361 24362 24363 24364 24365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`double' floating point" >&5 24366 $as_echo_n "checking format of \`double' floating point... " >&6; } 24367 if ${gmp_cv_c_double_format+:} false; then : 24368 $as_echo_n "(cached) " >&6 24369 else 24370 gmp_cv_c_double_format=unknown 24371 cat >conftest.c <<\EOF 24372 #include <stdio.h> 24373 struct foo { 24374 char before[8]; 24375 double x; 24376 char after[8]; 24377 }; 24378 extern struct foo foo; 24379 struct foo foo = { 24380 { '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' }, 24381 -123456789.0, 24382 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' }, 24383 }; 24384 int main(){ 24385 int i; 24386 for (i = 0; i < 8; i++) { 24387 printf ("%d %f\n", foo.before[i] + foo.after[i], foo.x); 24388 } 24389 return 0; 24390 } 24391 EOF 24392 gmp_compile="$CC $CFLAGS $CPPFLAGS conftest.c -o conftest$EXEEXT >&5 2>&1" 24393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 24394 (eval $gmp_compile) 2>&5 24395 ac_status=$? 24396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24397 test $ac_status = 0; }; then 24398 cat >conftest.awk <<\EOF 24399 24400 BEGIN { 24401 found = 0 24402 } 24403 24404 { 24405 for (f = 2; f <= NF; f++) 24406 { 24407 for (i = 0; i < 23; i++) 24408 got[i] = got[i+1]; 24409 got[23] = $f; 24410 24411 # match the special begin and end sequences 24412 if (got[0] != "001") continue 24413 if (got[1] != "043") continue 24414 if (got[2] != "105") continue 24415 if (got[3] != "147") continue 24416 if (got[4] != "211") continue 24417 if (got[5] != "253") continue 24418 if (got[6] != "315") continue 24419 if (got[7] != "357") continue 24420 if (got[16] != "376") continue 24421 if (got[17] != "334") continue 24422 if (got[18] != "272") continue 24423 if (got[19] != "230") continue 24424 if (got[20] != "166") continue 24425 if (got[21] != "124") continue 24426 if (got[22] != "062") continue 24427 if (got[23] != "020") continue 24428 24429 saw = " (" got[8] " " got[9] " " got[10] " " got[11] " " got[12] " " got[13] " " got[14] " " got[15] ")" 24430 24431 if (got[8] == "000" && \ 24432 got[9] == "000" && \ 24433 got[10] == "000" && \ 24434 got[11] == "124" && \ 24435 got[12] == "064" && \ 24436 got[13] == "157" && \ 24437 got[14] == "235" && \ 24438 got[15] == "301") 24439 { 24440 print "IEEE little endian" 24441 found = 1 24442 exit 24443 } 24444 24445 # Little endian with the two 4-byte halves swapped, as used by ARM 24446 # when the chip is in little endian mode. 24447 # 24448 if (got[8] == "064" && \ 24449 got[9] == "157" && \ 24450 got[10] == "235" && \ 24451 got[11] == "301" && \ 24452 got[12] == "000" && \ 24453 got[13] == "000" && \ 24454 got[14] == "000" && \ 24455 got[15] == "124") 24456 { 24457 print "IEEE little endian, swapped halves" 24458 found = 1 24459 exit 24460 } 24461 24462 # gcc 2.95.4 on one GNU/Linux ARM system was seen generating 000 in 24463 # the last byte, whereas 124 is correct. Not sure where the bug 24464 # actually lies, but a running program didn't seem to get a full 24465 # mantissa worth of working bits. 24466 # 24467 # We match this case explicitly so we can give a nice result message, 24468 # but we deliberately exclude it from the normal IEEE double setups 24469 # since it's too broken. 24470 # 24471 if (got[8] == "064" && \ 24472 got[9] == "157" && \ 24473 got[10] == "235" && \ 24474 got[11] == "301" && \ 24475 got[12] == "000" && \ 24476 got[13] == "000" && \ 24477 got[14] == "000" && \ 24478 got[15] == "000") 24479 { 24480 print "bad ARM software floats" 24481 found = 1 24482 exit 24483 } 24484 24485 if (got[8] == "301" && \ 24486 got[9] == "235" && \ 24487 got[10] == "157" && \ 24488 got[11] == "064" && \ 24489 got[12] == "124" && \ 24490 got[13] == "000" && \ 24491 got[14] == "000" && \ 24492 got[15] == "000") 24493 { 24494 print "IEEE big endian" 24495 found = 1 24496 exit 24497 } 24498 24499 if (got[8] == "353" && \ 24500 got[9] == "315" && \ 24501 got[10] == "242" && \ 24502 got[11] == "171" && \ 24503 got[12] == "000" && \ 24504 got[13] == "240" && \ 24505 got[14] == "000" && \ 24506 got[15] == "000") 24507 { 24508 print "VAX D" 24509 found = 1 24510 exit 24511 } 24512 24513 if (got[8] == "275" && \ 24514 got[9] == "301" && \ 24515 got[10] == "064" && \ 24516 got[11] == "157" && \ 24517 got[12] == "000" && \ 24518 got[13] == "124" && \ 24519 got[14] == "000" && \ 24520 got[15] == "000") 24521 { 24522 print "VAX G" 24523 found = 1 24524 exit 24525 } 24526 24527 if (got[8] == "300" && \ 24528 got[9] == "033" && \ 24529 got[10] == "353" && \ 24530 got[11] == "171" && \ 24531 got[12] == "242" && \ 24532 got[13] == "240" && \ 24533 got[14] == "000" && \ 24534 got[15] == "000") 24535 { 24536 print "Cray CFP" 24537 found = 1 24538 exit 24539 } 24540 } 24541 } 24542 24543 END { 24544 if (! found) 24545 print "unknown", saw 24546 } 24547 24548 EOF 24549 gmp_cv_c_double_format=`od -b conftest$EXEEXT | $AWK -f conftest.awk` 24550 case $gmp_cv_c_double_format in 24551 unknown*) 24552 echo "cannot match anything, conftest$EXEEXT contains" >&5 24553 od -b conftest$EXEEXT >&5 24554 ;; 24555 esac 24556 else 24557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5 24558 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;} 24559 fi 24560 rm -f conftest* 24561 24562 fi 24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_double_format" >&5 24564 $as_echo "$gmp_cv_c_double_format" >&6; } 24565 24566 24567 24568 case $gmp_cv_c_double_format in 24569 "IEEE big endian") 24570 $as_echo "#define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1" >>confdefs.h 24571 24572 24573 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_BIG_ENDIAN')" >> $gmp_tmpconfigm4p 24574 24575 ;; 24576 "IEEE little endian") 24577 $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1" >>confdefs.h 24578 24579 24580 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p 24581 24582 ;; 24583 "IEEE little endian, swapped halves") 24584 $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_SWAPPED 1" >>confdefs.h 24585 ;; 24586 "VAX D") 24587 $as_echo "#define HAVE_DOUBLE_VAX_D 1" >>confdefs.h 24588 ;; 24589 "VAX G") 24590 $as_echo "#define HAVE_DOUBLE_VAX_G 1" >>confdefs.h 24591 ;; 24592 "Cray CFP") 24593 $as_echo "#define HAVE_DOUBLE_CRAY_CFP 1" >>confdefs.h 24594 ;; 24595 "bad ARM software floats") 24596 ;; 24597 unknown*) 24598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine float format." >&5 24599 $as_echo "$as_me: WARNING: Could not determine float format." >&2;} 24600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Conversions to and from \"double\" may be slow." >&5 24601 $as_echo "$as_me: WARNING: Conversions to and from \"double\" may be slow." >&2;} 24602 ;; 24603 *) 24604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&5 24605 $as_echo "$as_me: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&2;} 24606 ;; 24607 esac 24608 24609 24610 24611 # Reasons for testing: 24612 # alarm - not in mingw 24613 # attr_get - IRIX specific 24614 # clock_gettime - not in glibc 2.2.4, only very recent systems 24615 # cputime - not in glibc 24616 # getsysinfo - OSF specific 24617 # getrusage - not in mingw 24618 # gettimeofday - not in mingw 24619 # mmap - not in mingw, djgpp 24620 # nl_langinfo - X/Open standard only, not in djgpp for instance 24621 # obstack_vprintf - glibc specific 24622 # processor_info - solaris specific 24623 # pstat_getprocessor - HPUX specific (10.x and up) 24624 # raise - an ANSI-ism, though probably almost universal by now 24625 # read_real_time - AIX specific 24626 # sigaction - not in mingw 24627 # sigaltstack - not in mingw, or old AIX (reputedly) 24628 # sigstack - not in mingw 24629 # strerror - not in SunOS 24630 # strnlen - glibc extension (some other systems too) 24631 # syssgi - IRIX specific 24632 # times - not in mingw 24633 # 24634 # AC_FUNC_STRNLEN is not used because we don't want the AC_LIBOBJ 24635 # replacement setups it gives. It detects a faulty strnlen on AIX, but 24636 # missing out on that test is ok since our only use of strnlen is in 24637 # __gmp_replacement_vsnprintf which is not required on AIX since it has a 24638 # vsnprintf. 24639 # 24640 for ac_func in alarm attr_get clock cputime getpagesize getrusage gettimeofday getsysinfo localeconv memset mmap mprotect nl_langinfo obstack_vprintf popen processor_info pstat_getprocessor raise read_real_time sigaction sigaltstack sigstack syssgi strchr strerror strnlen strtol strtoul sysconf sysctl sysctlbyname times 24641 do : 24642 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24643 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24644 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24645 cat >>confdefs.h <<_ACEOF 24646 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24647 _ACEOF 24648 24649 fi 24650 done 24651 24652 24653 # clock_gettime is in librt on *-*-osf5.1 and on glibc, so att -lrt to 24654 # TUNE_LIBS if needed. On linux (tested on x86_32, 2.6.26), 24655 # clock_getres reports ns accuracy, while in a quick test on osf 24656 # clock_getres said only 1 millisecond. 24657 24658 old_LIBS="$LIBS" 24659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 24660 $as_echo_n "checking for library containing clock_gettime... " >&6; } 24661 if ${ac_cv_search_clock_gettime+:} false; then : 24662 $as_echo_n "(cached) " >&6 24663 else 24664 ac_func_search_save_LIBS=$LIBS 24665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24666 /* end confdefs.h. */ 24667 24668 /* Override any GCC internal prototype to avoid an error. 24669 Use char because int might match the return type of a GCC 24670 builtin and then its argument prototype would still apply. */ 24671 #ifdef __cplusplus 24672 extern "C" 24673 #endif 24674 char clock_gettime (); 24675 int 24676 main () 24677 { 24678 return clock_gettime (); 24679 ; 24680 return 0; 24681 } 24682 _ACEOF 24683 for ac_lib in '' rt; do 24684 if test -z "$ac_lib"; then 24685 ac_res="none required" 24686 else 24687 ac_res=-l$ac_lib 24688 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24689 fi 24690 if ac_fn_c_try_link "$LINENO"; then : 24691 ac_cv_search_clock_gettime=$ac_res 24692 fi 24693 rm -f core conftest.err conftest.$ac_objext \ 24694 conftest$ac_exeext 24695 if ${ac_cv_search_clock_gettime+:} false; then : 24696 break 24697 fi 24698 done 24699 if ${ac_cv_search_clock_gettime+:} false; then : 24700 24701 else 24702 ac_cv_search_clock_gettime=no 24703 fi 24704 rm conftest.$ac_ext 24705 LIBS=$ac_func_search_save_LIBS 24706 fi 24707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 24708 $as_echo "$ac_cv_search_clock_gettime" >&6; } 24709 ac_res=$ac_cv_search_clock_gettime 24710 if test "$ac_res" != no; then : 24711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24712 24713 24714 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 24715 24716 fi 24717 24718 TUNE_LIBS="$LIBS" 24719 LIBS="$old_LIBS" 24720 24721 24722 24723 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 24724 if test "x$ac_cv_func_vsnprintf" = xyes; then : 24725 gmp_vsnprintf_exists=yes 24726 else 24727 gmp_vsnprintf_exists=no 24728 fi 24729 24730 if test "$gmp_vsnprintf_exists" = no; then 24731 gmp_cv_func_vsnprintf=no 24732 else 24733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf works" >&5 24734 $as_echo_n "checking whether vsnprintf works... " >&6; } 24735 if ${gmp_cv_func_vsnprintf+:} false; then : 24736 $as_echo_n "(cached) " >&6 24737 else 24738 gmp_cv_func_vsnprintf=yes 24739 for i in 'return check ("hello world");' 'int n; return check ("%nhello world", &n);'; do 24740 if test "$cross_compiling" = yes; then : 24741 gmp_cv_func_vsnprintf=probably; break 24742 else 24743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24744 /* end confdefs.h. */ 24745 24746 #include <string.h> /* for strcmp */ 24747 #include <stdio.h> /* for vsnprintf */ 24748 24749 #include <stdarg.h> 24750 24751 int 24752 check (const char *fmt, ...) 24753 { 24754 static char buf[128]; 24755 va_list ap; 24756 int ret; 24757 24758 va_start (ap, fmt); 24759 24760 ret = vsnprintf (buf, 4, fmt, ap); 24761 24762 if (ret == -1 || strcmp (buf, "hel") != 0) 24763 return 1; 24764 24765 /* allowed return values */ 24766 if (ret != 3 && ret != 11) 24767 return 2; 24768 24769 return 0; 24770 } 24771 24772 int 24773 main () 24774 { 24775 $i 24776 } 24777 24778 _ACEOF 24779 if ac_fn_c_try_run "$LINENO"; then : 24780 : 24781 else 24782 gmp_cv_func_vsnprintf=no; break 24783 fi 24784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24785 conftest.$ac_objext conftest.beam conftest.$ac_ext 24786 fi 24787 24788 done 24789 24790 fi 24791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_vsnprintf" >&5 24792 $as_echo "$gmp_cv_func_vsnprintf" >&6; } 24793 if test "$gmp_cv_func_vsnprintf" = probably; then 24794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&5 24795 $as_echo "$as_me: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&2;} 24796 fi 24797 if test "$gmp_cv_func_vsnprintf" != no; then 24798 24799 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h 24800 24801 fi 24802 fi 24803 24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sscanf needs writable input" >&5 24805 $as_echo_n "checking whether sscanf needs writable input... " >&6; } 24806 if ${gmp_cv_func_sscanf_writable_input+:} false; then : 24807 $as_echo_n "(cached) " >&6 24808 else 24809 case $host in 24810 *-*-hpux9 | *-*-hpux9.*) 24811 gmp_cv_func_sscanf_writable_input=yes ;; 24812 *) gmp_cv_func_sscanf_writable_input=no ;; 24813 esac 24814 24815 fi 24816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_sscanf_writable_input" >&5 24817 $as_echo "$gmp_cv_func_sscanf_writable_input" >&6; } 24818 case $gmp_cv_func_sscanf_writable_input in 24819 yes) 24820 $as_echo "#define SSCANF_WRITABLE_INPUT 1" >>confdefs.h 24821 ;; 24822 no) ;; 24823 *) as_fn_error $? "unrecognised \$gmp_cv_func_sscanf_writable_input" "$LINENO" 5 ;; 24824 esac 24825 24826 24827 # Reasons for checking: 24828 # pst_processor psp_iticksperclktick - not in hpux 9 24829 # 24830 ac_fn_c_check_member "$LINENO" "struct pst_processor" "psp_iticksperclktick" "ac_cv_member_struct_pst_processor_psp_iticksperclktick" "#include <sys/pstat.h> 24831 " 24832 if test "x$ac_cv_member_struct_pst_processor_psp_iticksperclktick" = xyes; then : 24833 24834 $as_echo "#define HAVE_PSP_ITICKSPERCLKTICK 1" >>confdefs.h 24835 24836 fi 24837 24838 24839 # C++ tests, when required 24840 # 24841 if test $enable_cxx = yes; then 24842 ac_ext=cpp 24843 ac_cpp='$CXXCPP $CPPFLAGS' 24844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24847 24848 24849 # Reasons for testing: 24850 # <sstream> - not in g++ 2.95.2 24851 # std::locale - not in g++ 2.95.4 24852 # 24853 24854 for ac_header in sstream 24855 do : 24856 ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default" 24857 if test "x$ac_cv_header_sstream" = xyes; then : 24858 cat >>confdefs.h <<_ACEOF 24859 #define HAVE_SSTREAM 1 24860 _ACEOF 24861 24862 fi 24863 24864 done 24865 24866 ac_fn_cxx_check_type "$LINENO" "std::locale" "ac_cv_type_std__locale" "#include <locale> 24867 " 24868 if test "x$ac_cv_type_std__locale" = xyes; then : 24869 24870 cat >>confdefs.h <<_ACEOF 24871 #define HAVE_STD__LOCALE 1 24872 _ACEOF 24873 24874 24875 fi 24876 24877 24878 ac_ext=c 24879 ac_cpp='$CPP $CPPFLAGS' 24880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24882 ac_compiler_gnu=$ac_cv_c_compiler_gnu 24883 24884 fi 24885 24886 24887 # Pick the correct source files in $path and link them to mpn/. 24888 # $gmp_mpn_functions lists all functions we need. 24889 # 24890 # The rule is to find a file with the function name and a .asm, .S, 24891 # .s, or .c extension. Certain multi-function files with special names 24892 # can provide some functions too. (mpn/Makefile.am passes 24893 # -DOPERATION_<func> to get them to generate the right code.) 24894 24895 # Note: $gmp_mpn_functions must have mod_1 before pre_mod_1 so the former 24896 # can optionally provide the latter as an extra entrypoint. Likewise 24897 # divrem_1 and pre_divrem_1. 24898 24899 gmp_mpn_functions_optional="umul udiv \ 24900 invert_limb sqr_diagonal sqr_diag_addlsh1 \ 24901 mul_2 mul_3 mul_4 mul_5 mul_6 \ 24902 addmul_2 addmul_3 addmul_4 addmul_5 addmul_6 addmul_7 addmul_8 \ 24903 addlsh1_n sublsh1_n rsblsh1_n rsh1add_n rsh1sub_n \ 24904 addlsh2_n sublsh2_n rsblsh2_n \ 24905 addlsh_n sublsh_n rsblsh_n \ 24906 add_n_sub_n addaddmul_1msb0" 24907 24908 gmp_mpn_functions="$extra_functions \ 24909 add add_1 add_n sub sub_1 sub_n cnd_add_n cnd_sub_n cnd_swap neg com \ 24910 mul_1 addmul_1 submul_1 \ 24911 add_err1_n add_err2_n add_err3_n sub_err1_n sub_err2_n sub_err3_n \ 24912 lshift rshift dive_1 diveby3 divis divrem divrem_1 divrem_2 \ 24913 fib2_ui fib2m mod_1 mod_34lsub1 mode1o pre_divrem_1 pre_mod_1 dump \ 24914 mod_1_1 mod_1_2 mod_1_3 mod_1_4 lshiftc \ 24915 mul mul_fft mul_n sqr mul_basecase sqr_basecase nussbaumer_mul \ 24916 mulmid_basecase toom42_mulmid mulmid_n mulmid \ 24917 random random2 pow_1 \ 24918 rootrem sqrtrem sizeinbase get_str set_str compute_powtab \ 24919 scan0 scan1 popcount hamdist cmp zero_p \ 24920 perfsqr perfpow strongfibo \ 24921 gcd_11 gcd_22 gcd_1 gcd gcdext_1 gcdext gcd_subdiv_step \ 24922 gcdext_lehmer \ 24923 div_q tdiv_qr jacbase jacobi_2 jacobi get_d \ 24924 matrix22_mul matrix22_mul1_inverse_vector \ 24925 hgcd_matrix hgcd2 hgcd_step hgcd_reduce hgcd hgcd_appr \ 24926 hgcd2_jacobi hgcd_jacobi \ 24927 mullo_n mullo_basecase sqrlo sqrlo_basecase \ 24928 toom22_mul toom32_mul toom42_mul toom52_mul toom62_mul \ 24929 toom33_mul toom43_mul toom53_mul toom54_mul toom63_mul \ 24930 toom44_mul \ 24931 toom6h_mul toom6_sqr toom8h_mul toom8_sqr \ 24932 toom_couple_handling \ 24933 toom2_sqr toom3_sqr toom4_sqr \ 24934 toom_eval_dgr3_pm1 toom_eval_dgr3_pm2 \ 24935 toom_eval_pm1 toom_eval_pm2 toom_eval_pm2exp toom_eval_pm2rexp \ 24936 toom_interpolate_5pts toom_interpolate_6pts toom_interpolate_7pts \ 24937 toom_interpolate_8pts toom_interpolate_12pts toom_interpolate_16pts \ 24938 invertappr invert binvert mulmod_bnm1 sqrmod_bnm1 \ 24939 div_qr_1 div_qr_1n_pi1 \ 24940 div_qr_2 div_qr_2n_pi1 div_qr_2u_pi1 \ 24941 sbpi1_div_q sbpi1_div_qr sbpi1_divappr_q \ 24942 dcpi1_div_q dcpi1_div_qr dcpi1_divappr_q \ 24943 mu_div_qr mu_divappr_q mu_div_q \ 24944 bdiv_q_1 \ 24945 sbpi1_bdiv_q sbpi1_bdiv_qr sbpi1_bdiv_r \ 24946 dcpi1_bdiv_q dcpi1_bdiv_qr \ 24947 mu_bdiv_q mu_bdiv_qr \ 24948 bdiv_q bdiv_qr broot brootinv bsqrt bsqrtinv \ 24949 divexact bdiv_dbm1c redc_1 redc_2 redc_n powm powlo sec_powm \ 24950 sec_mul sec_sqr sec_div_qr sec_div_r sec_pi1_div_qr sec_pi1_div_r \ 24951 sec_add_1 sec_sub_1 sec_invert \ 24952 trialdiv remove \ 24953 and_n andn_n nand_n ior_n iorn_n nior_n xor_n xnor_n \ 24954 copyi copyd zero sec_tabselect \ 24955 comb_tables \ 24956 $gmp_mpn_functions_optional" 24957 24958 24959 24960 # the list of all object files used by mpn/Makefile.in and the 24961 # top-level Makefile.in, respectively 24962 mpn_objects= 24963 mpn_objs_in_libgmp= 24964 24965 # links from the sources, to be removed by "make distclean" 24966 gmp_srclinks= 24967 24968 24969 # mpn_relative_top_srcdir is $top_srcdir, but for use from within the mpn 24970 # build directory. If $srcdir is relative then we use a relative path too, 24971 # so the two trees can be moved together. 24972 case $srcdir in 24973 [\\/]* | ?:[\\/]*) # absolute, as per autoconf 24974 mpn_relative_top_srcdir=$srcdir ;; 24975 *) # relative 24976 mpn_relative_top_srcdir=../$srcdir ;; 24977 esac 24978 24979 24980 24981 24982 24983 24984 # Fat binary setups. 24985 # 24986 # We proceed through each $fat_path directory, and look for $fat_function 24987 # routines there. Those found are incorporated in the build by generating a 24988 # little mpn/<foo>.asm or mpn/<foo>.c file in the build directory, with 24989 # suitable function renaming, and adding that to $mpn_objects (the same as a 24990 # normal mpn file). 24991 # 24992 # fat.h is generated with macros to let internal calls to each $fat_function 24993 # go directly through __gmpn_cpuvec, plus macros and declarations helping to 24994 # setup that structure, on a per-directory basis ready for 24995 # mpn/<cpu>/fat/fat.c. 24996 # 24997 # fat.h includes thresholds listed in $fat_thresholds, extracted from 24998 # gmp-mparam.h in each directory. An overall maximum for each threshold is 24999 # established, for use in making fixed size arrays of temporary space. 25000 # (Eg. MUL_TOOM33_THRESHOLD_LIMIT used by mpn/generic/mul.c.) 25001 # 25002 # It'd be possible to do some of this manually, but when there's more than a 25003 # few functions and a few directories it becomes very tedious, and very 25004 # prone to having some routine accidentally omitted. On that basis it seems 25005 # best to automate as much as possible, even if the code to do so is a bit 25006 # ugly. 25007 # 25008 25009 if test -n "$fat_path"; then 25010 # Usually the mpn build directory is created with mpn/Makefile 25011 # instantiation, but we want to write to it sooner. 25012 mkdir mpn 2>/dev/null 25013 25014 echo "/* fat.h - setups for fat binaries." >fat.h 25015 echo " Generated by configure - DO NOT EDIT. */" >>fat.h 25016 25017 25018 $as_echo "#define WANT_FAT_BINARY 1" >>confdefs.h 25019 25020 25021 echo 'define(<WANT_FAT_BINARY>, <yes>)' >>$gmp_tmpconfigm4 25022 25023 25024 # Don't want normal copies of fat functions 25025 for tmp_fn in $fat_functions; do 25026 remove_from_list_tmp= 25027 for remove_from_list_i in $gmp_mpn_functions; do 25028 if test $remove_from_list_i = $tmp_fn; then :; 25029 else 25030 remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i" 25031 fi 25032 done 25033 gmp_mpn_functions=$remove_from_list_tmp 25034 25035 remove_from_list_tmp= 25036 for remove_from_list_i in $gmp_mpn_functions_optional; do 25037 if test $remove_from_list_i = $tmp_fn; then :; 25038 else 25039 remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i" 25040 fi 25041 done 25042 gmp_mpn_functions_optional=$remove_from_list_tmp 25043 25044 done 25045 25046 for tmp_fn in $fat_functions; do 25047 case $tmp_fn in 25048 dive_1) tmp_fbase=divexact_1 ;; 25049 diveby3) tmp_fbase=divexact_by3c ;; 25050 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;; 25051 mode1o) tmp_fbase=modexact_1c_odd ;; 25052 pre_mod_1) tmp_fbase=preinv_mod_1 ;; 25053 mod_1_1) tmp_fbase=mod_1_1p ;; 25054 mod_1_1_cps) tmp_fbase=mod_1_1p_cps ;; 25055 mod_1_2) tmp_fbase=mod_1s_2p ;; 25056 mod_1_2_cps) tmp_fbase=mod_1s_2p_cps ;; 25057 mod_1_3) tmp_fbase=mod_1s_3p ;; 25058 mod_1_3_cps) tmp_fbase=mod_1s_3p_cps ;; 25059 mod_1_4) tmp_fbase=mod_1s_4p ;; 25060 mod_1_4_cps) tmp_fbase=mod_1s_4p_cps ;; 25061 *) tmp_fbase=$tmp_fn ;; 25062 esac 25063 25064 echo " 25065 #ifndef OPERATION_$tmp_fn 25066 #undef mpn_$tmp_fbase 25067 #define mpn_$tmp_fbase (*__gmpn_cpuvec.$tmp_fbase) 25068 #endif 25069 DECL_$tmp_fbase (__MPN(${tmp_fbase}_init));" >>fat.h 25070 # encourage various macros to use fat functions 25071 cat >>confdefs.h <<_ACEOF 25072 #define HAVE_NATIVE_mpn_$tmp_fbase 1 25073 _ACEOF 25074 25075 done 25076 25077 echo "" >>fat.h 25078 echo "/* variable thresholds */" >>fat.h 25079 for tmp_tn in $fat_thresholds; do 25080 echo "#undef $tmp_tn" >>fat.h 25081 echo "#define $tmp_tn CPUVEC_THRESHOLD (`echo $tmp_tn | tr [A-Z] [a-z]`)" >>fat.h 25082 done 25083 25084 echo " 25085 /* Copy all fields into __gmpn_cpuvec. 25086 memcpy is not used because it might operate byte-wise (depending on its 25087 implementation), and we need the function pointer writes to be atomic. 25088 "volatile" discourages the compiler from trying to optimize this. */ 25089 #define CPUVEC_INSTALL(vec) \\ 25090 do { \\ 25091 volatile struct cpuvec_t *p = &__gmpn_cpuvec; \\" >>fat.h 25092 for tmp_fn in $fat_functions; do 25093 case $tmp_fn in 25094 dive_1) tmp_fbase=divexact_1 ;; 25095 diveby3) tmp_fbase=divexact_by3c ;; 25096 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;; 25097 mode1o) tmp_fbase=modexact_1c_odd ;; 25098 pre_mod_1) tmp_fbase=preinv_mod_1 ;; 25099 mod_1_1) tmp_fbase=mod_1_1p ;; 25100 mod_1_1_cps) tmp_fbase=mod_1_1p_cps ;; 25101 mod_1_2) tmp_fbase=mod_1s_2p ;; 25102 mod_1_2_cps) tmp_fbase=mod_1s_2p_cps ;; 25103 mod_1_3) tmp_fbase=mod_1s_3p ;; 25104 mod_1_3_cps) tmp_fbase=mod_1s_3p_cps ;; 25105 mod_1_4) tmp_fbase=mod_1s_4p ;; 25106 mod_1_4_cps) tmp_fbase=mod_1s_4p_cps ;; 25107 *) tmp_fbase=$tmp_fn ;; 25108 esac 25109 25110 echo " p->$tmp_fbase = vec.$tmp_fbase; \\" >>fat.h 25111 done 25112 for tmp_tn in $fat_thresholds; do 25113 tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]` 25114 echo " p->$tmp_field_name = vec.$tmp_field_name; \\" >>fat.h 25115 done 25116 echo " } while (0)" >>fat.h 25117 25118 echo " 25119 /* A helper to check all fields are filled. */ 25120 #define ASSERT_CPUVEC(vec) \\ 25121 do { \\" >>fat.h 25122 for tmp_fn in $fat_functions; do 25123 case $tmp_fn in 25124 dive_1) tmp_fbase=divexact_1 ;; 25125 diveby3) tmp_fbase=divexact_by3c ;; 25126 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;; 25127 mode1o) tmp_fbase=modexact_1c_odd ;; 25128 pre_mod_1) tmp_fbase=preinv_mod_1 ;; 25129 mod_1_1) tmp_fbase=mod_1_1p ;; 25130 mod_1_1_cps) tmp_fbase=mod_1_1p_cps ;; 25131 mod_1_2) tmp_fbase=mod_1s_2p ;; 25132 mod_1_2_cps) tmp_fbase=mod_1s_2p_cps ;; 25133 mod_1_3) tmp_fbase=mod_1s_3p ;; 25134 mod_1_3_cps) tmp_fbase=mod_1s_3p_cps ;; 25135 mod_1_4) tmp_fbase=mod_1s_4p ;; 25136 mod_1_4_cps) tmp_fbase=mod_1s_4p_cps ;; 25137 *) tmp_fbase=$tmp_fn ;; 25138 esac 25139 25140 echo " ASSERT (vec.$tmp_fbase != NULL); \\" >>fat.h 25141 done 25142 for tmp_tn in $fat_thresholds; do 25143 tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]` 25144 echo " ASSERT (vec.$tmp_field_name != 0); \\" >>fat.h 25145 done 25146 echo " } while (0)" >>fat.h 25147 25148 echo " 25149 /* Call ITERATE(field) for each fat threshold field. */ 25150 #define ITERATE_FAT_THRESHOLDS() \\ 25151 do { \\" >>fat.h 25152 for tmp_tn in $fat_thresholds; do 25153 tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]` 25154 echo " ITERATE ($tmp_tn, $tmp_field_name); \\" >>fat.h 25155 done 25156 echo " } while (0)" >>fat.h 25157 25158 for tmp_dir in $fat_path; do 25159 CPUVEC_SETUP= 25160 THRESH_ASM_SETUP= 25161 echo "" >>fat.h 25162 tmp_suffix=`echo $tmp_dir | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'` 25163 25164 # In order to keep names unique on a DOS 8.3 filesystem, use a prefix 25165 # (rather than a suffix) for the generated file names, and abbreviate. 25166 case $tmp_suffix in 25167 pentium) tmp_prefix=p ;; 25168 pentium_mmx) tmp_prefix=pm ;; 25169 p6_mmx) tmp_prefix=p2 ;; 25170 p6_p3mmx) tmp_prefix=p3 ;; 25171 pentium4) tmp_prefix=p4 ;; 25172 pentium4_mmx) tmp_prefix=p4m ;; 25173 pentium4_sse2) tmp_prefix=p4s ;; 25174 k6_mmx) tmp_prefix=k6m ;; 25175 k6_k62mmx) tmp_prefix=k62 ;; 25176 k7_mmx) tmp_prefix=k7m ;; 25177 *) tmp_prefix=$tmp_suffix ;; 25178 esac 25179 25180 # Extract desired thresholds from gmp-mparam.h file in this directory, 25181 # if present. 25182 tmp_mparam=$srcdir/mpn/$tmp_dir/gmp-mparam.h 25183 if test -f $tmp_mparam; then 25184 for tmp_tn in $fat_thresholds; do 25185 tmp_thresh=`sed -n "s/^#define $tmp_tn[ ]*\\([0-9][0-9]*\\).*$/\\1/p" $tmp_mparam` 25186 if test -n "$tmp_thresh"; then 25187 THRESH_ASM_SETUP="${THRESH_ASM_SETUP}define($tmp_tn,$tmp_thresh) 25188 " 25189 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.`echo $tmp_tn | tr [A-Z] [a-z]` = $tmp_thresh; \\ 25190 " 25191 eval tmp_limit=\$${tmp_tn}_LIMIT 25192 if test -z "$tmp_limit"; then 25193 tmp_limit=0 25194 fi 25195 if test $tmp_thresh -gt $tmp_limit; then 25196 eval ${tmp_tn}_LIMIT=$tmp_thresh 25197 fi 25198 fi 25199 done 25200 fi 25201 25202 for tmp_fn in $fat_functions; do 25203 # functions that can be provided by multi-function files 25204 tmp_mulfunc= 25205 case $tmp_fn in 25206 add_n|sub_n) tmp_mulfunc="aors_n" ;; 25207 add_err1_n|sub_err1_n) 25208 tmp_mulfunc="aors_err1_n" ;; 25209 add_err2_n|sub_err2_n) 25210 tmp_mulfunc="aors_err2_n" ;; 25211 add_err3_n|sub_err3_n) 25212 tmp_mulfunc="aors_err3_n" ;; 25213 cnd_add_n|cnd_sub_n) tmp_mulfunc="cnd_aors_n" ;; 25214 sec_add_1|sec_sub_1) tmp_mulfunc="sec_aors_1" ;; 25215 addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;; 25216 mul_2|addmul_2) tmp_mulfunc="aormul_2" ;; 25217 mul_3|addmul_3) tmp_mulfunc="aormul_3" ;; 25218 mul_4|addmul_4) tmp_mulfunc="aormul_4" ;; 25219 popcount|hamdist) tmp_mulfunc="popham" ;; 25220 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n) 25221 tmp_mulfunc="logops_n" ;; 25222 lshift|rshift) tmp_mulfunc="lorrshift";; 25223 addlsh1_n) 25224 tmp_mulfunc="aorslsh1_n aorrlsh1_n aorsorrlsh1_n";; 25225 sublsh1_n) 25226 tmp_mulfunc="aorslsh1_n sorrlsh1_n aorsorrlsh1_n";; 25227 rsblsh1_n) 25228 tmp_mulfunc="aorrlsh1_n sorrlsh1_n aorsorrlsh1_n";; 25229 addlsh2_n) 25230 tmp_mulfunc="aorslsh2_n aorrlsh2_n aorsorrlsh2_n";; 25231 sublsh2_n) 25232 tmp_mulfunc="aorslsh2_n sorrlsh2_n aorsorrlsh2_n";; 25233 rsblsh2_n) 25234 tmp_mulfunc="aorrlsh2_n sorrlsh2_n aorsorrlsh2_n";; 25235 addlsh_n) 25236 tmp_mulfunc="aorslsh_n aorrlsh_n aorsorrlsh_n";; 25237 sublsh_n) 25238 tmp_mulfunc="aorslsh_n sorrlsh_n aorsorrlsh_n";; 25239 rsblsh_n) 25240 tmp_mulfunc="aorrlsh_n sorrlsh_n aorsorrlsh_n";; 25241 rsh1add_n|rsh1sub_n) 25242 tmp_mulfunc="rsh1aors_n";; 25243 sec_div_qr|sec_div_r) 25244 tmp_mulfunc="sec_div";; 25245 sec_pi1_div_qr|sec_pi1_div_r) 25246 tmp_mulfunc="sec_pi1_div";; 25247 esac 25248 25249 25250 for tmp_base in $tmp_fn $tmp_mulfunc; do 25251 for tmp_ext in asm S s c; do 25252 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext 25253 if test -f $tmp_file; then 25254 25255 # If the host uses a non-standard ABI, check if tmp_file supports it 25256 # 25257 if test -n "$GMP_NONSTD_ABI" && test $tmp_ext != "c"; then 25258 abi=`sed -n 's/^[ ]*ABI_SUPPORT(\(.*\))/\1/p' $tmp_file ` 25259 if echo "$abi" | grep -q "\\b${GMP_NONSTD_ABI}\\b"; then 25260 true 25261 else 25262 continue 25263 fi 25264 fi 25265 25266 mpn_objects="$mpn_objects ${tmp_prefix}_$tmp_fn.lo" 25267 mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/${tmp_prefix}_$tmp_fn.lo" 25268 25269 case $tmp_fn in 25270 dive_1) tmp_fbase=divexact_1 ;; 25271 diveby3) tmp_fbase=divexact_by3c ;; 25272 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;; 25273 mode1o) tmp_fbase=modexact_1c_odd ;; 25274 pre_mod_1) tmp_fbase=preinv_mod_1 ;; 25275 mod_1_1) tmp_fbase=mod_1_1p ;; 25276 mod_1_1_cps) tmp_fbase=mod_1_1p_cps ;; 25277 mod_1_2) tmp_fbase=mod_1s_2p ;; 25278 mod_1_2_cps) tmp_fbase=mod_1s_2p_cps ;; 25279 mod_1_3) tmp_fbase=mod_1s_3p ;; 25280 mod_1_3_cps) tmp_fbase=mod_1s_3p_cps ;; 25281 mod_1_4) tmp_fbase=mod_1s_4p ;; 25282 mod_1_4_cps) tmp_fbase=mod_1s_4p_cps ;; 25283 *) tmp_fbase=$tmp_fn ;; 25284 esac 25285 25286 25287 # carry-in variant, eg. divrem_1c or modexact_1c_odd 25288 case $tmp_fbase in 25289 *_1*) tmp_fbasec=`echo $tmp_fbase | sed 's/_1/_1c/'` ;; 25290 *) tmp_fbasec=${tmp_fbase}c ;; 25291 esac 25292 25293 # Create a little file doing an include from srcdir. The 25294 # OPERATION and renamings aren't all needed all the time, but 25295 # they don't hurt if unused. 25296 # 25297 # FIXME: Should generate these via config.status commands. 25298 # Would need them all in one AC_CONFIG_COMMANDS though, since 25299 # that macro doesn't accept a set of separate commands generated 25300 # by shell code. 25301 # 25302 case $tmp_ext in 25303 asm) 25304 # hide the d-n-l from autoconf's error checking 25305 tmp_d_n_l=d""nl 25306 echo "$tmp_d_n_l mpn_$tmp_fbase - from $tmp_dir directory for fat binary. 25307 $tmp_d_n_l Generated by configure - DO NOT EDIT. 25308 25309 define(OPERATION_$tmp_fn) 25310 define(__gmpn_$tmp_fbase, __gmpn_${tmp_fbase}_$tmp_suffix) 25311 define(__gmpn_$tmp_fbasec,__gmpn_${tmp_fbasec}_${tmp_suffix}) 25312 define(__gmpn_preinv_${tmp_fbase},__gmpn_preinv_${tmp_fbase}_${tmp_suffix}) 25313 define(__gmpn_${tmp_fbase}_cps,__gmpn_${tmp_fbase}_cps_${tmp_suffix}) 25314 25315 $tmp_d_n_l For k6 and k7 gcd_1 calling their corresponding mpn_modexact_1_odd 25316 ifdef(\`__gmpn_modexact_1_odd',, 25317 \`define(__gmpn_modexact_1_odd,__gmpn_modexact_1_odd_${tmp_suffix})') 25318 25319 $THRESH_ASM_SETUP 25320 include($mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.asm) 25321 " >mpn/${tmp_prefix}_$tmp_fn.asm 25322 ;; 25323 c) 25324 echo "/* mpn_$tmp_fbase - from $tmp_dir directory for fat binary. 25325 Generated by configure - DO NOT EDIT. */ 25326 25327 #define OPERATION_$tmp_fn 1 25328 #define __gmpn_$tmp_fbase __gmpn_${tmp_fbase}_$tmp_suffix 25329 #define __gmpn_$tmp_fbasec __gmpn_${tmp_fbasec}_${tmp_suffix} 25330 #define __gmpn_preinv_${tmp_fbase} __gmpn_preinv_${tmp_fbase}_${tmp_suffix} 25331 #define __gmpn_${tmp_fbase}_cps __gmpn_${tmp_fbase}_cps_${tmp_suffix} 25332 25333 #include \"$mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.c\" 25334 " >mpn/${tmp_prefix}_$tmp_fn.c 25335 ;; 25336 esac 25337 25338 # Prototype, and append to CPUVEC_SETUP for this directory. 25339 echo "DECL_$tmp_fbase (__gmpn_${tmp_fbase}_$tmp_suffix);" >>fat.h 25340 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.$tmp_fbase = __gmpn_${tmp_fbase}_${tmp_suffix}; \\ 25341 " 25342 # Ditto for any preinv variant (preinv_divrem_1, preinv_mod_1). 25343 if grep "^PROLOGUE(mpn_preinv_$tmp_fn)" $tmp_file >/dev/null; then 25344 echo "DECL_preinv_$tmp_fbase (__gmpn_preinv_${tmp_fbase}_$tmp_suffix);" >>fat.h 25345 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.preinv_$tmp_fbase = __gmpn_preinv_${tmp_fbase}_${tmp_suffix}; \\ 25346 " 25347 fi 25348 25349 # Ditto for any mod_1...cps variant 25350 if grep "^PROLOGUE(mpn_${tmp_fbase}_cps)" $tmp_file >/dev/null; then 25351 echo "DECL_${tmp_fbase}_cps (__gmpn_${tmp_fbase}_cps_$tmp_suffix);" >>fat.h 25352 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.${tmp_fbase}_cps = __gmpn_${tmp_fbase}_cps_${tmp_suffix}; \\ 25353 " 25354 fi 25355 fi 25356 done 25357 done 25358 done 25359 25360 # Emit CPUVEC_SETUP for this directory 25361 echo "" >>fat.h 25362 echo "#define CPUVEC_SETUP_$tmp_suffix \\" >>fat.h 25363 echo " do { \\" >>fat.h 25364 echo "$CPUVEC_SETUP } while (0)" >>fat.h 25365 done 25366 25367 # Emit threshold limits 25368 echo "" >>fat.h 25369 for tmp_tn in $fat_thresholds; do 25370 eval tmp_limit=\$${tmp_tn}_LIMIT 25371 echo "#define ${tmp_tn}_LIMIT $tmp_limit" >>fat.h 25372 done 25373 fi 25374 25375 25376 # Normal binary setups. 25377 # 25378 25379 for tmp_ext in asm S s c; do 25380 eval found_$tmp_ext=no 25381 done 25382 25383 for tmp_fn in $gmp_mpn_functions; do 25384 for tmp_ext in asm S s c; do 25385 test "$no_create" = yes || rm -f mpn/$tmp_fn.$tmp_ext 25386 done 25387 25388 # mpn_preinv_divrem_1 might have been provided by divrem_1.asm, likewise 25389 # mpn_preinv_mod_1 by mod_1.asm. 25390 case $tmp_fn in 25391 pre_divrem_1) 25392 if test "$HAVE_NATIVE_mpn_preinv_divrem_1" = yes; then continue; fi ;; 25393 pre_mod_1) 25394 if test "$HAVE_NATIVE_mpn_preinv_mod_1" = yes; then continue; fi ;; 25395 esac 25396 25397 # functions that can be provided by multi-function files 25398 tmp_mulfunc= 25399 case $tmp_fn in 25400 add_n|sub_n) tmp_mulfunc="aors_n" ;; 25401 add_err1_n|sub_err1_n) 25402 tmp_mulfunc="aors_err1_n" ;; 25403 add_err2_n|sub_err2_n) 25404 tmp_mulfunc="aors_err2_n" ;; 25405 add_err3_n|sub_err3_n) 25406 tmp_mulfunc="aors_err3_n" ;; 25407 cnd_add_n|cnd_sub_n) tmp_mulfunc="cnd_aors_n" ;; 25408 sec_add_1|sec_sub_1) tmp_mulfunc="sec_aors_1" ;; 25409 addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;; 25410 mul_2|addmul_2) tmp_mulfunc="aormul_2" ;; 25411 mul_3|addmul_3) tmp_mulfunc="aormul_3" ;; 25412 mul_4|addmul_4) tmp_mulfunc="aormul_4" ;; 25413 popcount|hamdist) tmp_mulfunc="popham" ;; 25414 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n) 25415 tmp_mulfunc="logops_n" ;; 25416 lshift|rshift) tmp_mulfunc="lorrshift";; 25417 addlsh1_n) 25418 tmp_mulfunc="aorslsh1_n aorrlsh1_n aorsorrlsh1_n";; 25419 sublsh1_n) 25420 tmp_mulfunc="aorslsh1_n sorrlsh1_n aorsorrlsh1_n";; 25421 rsblsh1_n) 25422 tmp_mulfunc="aorrlsh1_n sorrlsh1_n aorsorrlsh1_n";; 25423 addlsh2_n) 25424 tmp_mulfunc="aorslsh2_n aorrlsh2_n aorsorrlsh2_n";; 25425 sublsh2_n) 25426 tmp_mulfunc="aorslsh2_n sorrlsh2_n aorsorrlsh2_n";; 25427 rsblsh2_n) 25428 tmp_mulfunc="aorrlsh2_n sorrlsh2_n aorsorrlsh2_n";; 25429 addlsh_n) 25430 tmp_mulfunc="aorslsh_n aorrlsh_n aorsorrlsh_n";; 25431 sublsh_n) 25432 tmp_mulfunc="aorslsh_n sorrlsh_n aorsorrlsh_n";; 25433 rsblsh_n) 25434 tmp_mulfunc="aorrlsh_n sorrlsh_n aorsorrlsh_n";; 25435 rsh1add_n|rsh1sub_n) 25436 tmp_mulfunc="rsh1aors_n";; 25437 sec_div_qr|sec_div_r) 25438 tmp_mulfunc="sec_div";; 25439 sec_pi1_div_qr|sec_pi1_div_r) 25440 tmp_mulfunc="sec_pi1_div";; 25441 esac 25442 25443 25444 found=no 25445 for tmp_dir in $path; do 25446 for tmp_base in $tmp_fn $tmp_mulfunc; do 25447 for tmp_ext in asm S s c; do 25448 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext 25449 if test -f $tmp_file; then 25450 25451 # For a nails build, check if the file supports our nail bits. 25452 # Generic code always supports all nails. 25453 # 25454 # FIXME: When a multi-function file is selected to provide one of 25455 # the nails-neutral routines, like logops_n for and_n, the 25456 # PROLOGUE grepping will create HAVE_NATIVE_mpn_<foo> defines for 25457 # all functions in that file, even if they haven't all been 25458 # nailified. Not sure what to do about this, it's only really a 25459 # problem for logops_n, and it's not too terrible to insist those 25460 # get nailified always. 25461 # 25462 if test $GMP_NAIL_BITS != 0 && test $tmp_dir != generic; then 25463 case $tmp_fn in 25464 and_n | ior_n | xor_n | andn_n | \ 25465 copyi | copyd | \ 25466 popcount | hamdist | \ 25467 udiv | udiv_w_sdiv | umul | \ 25468 cntlz | invert_limb) 25469 # these operations are either unaffected by nails or defined 25470 # to operate on full limbs 25471 ;; 25472 *) 25473 nails=`sed -n 's/^[ ]*NAILS_SUPPORT(\(.*\))/\1/p' $tmp_file ` 25474 for n in $nails; do 25475 case $n in 25476 *-*) 25477 n_start=`echo "$n" | sed -n 's/\(.*\)-.*/\1/p'` 25478 n_end=`echo "$n" | sed -n 's/.*-\(.*\)/\1/p'` 25479 ;; 25480 *) 25481 n_start=$n 25482 n_end=$n 25483 ;; 25484 esac 25485 if test $GMP_NAIL_BITS -ge $n_start && test $GMP_NAIL_BITS -le $n_end; then 25486 found=yes 25487 break 25488 fi 25489 done 25490 if test $found != yes; then 25491 continue 25492 fi 25493 ;; 25494 esac 25495 fi 25496 25497 # If the host uses a non-standard ABI, check if tmp_file supports it 25498 # 25499 if test -n "$GMP_NONSTD_ABI" && test $tmp_ext != "c"; then 25500 abi=`sed -n 's/^[ ]*ABI_SUPPORT(\(.*\))/\1/p' $tmp_file ` 25501 if echo "$abi" | grep -q "\\b${GMP_NONSTD_ABI}\\b"; then 25502 true 25503 else 25504 continue 25505 fi 25506 fi 25507 25508 found=yes 25509 eval found_$tmp_ext=yes 25510 25511 if test $tmp_ext = c; then 25512 tmp_u='$U' 25513 else 25514 tmp_u= 25515 fi 25516 25517 mpn_objects="$mpn_objects $tmp_fn$tmp_u.lo" 25518 mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/$tmp_fn$tmp_u.lo" 25519 ac_config_links="$ac_config_links mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" 25520 25521 gmp_srclinks="$gmp_srclinks mpn/$tmp_fn.$tmp_ext" 25522 25523 # Duplicate AC_DEFINEs are harmless, so it doesn't matter 25524 # that multi-function files get grepped here repeatedly. 25525 # The PROLOGUE pattern excludes the optional second parameter. 25526 gmp_ep=` 25527 sed -n 's/^[ ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ; 25528 sed -n 's/^[ ]*PROLOGUE(\([^,]*\).*)/\1/p' $tmp_file 25529 ` 25530 for gmp_tmp in $gmp_ep; do 25531 cat >>confdefs.h <<_ACEOF 25532 #define HAVE_NATIVE_$gmp_tmp 1 25533 _ACEOF 25534 25535 eval HAVE_NATIVE_$gmp_tmp=yes 25536 done 25537 25538 case $tmp_fn in 25539 sqr_basecase) sqr_basecase_source=$tmp_file ;; 25540 esac 25541 25542 break 25543 fi 25544 done 25545 if test $found = yes; then break ; fi 25546 done 25547 if test $found = yes; then break ; fi 25548 done 25549 25550 if test $found = no; then 25551 for tmp_optional in $gmp_mpn_functions_optional; do 25552 if test $tmp_optional = $tmp_fn; then 25553 found=yes 25554 fi 25555 done 25556 if test $found = no; then 25557 as_fn_error $? "no version of $tmp_fn found in path: $path" "$LINENO" 5 25558 fi 25559 fi 25560 done 25561 25562 # All cycle counters are .asm files currently 25563 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then 25564 found_asm=yes 25565 fi 25566 25567 25568 25569 25570 25571 # Don't demand an m4 unless it's actually needed. 25572 if test $found_asm = yes; then 25573 25574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable m4" >&5 25575 $as_echo_n "checking for suitable m4... " >&6; } 25576 if ${gmp_cv_prog_m4+:} false; then : 25577 $as_echo_n "(cached) " >&6 25578 else 25579 if test -n "$M4"; then 25580 gmp_cv_prog_m4="$M4" 25581 else 25582 cat >conftest.m4 <<\EOF 25583 define(dollarhash,``$#'')ifelse(dollarhash(x),1,`define(t1,Y)', 25584 ``bad: $# not supported (SunOS /usr/bin/m4) 25585 '')ifelse(eval(89),89,`define(t2,Y)', 25586 `bad: eval() doesnt support 8 or 9 in a constant (OpenBSD 2.6 m4) 25587 ')ifelse(eval(9,9),10,`define(t3,Y)', 25588 `bad: eval() doesnt support radix in eval (FreeBSD 8.x,9.0,9.1,9.2 m4) 25589 ')ifelse(t1`'t2`'t3,YYY,`good 25590 ') 25591 EOF 25592 echo "trying m4" >&5 25593 gmp_tmp_val=`(m4 conftest.m4) 2>&5` 25594 echo "$gmp_tmp_val" >&5 25595 if test "$gmp_tmp_val" = good; then 25596 gmp_cv_prog_m4="m4" 25597 else 25598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 25599 ac_dummy="$PATH:/usr/5bin" 25600 for ac_dir in $ac_dummy; do 25601 test -z "$ac_dir" && ac_dir=. 25602 echo "trying $ac_dir/m4" >&5 25603 gmp_tmp_val=`($ac_dir/m4 conftest.m4) 2>&5` 25604 echo "$gmp_tmp_val" >&5 25605 if test "$gmp_tmp_val" = good; then 25606 gmp_cv_prog_m4="$ac_dir/m4" 25607 break 25608 fi 25609 done 25610 IFS="$ac_save_ifs" 25611 if test -z "$gmp_cv_prog_m4"; then 25612 as_fn_error $? "No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." "$LINENO" 5 25613 fi 25614 fi 25615 rm -f conftest.m4 25616 fi 25617 fi 25618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_m4" >&5 25619 $as_echo "$gmp_cv_prog_m4" >&6; } 25620 M4="$gmp_cv_prog_m4" 25621 25622 25623 25624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if m4wrap produces spurious output" >&5 25625 $as_echo_n "checking if m4wrap produces spurious output... " >&6; } 25626 if ${gmp_cv_m4_m4wrap_spurious+:} false; then : 25627 $as_echo_n "(cached) " >&6 25628 else 25629 # hide the d-n-l from autoconf's error checking 25630 tmp_d_n_l=d""nl 25631 cat >conftest.m4 <<EOF 25632 changequote({,})define(x,)m4wrap({x})$tmp_d_n_l 25633 EOF 25634 echo test input is >&5 25635 cat conftest.m4 >&5 25636 tmp_chars=`$M4 conftest.m4 | wc -c` 25637 echo produces $tmp_chars chars output >&5 25638 rm -f conftest.m4 25639 if test $tmp_chars = 0; then 25640 gmp_cv_m4_m4wrap_spurious=no 25641 else 25642 gmp_cv_m4_m4wrap_spurious=yes 25643 fi 25644 25645 fi 25646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_m4_m4wrap_spurious" >&5 25647 $as_echo "$gmp_cv_m4_m4wrap_spurious" >&6; } 25648 25649 echo "define(<M4WRAP_SPURIOUS>,<$gmp_cv_m4_m4wrap_spurious>)" >> $gmp_tmpconfigm4 25650 25651 25652 # else 25653 # It's unclear why this m4-not-needed stuff was ever done. 25654 # if test -z "$M4" ; then 25655 # M4=m4-not-needed 25656 # fi 25657 fi 25658 25659 # Only do the GMP_ASM checks if there's a .S or .asm wanting them. 25660 if test $found_asm = no && test $found_S = no; then 25661 gmp_asm_syntax_testing=no 25662 fi 25663 25664 if test "$gmp_asm_syntax_testing" != no; then 25665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to text section" >&5 25666 $as_echo_n "checking how to switch to text section... " >&6; } 25667 if ${gmp_cv_asm_text+:} false; then : 25668 $as_echo_n "(cached) " >&6 25669 else 25670 for i in ".text" ".code" ".csect .text[PR]"; do 25671 echo "trying $i" >&5 25672 cat >conftest.s <<EOF 25673 $i 25674 EOF 25675 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 25676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 25677 (eval $gmp_assemble) 2>&5 25678 ac_status=$? 25679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25680 test $ac_status = 0; }; then 25681 cat conftest.out >&5 25682 gmp_cv_asm_text=$i 25683 rm -f conftest* 25684 break 25685 else 25686 cat conftest.out >&5 25687 echo "configure: failed program was:" >&5 25688 cat conftest.s >&5 25689 : 25690 fi 25691 rm -f conftest* 25692 25693 done 25694 if test -z "$gmp_cv_asm_text"; then 25695 as_fn_error $? "Cannot determine text section directive" "$LINENO" 5 25696 fi 25697 25698 fi 25699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_text" >&5 25700 $as_echo "$gmp_cv_asm_text" >&6; } 25701 echo "define(<TEXT>, <$gmp_cv_asm_text>)" >> $gmp_tmpconfigm4 25702 25703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to data section" >&5 25704 $as_echo_n "checking how to switch to data section... " >&6; } 25705 if ${gmp_cv_asm_data+:} false; then : 25706 $as_echo_n "(cached) " >&6 25707 else 25708 case $host in 25709 *-*-aix*) gmp_cv_asm_data=".csect .data[RW]" ;; 25710 *) gmp_cv_asm_data=".data" ;; 25711 esac 25712 25713 fi 25714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_data" >&5 25715 $as_echo "$gmp_cv_asm_data" >&6; } 25716 echo "define(<DATA>, <$gmp_cv_asm_data>)" >> $gmp_tmpconfigm4 25717 25718 25719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler label suffix" >&5 25720 $as_echo_n "checking for assembler label suffix... " >&6; } 25721 if ${gmp_cv_asm_label_suffix+:} false; then : 25722 $as_echo_n "(cached) " >&6 25723 else 25724 gmp_cv_asm_label_suffix=unknown 25725 for i in "" ":"; do 25726 echo "trying $i" >&5 25727 cat >conftest.s <<EOF 25728 $gmp_cv_asm_text 25729 somelabel$i 25730 EOF 25731 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 25732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 25733 (eval $gmp_assemble) 2>&5 25734 ac_status=$? 25735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25736 test $ac_status = 0; }; then 25737 cat conftest.out >&5 25738 gmp_cv_asm_label_suffix=$i 25739 rm -f conftest* 25740 break 25741 else 25742 cat conftest.out >&5 25743 echo "configure: failed program was:" >&5 25744 cat conftest.s >&5 25745 cat conftest.out >&5 25746 fi 25747 rm -f conftest* 25748 25749 done 25750 if test "$gmp_cv_asm_label_suffix" = "unknown"; then 25751 as_fn_error $? "Cannot determine label suffix" "$LINENO" 5 25752 fi 25753 25754 fi 25755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_label_suffix" >&5 25756 $as_echo "$gmp_cv_asm_label_suffix" >&6; } 25757 echo "define(<LABEL_SUFFIX>, <$gmp_cv_asm_label_suffix>)" >> $gmp_tmpconfigm4 25758 25759 25760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive" >&5 25761 $as_echo_n "checking for assembler global directive... " >&6; } 25762 if ${gmp_cv_asm_globl+:} false; then : 25763 $as_echo_n "(cached) " >&6 25764 else 25765 case $host in 25766 hppa*-*-*) gmp_cv_asm_globl=.export ;; 25767 ia64*-*-* | itanium-*-* | itanium2-*-*) gmp_cv_asm_globl=.global ;; 25768 *) gmp_cv_asm_globl=.globl ;; 25769 esac 25770 25771 fi 25772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl" >&5 25773 $as_echo "$gmp_cv_asm_globl" >&6; } 25774 echo "define(<GLOBL>, <$gmp_cv_asm_globl>)" >> $gmp_tmpconfigm4 25775 25776 25777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive attribute" >&5 25778 $as_echo_n "checking for assembler global directive attribute... " >&6; } 25779 if ${gmp_cv_asm_globl_attr+:} false; then : 25780 $as_echo_n "(cached) " >&6 25781 else 25782 case $gmp_cv_asm_globl in 25783 .export) gmp_cv_asm_globl_attr=",entry" ;; 25784 *) gmp_cv_asm_globl_attr="" ;; 25785 esac 25786 25787 fi 25788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl_attr" >&5 25789 $as_echo "$gmp_cv_asm_globl_attr" >&6; } 25790 echo "define(<GLOBL_ATTR>, <$gmp_cv_asm_globl_attr>)" >> $gmp_tmpconfigm4 25791 25792 25793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if globals are prefixed by underscore" >&5 25794 $as_echo_n "checking if globals are prefixed by underscore... " >&6; } 25795 if ${gmp_cv_asm_underscore+:} false; then : 25796 $as_echo_n "(cached) " >&6 25797 else 25798 gmp_cv_asm_underscore="unknown" 25799 cat >conftest.c <<EOF 25800 int gurkmacka; 25801 EOF 25802 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5" 25803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 25804 (eval $gmp_compile) 2>&5 25805 ac_status=$? 25806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25807 test $ac_status = 0; }; then 25808 $NM conftest.$OBJEXT >conftest.out 25809 if grep "[ ]_gurkmacka" conftest.out >/dev/null; then 25810 gmp_cv_asm_underscore=yes 25811 elif grep "[ ]gurkmacka" conftest.out >/dev/null; then 25812 gmp_cv_asm_underscore=no 25813 else 25814 echo "configure: $NM doesn't have gurkmacka:" >&5 25815 cat conftest.out >&5 25816 fi 25817 else 25818 echo "configure: failed program was:" >&5 25819 cat conftest.c >&5 25820 fi 25821 rm -f conftest* 25822 25823 fi 25824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_underscore" >&5 25825 $as_echo "$gmp_cv_asm_underscore" >&6; } 25826 case $gmp_cv_asm_underscore in 25827 yes) 25828 25829 echo 'define(<GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4 25830 ;; 25831 no) 25832 25833 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4 25834 ;; 25835 *) 25836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5 25837 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} 25838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Cannot determine global symbol prefix." >&5 25839 $as_echo "$as_me: WARNING: | Cannot determine global symbol prefix." >&2;} 25840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $NM output doesn't contain a global data symbol." >&5 25841 $as_echo "$as_me: WARNING: | $NM output doesn't contain a global data symbol." >&2;} 25842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Will proceed with no underscore." >&5 25843 $as_echo "$as_me: WARNING: | Will proceed with no underscore." >&2;} 25844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | If this is wrong then you'll get link errors referring" >&5 25845 $as_echo "$as_me: WARNING: | If this is wrong then you'll get link errors referring" >&2;} 25846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | to ___gmpn_add_n (note three underscores)." >&5 25847 $as_echo "$as_me: WARNING: | to ___gmpn_add_n (note three underscores)." >&2;} 25848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | In this case do a fresh build with an override," >&5 25849 $as_echo "$as_me: WARNING: | In this case do a fresh build with an override," >&2;} 25850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&5 25851 $as_echo "$as_me: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&2;} 25852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5 25853 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} 25854 25855 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4 25856 25857 ;; 25858 esac 25859 25860 25861 25862 25863 25864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to read-only data section" >&5 25865 $as_echo_n "checking how to switch to read-only data section... " >&6; } 25866 if ${gmp_cv_asm_rodata+:} false; then : 25867 $as_echo_n "(cached) " >&6 25868 else 25869 25870 case $host in 25871 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | x86_64-*-*) 25872 gmp_cv_asm_rodata="$gmp_cv_asm_data" ;; 25873 *) 25874 gmp_cv_asm_rodata="$gmp_cv_asm_text" ;; 25875 esac 25876 25877 cat >conftest.c <<EOF 25878 extern const int foo[]; /* Suppresses C++'s suppression of foo */ 25879 const int foo[] = {1,2,3}; 25880 EOF 25881 echo "Test program:" >&5 25882 cat conftest.c >&5 25883 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5" 25884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 25885 (eval $gmp_compile) 2>&5 25886 ac_status=$? 25887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25888 test $ac_status = 0; }; then 25889 echo "Compiler output:" >&5 25890 cat conftest.s >&5 25891 if test $gmp_cv_asm_underscore = yes; then 25892 tmp_gsym_prefix=_ 25893 else 25894 tmp_gsym_prefix= 25895 fi 25896 # must see our label 25897 if grep "^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" conftest.s >/dev/null 2>&5; then 25898 # take the last directive before our label (hence skipping segments 25899 # getting debugging info etc) 25900 tmp_match=`sed -n "/^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix/q 25901 /^[. ]*data/p 25902 /^[. ]*rdata/p 25903 /^[. ]*text/p 25904 /^[. ]*section/p 25905 /^[. ]*csect/p 25906 /^[. ]*CSECT/p" conftest.s | sed -n '$p'` 25907 echo "Match: $tmp_match" >&5 25908 if test -n "$tmp_match"; then 25909 gmp_cv_asm_rodata=$tmp_match 25910 fi 25911 else 25912 echo "Couldn't find label: ^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" >&5 25913 fi 25914 fi 25915 rm -f conftest* 25916 25917 fi 25918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_rodata" >&5 25919 $as_echo "$gmp_cv_asm_rodata" >&6; } 25920 echo "define(<RODATA>, <$gmp_cv_asm_rodata>)" >> $gmp_tmpconfigm4 25921 25922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .type directive" >&5 25923 $as_echo_n "checking for assembler .type directive... " >&6; } 25924 if ${gmp_cv_asm_type+:} false; then : 25925 $as_echo_n "(cached) " >&6 25926 else 25927 gmp_cv_asm_type= 25928 for gmp_tmp_prefix in @ \# %; do 25929 cat >conftest.s <<EOF 25930 .type sym,${gmp_tmp_prefix}function 25931 EOF 25932 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 25933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 25934 (eval $gmp_assemble) 2>&5 25935 ac_status=$? 25936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25937 test $ac_status = 0; }; then 25938 cat conftest.out >&5 25939 if grep "\.type pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ; 25940 else 25941 gmp_cv_asm_type=".type \$1,${gmp_tmp_prefix}\$2" 25942 break 25943 fi 25944 else 25945 cat conftest.out >&5 25946 echo "configure: failed program was:" >&5 25947 cat conftest.s >&5 25948 : 25949 fi 25950 rm -f conftest* 25951 25952 done 25953 rm -f conftest* 25954 25955 fi 25956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_type" >&5 25957 $as_echo "$gmp_cv_asm_type" >&6; } 25958 echo "define(<TYPE>, <$gmp_cv_asm_type>)" >> $gmp_tmpconfigm4 25959 25960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .size directive" >&5 25961 $as_echo_n "checking for assembler .size directive... " >&6; } 25962 if ${gmp_cv_asm_size+:} false; then : 25963 $as_echo_n "(cached) " >&6 25964 else 25965 gmp_cv_asm_size= 25966 cat >conftest.s <<EOF 25967 .size sym,1 25968 EOF 25969 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 25970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 25971 (eval $gmp_assemble) 2>&5 25972 ac_status=$? 25973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25974 test $ac_status = 0; }; then 25975 cat conftest.out >&5 25976 if grep "\.size pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ; 25977 else 25978 gmp_cv_asm_size=".size \$1,\$2" 25979 fi 25980 else 25981 cat conftest.out >&5 25982 echo "configure: failed program was:" >&5 25983 cat conftest.s >&5 25984 : 25985 fi 25986 rm -f conftest* 25987 25988 25989 fi 25990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_size" >&5 25991 $as_echo "$gmp_cv_asm_size" >&6; } 25992 echo "define(<SIZE>, <$gmp_cv_asm_size>)" >> $gmp_tmpconfigm4 25993 25994 25995 25996 25997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler local label prefix" >&5 25998 $as_echo_n "checking for assembler local label prefix... " >&6; } 25999 if ${gmp_cv_asm_lsym_prefix+:} false; then : 26000 $as_echo_n "(cached) " >&6 26001 else 26002 gmp_tmp_pre_appears=yes 26003 for gmp_tmp_pre in L .L $L $ L$; do 26004 echo "Trying $gmp_tmp_pre" >&5 26005 cat >conftest.s <<EOF 26006 $gmp_cv_asm_text 26007 dummy${gmp_cv_asm_label_suffix} 26008 ${gmp_tmp_pre}gurkmacka${gmp_cv_asm_label_suffix} 26009 EOF 26010 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 26011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 26012 (eval $gmp_assemble) 2>&5 26013 ac_status=$? 26014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26015 test $ac_status = 0; }; then 26016 cat conftest.out >&5 26017 if $NM conftest.$OBJEXT >conftest.nm 2>&5; then : ; else 26018 cat conftest.nm >&5 26019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$NM\" failure" >&5 26020 $as_echo "$as_me: WARNING: \"$NM\" failure" >&2;} 26021 break 26022 fi 26023 cat conftest.nm >&5 26024 if grep gurkmacka conftest.nm >/dev/null; then : ; else 26025 # no mention of the symbol, this is good 26026 echo "$gmp_tmp_pre label doesn't appear in object file at all (good)" >&5 26027 gmp_cv_asm_lsym_prefix="$gmp_tmp_pre" 26028 gmp_tmp_pre_appears=no 26029 break 26030 fi 26031 if grep ' [a-zN] .*gurkmacka' conftest.nm >/dev/null; then 26032 # symbol mentioned as a local, use this if nothing better 26033 echo "$gmp_tmp_pre label is local but still in object file" >&5 26034 if test -z "$gmp_cv_asm_lsym_prefix"; then 26035 gmp_cv_asm_lsym_prefix="$gmp_tmp_pre" 26036 fi 26037 else 26038 echo "$gmp_tmp_pre label is something unknown" >&5 26039 fi 26040 26041 else 26042 cat conftest.out >&5 26043 echo "configure: failed program was:" >&5 26044 cat conftest.s >&5 26045 : 26046 fi 26047 rm -f conftest* 26048 26049 done 26050 rm -f conftest* 26051 if test -z "$gmp_cv_asm_lsym_prefix"; then 26052 gmp_cv_asm_lsym_prefix=L 26053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&5 26054 $as_echo "$as_me: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&2;} 26055 fi 26056 # for development purposes, note whether we got a purely temporary local label 26057 echo "Local label appears in object files: $gmp_tmp_pre_appears" >&5 26058 26059 fi 26060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_lsym_prefix" >&5 26061 $as_echo "$gmp_cv_asm_lsym_prefix" >&6; } 26062 echo "define(<LSYM_PREFIX>, <${gmp_cv_asm_lsym_prefix}>)" >> $gmp_tmpconfigm4 26063 26064 cat >>confdefs.h <<_ACEOF 26065 #define LSYM_PREFIX "$gmp_cv_asm_lsym_prefix" 26066 _ACEOF 26067 26068 26069 26070 26071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler byte directive" >&5 26072 $as_echo_n "checking for assembler byte directive... " >&6; } 26073 if ${gmp_cv_asm_byte+:} false; then : 26074 $as_echo_n "(cached) " >&6 26075 else 26076 for i in .byte data1; do 26077 echo "trying $i" >&5 26078 cat >conftest.s <<EOF 26079 $gmp_cv_asm_data 26080 $i 0 26081 26082 EOF 26083 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 26084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 26085 (eval $gmp_assemble) 2>&5 26086 ac_status=$? 26087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26088 test $ac_status = 0; }; then 26089 cat conftest.out >&5 26090 gmp_cv_asm_byte=$i 26091 rm -f conftest* 26092 break 26093 else 26094 cat conftest.out >&5 26095 echo "configure: failed program was:" >&5 26096 cat conftest.s >&5 26097 cat conftest.out >&5 26098 fi 26099 rm -f conftest* 26100 26101 done 26102 if test -z "$gmp_cv_asm_byte"; then 26103 as_fn_error $? "Cannot determine how to emit a data byte" "$LINENO" 5 26104 fi 26105 26106 fi 26107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_byte" >&5 26108 $as_echo "$gmp_cv_asm_byte" >&6; } 26109 26110 26111 26112 26113 26114 26115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a 32-bit word" >&5 26116 $as_echo_n "checking how to define a 32-bit word... " >&6; } 26117 if ${gmp_cv_asm_w32+:} false; then : 26118 $as_echo_n "(cached) " >&6 26119 else 26120 case $host in 26121 *-*-hpux*) 26122 # FIXME: HPUX puts first symbol at 0x40000000, breaking our assumption 26123 # that it's at 0x0. We'll have to declare another symbol before the 26124 # .long/.word and look at the distance between the two symbols. The 26125 # only problem is that the sed expression(s) barfs (on Solaris, for 26126 # example) for the symbol with value 0. For now, HPUX uses .word. 26127 gmp_cv_asm_w32=".word" 26128 ;; 26129 *-*-*) 26130 gmp_tmp_val= 26131 for gmp_tmp_op in .long .word data4; do 26132 cat >conftest.s <<EOF 26133 $gmp_cv_asm_data 26134 $gmp_cv_asm_globl foo 26135 $gmp_tmp_op 0 26136 foo$gmp_cv_asm_label_suffix 26137 $gmp_cv_asm_byte 0 26138 EOF 26139 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 26140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 26141 (eval $gmp_assemble) 2>&5 26142 ac_status=$? 26143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26144 test $ac_status = 0; }; then 26145 cat conftest.out >&5 26146 gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \ 26147 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'` 26148 if test "$gmp_tmp_val" = 4; then 26149 gmp_cv_asm_w32="$gmp_tmp_op" 26150 break 26151 fi 26152 else 26153 cat conftest.out >&5 26154 echo "configure: failed program was:" >&5 26155 cat conftest.s >&5 26156 : 26157 fi 26158 rm -f conftest* 26159 26160 done 26161 rm -f conftest* 26162 ;; 26163 esac 26164 if test -z "$gmp_cv_asm_w32"; then 26165 as_fn_error $? "cannot determine how to define a 32-bit word" "$LINENO" 5 26166 fi 26167 26168 fi 26169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_w32" >&5 26170 $as_echo "$gmp_cv_asm_w32" >&6; } 26171 echo "define(<W32>, <$gmp_cv_asm_w32>)" >> $gmp_tmpconfigm4 26172 26173 26174 26175 26176 26177 26178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align assembly directive is logarithmic" >&5 26179 $as_echo_n "checking if .align assembly directive is logarithmic... " >&6; } 26180 if ${gmp_cv_asm_align_log+:} false; then : 26181 $as_echo_n "(cached) " >&6 26182 else 26183 cat >conftest.s <<EOF 26184 $gmp_cv_asm_data 26185 .align 4 26186 $gmp_cv_asm_globl foo 26187 $gmp_cv_asm_byte 1 26188 .align 4 26189 foo$gmp_cv_asm_label_suffix 26190 $gmp_cv_asm_byte 2 26191 EOF 26192 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 26193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 26194 (eval $gmp_assemble) 2>&5 26195 ac_status=$? 26196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26197 test $ac_status = 0; }; then 26198 cat conftest.out >&5 26199 gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \ 26200 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'` 26201 if test "$gmp_tmp_val" = "10" || test "$gmp_tmp_val" = "16"; then 26202 gmp_cv_asm_align_log=yes 26203 else 26204 gmp_cv_asm_align_log=no 26205 fi 26206 else 26207 cat conftest.out >&5 26208 echo "configure: failed program was:" >&5 26209 cat conftest.s >&5 26210 as_fn_error $? "cannot assemble alignment test" "$LINENO" 5 26211 fi 26212 rm -f conftest* 26213 26214 fi 26215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_log" >&5 26216 $as_echo "$gmp_cv_asm_align_log" >&6; } 26217 26218 26219 echo "define(<ALIGN_LOGARITHMIC>,<$gmp_cv_asm_align_log>)" >> $gmp_tmpconfigm4 26220 26221 26222 26223 case $host in 26224 arm*-*-* | aarch64*-*-*) 26225 case $ABI in 26226 32) 26227 26228 echo "include_mpn(\`arm/arm-defs.m4')" >> $gmp_tmpconfigm4i 26229 ;; 26230 64) 26231 case $host in 26232 *-*-darwin*) 26233 26234 echo "include_mpn(\`arm64/darwin.m4')" >> $gmp_tmpconfigm4i 26235 ;; 26236 *) 26237 26238 echo "include_mpn(\`arm64/arm64-defs.m4')" >> $gmp_tmpconfigm4i 26239 ;; 26240 esac 26241 ;; 26242 esac 26243 ;; 26244 hppa*-*-*) 26245 # for both pa32 and pa64 26246 26247 echo "include_mpn(\`pa32/pa-defs.m4')" >> $gmp_tmpconfigm4i 26248 26249 ;; 26250 ia64*-*-* | itanium-*-* | itanium2-*-*) 26251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler .align padding is good" >&5 26252 $as_echo_n "checking whether assembler .align padding is good... " >&6; } 26253 if ${gmp_cv_asm_ia64_align_ok+:} false; then : 26254 $as_echo_n "(cached) " >&6 26255 else 26256 cat >conftest.awk <<\EOF 26257 BEGIN { 26258 want[0] = "011" 26259 want[1] = "160" 26260 want[2] = "074" 26261 want[3] = "040" 26262 want[4] = "000" 26263 want[5] = "040" 26264 want[6] = "020" 26265 want[7] = "221" 26266 want[8] = "114" 26267 want[9] = "000" 26268 want[10] = "100" 26269 want[11] = "200" 26270 want[12] = "122" 26271 want[13] = "261" 26272 want[14] = "000" 26273 want[15] = "200" 26274 26275 want[16] = "000" 26276 want[17] = "004" 26277 want[18] = "000" 26278 want[19] = "000" 26279 want[20] = "000" 26280 want[21] = "000" 26281 want[22] = "002" 26282 want[23] = "000" 26283 want[24] = "000" 26284 want[25] = "000" 26285 want[26] = "000" 26286 want[27] = "001" 26287 want[28] = "000" 26288 want[29] = "000" 26289 want[30] = "000" 26290 want[31] = "014" 26291 26292 want[32] = "011" 26293 want[33] = "270" 26294 want[34] = "140" 26295 want[35] = "062" 26296 want[36] = "000" 26297 want[37] = "040" 26298 want[38] = "240" 26299 want[39] = "331" 26300 want[40] = "160" 26301 want[41] = "000" 26302 want[42] = "100" 26303 want[43] = "240" 26304 want[44] = "343" 26305 want[45] = "371" 26306 want[46] = "000" 26307 want[47] = "200" 26308 26309 result = "yes" 26310 } 26311 { 26312 for (f = 2; f <= NF; f++) 26313 { 26314 for (i = 0; i < 47; i++) 26315 got[i] = got[i+1]; 26316 got[47] = $f; 26317 26318 found = 1 26319 for (i = 0; i < 48; i++) 26320 if (got[i] != want[i]) 26321 { 26322 found = 0 26323 break 26324 } 26325 if (found) 26326 { 26327 result = "no" 26328 exit 26329 } 26330 } 26331 } 26332 END { 26333 print result 26334 } 26335 EOF 26336 cat >conftest.s <<EOF 26337 .text 26338 .align 32 26339 { .mmi; add r14 = r15, r16 26340 add r17 = r18, r19 26341 add r20 = r21, r22 ;; } 26342 .align 32 26343 { .mmi; add r23 = r24, r25 26344 add r26 = r27, r28 26345 add r29 = r30, r31 ;; } 26346 26347 EOF 26348 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 26349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 26350 (eval $gmp_assemble) 2>&5 26351 ac_status=$? 26352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26353 test $ac_status = 0; }; then 26354 cat conftest.out >&5 26355 gmp_cv_asm_ia64_align_ok=`od -b conftest.$OBJEXT | $AWK -f conftest.awk` 26356 else 26357 cat conftest.out >&5 26358 echo "configure: failed program was:" >&5 26359 cat conftest.s >&5 26360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5 26361 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;} 26362 gmp_cv_asm_ia64_align_ok=yes 26363 fi 26364 rm -f conftest* 26365 26366 26367 fi 26368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_ia64_align_ok" >&5 26369 $as_echo "$gmp_cv_asm_ia64_align_ok" >&6; } 26370 26371 echo "define(<IA64_ALIGN_OK>, <\`$gmp_cv_asm_ia64_align_ok'>)" >> $gmp_tmpconfigm4 26372 26373 26374 ;; 26375 m68k-*-* | m68[0-9][0-9][0-9]-*-*) 26376 26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler instruction and register style" >&5 26378 $as_echo_n "checking assembler instruction and register style... " >&6; } 26379 if ${gmp_cv_asm_m68k_instruction+:} false; then : 26380 $as_echo_n "(cached) " >&6 26381 else 26382 for i in "addl %d0,%d1" "add.l %d0,%d1" "addl d0,d1" "add.l d0,d1"; do 26383 cat >conftest.s <<EOF 26384 $gmp_cv_asm_text 26385 $i 26386 EOF 26387 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 26388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 26389 (eval $gmp_assemble) 2>&5 26390 ac_status=$? 26391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26392 test $ac_status = 0; }; then 26393 cat conftest.out >&5 26394 gmp_cv_asm_m68k_instruction=$i 26395 rm -f conftest* 26396 break 26397 else 26398 cat conftest.out >&5 26399 echo "configure: failed program was:" >&5 26400 cat conftest.s >&5 26401 : 26402 fi 26403 rm -f conftest* 26404 26405 done 26406 if test -z "$gmp_cv_asm_m68k_instruction"; then 26407 as_fn_error $? "cannot determine assembler instruction and register style" "$LINENO" 5 26408 fi 26409 26410 fi 26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_instruction" >&5 26412 $as_echo "$gmp_cv_asm_m68k_instruction" >&6; } 26413 case $gmp_cv_asm_m68k_instruction in 26414 "addl d0,d1") want_dot_size=no; want_register_percent=no ;; 26415 "addl %d0,%d1") want_dot_size=no; want_register_percent=yes ;; 26416 "add.l d0,d1") want_dot_size=yes; want_register_percent=no ;; 26417 "add.l %d0,%d1") want_dot_size=yes; want_register_percent=yes ;; 26418 *) as_fn_error $? "oops, unrecognised instruction and register style" "$LINENO" 5 ;; 26419 esac 26420 26421 echo "define(<WANT_REGISTER_PERCENT>, <\`$want_register_percent'>)" >> $gmp_tmpconfigm4 26422 26423 26424 echo "define(<WANT_DOT_SIZE>, <\`$want_dot_size'>)" >> $gmp_tmpconfigm4 26425 26426 26427 26428 26429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler addressing style" >&5 26430 $as_echo_n "checking assembler addressing style... " >&6; } 26431 if ${gmp_cv_asm_m68k_addressing+:} false; then : 26432 $as_echo_n "(cached) " >&6 26433 else 26434 case $gmp_cv_asm_m68k_instruction in 26435 addl*) movel=movel ;; 26436 add.l*) movel=move.l ;; 26437 *) as_fn_error $? "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;; 26438 esac 26439 case $gmp_cv_asm_m68k_instruction in 26440 *"%d0,%d1") dreg=%d0; areg=%a0 ;; 26441 *"d0,d1") dreg=d0; areg=a0 ;; 26442 *) as_fn_error $? "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;; 26443 esac 26444 cat >conftest.s <<EOF 26445 $gmp_cv_asm_text 26446 $movel $dreg, $areg@- 26447 EOF 26448 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 26449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 26450 (eval $gmp_assemble) 2>&5 26451 ac_status=$? 26452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26453 test $ac_status = 0; }; then 26454 cat conftest.out >&5 26455 gmp_cv_asm_m68k_addressing=mit 26456 else 26457 cat conftest.out >&5 26458 echo "configure: failed program was:" >&5 26459 cat conftest.s >&5 26460 cat >conftest.s <<EOF 26461 $gmp_cv_asm_text 26462 $movel $dreg, -($areg) 26463 EOF 26464 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 26465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 26466 (eval $gmp_assemble) 2>&5 26467 ac_status=$? 26468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26469 test $ac_status = 0; }; then 26470 cat conftest.out >&5 26471 gmp_cv_asm_m68k_addressing=motorola 26472 else 26473 cat conftest.out >&5 26474 echo "configure: failed program was:" >&5 26475 cat conftest.s >&5 26476 as_fn_error $? "cannot determine assembler addressing style" "$LINENO" 5 26477 fi 26478 rm -f conftest* 26479 26480 fi 26481 rm -f conftest* 26482 26483 26484 fi 26485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_addressing" >&5 26486 $as_echo "$gmp_cv_asm_m68k_addressing" >&6; } 26487 26488 echo "define(<WANT_ADDRESSING>, <\`$gmp_cv_asm_m68k_addressing'>)" >> $gmp_tmpconfigm4 26489 26490 26491 26492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler shortest branches" >&5 26493 $as_echo_n "checking assembler shortest branches... " >&6; } 26494 if ${gmp_cv_asm_m68k_branches+:} false; then : 26495 $as_echo_n "(cached) " >&6 26496 else 26497 for i in jra jbra bra; do 26498 cat >conftest.s <<EOF 26499 $gmp_cv_asm_text 26500 foo$gmp_cv_asm_label_suffix 26501 $i foo 26502 EOF 26503 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 26504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 26505 (eval $gmp_assemble) 2>&5 26506 ac_status=$? 26507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26508 test $ac_status = 0; }; then 26509 cat conftest.out >&5 26510 gmp_cv_asm_m68k_branches=$i 26511 rm -f conftest* 26512 break 26513 else 26514 cat conftest.out >&5 26515 echo "configure: failed program was:" >&5 26516 cat conftest.s >&5 26517 : 26518 fi 26519 rm -f conftest* 26520 26521 done 26522 if test -z "$gmp_cv_asm_m68k_branches"; then 26523 as_fn_error $? "cannot determine assembler branching style" "$LINENO" 5 26524 fi 26525 26526 fi 26527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_branches" >&5 26528 $as_echo "$gmp_cv_asm_m68k_branches" >&6; } 26529 26530 echo "define(<WANT_BRANCHES>, <\`$gmp_cv_asm_m68k_branches'>)" >> $gmp_tmpconfigm4 26531 26532 26533 ;; 26534 powerpc*-*-* | power[3-9]-*-*) 26535 26536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler output is PIC by default" >&5 26537 $as_echo_n "checking whether compiler output is PIC by default... " >&6; } 26538 if ${gmp_cv_asm_powerpc_pic+:} false; then : 26539 $as_echo_n "(cached) " >&6 26540 else 26541 gmp_cv_asm_powerpc_pic=yes 26542 cat >conftest.c <<EOF 26543 int foo; 26544 int *bar() { return &foo; } 26545 EOF 26546 echo "Test program:" >&5 26547 cat conftest.c >&5 26548 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5" 26549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 26550 (eval $gmp_compile) 2>&5 26551 ac_status=$? 26552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26553 test $ac_status = 0; }; then 26554 echo "Compiler output:" >&5 26555 cat conftest.s >&5 26556 if grep 'foo@ha' conftest.s >/dev/null 2>&5; then 26557 gmp_cv_asm_powerpc_pic=no 26558 fi 26559 if grep 'ha16(_foo)' conftest.s >/dev/null 2>&5; then 26560 gmp_cv_asm_powerpc_pic=no 26561 fi 26562 fi 26563 rm -f conftest* 26564 26565 fi 26566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_pic" >&5 26567 $as_echo "$gmp_cv_asm_powerpc_pic" >&6; } 26568 26569 echo "define(<PIC_ALWAYS>,<$gmp_cv_asm_powerpc_pic>)" >> $gmp_tmpconfigm4 26570 26571 26572 26573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler needs r on registers" >&5 26574 $as_echo_n "checking if the assembler needs r on registers... " >&6; } 26575 if ${gmp_cv_asm_powerpc_r_registers+:} false; then : 26576 $as_echo_n "(cached) " >&6 26577 else 26578 cat >conftest.s <<EOF 26579 $gmp_cv_asm_text 26580 mtctr 6 26581 EOF 26582 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 26583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 26584 (eval $gmp_assemble) 2>&5 26585 ac_status=$? 26586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26587 test $ac_status = 0; }; then 26588 cat conftest.out >&5 26589 gmp_cv_asm_powerpc_r_registers=no 26590 else 26591 cat conftest.out >&5 26592 echo "configure: failed program was:" >&5 26593 cat conftest.s >&5 26594 cat >conftest.s <<EOF 26595 $gmp_cv_asm_text 26596 mtctr r6 26597 EOF 26598 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 26599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 26600 (eval $gmp_assemble) 2>&5 26601 ac_status=$? 26602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26603 test $ac_status = 0; }; then 26604 cat conftest.out >&5 26605 gmp_cv_asm_powerpc_r_registers=yes 26606 else 26607 cat conftest.out >&5 26608 echo "configure: failed program was:" >&5 26609 cat conftest.s >&5 26610 as_fn_error $? "neither \"mtctr 6\" nor \"mtctr r6\" works" "$LINENO" 5 26611 fi 26612 rm -f conftest* 26613 26614 fi 26615 rm -f conftest* 26616 26617 fi 26618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_r_registers" >&5 26619 $as_echo "$gmp_cv_asm_powerpc_r_registers" >&6; } 26620 26621 26622 echo "define(<WANT_R_REGISTERS>,<$gmp_cv_asm_powerpc_r_registers>)" >> $gmp_tmpconfigm4 26623 26624 26625 26626 echo "include_mpn(\`powerpc32/powerpc-defs.m4')" >> $gmp_tmpconfigm4i 26627 26628 26629 # Check for Linux ELFv1 ABI 26630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26631 /* end confdefs.h. */ 26632 #if _CALL_ELF == 1 26633 yes 26634 #endif 26635 _ACEOF 26636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26637 $EGREP "yes" >/dev/null 2>&1; then : 26638 26639 echo "define(<ELFv1_ABI>)" >> $gmp_tmpconfigm4 26640 26641 fi 26642 rm -f conftest* 26643 26644 26645 # Check for Linux ELFv2 ABI 26646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26647 /* end confdefs.h. */ 26648 #if _CALL_ELF == 2 26649 yes 26650 #endif 26651 _ACEOF 26652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26653 $EGREP "yes" >/dev/null 2>&1; then : 26654 26655 echo "define(<ELFv2_ABI>)" >> $gmp_tmpconfigm4 26656 26657 fi 26658 rm -f conftest* 26659 26660 26661 case $host in 26662 *-*-aix*) 26663 case $ABI in 26664 mode64) 26665 echo "include_mpn(\`powerpc64/aix.m4')" >> $gmp_tmpconfigm4i 26666 ;; 26667 *) 26668 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i 26669 ;; 26670 esac 26671 ;; 26672 *-*-linux* | *-*-*bsd*) 26673 case $ABI in 26674 mode64) 26675 echo "include_mpn(\`powerpc64/elf.m4')" >> $gmp_tmpconfigm4i 26676 ;; 26677 mode32 | 32) 26678 echo "include_mpn(\`powerpc32/elf.m4')" >> $gmp_tmpconfigm4i 26679 ;; 26680 esac 26681 ;; 26682 *-*-darwin*) 26683 case $ABI in 26684 mode64) 26685 echo "include_mpn(\`powerpc64/darwin.m4')" >> $gmp_tmpconfigm4i 26686 ;; 26687 mode32 | 32) 26688 echo "include_mpn(\`powerpc32/darwin.m4')" >> $gmp_tmpconfigm4i 26689 ;; 26690 esac 26691 ;; 26692 *) 26693 # Assume unrecognized operating system is the powerpc eABI 26694 26695 echo "include_mpn(\`powerpc32/eabi.m4')" >> $gmp_tmpconfigm4i 26696 26697 ;; 26698 esac 26699 ;; 26700 power*-*-aix*) 26701 26702 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i 26703 26704 ;; 26705 *sparc*-*-*) 26706 case $ABI in 26707 64) 26708 26709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler accepts \".register\"" >&5 26710 $as_echo_n "checking if the assembler accepts \".register\"... " >&6; } 26711 if ${gmp_cv_asm_sparc_register+:} false; then : 26712 $as_echo_n "(cached) " >&6 26713 else 26714 cat >conftest.s <<EOF 26715 $gmp_cv_asm_text 26716 .register %g2,#scratch 26717 26718 EOF 26719 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 26720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 26721 (eval $gmp_assemble) 2>&5 26722 ac_status=$? 26723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26724 test $ac_status = 0; }; then 26725 cat conftest.out >&5 26726 gmp_cv_asm_sparc_register=yes 26727 else 26728 cat conftest.out >&5 26729 echo "configure: failed program was:" >&5 26730 cat conftest.s >&5 26731 gmp_cv_asm_sparc_register=no 26732 fi 26733 rm -f conftest* 26734 26735 fi 26736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_sparc_register" >&5 26737 $as_echo "$gmp_cv_asm_sparc_register" >&6; } 26738 26739 26740 echo "define(<HAVE_REGISTER>,<$gmp_cv_asm_sparc_register>)" >> $gmp_tmpconfigm4 26741 26742 26743 ;; 26744 esac 26745 26746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler accepts gotdata relocations" >&5 26747 $as_echo_n "checking if the assembler accepts gotdata relocations... " >&6; } 26748 if ${gmp_cv_asm_sparc_gotdata+:} false; then : 26749 $as_echo_n "(cached) " >&6 26750 else 26751 cat >conftest.s <<EOF 26752 $gmp_cv_asm_text 26753 .text 26754 sethi %gdop_hix22(symbol), %g1 26755 or %g1, %gdop_lox10(symbol), %g1 26756 26757 EOF 26758 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 26759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 26760 (eval $gmp_assemble) 2>&5 26761 ac_status=$? 26762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26763 test $ac_status = 0; }; then 26764 cat conftest.out >&5 26765 gmp_cv_asm_sparc_gotdata=yes 26766 else 26767 cat conftest.out >&5 26768 echo "configure: failed program was:" >&5 26769 cat conftest.s >&5 26770 gmp_cv_asm_sparc_gotdata=no 26771 fi 26772 rm -f conftest* 26773 26774 fi 26775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_sparc_gotdata" >&5 26776 $as_echo "$gmp_cv_asm_sparc_gotdata" >&6; } 26777 26778 26779 echo "define(<HAVE_GOTDATA>,<$gmp_cv_asm_sparc_gotdata>)" >> $gmp_tmpconfigm4 26780 26781 26782 26783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler can support shared PIC thunks" >&5 26784 $as_echo_n "checking if the assembler can support shared PIC thunks... " >&6; } 26785 if ${gmp_cv_asm_sparc_shared_thunks+:} false; then : 26786 $as_echo_n "(cached) " >&6 26787 else 26788 cat >conftest.s <<EOF 26789 $gmp_cv_asm_text 26790 .section .text.__sparc_get_pc_thunk.l7,"axG",@progbits,__sparc_get_pc_thunk.l7,comdat 26791 .weak __sparc_get_pc_thunk.l7 26792 .hidden __sparc_get_pc_thunk.l7 26793 .type __sparc_get_pc_thunk.l7, #function 26794 __sparc_get_pc_thunk.l7: 26795 jmp %o7+8 26796 add %o7, %l7, %l7 26797 26798 EOF 26799 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 26800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 26801 (eval $gmp_assemble) 2>&5 26802 ac_status=$? 26803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26804 test $ac_status = 0; }; then 26805 cat conftest.out >&5 26806 gmp_cv_asm_sparc_shared_thunks=yes 26807 else 26808 cat conftest.out >&5 26809 echo "configure: failed program was:" >&5 26810 cat conftest.s >&5 26811 gmp_cv_asm_sparc_shared_thunks=no 26812 fi 26813 rm -f conftest* 26814 26815 fi 26816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_sparc_shared_thunks" >&5 26817 $as_echo "$gmp_cv_asm_sparc_shared_thunks" >&6; } 26818 26819 26820 echo "define(<HAVE_SHARED_THUNKS>,<$gmp_cv_asm_sparc_shared_thunks>)" >> $gmp_tmpconfigm4 26821 26822 26823 ;; 26824 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar*-*-* | bulldozer*-*-* | piledriver*-*-* | steamroller*-*-* | excavator*-*-* | zen*-*-* | pentium4-*-* | atom-*-* | silvermont-*-* | goldmont-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-* | nehalem*-*-* | westmere*-*-* | sandybridge*-*-* | ivybridge*-*-* | haswell*-*-* | broadwell*-*-* | skylake*-*-* | kabylake*-*-*) 26825 26826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .align directive accepts an 0x90 fill in .text" >&5 26827 $as_echo_n "checking if the .align directive accepts an 0x90 fill in .text... " >&6; } 26828 if ${gmp_cv_asm_align_fill_0x90+:} false; then : 26829 $as_echo_n "(cached) " >&6 26830 else 26831 cat >conftest.s <<EOF 26832 $gmp_cv_asm_text 26833 .align 4, 0x90 26834 .byte 0 26835 .align 4, 0x90 26836 EOF 26837 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 26838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 26839 (eval $gmp_assemble) 2>&5 26840 ac_status=$? 26841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26842 test $ac_status = 0; }; then 26843 cat conftest.out >&5 26844 if grep "Warning: Fill parameter ignored for executable section" conftest.out >/dev/null; then 26845 echo "Suppressing this warning by omitting 0x90" 1>&5 26846 gmp_cv_asm_align_fill_0x90=no 26847 else 26848 gmp_cv_asm_align_fill_0x90=yes 26849 fi 26850 else 26851 cat conftest.out >&5 26852 echo "configure: failed program was:" >&5 26853 cat conftest.s >&5 26854 gmp_cv_asm_align_fill_0x90=no 26855 fi 26856 rm -f conftest* 26857 26858 fi 26859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_fill_0x90" >&5 26860 $as_echo "$gmp_cv_asm_align_fill_0x90" >&6; } 26861 26862 26863 echo "define(<ALIGN_FILL_0x90>,<$gmp_cv_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4 26864 26865 26866 if test "$x86_have_mulx" = yes; then 26867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about the mulx instruction" >&5 26868 $as_echo_n "checking if the assembler knows about the mulx instruction... " >&6; } 26869 if ${gmp_cv_asm_x86_mulx+:} false; then : 26870 $as_echo_n "(cached) " >&6 26871 else 26872 cat >conftest.s <<EOF 26873 .text 26874 mulx %r8, %r9, %r10 26875 EOF 26876 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 26877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 26878 (eval $gmp_assemble) 2>&5 26879 ac_status=$? 26880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26881 test $ac_status = 0; }; then 26882 cat conftest.out >&5 26883 gmp_cv_asm_x86_mulx=yes 26884 else 26885 cat conftest.out >&5 26886 echo "configure: failed program was:" >&5 26887 cat conftest.s >&5 26888 gmp_cv_asm_x86_mulx=no 26889 fi 26890 rm -f conftest* 26891 26892 26893 fi 26894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_mulx" >&5 26895 $as_echo "$gmp_cv_asm_x86_mulx" >&6; } 26896 case $gmp_cv_asm_x86_mulx in 26897 yes) 26898 26899 $as_echo "#define X86_ASM_MULX 1" >>confdefs.h 26900 26901 : 26902 ;; 26903 *) 26904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5 26905 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} 26906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5 26907 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;} 26908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has the mulx instruction, but it can't be" >&5 26909 $as_echo "$as_me: WARNING: | Host CPU has the mulx instruction, but it can't be" >&2;} 26910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | assembled by" >&5 26911 $as_echo "$as_me: WARNING: | assembled by" >&2;} 26912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5 26913 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;} 26914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Older x86 instructions will be used." >&5 26915 $as_echo "$as_me: WARNING: | Older x86 instructions will be used." >&2;} 26916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5 26917 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;} 26918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5 26919 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} 26920 : 26921 ;; 26922 esac 26923 26924 fi 26925 26926 26927 26928 26929 26930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler COFF type directives" >&5 26931 $as_echo_n "checking for assembler COFF type directives... " >&6; } 26932 if ${gmp_cv_asm_x86_coff_type+:} false; then : 26933 $as_echo_n "(cached) " >&6 26934 else 26935 cat >conftest.s <<EOF 26936 $gmp_cv_asm_text 26937 $gmp_cv_asm_globl ${tmp_gsym_prefix}foo$gmp_cv_asm_globl_attr 26938 .def ${tmp_gsym_prefix}foo 26939 .scl 2 26940 .type 32 26941 .endef 26942 ${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix 26943 26944 EOF 26945 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 26946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 26947 (eval $gmp_assemble) 2>&5 26948 ac_status=$? 26949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26950 test $ac_status = 0; }; then 26951 cat conftest.out >&5 26952 gmp_cv_asm_x86_coff_type=yes 26953 else 26954 cat conftest.out >&5 26955 echo "configure: failed program was:" >&5 26956 cat conftest.s >&5 26957 gmp_cv_asm_x86_coff_type=no 26958 fi 26959 rm -f conftest* 26960 26961 26962 fi 26963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_coff_type" >&5 26964 $as_echo "$gmp_cv_asm_x86_coff_type" >&6; } 26965 echo "define(<HAVE_COFF_TYPE>, <$gmp_cv_asm_x86_coff_type>)" >> $gmp_tmpconfigm4 26966 26967 case $ABI in 26968 32) 26969 26970 echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i 26971 26972 $as_echo "#define HAVE_HOST_CPU_FAMILY_x86 1" >>confdefs.h 26973 26974 26975 26976 26977 26978 26979 26980 26981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore" >&5 26982 $as_echo_n "checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore... " >&6; } 26983 if ${gmp_cv_asm_x86_got_underscore+:} false; then : 26984 $as_echo_n "(cached) " >&6 26985 else 26986 gmp_cv_asm_x86_got_underscore="not applicable" 26987 if test $gmp_cv_asm_underscore = yes; then 26988 tmp_gsym_prefix=_ 26989 else 26990 tmp_gsym_prefix= 26991 fi 26992 for tmp_underscore in "" "_"; do 26993 cat >conftest.s <<EOF 26994 $gmp_cv_asm_text 26995 $gmp_cv_asm_globl ${tmp_gsym_prefix}main$gmp_cv_asm_globl_attr 26996 ${tmp_gsym_prefix}main$gmp_cv_asm_label_suffix 26997 addl $ ${tmp_underscore}_GLOBAL_OFFSET_TABLE_, %ebx 26998 EOF 26999 gmp_compile="$CCAS $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.s >&5 && $CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.$OBJEXT >&5" 27000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 27001 (eval $gmp_compile) 2>&5 27002 ac_status=$? 27003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27004 test $ac_status = 0; }; then 27005 if test "$tmp_underscore" = "_"; then 27006 gmp_cv_asm_x86_got_underscore=yes 27007 else 27008 gmp_cv_asm_x86_got_underscore=no 27009 fi 27010 break 27011 fi 27012 done 27013 rm -f conftest* a.out b.out a.exe a_out.exe 27014 27015 fi 27016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_got_underscore" >&5 27017 $as_echo "$gmp_cv_asm_x86_got_underscore" >&6; } 27018 if test "$gmp_cv_asm_x86_got_underscore" = "yes"; then 27019 27020 echo 'define(<GOT_GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4 27021 27022 else 27023 27024 echo 'define(<GOT_GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4 27025 27026 fi 27027 27028 27029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler takes cl with shldl" >&5 27030 $as_echo_n "checking if the assembler takes cl with shldl... " >&6; } 27031 if ${gmp_cv_asm_x86_shldl_cl+:} false; then : 27032 $as_echo_n "(cached) " >&6 27033 else 27034 cat >conftest.s <<EOF 27035 $gmp_cv_asm_text 27036 shldl %cl, %eax, %ebx 27037 EOF 27038 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 27039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 27040 (eval $gmp_assemble) 2>&5 27041 ac_status=$? 27042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27043 test $ac_status = 0; }; then 27044 cat conftest.out >&5 27045 gmp_cv_asm_x86_shldl_cl=yes 27046 else 27047 cat conftest.out >&5 27048 echo "configure: failed program was:" >&5 27049 cat conftest.s >&5 27050 gmp_cv_asm_x86_shldl_cl=no 27051 fi 27052 rm -f conftest* 27053 27054 27055 fi 27056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_shldl_cl" >&5 27057 $as_echo "$gmp_cv_asm_x86_shldl_cl" >&6; } 27058 if test "$gmp_cv_asm_x86_shldl_cl" = "yes"; then 27059 27060 echo 'define(<WANT_SHLDL_CL>, <1>)' >>$gmp_tmpconfigm4 27061 27062 else 27063 27064 echo 'define(<WANT_SHLDL_CL>, <0>)' >>$gmp_tmpconfigm4 27065 27066 fi 27067 27068 case $enable_profiling in 27069 prof | gprof) # Check whether --enable-shared was given. 27070 if test "${enable_shared+set}" = set; then : 27071 enableval=$enable_shared; p=${PACKAGE-default} 27072 case $enableval in 27073 yes) enable_shared=yes ;; 27074 no) enable_shared=no ;; 27075 *) 27076 enable_shared=no 27077 # Look at the argument we got. We use all the common list separators. 27078 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 27079 for pkg in $enableval; do 27080 IFS=$lt_save_ifs 27081 if test "X$pkg" = "X$p"; then 27082 enable_shared=yes 27083 fi 27084 done 27085 IFS=$lt_save_ifs 27086 ;; 27087 esac 27088 else 27089 enable_shared=yes 27090 fi 27091 27092 27093 27094 27095 27096 27097 27098 27099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call x86 mcount" >&5 27100 $as_echo_n "checking how to call x86 mcount... " >&6; } 27101 cat >conftest.c <<EOF 27102 foo(){bar();} 27103 EOF 27104 27105 if test "$enable_static" = yes; then 27106 gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c 1>&5" 27107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5 27108 (eval $gmp_asmout_compile) 2>&5 27109 ac_status=$? 27110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27111 test $ac_status = 0; }; then 27112 if grep '\.data' conftest.s >/dev/null; then 27113 mcount_nonpic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s` 27114 else 27115 mcount_nonpic_reg= 27116 fi 27117 mcount_nonpic_call=`grep 'call.*mcount' conftest.s` 27118 if test -z "$mcount_nonpic_call"; then 27119 as_fn_error $? "Cannot find mcount call for non-PIC" "$LINENO" 5 27120 fi 27121 else 27122 as_fn_error $? "Cannot compile test program for non-PIC" "$LINENO" 5 27123 fi 27124 fi 27125 27126 if test "$enable_shared" = yes; then 27127 gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic -S conftest.c 1>&5" 27128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5 27129 (eval $gmp_asmout_compile) 2>&5 27130 ac_status=$? 27131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27132 test $ac_status = 0; }; then 27133 if grep '\.data' conftest.s >/dev/null; then 27134 case $lt_prog_compiler_pic in 27135 *-DDLL_EXPORT*) 27136 # Windows DLLs have non-PIC style mcount 27137 mcount_pic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s` 27138 ;; 27139 *) 27140 mcount_pic_reg=`sed -n 's/.*GOTOFF.*,\(%[a-z]*\).*$/\1/p' conftest.s` 27141 ;; 27142 esac 27143 else 27144 mcount_pic_reg= 27145 fi 27146 mcount_pic_call=`grep 'call.*mcount' conftest.s` 27147 if test -z "$mcount_pic_call"; then 27148 as_fn_error $? "Cannot find mcount call for PIC" "$LINENO" 5 27149 fi 27150 else 27151 as_fn_error $? "Cannot compile test program for PIC" "$LINENO" 5 27152 fi 27153 fi 27154 27155 27156 echo "define(<MCOUNT_NONPIC_REG>, <\`$mcount_nonpic_reg'>)" >> $gmp_tmpconfigm4 27157 27158 27159 echo "define(<MCOUNT_NONPIC_CALL>,<\`$mcount_nonpic_call'>)" >> $gmp_tmpconfigm4 27160 27161 27162 echo "define(<MCOUNT_PIC_REG>, <\`$mcount_pic_reg'>)" >> $gmp_tmpconfigm4 27163 27164 27165 echo "define(<MCOUNT_PIC_CALL>, <\`$mcount_pic_call'>)" >> $gmp_tmpconfigm4 27166 27167 27168 rm -f conftest.* 27169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: determined" >&5 27170 $as_echo "determined" >&6; } 27171 ;; 27172 esac 27173 case $host in 27174 *-*-darwin*) 27175 27176 echo "include_mpn(\`x86/darwin.m4')" >> $gmp_tmpconfigm4i 27177 ;; 27178 esac 27179 ;; 27180 64|x32) 27181 27182 echo "include_mpn(\`x86_64/x86_64-defs.m4')" >> $gmp_tmpconfigm4i 27183 27184 $as_echo "#define HAVE_HOST_CPU_FAMILY_x86_64 1" >>confdefs.h 27185 27186 case $host in 27187 *-*-darwin*) 27188 27189 echo "include_mpn(\`x86_64/darwin.m4')" >> $gmp_tmpconfigm4i 27190 ;; 27191 *-*-mingw* | *-*-msys | *-*-cygwin) 27192 27193 echo "include_mpn(\`x86_64/dos64.m4')" >> $gmp_tmpconfigm4i 27194 ;; 27195 *-openbsd*) 27196 27197 echo "define(<OPENBSD>,1)" >> $gmp_tmpconfigm4 27198 ;; 27199 *-linux*) 27200 27201 echo "define(<LINUX>,1)" >> $gmp_tmpconfigm4 27202 ;; 27203 esac 27204 ;; 27205 esac 27206 ;; 27207 esac 27208 fi 27209 27210 # For --enable-minithres, prepend "minithres" to path so that its special 27211 # gmp-mparam.h will be used. 27212 if test $enable_minithres = yes; then 27213 path="minithres $path" 27214 fi 27215 27216 # Create link for gmp-mparam.h. 27217 gmp_mparam_source= 27218 for gmp_mparam_dir in $path; do 27219 test "$no_create" = yes || rm -f gmp-mparam.h 27220 tmp_file=$srcdir/mpn/$gmp_mparam_dir/gmp-mparam.h 27221 if test -f $tmp_file; then 27222 ac_config_links="$ac_config_links gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" 27223 27224 gmp_srclinks="$gmp_srclinks gmp-mparam.h" 27225 gmp_mparam_source=$tmp_file 27226 break 27227 fi 27228 done 27229 if test -z "$gmp_mparam_source"; then 27230 as_fn_error $? "no version of gmp-mparam.h found in path: $path" "$LINENO" 5 27231 fi 27232 27233 # For a helpful message from tune/tuneup.c 27234 gmp_mparam_suggest=$gmp_mparam_source 27235 if test "$gmp_mparam_dir" = generic; then 27236 for i in $path; do break; done 27237 if test "$i" != generic; then 27238 gmp_mparam_suggest="new file $srcdir/mpn/$i/gmp-mparam.h" 27239 fi 27240 fi 27241 27242 cat >>confdefs.h <<_ACEOF 27243 #define GMP_MPARAM_H_SUGGEST "$gmp_mparam_source" 27244 _ACEOF 27245 27246 27247 27248 # Copy relevant parameters from gmp-mparam.h to config.m4. 27249 # We only do this for parameters that are used by some assembly files. 27250 # Fat binaries do this on a per-file basis, so skip in that case. 27251 # 27252 if test -z "$fat_path"; then 27253 for i in SQR_TOOM2_THRESHOLD BMOD_1_TO_MOD_1_THRESHOLD SHLD_SLOW SHRD_SLOW; do 27254 value=`sed -n 's/^#define '$i'[ ]*\([0-9A-Z][0-9A-Z_]*\).*$/\1/p' $gmp_mparam_source` 27255 if test -n "$value"; then 27256 27257 echo "define(<$i>,<$value>)" >> $gmp_tmpconfigm4 27258 27259 fi 27260 done 27261 fi 27262 27263 27264 # Sizes of some types, needed at preprocessing time. 27265 # 27266 # FIXME: The assumption that GMP_LIMB_BITS is 8*sizeof(mp_limb_t) might 27267 # be slightly rash, but it's true everywhere we know of and ought to be true 27268 # of any sensible system. In a generic C build, grepping LONG_BIT out of 27269 # <limits.h> might be an alternative, for maximum portability. 27270 # 27271 # The cast to long int works around a bug in the HP C Compiler 27272 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 27273 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 27274 # This bug is HP SR number 8606223364. 27275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 27276 $as_echo_n "checking size of void *... " >&6; } 27277 if ${ac_cv_sizeof_void_p+:} false; then : 27278 $as_echo_n "(cached) " >&6 27279 else 27280 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 27281 27282 else 27283 if test "$ac_cv_type_void_p" = yes; then 27284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27286 as_fn_error 77 "cannot compute sizeof (void *) 27287 See \`config.log' for more details" "$LINENO" 5; } 27288 else 27289 ac_cv_sizeof_void_p=0 27290 fi 27291 fi 27292 27293 fi 27294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 27295 $as_echo "$ac_cv_sizeof_void_p" >&6; } 27296 27297 27298 27299 cat >>confdefs.h <<_ACEOF 27300 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p 27301 _ACEOF 27302 27303 27304 # The cast to long int works around a bug in the HP C Compiler 27305 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 27306 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 27307 # This bug is HP SR number 8606223364. 27308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 27309 $as_echo_n "checking size of unsigned short... " >&6; } 27310 if ${ac_cv_sizeof_unsigned_short+:} false; then : 27311 $as_echo_n "(cached) " >&6 27312 else 27313 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : 27314 27315 else 27316 if test "$ac_cv_type_unsigned_short" = yes; then 27317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27319 as_fn_error 77 "cannot compute sizeof (unsigned short) 27320 See \`config.log' for more details" "$LINENO" 5; } 27321 else 27322 ac_cv_sizeof_unsigned_short=0 27323 fi 27324 fi 27325 27326 fi 27327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 27328 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; } 27329 27330 27331 27332 cat >>confdefs.h <<_ACEOF 27333 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 27334 _ACEOF 27335 27336 27337 # The cast to long int works around a bug in the HP C Compiler 27338 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 27339 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 27340 # This bug is HP SR number 8606223364. 27341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5 27342 $as_echo_n "checking size of unsigned... " >&6; } 27343 if ${ac_cv_sizeof_unsigned+:} false; then : 27344 $as_echo_n "(cached) " >&6 27345 else 27346 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned" "$ac_includes_default"; then : 27347 27348 else 27349 if test "$ac_cv_type_unsigned" = yes; then 27350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27352 as_fn_error 77 "cannot compute sizeof (unsigned) 27353 See \`config.log' for more details" "$LINENO" 5; } 27354 else 27355 ac_cv_sizeof_unsigned=0 27356 fi 27357 fi 27358 27359 fi 27360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5 27361 $as_echo "$ac_cv_sizeof_unsigned" >&6; } 27362 27363 27364 27365 cat >>confdefs.h <<_ACEOF 27366 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned 27367 _ACEOF 27368 27369 27370 # The cast to long int works around a bug in the HP C Compiler 27371 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 27372 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 27373 # This bug is HP SR number 8606223364. 27374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 27375 $as_echo_n "checking size of unsigned long... " >&6; } 27376 if ${ac_cv_sizeof_unsigned_long+:} false; then : 27377 $as_echo_n "(cached) " >&6 27378 else 27379 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 27380 27381 else 27382 if test "$ac_cv_type_unsigned_long" = yes; then 27383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27385 as_fn_error 77 "cannot compute sizeof (unsigned long) 27386 See \`config.log' for more details" "$LINENO" 5; } 27387 else 27388 ac_cv_sizeof_unsigned_long=0 27389 fi 27390 fi 27391 27392 fi 27393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 27394 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 27395 27396 27397 27398 cat >>confdefs.h <<_ACEOF 27399 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 27400 _ACEOF 27401 27402 27403 # The cast to long int works around a bug in the HP C Compiler 27404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 27405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 27406 # This bug is HP SR number 8606223364. 27407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of mp_limb_t" >&5 27408 $as_echo_n "checking size of mp_limb_t... " >&6; } 27409 if ${ac_cv_sizeof_mp_limb_t+:} false; then : 27410 $as_echo_n "(cached) " >&6 27411 else 27412 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 */ 27413 #define GMP_NAIL_BITS $GMP_NAIL_BITS 27414 #define GMP_LIMB_BITS 123 27415 $DEFN_LONG_LONG_LIMB 27416 #include \"$srcdir/gmp-h.in\" 27417 27418 "; then : 27419 27420 else 27421 if test "$ac_cv_type_mp_limb_t" = yes; then 27422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27424 as_fn_error 77 "cannot compute sizeof (mp_limb_t) 27425 See \`config.log' for more details" "$LINENO" 5; } 27426 else 27427 ac_cv_sizeof_mp_limb_t=0 27428 fi 27429 fi 27430 27431 fi 27432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_mp_limb_t" >&5 27433 $as_echo "$ac_cv_sizeof_mp_limb_t" >&6; } 27434 27435 27436 27437 cat >>confdefs.h <<_ACEOF 27438 #define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t 27439 _ACEOF 27440 27441 27442 if test "$ac_cv_sizeof_mp_limb_t" = 0; then 27443 as_fn_error $? "Oops, mp_limb_t doesn't seem to work" "$LINENO" 5 27444 fi 27445 GMP_LIMB_BITS=`expr 8 \* $ac_cv_sizeof_mp_limb_t` 27446 27447 27448 echo "define(<SIZEOF_UNSIGNED>,<$ac_cv_sizeof_unsigned>)" >> $gmp_tmpconfigm4 27449 27450 27451 # Check compiler limb size matches gmp-mparam.h 27452 # 27453 # FIXME: Some of the cycle counter objects in the tune directory depend on 27454 # the size of ulong, it'd be possible to check that here, though a mismatch 27455 # probably wouldn't want to be fatal, none of the libgmp assembler code 27456 # depends on ulong. 27457 # 27458 mparam_bits=`sed -n 's/^#define GMP_LIMB_BITS[ ][ ]*\([0-9]*\).*$/\1/p' $gmp_mparam_source` 27459 if test -n "$mparam_bits" && test "$mparam_bits" -ne $GMP_LIMB_BITS; then 27460 if test "$test_CFLAGS" = set; then 27461 as_fn_error $? "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code 27462 in this configuration expects $mparam_bits bits. 27463 You appear to have set \$CFLAGS, perhaps you also need to tell GMP the 27464 intended ABI, see \"ABI and ISA\" in the manual." "$LINENO" 5 27465 else 27466 as_fn_error $? "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code 27467 in this configuration expects $mparam_bits bits." "$LINENO" 5 27468 fi 27469 fi 27470 27471 27472 echo "define(<GMP_LIMB_BITS>,$GMP_LIMB_BITS)" >> $gmp_tmpconfigm4 27473 27474 27475 echo "define(<GMP_NAIL_BITS>,$GMP_NAIL_BITS)" >> $gmp_tmpconfigm4 27476 27477 27478 echo "define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))" >> $gmp_tmpconfigm4 27479 27480 27481 27482 27483 27484 27485 27486 27487 # A recompiled sqr_basecase for use in the tune program, if necessary. 27488 TUNE_SQR_OBJ= 27489 test -d tune || mkdir tune 27490 case $sqr_basecase_source in 27491 *.asm) 27492 sqr_max=`sed -n 's/^def...(SQR_TOOM2_THRESHOLD_MAX, *\([0-9]*\))/\1/p' $sqr_basecase_source` 27493 if test -n "$sqr_max"; then 27494 TUNE_SQR_OBJ=sqr_asm.o 27495 27496 cat >>confdefs.h <<_ACEOF 27497 #define TUNE_SQR_TOOM2_MAX $sqr_max 27498 _ACEOF 27499 27500 fi 27501 cat >tune/sqr_basecase.c <<EOF 27502 /* not sure that an empty file can compile, so put in a dummy */ 27503 int sqr_basecase_dummy; 27504 EOF 27505 ;; 27506 *.c) 27507 TUNE_SQR_OBJ= 27508 $as_echo "#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC" >>confdefs.h 27509 27510 cat >tune/sqr_basecase.c <<EOF 27511 #define TUNE_PROGRAM_BUILD 1 27512 #define TUNE_PROGRAM_BUILD_SQR 1 27513 #include "mpn/sqr_basecase.c" 27514 EOF 27515 ;; 27516 esac 27517 27518 27519 27520 # Configs for demos/pexpr.c. 27521 # 27522 ac_config_files="$ac_config_files demos/pexpr-config.h:demos/pexpr-config-h.in" 27523 27524 case $ac_cv_func_clock in 27525 yes) HAVE_CLOCK_01=1 27526 ;; 27527 no) HAVE_CLOCK_01=0 ;; 27528 esac 27529 27530 case $ac_cv_func_cputime in 27531 yes) HAVE_CPUTIME_01=1 27532 ;; 27533 no) HAVE_CPUTIME_01=0 ;; 27534 esac 27535 27536 case $ac_cv_func_getrusage in 27537 yes) HAVE_GETRUSAGE_01=1 27538 ;; 27539 no) HAVE_GETRUSAGE_01=0 ;; 27540 esac 27541 27542 case $ac_cv_func_gettimeofday in 27543 yes) HAVE_GETTIMEOFDAY_01=1 27544 ;; 27545 no) HAVE_GETTIMEOFDAY_01=0 ;; 27546 esac 27547 27548 case $ac_cv_func_sigaction in 27549 yes) HAVE_SIGACTION_01=1 27550 ;; 27551 no) HAVE_SIGACTION_01=0 ;; 27552 esac 27553 27554 case $ac_cv_func_sigaltstack in 27555 yes) HAVE_SIGALTSTACK_01=1 27556 ;; 27557 no) HAVE_SIGALTSTACK_01=0 ;; 27558 esac 27559 27560 case $ac_cv_func_sigstack in 27561 yes) HAVE_SIGSTACK_01=1 27562 ;; 27563 no) HAVE_SIGSTACK_01=0 ;; 27564 esac 27565 27566 27567 case $ac_cv_header_sys_resource_h in 27568 yes) HAVE_SYS_RESOURCE_H_01=1 27569 ;; 27570 no) HAVE_SYS_RESOURCE_H_01=0 ;; 27571 esac 27572 27573 27574 ac_fn_c_check_type "$LINENO" "stack_t" "ac_cv_type_stack_t" "#include <signal.h> 27575 " 27576 if test "x$ac_cv_type_stack_t" = xyes; then : 27577 27578 cat >>confdefs.h <<_ACEOF 27579 #define HAVE_STACK_T 1 27580 _ACEOF 27581 27582 HAVE_STACK_T_01=1 27583 else 27584 HAVE_STACK_T_01=0 27585 fi 27586 27587 27588 27589 # Configs for demos/calc directory 27590 # 27591 # AC_SUBST+AC_CONFIG_FILES is used for calc-config.h, rather than AC_DEFINE+ 27592 # AC_CONFIG_HEADERS, since with the latter automake (1.8) will then put the 27593 # directory (ie. demos/calc) into $(DEFAULT_INCLUDES) for every Makefile.in, 27594 # which would look very strange. 27595 # 27596 # -lcurses is required by libreadline. On a typical SVR4 style system this 27597 # normally doesn't have to be given explicitly, since libreadline.so will 27598 # have a NEEDED record for it. But if someone for some reason is using only 27599 # a static libreadline.a then we must give -lcurses. Readline (as of 27600 # version 4.3) doesn't use libtool, so we can't rely on a .la to cover 27601 # necessary dependencies. 27602 # 27603 # On a couple of systems we've seen libreadline available, but the headers 27604 # not in the default include path, so check for readline/readline.h. We've 27605 # also seen readline/history.h missing, not sure if that's just a broken 27606 # install or a very old version, but check that too. 27607 # 27608 ac_config_files="$ac_config_files demos/calc/calc-config.h:demos/calc/calc-config-h.in" 27609 27610 LIBCURSES= 27611 if test $with_readline != no; then 27612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lncurses" >&5 27613 $as_echo_n "checking for tputs in -lncurses... " >&6; } 27614 if ${ac_cv_lib_ncurses_tputs+:} false; then : 27615 $as_echo_n "(cached) " >&6 27616 else 27617 ac_check_lib_save_LIBS=$LIBS 27618 LIBS="-lncurses $LIBS" 27619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27620 /* end confdefs.h. */ 27621 27622 /* Override any GCC internal prototype to avoid an error. 27623 Use char because int might match the return type of a GCC 27624 builtin and then its argument prototype would still apply. */ 27625 #ifdef __cplusplus 27626 extern "C" 27627 #endif 27628 char tputs (); 27629 int 27630 main () 27631 { 27632 return tputs (); 27633 ; 27634 return 0; 27635 } 27636 _ACEOF 27637 if ac_fn_c_try_link "$LINENO"; then : 27638 ac_cv_lib_ncurses_tputs=yes 27639 else 27640 ac_cv_lib_ncurses_tputs=no 27641 fi 27642 rm -f core conftest.err conftest.$ac_objext \ 27643 conftest$ac_exeext conftest.$ac_ext 27644 LIBS=$ac_check_lib_save_LIBS 27645 fi 27646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tputs" >&5 27647 $as_echo "$ac_cv_lib_ncurses_tputs" >&6; } 27648 if test "x$ac_cv_lib_ncurses_tputs" = xyes; then : 27649 LIBCURSES=-lncurses 27650 else 27651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lcurses" >&5 27652 $as_echo_n "checking for tputs in -lcurses... " >&6; } 27653 if ${ac_cv_lib_curses_tputs+:} false; then : 27654 $as_echo_n "(cached) " >&6 27655 else 27656 ac_check_lib_save_LIBS=$LIBS 27657 LIBS="-lcurses $LIBS" 27658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27659 /* end confdefs.h. */ 27660 27661 /* Override any GCC internal prototype to avoid an error. 27662 Use char because int might match the return type of a GCC 27663 builtin and then its argument prototype would still apply. */ 27664 #ifdef __cplusplus 27665 extern "C" 27666 #endif 27667 char tputs (); 27668 int 27669 main () 27670 { 27671 return tputs (); 27672 ; 27673 return 0; 27674 } 27675 _ACEOF 27676 if ac_fn_c_try_link "$LINENO"; then : 27677 ac_cv_lib_curses_tputs=yes 27678 else 27679 ac_cv_lib_curses_tputs=no 27680 fi 27681 rm -f core conftest.err conftest.$ac_objext \ 27682 conftest$ac_exeext conftest.$ac_ext 27683 LIBS=$ac_check_lib_save_LIBS 27684 fi 27685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tputs" >&5 27686 $as_echo "$ac_cv_lib_curses_tputs" >&6; } 27687 if test "x$ac_cv_lib_curses_tputs" = xyes; then : 27688 LIBCURSES=-lcurses 27689 fi 27690 27691 fi 27692 27693 fi 27694 27695 use_readline=$with_readline 27696 if test $with_readline = detect; then 27697 use_readline=no 27698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 27699 $as_echo_n "checking for readline in -lreadline... " >&6; } 27700 if ${ac_cv_lib_readline_readline+:} false; then : 27701 $as_echo_n "(cached) " >&6 27702 else 27703 ac_check_lib_save_LIBS=$LIBS 27704 LIBS="-lreadline $LIBCURSES $LIBS" 27705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27706 /* end confdefs.h. */ 27707 27708 /* Override any GCC internal prototype to avoid an error. 27709 Use char because int might match the return type of a GCC 27710 builtin and then its argument prototype would still apply. */ 27711 #ifdef __cplusplus 27712 extern "C" 27713 #endif 27714 char readline (); 27715 int 27716 main () 27717 { 27718 return readline (); 27719 ; 27720 return 0; 27721 } 27722 _ACEOF 27723 if ac_fn_c_try_link "$LINENO"; then : 27724 ac_cv_lib_readline_readline=yes 27725 else 27726 ac_cv_lib_readline_readline=no 27727 fi 27728 rm -f core conftest.err conftest.$ac_objext \ 27729 conftest$ac_exeext conftest.$ac_ext 27730 LIBS=$ac_check_lib_save_LIBS 27731 fi 27732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 27733 $as_echo "$ac_cv_lib_readline_readline" >&6; } 27734 if test "x$ac_cv_lib_readline_readline" = xyes; then : 27735 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 27736 if test "x$ac_cv_header_readline_readline_h" = xyes; then : 27737 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default" 27738 if test "x$ac_cv_header_readline_history_h" = xyes; then : 27739 use_readline=yes 27740 fi 27741 27742 27743 fi 27744 27745 27746 fi 27747 27748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking readline detected" >&5 27749 $as_echo_n "checking readline detected... " >&6; } 27750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_readline" >&5 27751 $as_echo "$use_readline" >&6; } 27752 fi 27753 if test $use_readline = yes; then 27754 WITH_READLINE_01=1 27755 27756 LIBREADLINE=-lreadline 27757 27758 else 27759 WITH_READLINE_01=0 27760 fi 27761 for ac_prog in 'bison -y' byacc 27762 do 27763 # Extract the first word of "$ac_prog", so it can be a program name with args. 27764 set dummy $ac_prog; ac_word=$2 27765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27766 $as_echo_n "checking for $ac_word... " >&6; } 27767 if ${ac_cv_prog_YACC+:} false; then : 27768 $as_echo_n "(cached) " >&6 27769 else 27770 if test -n "$YACC"; then 27771 ac_cv_prog_YACC="$YACC" # Let the user override the test. 27772 else 27773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27774 for as_dir in $PATH 27775 do 27776 IFS=$as_save_IFS 27777 test -z "$as_dir" && as_dir=. 27778 for ac_exec_ext in '' $ac_executable_extensions; do 27779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27780 ac_cv_prog_YACC="$ac_prog" 27781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27782 break 2 27783 fi 27784 done 27785 done 27786 IFS=$as_save_IFS 27787 27788 fi 27789 fi 27790 YACC=$ac_cv_prog_YACC 27791 if test -n "$YACC"; then 27792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 27793 $as_echo "$YACC" >&6; } 27794 else 27795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27796 $as_echo "no" >&6; } 27797 fi 27798 27799 27800 test -n "$YACC" && break 27801 done 27802 test -n "$YACC" || YACC="yacc" 27803 27804 for ac_prog in flex lex 27805 do 27806 # Extract the first word of "$ac_prog", so it can be a program name with args. 27807 set dummy $ac_prog; ac_word=$2 27808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27809 $as_echo_n "checking for $ac_word... " >&6; } 27810 if ${ac_cv_prog_LEX+:} false; then : 27811 $as_echo_n "(cached) " >&6 27812 else 27813 if test -n "$LEX"; then 27814 ac_cv_prog_LEX="$LEX" # Let the user override the test. 27815 else 27816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27817 for as_dir in $PATH 27818 do 27819 IFS=$as_save_IFS 27820 test -z "$as_dir" && as_dir=. 27821 for ac_exec_ext in '' $ac_executable_extensions; do 27822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27823 ac_cv_prog_LEX="$ac_prog" 27824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27825 break 2 27826 fi 27827 done 27828 done 27829 IFS=$as_save_IFS 27830 27831 fi 27832 fi 27833 LEX=$ac_cv_prog_LEX 27834 if test -n "$LEX"; then 27835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 27836 $as_echo "$LEX" >&6; } 27837 else 27838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27839 $as_echo "no" >&6; } 27840 fi 27841 27842 27843 test -n "$LEX" && break 27844 done 27845 test -n "$LEX" || LEX=":" 27846 27847 if test "x$LEX" != "x:"; then 27848 cat >conftest.l <<_ACEOF 27849 %% 27850 a { ECHO; } 27851 b { REJECT; } 27852 c { yymore (); } 27853 d { yyless (1); } 27854 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 27855 yyless ((input () != 0)); } 27856 f { unput (yytext[0]); } 27857 . { BEGIN INITIAL; } 27858 %% 27859 #ifdef YYTEXT_POINTER 27860 extern char *yytext; 27861 #endif 27862 int 27863 main (void) 27864 { 27865 return ! yylex () + ! yywrap (); 27866 } 27867 _ACEOF 27868 { { ac_try="$LEX conftest.l" 27869 case "(($ac_try" in 27870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27871 *) ac_try_echo=$ac_try;; 27872 esac 27873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 27874 $as_echo "$ac_try_echo"; } >&5 27875 (eval "$LEX conftest.l") 2>&5 27876 ac_status=$? 27877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27878 test $ac_status = 0; } 27879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 27880 $as_echo_n "checking lex output file root... " >&6; } 27881 if ${ac_cv_prog_lex_root+:} false; then : 27882 $as_echo_n "(cached) " >&6 27883 else 27884 27885 if test -f lex.yy.c; then 27886 ac_cv_prog_lex_root=lex.yy 27887 elif test -f lexyy.c; then 27888 ac_cv_prog_lex_root=lexyy 27889 else 27890 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 27891 fi 27892 fi 27893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 27894 $as_echo "$ac_cv_prog_lex_root" >&6; } 27895 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 27896 27897 if test -z "${LEXLIB+set}"; then 27898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 27899 $as_echo_n "checking lex library... " >&6; } 27900 if ${ac_cv_lib_lex+:} false; then : 27901 $as_echo_n "(cached) " >&6 27902 else 27903 27904 ac_save_LIBS=$LIBS 27905 ac_cv_lib_lex='none needed' 27906 for ac_lib in '' -lfl -ll; do 27907 LIBS="$ac_lib $ac_save_LIBS" 27908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27909 /* end confdefs.h. */ 27910 `cat $LEX_OUTPUT_ROOT.c` 27911 _ACEOF 27912 if ac_fn_c_try_link "$LINENO"; then : 27913 ac_cv_lib_lex=$ac_lib 27914 fi 27915 rm -f core conftest.err conftest.$ac_objext \ 27916 conftest$ac_exeext conftest.$ac_ext 27917 test "$ac_cv_lib_lex" != 'none needed' && break 27918 done 27919 LIBS=$ac_save_LIBS 27920 27921 fi 27922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 27923 $as_echo "$ac_cv_lib_lex" >&6; } 27924 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 27925 fi 27926 27927 27928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 27929 $as_echo_n "checking whether yytext is a pointer... " >&6; } 27930 if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 27931 $as_echo_n "(cached) " >&6 27932 else 27933 # POSIX says lex can declare yytext either as a pointer or an array; the 27934 # default is implementation-dependent. Figure out which it is, since 27935 # not all implementations provide the %pointer and %array declarations. 27936 ac_cv_prog_lex_yytext_pointer=no 27937 ac_save_LIBS=$LIBS 27938 LIBS="$LEXLIB $ac_save_LIBS" 27939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27940 /* end confdefs.h. */ 27941 27942 #define YYTEXT_POINTER 1 27943 `cat $LEX_OUTPUT_ROOT.c` 27944 _ACEOF 27945 if ac_fn_c_try_link "$LINENO"; then : 27946 ac_cv_prog_lex_yytext_pointer=yes 27947 fi 27948 rm -f core conftest.err conftest.$ac_objext \ 27949 conftest$ac_exeext conftest.$ac_ext 27950 LIBS=$ac_save_LIBS 27951 27952 fi 27953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 27954 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 27955 if test $ac_cv_prog_lex_yytext_pointer = yes; then 27956 27957 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 27958 27959 fi 27960 rm -f conftest.l $LEX_OUTPUT_ROOT.c 27961 27962 fi 27963 if test "$LEX" = :; then 27964 LEX=${am_missing_run}flex 27965 fi 27966 27967 27968 27969 # Create config.m4. 27970 27971 echo "creating $gmp_configm4" 27972 echo "d""nl $gmp_configm4. Generated automatically by configure." > $gmp_configm4 27973 if test -f $gmp_tmpconfigm4; then 27974 echo "changequote(<,>)" >> $gmp_configm4 27975 echo "ifdef(<__CONFIG_M4_INCLUDED__>,,<" >> $gmp_configm4 27976 cat $gmp_tmpconfigm4 >> $gmp_configm4 27977 echo ">)" >> $gmp_configm4 27978 echo "changequote(\`,')" >> $gmp_configm4 27979 rm $gmp_tmpconfigm4 27980 fi 27981 echo "ifdef(\`__CONFIG_M4_INCLUDED__',,\`" >> $gmp_configm4 27982 if test -f $gmp_tmpconfigm4i; then 27983 cat $gmp_tmpconfigm4i >> $gmp_configm4 27984 rm $gmp_tmpconfigm4i 27985 fi 27986 if test -f $gmp_tmpconfigm4p; then 27987 cat $gmp_tmpconfigm4p >> $gmp_configm4 27988 rm $gmp_tmpconfigm4p 27989 fi 27990 echo "')" >> $gmp_configm4 27991 echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4 27992 27993 27994 # Create Makefiles 27995 # FIXME: Upcoming version of autoconf/automake may not like broken lines. 27996 # Right now automake isn't accepting the new AC_CONFIG_FILES scheme. 27997 27998 ac_config_files="$ac_config_files Makefile mpf/Makefile mpn/Makefile mpq/Makefile mpz/Makefile printf/Makefile scanf/Makefile rand/Makefile cxx/Makefile tests/Makefile tests/devel/Makefile tests/mpf/Makefile tests/mpn/Makefile tests/mpq/Makefile tests/mpz/Makefile tests/rand/Makefile tests/misc/Makefile tests/cxx/Makefile doc/Makefile tune/Makefile demos/Makefile demos/calc/Makefile demos/expr/Makefile gmp.h:gmp-h.in gmp.pc:gmp.pc.in gmpxx.pc:gmpxx.pc.in" 27999 28000 cat >confcache <<\_ACEOF 28001 # This file is a shell script that caches the results of configure 28002 # tests run on this system so they can be shared between configure 28003 # scripts and configure runs, see configure's option --config-cache. 28004 # It is not useful on other systems. If it contains results you don't 28005 # want to keep, you may remove or edit it. 28006 # 28007 # config.status only pays attention to the cache file if you give it 28008 # the --recheck option to rerun configure. 28009 # 28010 # `ac_cv_env_foo' variables (set or unset) will be overridden when 28011 # loading this file, other *unset* `ac_cv_foo' will be assigned the 28012 # following values. 28013 28014 _ACEOF 28015 28016 # The following way of writing the cache mishandles newlines in values, 28017 # but we know of no workaround that is simple, portable, and efficient. 28018 # So, we kill variables containing newlines. 28019 # Ultrix sh set writes to stderr and can't be redirected directly, 28020 # and sets the high bit in the cache file unless we assign to the vars. 28021 ( 28022 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 28023 eval ac_val=\$$ac_var 28024 case $ac_val in #( 28025 *${as_nl}*) 28026 case $ac_var in #( 28027 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 28028 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 28029 esac 28030 case $ac_var in #( 28031 _ | IFS | as_nl) ;; #( 28032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 28033 *) { eval $ac_var=; unset $ac_var;} ;; 28034 esac ;; 28035 esac 28036 done 28037 28038 (set) 2>&1 | 28039 case $as_nl`(ac_space=' '; set) 2>&1` in #( 28040 *${as_nl}ac_space=\ *) 28041 # `set' does not quote correctly, so add quotes: double-quote 28042 # substitution turns \\\\ into \\, and sed turns \\ into \. 28043 sed -n \ 28044 "s/'/'\\\\''/g; 28045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 28046 ;; #( 28047 *) 28048 # `set' quotes correctly as required by POSIX, so do not add quotes. 28049 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 28050 ;; 28051 esac | 28052 sort 28053 ) | 28054 sed ' 28055 /^ac_cv_env_/b end 28056 t clear 28057 :clear 28058 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 28059 t end 28060 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 28061 :end' >>confcache 28062 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 28063 if test -w "$cache_file"; then 28064 if test "x$cache_file" != "x/dev/null"; then 28065 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 28066 $as_echo "$as_me: updating cache $cache_file" >&6;} 28067 if test ! -f "$cache_file" || test -h "$cache_file"; then 28068 cat confcache >"$cache_file" 28069 else 28070 case $cache_file in #( 28071 */* | ?:*) 28072 mv -f confcache "$cache_file"$$ && 28073 mv -f "$cache_file"$$ "$cache_file" ;; #( 28074 *) 28075 mv -f confcache "$cache_file" ;; 28076 esac 28077 fi 28078 fi 28079 else 28080 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 28081 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 28082 fi 28083 fi 28084 rm -f confcache 28085 28086 test "x$prefix" = xNONE && prefix=$ac_default_prefix 28087 # Let make expand exec_prefix. 28088 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 28089 28090 DEFS=-DHAVE_CONFIG_H 28091 28092 ac_libobjs= 28093 ac_ltlibobjs= 28094 U= 28095 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 28096 # 1. Remove the extension, and $U if already installed. 28097 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 28098 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 28099 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 28100 # will be set to the directory where LIBOBJS objects are built. 28101 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 28102 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 28103 done 28104 LIBOBJS=$ac_libobjs 28105 28106 LTLIBOBJS=$ac_ltlibobjs 28107 28108 28109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 28110 $as_echo_n "checking that generated files are newer than configure... " >&6; } 28111 if test -n "$am_sleep_pid"; then 28112 # Hide warnings about reused PIDs. 28113 wait $am_sleep_pid 2>/dev/null 28114 fi 28115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 28116 $as_echo "done" >&6; } 28117 if test -n "$EXEEXT"; then 28118 am__EXEEXT_TRUE= 28119 am__EXEEXT_FALSE='#' 28120 else 28121 am__EXEEXT_TRUE='#' 28122 am__EXEEXT_FALSE= 28123 fi 28124 28125 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 28126 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 28127 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28128 fi 28129 if test -z "${WANT_CXX_TRUE}" && test -z "${WANT_CXX_FALSE}"; then 28130 as_fn_error $? "conditional \"WANT_CXX\" was never defined. 28131 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28132 fi 28133 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then 28134 as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined. 28135 Usually this means the macro was only invoked conditionally." "$LINENO" 5 28136 fi 28137 28138 28139 : "${CONFIG_STATUS=./config.status}" 28140 ac_write_fail=0 28141 ac_clean_files_save=$ac_clean_files 28142 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 28143 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 28144 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 28145 as_write_fail=0 28146 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 28147 #! $SHELL 28148 # Generated by $as_me. 28149 # Run this file to recreate the current configuration. 28150 # Compiler output produced by configure, useful for debugging 28151 # configure, is in config.log if it exists. 28152 28153 debug=false 28154 ac_cs_recheck=false 28155 ac_cs_silent=false 28156 28157 SHELL=\${CONFIG_SHELL-$SHELL} 28158 export SHELL 28159 _ASEOF 28160 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 28161 ## -------------------- ## 28162 ## M4sh Initialization. ## 28163 ## -------------------- ## 28164 28165 # Be more Bourne compatible 28166 DUALCASE=1; export DUALCASE # for MKS sh 28167 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 28168 emulate sh 28169 NULLCMD=: 28170 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 28171 # is contrary to our usage. Disable this feature. 28172 alias -g '${1+"$@"}'='"$@"' 28173 setopt NO_GLOB_SUBST 28174 else 28175 case `(set -o) 2>/dev/null` in #( 28176 *posix*) : 28177 set -o posix ;; #( 28178 *) : 28179 ;; 28180 esac 28181 fi 28182 28183 28184 as_nl=' 28185 ' 28186 export as_nl 28187 # Printing a long string crashes Solaris 7 /usr/bin/printf. 28188 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 28189 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 28190 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 28191 # Prefer a ksh shell builtin over an external printf program on Solaris, 28192 # but without wasting forks for bash or zsh. 28193 if test -z "$BASH_VERSION$ZSH_VERSION" \ 28194 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 28195 as_echo='print -r --' 28196 as_echo_n='print -rn --' 28197 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 28198 as_echo='printf %s\n' 28199 as_echo_n='printf %s' 28200 else 28201 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 28202 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 28203 as_echo_n='/usr/ucb/echo -n' 28204 else 28205 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 28206 as_echo_n_body='eval 28207 arg=$1; 28208 case $arg in #( 28209 *"$as_nl"*) 28210 expr "X$arg" : "X\\(.*\\)$as_nl"; 28211 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 28212 esac; 28213 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 28214 ' 28215 export as_echo_n_body 28216 as_echo_n='sh -c $as_echo_n_body as_echo' 28217 fi 28218 export as_echo_body 28219 as_echo='sh -c $as_echo_body as_echo' 28220 fi 28221 28222 # The user is always right. 28223 if test "${PATH_SEPARATOR+set}" != set; then 28224 PATH_SEPARATOR=: 28225 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 28226 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 28227 PATH_SEPARATOR=';' 28228 } 28229 fi 28230 28231 28232 # IFS 28233 # We need space, tab and new line, in precisely that order. Quoting is 28234 # there to prevent editors from complaining about space-tab. 28235 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 28236 # splitting by setting IFS to empty value.) 28237 IFS=" "" $as_nl" 28238 28239 # Find who we are. Look in the path if we contain no directory separator. 28240 as_myself= 28241 case $0 in #(( 28242 *[\\/]* ) as_myself=$0 ;; 28243 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28244 for as_dir in $PATH 28245 do 28246 IFS=$as_save_IFS 28247 test -z "$as_dir" && as_dir=. 28248 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 28249 done 28250 IFS=$as_save_IFS 28251 28252 ;; 28253 esac 28254 # We did not find ourselves, most probably we were run as `sh COMMAND' 28255 # in which case we are not to be found in the path. 28256 if test "x$as_myself" = x; then 28257 as_myself=$0 28258 fi 28259 if test ! -f "$as_myself"; then 28260 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 28261 exit 1 28262 fi 28263 28264 # Unset variables that we do not need and which cause bugs (e.g. in 28265 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 28266 # suppresses any "Segmentation fault" message there. '((' could 28267 # trigger a bug in pdksh 5.2.14. 28268 for as_var in BASH_ENV ENV MAIL MAILPATH 28269 do eval test x\${$as_var+set} = xset \ 28270 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 28271 done 28272 PS1='$ ' 28273 PS2='> ' 28274 PS4='+ ' 28275 28276 # NLS nuisances. 28277 LC_ALL=C 28278 export LC_ALL 28279 LANGUAGE=C 28280 export LANGUAGE 28281 28282 # CDPATH. 28283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 28284 28285 28286 # as_fn_error STATUS ERROR [LINENO LOG_FD] 28287 # ---------------------------------------- 28288 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 28289 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 28290 # script with STATUS, using 1 if that was 0. 28291 as_fn_error () 28292 { 28293 as_status=$1; test $as_status -eq 0 && as_status=1 28294 if test "$4"; then 28295 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 28296 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 28297 fi 28298 $as_echo "$as_me: error: $2" >&2 28299 as_fn_exit $as_status 28300 } # as_fn_error 28301 28302 28303 # as_fn_set_status STATUS 28304 # ----------------------- 28305 # Set $? to STATUS, without forking. 28306 as_fn_set_status () 28307 { 28308 return $1 28309 } # as_fn_set_status 28310 28311 # as_fn_exit STATUS 28312 # ----------------- 28313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 28314 as_fn_exit () 28315 { 28316 set +e 28317 as_fn_set_status $1 28318 exit $1 28319 } # as_fn_exit 28320 28321 # as_fn_unset VAR 28322 # --------------- 28323 # Portably unset VAR. 28324 as_fn_unset () 28325 { 28326 { eval $1=; unset $1;} 28327 } 28328 as_unset=as_fn_unset 28329 # as_fn_append VAR VALUE 28330 # ---------------------- 28331 # Append the text in VALUE to the end of the definition contained in VAR. Take 28332 # advantage of any shell optimizations that allow amortized linear growth over 28333 # repeated appends, instead of the typical quadratic growth present in naive 28334 # implementations. 28335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 28336 eval 'as_fn_append () 28337 { 28338 eval $1+=\$2 28339 }' 28340 else 28341 as_fn_append () 28342 { 28343 eval $1=\$$1\$2 28344 } 28345 fi # as_fn_append 28346 28347 # as_fn_arith ARG... 28348 # ------------------ 28349 # Perform arithmetic evaluation on the ARGs, and store the result in the 28350 # global $as_val. Take advantage of shells that can avoid forks. The arguments 28351 # must be portable across $(()) and expr. 28352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 28353 eval 'as_fn_arith () 28354 { 28355 as_val=$(( $* )) 28356 }' 28357 else 28358 as_fn_arith () 28359 { 28360 as_val=`expr "$@" || test $? -eq 1` 28361 } 28362 fi # as_fn_arith 28363 28364 28365 if expr a : '\(a\)' >/dev/null 2>&1 && 28366 test "X`expr 00001 : '.*\(...\)'`" = X001; then 28367 as_expr=expr 28368 else 28369 as_expr=false 28370 fi 28371 28372 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 28373 as_basename=basename 28374 else 28375 as_basename=false 28376 fi 28377 28378 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 28379 as_dirname=dirname 28380 else 28381 as_dirname=false 28382 fi 28383 28384 as_me=`$as_basename -- "$0" || 28385 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 28386 X"$0" : 'X\(//\)$' \| \ 28387 X"$0" : 'X\(/\)' \| . 2>/dev/null || 28388 $as_echo X/"$0" | 28389 sed '/^.*\/\([^/][^/]*\)\/*$/{ 28390 s//\1/ 28391 q 28392 } 28393 /^X\/\(\/\/\)$/{ 28394 s//\1/ 28395 q 28396 } 28397 /^X\/\(\/\).*/{ 28398 s//\1/ 28399 q 28400 } 28401 s/.*/./; q'` 28402 28403 # Avoid depending upon Character Ranges. 28404 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 28405 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 28406 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 28407 as_cr_digits='0123456789' 28408 as_cr_alnum=$as_cr_Letters$as_cr_digits 28409 28410 ECHO_C= ECHO_N= ECHO_T= 28411 case `echo -n x` in #((((( 28412 -n*) 28413 case `echo 'xy\c'` in 28414 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 28415 xy) ECHO_C='\c';; 28416 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 28417 ECHO_T=' ';; 28418 esac;; 28419 *) 28420 ECHO_N='-n';; 28421 esac 28422 28423 rm -f conf$$ conf$$.exe conf$$.file 28424 if test -d conf$$.dir; then 28425 rm -f conf$$.dir/conf$$.file 28426 else 28427 rm -f conf$$.dir 28428 mkdir conf$$.dir 2>/dev/null 28429 fi 28430 if (echo >conf$$.file) 2>/dev/null; then 28431 if ln -s conf$$.file conf$$ 2>/dev/null; then 28432 as_ln_s='ln -s' 28433 # ... but there are two gotchas: 28434 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 28435 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 28436 # In both cases, we have to default to `cp -pR'. 28437 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 28438 as_ln_s='cp -pR' 28439 elif ln conf$$.file conf$$ 2>/dev/null; then 28440 as_ln_s=ln 28441 else 28442 as_ln_s='cp -pR' 28443 fi 28444 else 28445 as_ln_s='cp -pR' 28446 fi 28447 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 28448 rmdir conf$$.dir 2>/dev/null 28449 28450 28451 # as_fn_mkdir_p 28452 # ------------- 28453 # Create "$as_dir" as a directory, including parents if necessary. 28454 as_fn_mkdir_p () 28455 { 28456 28457 case $as_dir in #( 28458 -*) as_dir=./$as_dir;; 28459 esac 28460 test -d "$as_dir" || eval $as_mkdir_p || { 28461 as_dirs= 28462 while :; do 28463 case $as_dir in #( 28464 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 28465 *) as_qdir=$as_dir;; 28466 esac 28467 as_dirs="'$as_qdir' $as_dirs" 28468 as_dir=`$as_dirname -- "$as_dir" || 28469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28470 X"$as_dir" : 'X\(//\)[^/]' \| \ 28471 X"$as_dir" : 'X\(//\)$' \| \ 28472 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 28473 $as_echo X"$as_dir" | 28474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28475 s//\1/ 28476 q 28477 } 28478 /^X\(\/\/\)[^/].*/{ 28479 s//\1/ 28480 q 28481 } 28482 /^X\(\/\/\)$/{ 28483 s//\1/ 28484 q 28485 } 28486 /^X\(\/\).*/{ 28487 s//\1/ 28488 q 28489 } 28490 s/.*/./; q'` 28491 test -d "$as_dir" && break 28492 done 28493 test -z "$as_dirs" || eval "mkdir $as_dirs" 28494 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 28495 28496 28497 } # as_fn_mkdir_p 28498 if mkdir -p . 2>/dev/null; then 28499 as_mkdir_p='mkdir -p "$as_dir"' 28500 else 28501 test -d ./-p && rmdir ./-p 28502 as_mkdir_p=false 28503 fi 28504 28505 28506 # as_fn_executable_p FILE 28507 # ----------------------- 28508 # Test if FILE is an executable regular file. 28509 as_fn_executable_p () 28510 { 28511 test -f "$1" && test -x "$1" 28512 } # as_fn_executable_p 28513 as_test_x='test -x' 28514 as_executable_p=as_fn_executable_p 28515 28516 # Sed expression to map a string onto a valid CPP name. 28517 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 28518 28519 # Sed expression to map a string onto a valid variable name. 28520 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 28521 28522 28523 exec 6>&1 28524 ## ----------------------------------- ## 28525 ## Main body of $CONFIG_STATUS script. ## 28526 ## ----------------------------------- ## 28527 _ASEOF 28528 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 28529 28530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28531 # Save the log message, to keep $0 and so on meaningful, and to 28532 # report actual input values of CONFIG_FILES etc. instead of their 28533 # values after options handling. 28534 ac_log=" 28535 This file was extended by GNU MP $as_me 6.2.1, which was 28536 generated by GNU Autoconf 2.69. Invocation command line was 28537 28538 CONFIG_FILES = $CONFIG_FILES 28539 CONFIG_HEADERS = $CONFIG_HEADERS 28540 CONFIG_LINKS = $CONFIG_LINKS 28541 CONFIG_COMMANDS = $CONFIG_COMMANDS 28542 $ $0 $@ 28543 28544 on `(hostname || uname -n) 2>/dev/null | sed 1q` 28545 " 28546 28547 _ACEOF 28548 28549 case $ac_config_files in *" 28550 "*) set x $ac_config_files; shift; ac_config_files=$*;; 28551 esac 28552 28553 case $ac_config_headers in *" 28554 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 28555 esac 28556 28557 28558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28559 # Files that config.status was made for. 28560 config_files="$ac_config_files" 28561 config_headers="$ac_config_headers" 28562 config_links="$ac_config_links" 28563 config_commands="$ac_config_commands" 28564 28565 _ACEOF 28566 28567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28568 ac_cs_usage="\ 28569 \`$as_me' instantiates files and other configuration actions 28570 from templates according to the current configuration. Unless the files 28571 and actions are specified as TAGs, all are instantiated by default. 28572 28573 Usage: $0 [OPTION]... [TAG]... 28574 28575 -h, --help print this help, then exit 28576 -V, --version print version number and configuration settings, then exit 28577 --config print configuration, then exit 28578 -q, --quiet, --silent 28579 do not print progress messages 28580 -d, --debug don't remove temporary files 28581 --recheck update $as_me by reconfiguring in the same conditions 28582 --file=FILE[:TEMPLATE] 28583 instantiate the configuration file FILE 28584 --header=FILE[:TEMPLATE] 28585 instantiate the configuration header FILE 28586 28587 Configuration files: 28588 $config_files 28589 28590 Configuration headers: 28591 $config_headers 28592 28593 Configuration links: 28594 $config_links 28595 28596 Configuration commands: 28597 $config_commands 28598 28599 Report bugs to <gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html>. 28600 GNU MP home page: <http://www.gnu.org/software/gmp/>. 28601 General help using GNU software: <http://www.gnu.org/gethelp/>." 28602 28603 _ACEOF 28604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28605 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 28606 ac_cs_version="\\ 28607 GNU MP config.status 6.2.1 28608 configured by $0, generated by GNU Autoconf 2.69, 28609 with options \\"\$ac_cs_config\\" 28610 28611 Copyright (C) 2012 Free Software Foundation, Inc. 28612 This config.status script is free software; the Free Software Foundation 28613 gives unlimited permission to copy, distribute and modify it." 28614 28615 ac_pwd='$ac_pwd' 28616 srcdir='$srcdir' 28617 INSTALL='$INSTALL' 28618 MKDIR_P='$MKDIR_P' 28619 AWK='$AWK' 28620 test -n "\$AWK" || AWK=awk 28621 _ACEOF 28622 28623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28624 # The default lists apply if the user does not specify any file. 28625 ac_need_defaults=: 28626 while test $# != 0 28627 do 28628 case $1 in 28629 --*=?*) 28630 ac_option=`expr "X$1" : 'X\([^=]*\)='` 28631 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 28632 ac_shift=: 28633 ;; 28634 --*=) 28635 ac_option=`expr "X$1" : 'X\([^=]*\)='` 28636 ac_optarg= 28637 ac_shift=: 28638 ;; 28639 *) 28640 ac_option=$1 28641 ac_optarg=$2 28642 ac_shift=shift 28643 ;; 28644 esac 28645 28646 case $ac_option in 28647 # Handling of the options. 28648 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 28649 ac_cs_recheck=: ;; 28650 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 28651 $as_echo "$ac_cs_version"; exit ;; 28652 --config | --confi | --conf | --con | --co | --c ) 28653 $as_echo "$ac_cs_config"; exit ;; 28654 --debug | --debu | --deb | --de | --d | -d ) 28655 debug=: ;; 28656 --file | --fil | --fi | --f ) 28657 $ac_shift 28658 case $ac_optarg in 28659 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 28660 '') as_fn_error $? "missing file argument" ;; 28661 esac 28662 as_fn_append CONFIG_FILES " '$ac_optarg'" 28663 ac_need_defaults=false;; 28664 --header | --heade | --head | --hea ) 28665 $ac_shift 28666 case $ac_optarg in 28667 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 28668 esac 28669 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 28670 ac_need_defaults=false;; 28671 --he | --h) 28672 # Conflict between --help and --header 28673 as_fn_error $? "ambiguous option: \`$1' 28674 Try \`$0 --help' for more information.";; 28675 --help | --hel | -h ) 28676 $as_echo "$ac_cs_usage"; exit ;; 28677 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 28678 | -silent | --silent | --silen | --sile | --sil | --si | --s) 28679 ac_cs_silent=: ;; 28680 28681 # This is an error. 28682 -*) as_fn_error $? "unrecognized option: \`$1' 28683 Try \`$0 --help' for more information." ;; 28684 28685 *) as_fn_append ac_config_targets " $1" 28686 ac_need_defaults=false ;; 28687 28688 esac 28689 shift 28690 done 28691 28692 ac_configure_extra_args= 28693 28694 if $ac_cs_silent; then 28695 exec 6>/dev/null 28696 ac_configure_extra_args="$ac_configure_extra_args --silent" 28697 fi 28698 28699 _ACEOF 28700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28701 if \$ac_cs_recheck; then 28702 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 28703 shift 28704 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 28705 CONFIG_SHELL='$SHELL' 28706 export CONFIG_SHELL 28707 exec "\$@" 28708 fi 28709 28710 _ACEOF 28711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28712 exec 5>>config.log 28713 { 28714 echo 28715 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 28716 ## Running $as_me. ## 28717 _ASBOX 28718 $as_echo "$ac_log" 28719 } >&5 28720 28721 _ACEOF 28722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28723 # 28724 # INIT-COMMANDS 28725 # 28726 28727 28728 # The HP-UX ksh and POSIX shell print the target directory to stdout 28729 # if CDPATH is set. 28730 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 28731 28732 sed_quote_subst='$sed_quote_subst' 28733 double_quote_subst='$double_quote_subst' 28734 delay_variable_subst='$delay_variable_subst' 28735 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 28736 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 28737 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 28738 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 28739 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 28740 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 28741 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 28742 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 28743 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 28744 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 28745 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 28746 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 28747 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 28748 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 28749 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 28750 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 28751 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 28752 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 28753 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 28754 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 28755 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 28756 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 28757 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 28758 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 28759 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 28760 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 28761 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 28762 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 28763 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 28764 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 28765 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 28766 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 28767 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 28768 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 28769 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 28770 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 28771 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 28772 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 28773 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 28774 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 28775 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 28776 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 28777 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 28778 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 28779 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 28780 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 28781 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 28782 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 28783 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 28784 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 28785 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 28786 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 28787 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 28788 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 28789 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 28790 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 28791 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 28792 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 28793 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 28794 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"`' 28795 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 28796 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 28797 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 28798 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 28799 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 28800 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 28801 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 28802 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 28803 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 28804 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 28805 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 28806 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 28807 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 28808 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 28809 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 28810 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 28811 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 28812 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 28813 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 28814 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 28815 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 28816 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 28817 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 28818 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 28819 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 28820 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 28821 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 28822 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 28823 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 28824 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 28825 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 28826 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 28827 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 28828 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 28829 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 28830 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 28831 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 28832 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 28833 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 28834 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 28835 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 28836 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 28837 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 28838 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 28839 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 28840 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 28841 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 28842 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 28843 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 28844 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 28845 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 28846 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 28847 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 28848 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 28849 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 28850 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 28851 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 28852 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 28853 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 28854 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 28855 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 28856 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 28857 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 28858 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 28859 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 28860 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 28861 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 28862 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 28863 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 28864 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 28865 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 28866 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 28867 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 28868 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 28869 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 28870 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 28871 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 28872 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 28873 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 28874 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 28875 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 28876 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 28877 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 28878 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 28879 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28880 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28881 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 28882 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 28883 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 28884 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 28885 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 28886 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 28887 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 28888 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 28889 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 28890 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 28891 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 28892 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 28893 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28894 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28895 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28896 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28897 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28898 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28899 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 28900 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 28901 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 28902 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 28903 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 28904 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 28905 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 28906 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 28907 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 28908 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 28909 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 28910 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 28911 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 28912 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28913 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 28914 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 28915 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28916 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28917 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 28918 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 28919 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 28920 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 28921 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 28922 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 28923 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 28924 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 28925 28926 LTCC='$LTCC' 28927 LTCFLAGS='$LTCFLAGS' 28928 compiler='$compiler_DEFAULT' 28929 28930 # A function that is used when there is no print builtin or printf. 28931 func_fallback_echo () 28932 { 28933 eval 'cat <<_LTECHO_EOF 28934 \$1 28935 _LTECHO_EOF' 28936 } 28937 28938 # Quote evaled strings. 28939 for var in NM \ 28940 AS \ 28941 DLLTOOL \ 28942 OBJDUMP \ 28943 SHELL \ 28944 ECHO \ 28945 PATH_SEPARATOR \ 28946 SED \ 28947 GREP \ 28948 EGREP \ 28949 FGREP \ 28950 LD \ 28951 LN_S \ 28952 lt_SP2NL \ 28953 lt_NL2SP \ 28954 reload_flag \ 28955 deplibs_check_method \ 28956 file_magic_cmd \ 28957 file_magic_glob \ 28958 want_nocaseglob \ 28959 sharedlib_from_linklib_cmd \ 28960 AR \ 28961 AR_FLAGS \ 28962 archiver_list_spec \ 28963 STRIP \ 28964 RANLIB \ 28965 CC \ 28966 CFLAGS \ 28967 compiler \ 28968 lt_cv_sys_global_symbol_pipe \ 28969 lt_cv_sys_global_symbol_to_cdecl \ 28970 lt_cv_sys_global_symbol_to_import \ 28971 lt_cv_sys_global_symbol_to_c_name_address \ 28972 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 28973 lt_cv_nm_interface \ 28974 nm_file_list_spec \ 28975 lt_cv_truncate_bin \ 28976 lt_prog_compiler_no_builtin_flag \ 28977 lt_prog_compiler_pic \ 28978 lt_prog_compiler_wl \ 28979 lt_prog_compiler_static \ 28980 lt_cv_prog_compiler_c_o \ 28981 need_locks \ 28982 MANIFEST_TOOL \ 28983 DSYMUTIL \ 28984 NMEDIT \ 28985 LIPO \ 28986 OTOOL \ 28987 OTOOL64 \ 28988 shrext_cmds \ 28989 export_dynamic_flag_spec \ 28990 whole_archive_flag_spec \ 28991 compiler_needs_object \ 28992 with_gnu_ld \ 28993 allow_undefined_flag \ 28994 no_undefined_flag \ 28995 hardcode_libdir_flag_spec \ 28996 hardcode_libdir_separator \ 28997 exclude_expsyms \ 28998 include_expsyms \ 28999 file_list_spec \ 29000 variables_saved_for_relink \ 29001 libname_spec \ 29002 library_names_spec \ 29003 soname_spec \ 29004 install_override_mode \ 29005 finish_eval \ 29006 old_striplib \ 29007 striplib \ 29008 compiler_lib_search_dirs \ 29009 predep_objects \ 29010 postdep_objects \ 29011 predeps \ 29012 postdeps \ 29013 compiler_lib_search_path \ 29014 LD_CXX \ 29015 reload_flag_CXX \ 29016 compiler_CXX \ 29017 lt_prog_compiler_no_builtin_flag_CXX \ 29018 lt_prog_compiler_pic_CXX \ 29019 lt_prog_compiler_wl_CXX \ 29020 lt_prog_compiler_static_CXX \ 29021 lt_cv_prog_compiler_c_o_CXX \ 29022 export_dynamic_flag_spec_CXX \ 29023 whole_archive_flag_spec_CXX \ 29024 compiler_needs_object_CXX \ 29025 with_gnu_ld_CXX \ 29026 allow_undefined_flag_CXX \ 29027 no_undefined_flag_CXX \ 29028 hardcode_libdir_flag_spec_CXX \ 29029 hardcode_libdir_separator_CXX \ 29030 exclude_expsyms_CXX \ 29031 include_expsyms_CXX \ 29032 file_list_spec_CXX \ 29033 compiler_lib_search_dirs_CXX \ 29034 predep_objects_CXX \ 29035 postdep_objects_CXX \ 29036 predeps_CXX \ 29037 postdeps_CXX \ 29038 compiler_lib_search_path_CXX; do 29039 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 29040 *[\\\\\\\`\\"\\\$]*) 29041 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 29042 ;; 29043 *) 29044 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 29045 ;; 29046 esac 29047 done 29048 29049 # Double-quote double-evaled strings. 29050 for var in reload_cmds \ 29051 old_postinstall_cmds \ 29052 old_postuninstall_cmds \ 29053 old_archive_cmds \ 29054 extract_expsyms_cmds \ 29055 old_archive_from_new_cmds \ 29056 old_archive_from_expsyms_cmds \ 29057 archive_cmds \ 29058 archive_expsym_cmds \ 29059 module_cmds \ 29060 module_expsym_cmds \ 29061 export_symbols_cmds \ 29062 prelink_cmds \ 29063 postlink_cmds \ 29064 postinstall_cmds \ 29065 postuninstall_cmds \ 29066 finish_cmds \ 29067 sys_lib_search_path_spec \ 29068 configure_time_dlsearch_path \ 29069 configure_time_lt_sys_library_path \ 29070 reload_cmds_CXX \ 29071 old_archive_cmds_CXX \ 29072 old_archive_from_new_cmds_CXX \ 29073 old_archive_from_expsyms_cmds_CXX \ 29074 archive_cmds_CXX \ 29075 archive_expsym_cmds_CXX \ 29076 module_cmds_CXX \ 29077 module_expsym_cmds_CXX \ 29078 export_symbols_cmds_CXX \ 29079 prelink_cmds_CXX \ 29080 postlink_cmds_CXX; do 29081 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 29082 *[\\\\\\\`\\"\\\$]*) 29083 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 29084 ;; 29085 *) 29086 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 29087 ;; 29088 esac 29089 done 29090 29091 ac_aux_dir='$ac_aux_dir' 29092 29093 # See if we are running on zsh, and set the options that allow our 29094 # commands through without removal of \ escapes INIT. 29095 if test -n "\${ZSH_VERSION+set}"; then 29096 setopt NO_GLOB_SUBST 29097 fi 29098 29099 29100 PACKAGE='$PACKAGE' 29101 VERSION='$VERSION' 29102 RM='$RM' 29103 ofile='$ofile' 29104 29105 29106 29107 29108 29109 29110 _ACEOF 29111 29112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29113 29114 # Handling of arguments. 29115 for ac_config_target in $ac_config_targets 29116 do 29117 case $ac_config_target in 29118 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 29119 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 29120 "mpn/$tmp_fn.$tmp_ext") CONFIG_LINKS="$CONFIG_LINKS mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" ;; 29121 "gmp-mparam.h") CONFIG_LINKS="$CONFIG_LINKS gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" ;; 29122 "demos/pexpr-config.h") CONFIG_FILES="$CONFIG_FILES demos/pexpr-config.h:demos/pexpr-config-h.in" ;; 29123 "demos/calc/calc-config.h") CONFIG_FILES="$CONFIG_FILES demos/calc/calc-config.h:demos/calc/calc-config-h.in" ;; 29124 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 29125 "mpf/Makefile") CONFIG_FILES="$CONFIG_FILES mpf/Makefile" ;; 29126 "mpn/Makefile") CONFIG_FILES="$CONFIG_FILES mpn/Makefile" ;; 29127 "mpq/Makefile") CONFIG_FILES="$CONFIG_FILES mpq/Makefile" ;; 29128 "mpz/Makefile") CONFIG_FILES="$CONFIG_FILES mpz/Makefile" ;; 29129 "printf/Makefile") CONFIG_FILES="$CONFIG_FILES printf/Makefile" ;; 29130 "scanf/Makefile") CONFIG_FILES="$CONFIG_FILES scanf/Makefile" ;; 29131 "rand/Makefile") CONFIG_FILES="$CONFIG_FILES rand/Makefile" ;; 29132 "cxx/Makefile") CONFIG_FILES="$CONFIG_FILES cxx/Makefile" ;; 29133 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 29134 "tests/devel/Makefile") CONFIG_FILES="$CONFIG_FILES tests/devel/Makefile" ;; 29135 "tests/mpf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpf/Makefile" ;; 29136 "tests/mpn/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpn/Makefile" ;; 29137 "tests/mpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpq/Makefile" ;; 29138 "tests/mpz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpz/Makefile" ;; 29139 "tests/rand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rand/Makefile" ;; 29140 "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;; 29141 "tests/cxx/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxx/Makefile" ;; 29142 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 29143 "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;; 29144 "demos/Makefile") CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;; 29145 "demos/calc/Makefile") CONFIG_FILES="$CONFIG_FILES demos/calc/Makefile" ;; 29146 "demos/expr/Makefile") CONFIG_FILES="$CONFIG_FILES demos/expr/Makefile" ;; 29147 "gmp.h") CONFIG_FILES="$CONFIG_FILES gmp.h:gmp-h.in" ;; 29148 "gmp.pc") CONFIG_FILES="$CONFIG_FILES gmp.pc:gmp.pc.in" ;; 29149 "gmpxx.pc") CONFIG_FILES="$CONFIG_FILES gmpxx.pc:gmpxx.pc.in" ;; 29150 29151 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 29152 esac 29153 done 29154 29155 29156 # If the user did not use the arguments to specify the items to instantiate, 29157 # then the envvar interface is used. Set only those that are not. 29158 # We use the long form for the default assignment because of an extremely 29159 # bizarre bug on SunOS 4.1.3. 29160 if $ac_need_defaults; then 29161 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 29162 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 29163 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 29164 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 29165 fi 29166 29167 # Have a temporary directory for convenience. Make it in the build tree 29168 # simply because there is no reason against having it here, and in addition, 29169 # creating and moving files from /tmp can sometimes cause problems. 29170 # Hook for its removal unless debugging. 29171 # Note that there is a small window in which the directory will not be cleaned: 29172 # after its creation but before its name has been assigned to `$tmp'. 29173 $debug || 29174 { 29175 tmp= ac_tmp= 29176 trap 'exit_status=$? 29177 : "${ac_tmp:=$tmp}" 29178 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 29179 ' 0 29180 trap 'as_fn_exit 1' 1 2 13 15 29181 } 29182 # Create a (secure) tmp directory for tmp files. 29183 29184 { 29185 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 29186 test -d "$tmp" 29187 } || 29188 { 29189 tmp=./conf$$-$RANDOM 29190 (umask 077 && mkdir "$tmp") 29191 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 29192 ac_tmp=$tmp 29193 29194 # Set up the scripts for CONFIG_FILES section. 29195 # No need to generate them if there are no CONFIG_FILES. 29196 # This happens for instance with `./config.status config.h'. 29197 if test -n "$CONFIG_FILES"; then 29198 29199 29200 ac_cr=`echo X | tr X '\015'` 29201 # On cygwin, bash can eat \r inside `` if the user requested igncr. 29202 # But we know of no other shell where ac_cr would be empty at this 29203 # point, so we can use a bashism as a fallback. 29204 if test "x$ac_cr" = x; then 29205 eval ac_cr=\$\'\\r\' 29206 fi 29207 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 29208 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 29209 ac_cs_awk_cr='\\r' 29210 else 29211 ac_cs_awk_cr=$ac_cr 29212 fi 29213 29214 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 29215 _ACEOF 29216 29217 29218 { 29219 echo "cat >conf$$subs.awk <<_ACEOF" && 29220 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 29221 echo "_ACEOF" 29222 } >conf$$subs.sh || 29223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 29224 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 29225 ac_delim='%!_!# ' 29226 for ac_last_try in false false false false false :; do 29227 . ./conf$$subs.sh || 29228 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 29229 29230 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 29231 if test $ac_delim_n = $ac_delim_num; then 29232 break 29233 elif $ac_last_try; then 29234 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 29235 else 29236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 29237 fi 29238 done 29239 rm -f conf$$subs.sh 29240 29241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29242 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 29243 _ACEOF 29244 sed -n ' 29245 h 29246 s/^/S["/; s/!.*/"]=/ 29247 p 29248 g 29249 s/^[^!]*!// 29250 :repl 29251 t repl 29252 s/'"$ac_delim"'$// 29253 t delim 29254 :nl 29255 h 29256 s/\(.\{148\}\)..*/\1/ 29257 t more1 29258 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 29259 p 29260 n 29261 b repl 29262 :more1 29263 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 29264 p 29265 g 29266 s/.\{148\}// 29267 t nl 29268 :delim 29269 h 29270 s/\(.\{148\}\)..*/\1/ 29271 t more2 29272 s/["\\]/\\&/g; s/^/"/; s/$/"/ 29273 p 29274 b 29275 :more2 29276 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 29277 p 29278 g 29279 s/.\{148\}// 29280 t delim 29281 ' <conf$$subs.awk | sed ' 29282 /^[^""]/{ 29283 N 29284 s/\n// 29285 } 29286 ' >>$CONFIG_STATUS || ac_write_fail=1 29287 rm -f conf$$subs.awk 29288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29289 _ACAWK 29290 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 29291 for (key in S) S_is_set[key] = 1 29292 FS = "" 29293 29294 } 29295 { 29296 line = $ 0 29297 nfields = split(line, field, "@") 29298 substed = 0 29299 len = length(field[1]) 29300 for (i = 2; i < nfields; i++) { 29301 key = field[i] 29302 keylen = length(key) 29303 if (S_is_set[key]) { 29304 value = S[key] 29305 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 29306 len += length(value) + length(field[++i]) 29307 substed = 1 29308 } else 29309 len += 1 + keylen 29310 } 29311 29312 print line 29313 } 29314 29315 _ACAWK 29316 _ACEOF 29317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29318 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 29319 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 29320 else 29321 cat 29322 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 29323 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 29324 _ACEOF 29325 29326 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 29327 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 29328 # trailing colons and then remove the whole line if VPATH becomes empty 29329 # (actually we leave an empty line to preserve line numbers). 29330 if test "x$srcdir" = x.; then 29331 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 29332 h 29333 s/// 29334 s/^/:/ 29335 s/[ ]*$/:/ 29336 s/:\$(srcdir):/:/g 29337 s/:\${srcdir}:/:/g 29338 s/:@srcdir@:/:/g 29339 s/^:*// 29340 s/:*$// 29341 x 29342 s/\(=[ ]*\).*/\1/ 29343 G 29344 s/\n// 29345 s/^[^=]*=[ ]*$// 29346 }' 29347 fi 29348 29349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29350 fi # test -n "$CONFIG_FILES" 29351 29352 # Set up the scripts for CONFIG_HEADERS section. 29353 # No need to generate them if there are no CONFIG_HEADERS. 29354 # This happens for instance with `./config.status Makefile'. 29355 if test -n "$CONFIG_HEADERS"; then 29356 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 29357 BEGIN { 29358 _ACEOF 29359 29360 # Transform confdefs.h into an awk script `defines.awk', embedded as 29361 # here-document in config.status, that substitutes the proper values into 29362 # config.h.in to produce config.h. 29363 29364 # Create a delimiter string that does not exist in confdefs.h, to ease 29365 # handling of long lines. 29366 ac_delim='%!_!# ' 29367 for ac_last_try in false false :; do 29368 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 29369 if test -z "$ac_tt"; then 29370 break 29371 elif $ac_last_try; then 29372 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 29373 else 29374 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 29375 fi 29376 done 29377 29378 # For the awk script, D is an array of macro values keyed by name, 29379 # likewise P contains macro parameters if any. Preserve backslash 29380 # newline sequences. 29381 29382 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 29383 sed -n ' 29384 s/.\{148\}/&'"$ac_delim"'/g 29385 t rset 29386 :rset 29387 s/^[ ]*#[ ]*define[ ][ ]*/ / 29388 t def 29389 d 29390 :def 29391 s/\\$// 29392 t bsnl 29393 s/["\\]/\\&/g 29394 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 29395 D["\1"]=" \3"/p 29396 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 29397 d 29398 :bsnl 29399 s/["\\]/\\&/g 29400 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 29401 D["\1"]=" \3\\\\\\n"\\/p 29402 t cont 29403 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 29404 t cont 29405 d 29406 :cont 29407 n 29408 s/.\{148\}/&'"$ac_delim"'/g 29409 t clear 29410 :clear 29411 s/\\$// 29412 t bsnlc 29413 s/["\\]/\\&/g; s/^/"/; s/$/"/p 29414 d 29415 :bsnlc 29416 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 29417 b cont 29418 ' <confdefs.h | sed ' 29419 s/'"$ac_delim"'/"\\\ 29420 "/g' >>$CONFIG_STATUS || ac_write_fail=1 29421 29422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29423 for (key in D) D_is_set[key] = 1 29424 FS = "" 29425 } 29426 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 29427 line = \$ 0 29428 split(line, arg, " ") 29429 if (arg[1] == "#") { 29430 defundef = arg[2] 29431 mac1 = arg[3] 29432 } else { 29433 defundef = substr(arg[1], 2) 29434 mac1 = arg[2] 29435 } 29436 split(mac1, mac2, "(") #) 29437 macro = mac2[1] 29438 prefix = substr(line, 1, index(line, defundef) - 1) 29439 if (D_is_set[macro]) { 29440 # Preserve the white space surrounding the "#". 29441 print prefix "define", macro P[macro] D[macro] 29442 next 29443 } else { 29444 # Replace #undef with comments. This is necessary, for example, 29445 # in the case of _POSIX_SOURCE, which is predefined and required 29446 # on some systems where configure will not decide to define it. 29447 if (defundef == "undef") { 29448 print "/*", prefix defundef, macro, "*/" 29449 next 29450 } 29451 } 29452 } 29453 { print } 29454 _ACAWK 29455 _ACEOF 29456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29457 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 29458 fi # test -n "$CONFIG_HEADERS" 29459 29460 29461 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 29462 shift 29463 for ac_tag 29464 do 29465 case $ac_tag in 29466 :[FHLC]) ac_mode=$ac_tag; continue;; 29467 esac 29468 case $ac_mode$ac_tag in 29469 :[FHL]*:*);; 29470 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 29471 :[FH]-) ac_tag=-:-;; 29472 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 29473 esac 29474 ac_save_IFS=$IFS 29475 IFS=: 29476 set x $ac_tag 29477 IFS=$ac_save_IFS 29478 shift 29479 ac_file=$1 29480 shift 29481 29482 case $ac_mode in 29483 :L) ac_source=$1;; 29484 :[FH]) 29485 ac_file_inputs= 29486 for ac_f 29487 do 29488 case $ac_f in 29489 -) ac_f="$ac_tmp/stdin";; 29490 *) # Look for the file first in the build tree, then in the source tree 29491 # (if the path is not absolute). The absolute path cannot be DOS-style, 29492 # because $ac_f cannot contain `:'. 29493 test -f "$ac_f" || 29494 case $ac_f in 29495 [\\/$]*) false;; 29496 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 29497 esac || 29498 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 29499 esac 29500 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 29501 as_fn_append ac_file_inputs " '$ac_f'" 29502 done 29503 29504 # Let's still pretend it is `configure' which instantiates (i.e., don't 29505 # use $as_me), people would be surprised to read: 29506 # /* config.h. Generated by config.status. */ 29507 configure_input='Generated from '` 29508 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 29509 `' by configure.' 29510 if test x"$ac_file" != x-; then 29511 configure_input="$ac_file. $configure_input" 29512 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 29513 $as_echo "$as_me: creating $ac_file" >&6;} 29514 fi 29515 # Neutralize special characters interpreted by sed in replacement strings. 29516 case $configure_input in #( 29517 *\&* | *\|* | *\\* ) 29518 ac_sed_conf_input=`$as_echo "$configure_input" | 29519 sed 's/[\\\\&|]/\\\\&/g'`;; #( 29520 *) ac_sed_conf_input=$configure_input;; 29521 esac 29522 29523 case $ac_tag in 29524 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 29525 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 29526 esac 29527 ;; 29528 esac 29529 29530 ac_dir=`$as_dirname -- "$ac_file" || 29531 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29532 X"$ac_file" : 'X\(//\)[^/]' \| \ 29533 X"$ac_file" : 'X\(//\)$' \| \ 29534 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 29535 $as_echo X"$ac_file" | 29536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 29537 s//\1/ 29538 q 29539 } 29540 /^X\(\/\/\)[^/].*/{ 29541 s//\1/ 29542 q 29543 } 29544 /^X\(\/\/\)$/{ 29545 s//\1/ 29546 q 29547 } 29548 /^X\(\/\).*/{ 29549 s//\1/ 29550 q 29551 } 29552 s/.*/./; q'` 29553 as_dir="$ac_dir"; as_fn_mkdir_p 29554 ac_builddir=. 29555 29556 case "$ac_dir" in 29557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 29558 *) 29559 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 29560 # A ".." for each directory in $ac_dir_suffix. 29561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 29562 case $ac_top_builddir_sub in 29563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 29564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 29565 esac ;; 29566 esac 29567 ac_abs_top_builddir=$ac_pwd 29568 ac_abs_builddir=$ac_pwd$ac_dir_suffix 29569 # for backward compatibility: 29570 ac_top_builddir=$ac_top_build_prefix 29571 29572 case $srcdir in 29573 .) # We are building in place. 29574 ac_srcdir=. 29575 ac_top_srcdir=$ac_top_builddir_sub 29576 ac_abs_top_srcdir=$ac_pwd ;; 29577 [\\/]* | ?:[\\/]* ) # Absolute name. 29578 ac_srcdir=$srcdir$ac_dir_suffix; 29579 ac_top_srcdir=$srcdir 29580 ac_abs_top_srcdir=$srcdir ;; 29581 *) # Relative name. 29582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 29583 ac_top_srcdir=$ac_top_build_prefix$srcdir 29584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 29585 esac 29586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 29587 29588 29589 case $ac_mode in 29590 :F) 29591 # 29592 # CONFIG_FILE 29593 # 29594 29595 case $INSTALL in 29596 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 29597 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 29598 esac 29599 ac_MKDIR_P=$MKDIR_P 29600 case $MKDIR_P in 29601 [\\/$]* | ?:[\\/]* ) ;; 29602 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 29603 esac 29604 _ACEOF 29605 29606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29607 # If the template does not know about datarootdir, expand it. 29608 # FIXME: This hack should be removed a few years after 2.60. 29609 ac_datarootdir_hack=; ac_datarootdir_seen= 29610 ac_sed_dataroot=' 29611 /datarootdir/ { 29612 p 29613 q 29614 } 29615 /@datadir@/p 29616 /@docdir@/p 29617 /@infodir@/p 29618 /@localedir@/p 29619 /@mandir@/p' 29620 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 29621 *datarootdir*) ac_datarootdir_seen=yes;; 29622 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 29623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 29624 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 29625 _ACEOF 29626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29627 ac_datarootdir_hack=' 29628 s&@datadir@&$datadir&g 29629 s&@docdir@&$docdir&g 29630 s&@infodir@&$infodir&g 29631 s&@localedir@&$localedir&g 29632 s&@mandir@&$mandir&g 29633 s&\\\${datarootdir}&$datarootdir&g' ;; 29634 esac 29635 _ACEOF 29636 29637 # Neutralize VPATH when `$srcdir' = `.'. 29638 # Shell code in configure.ac might set extrasub. 29639 # FIXME: do we really want to maintain this feature? 29640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29641 ac_sed_extra="$ac_vpsub 29642 $extrasub 29643 _ACEOF 29644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29645 :t 29646 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 29647 s|@configure_input@|$ac_sed_conf_input|;t t 29648 s&@top_builddir@&$ac_top_builddir_sub&;t t 29649 s&@top_build_prefix@&$ac_top_build_prefix&;t t 29650 s&@srcdir@&$ac_srcdir&;t t 29651 s&@abs_srcdir@&$ac_abs_srcdir&;t t 29652 s&@top_srcdir@&$ac_top_srcdir&;t t 29653 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 29654 s&@builddir@&$ac_builddir&;t t 29655 s&@abs_builddir@&$ac_abs_builddir&;t t 29656 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 29657 s&@INSTALL@&$ac_INSTALL&;t t 29658 s&@MKDIR_P@&$ac_MKDIR_P&;t t 29659 $ac_datarootdir_hack 29660 " 29661 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 29662 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 29663 29664 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 29665 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 29666 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 29667 "$ac_tmp/out"`; test -z "$ac_out"; } && 29668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 29669 which seems to be undefined. Please make sure it is defined" >&5 29670 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 29671 which seems to be undefined. Please make sure it is defined" >&2;} 29672 29673 rm -f "$ac_tmp/stdin" 29674 case $ac_file in 29675 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 29676 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 29677 esac \ 29678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 29679 ;; 29680 :H) 29681 # 29682 # CONFIG_HEADER 29683 # 29684 if test x"$ac_file" != x-; then 29685 { 29686 $as_echo "/* $configure_input */" \ 29687 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 29688 } >"$ac_tmp/config.h" \ 29689 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 29690 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 29691 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 29692 $as_echo "$as_me: $ac_file is unchanged" >&6;} 29693 else 29694 rm -f "$ac_file" 29695 mv "$ac_tmp/config.h" "$ac_file" \ 29696 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 29697 fi 29698 else 29699 $as_echo "/* $configure_input */" \ 29700 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 29701 || as_fn_error $? "could not create -" "$LINENO" 5 29702 fi 29703 # Compute "$ac_file"'s index in $config_headers. 29704 _am_arg="$ac_file" 29705 _am_stamp_count=1 29706 for _am_header in $config_headers :; do 29707 case $_am_header in 29708 $_am_arg | $_am_arg:* ) 29709 break ;; 29710 * ) 29711 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 29712 esac 29713 done 29714 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 29715 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29716 X"$_am_arg" : 'X\(//\)[^/]' \| \ 29717 X"$_am_arg" : 'X\(//\)$' \| \ 29718 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 29719 $as_echo X"$_am_arg" | 29720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 29721 s//\1/ 29722 q 29723 } 29724 /^X\(\/\/\)[^/].*/{ 29725 s//\1/ 29726 q 29727 } 29728 /^X\(\/\/\)$/{ 29729 s//\1/ 29730 q 29731 } 29732 /^X\(\/\).*/{ 29733 s//\1/ 29734 q 29735 } 29736 s/.*/./; q'`/stamp-h$_am_stamp_count 29737 ;; 29738 :L) 29739 # 29740 # CONFIG_LINK 29741 # 29742 29743 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 29744 : 29745 else 29746 # Prefer the file from the source tree if names are identical. 29747 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 29748 ac_source=$srcdir/$ac_source 29749 fi 29750 29751 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 29752 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 29753 29754 if test ! -r "$ac_source"; then 29755 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 29756 fi 29757 rm -f "$ac_file" 29758 29759 # Try a relative symlink, then a hard link, then a copy. 29760 case $ac_source in 29761 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 29762 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 29763 esac 29764 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 29765 ln "$ac_source" "$ac_file" 2>/dev/null || 29766 cp -p "$ac_source" "$ac_file" || 29767 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 29768 fi 29769 ;; 29770 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 29771 $as_echo "$as_me: executing $ac_file commands" >&6;} 29772 ;; 29773 esac 29774 29775 29776 case $ac_file$ac_mode in 29777 "libtool":C) 29778 29779 # See if we are running on zsh, and set the options that allow our 29780 # commands through without removal of \ escapes. 29781 if test -n "${ZSH_VERSION+set}"; then 29782 setopt NO_GLOB_SUBST 29783 fi 29784 29785 cfgfile=${ofile}T 29786 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 29787 $RM "$cfgfile" 29788 29789 cat <<_LT_EOF >> "$cfgfile" 29790 #! $SHELL 29791 # Generated automatically by $as_me ($PACKAGE) $VERSION 29792 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 29793 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 29794 29795 # Provide generalized library-building support services. 29796 # Written by Gordon Matzigkeit, 1996 29797 29798 # Copyright (C) 2014 Free Software Foundation, Inc. 29799 # This is free software; see the source for copying conditions. There is NO 29800 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 29801 29802 # GNU Libtool is free software; you can redistribute it and/or modify 29803 # it under the terms of the GNU General Public License as published by 29804 # the Free Software Foundation; either version 2 of of the License, or 29805 # (at your option) any later version. 29806 # 29807 # As a special exception to the GNU General Public License, if you 29808 # distribute this file as part of a program or library that is built 29809 # using GNU Libtool, you may include this file under the same 29810 # distribution terms that you use for the rest of that program. 29811 # 29812 # GNU Libtool is distributed in the hope that it will be useful, but 29813 # WITHOUT ANY WARRANTY; without even the implied warranty of 29814 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 29815 # GNU General Public License for more details. 29816 # 29817 # You should have received a copy of the GNU General Public License 29818 # along with this program. If not, see <http://www.gnu.org/licenses/>. 29819 29820 29821 # The names of the tagged configurations supported by this script. 29822 available_tags='CXX ' 29823 29824 # Configured defaults for sys_lib_dlsearch_path munging. 29825 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 29826 29827 # ### BEGIN LIBTOOL CONFIG 29828 29829 # A BSD- or MS-compatible name lister. 29830 NM=$lt_NM 29831 29832 # Assembler program. 29833 AS=$lt_AS 29834 29835 # DLL creation program. 29836 DLLTOOL=$lt_DLLTOOL 29837 29838 # Object dumper program. 29839 OBJDUMP=$lt_OBJDUMP 29840 29841 # Which release of libtool.m4 was used? 29842 macro_version=$macro_version 29843 macro_revision=$macro_revision 29844 29845 # Whether or not to build shared libraries. 29846 build_libtool_libs=$enable_shared 29847 29848 # Whether or not to build static libraries. 29849 build_old_libs=$enable_static 29850 29851 # What type of objects to build. 29852 pic_mode=$pic_mode 29853 29854 # Whether or not to optimize for fast installation. 29855 fast_install=$enable_fast_install 29856 29857 # Shared archive member basename,for filename based shared library versioning on AIX. 29858 shared_archive_member_spec=$shared_archive_member_spec 29859 29860 # Shell to use when invoking shell scripts. 29861 SHELL=$lt_SHELL 29862 29863 # An echo program that protects backslashes. 29864 ECHO=$lt_ECHO 29865 29866 # The PATH separator for the build system. 29867 PATH_SEPARATOR=$lt_PATH_SEPARATOR 29868 29869 # The host system. 29870 host_alias=$host_alias 29871 host=$host 29872 host_os=$host_os 29873 29874 # The build system. 29875 build_alias=$build_alias 29876 build=$build 29877 build_os=$build_os 29878 29879 # A sed program that does not truncate output. 29880 SED=$lt_SED 29881 29882 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 29883 Xsed="\$SED -e 1s/^X//" 29884 29885 # A grep program that handles long lines. 29886 GREP=$lt_GREP 29887 29888 # An ERE matcher. 29889 EGREP=$lt_EGREP 29890 29891 # A literal string matcher. 29892 FGREP=$lt_FGREP 29893 29894 # Whether we need soft or hard links. 29895 LN_S=$lt_LN_S 29896 29897 # What is the maximum length of a command? 29898 max_cmd_len=$max_cmd_len 29899 29900 # Object file suffix (normally "o"). 29901 objext=$ac_objext 29902 29903 # Executable file suffix (normally ""). 29904 exeext=$exeext 29905 29906 # whether the shell understands "unset". 29907 lt_unset=$lt_unset 29908 29909 # turn spaces into newlines. 29910 SP2NL=$lt_lt_SP2NL 29911 29912 # turn newlines into spaces. 29913 NL2SP=$lt_lt_NL2SP 29914 29915 # convert \$build file names to \$host format. 29916 to_host_file_cmd=$lt_cv_to_host_file_cmd 29917 29918 # convert \$build files to toolchain format. 29919 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 29920 29921 # Method to check whether dependent libraries are shared objects. 29922 deplibs_check_method=$lt_deplibs_check_method 29923 29924 # Command to use when deplibs_check_method = "file_magic". 29925 file_magic_cmd=$lt_file_magic_cmd 29926 29927 # How to find potential files when deplibs_check_method = "file_magic". 29928 file_magic_glob=$lt_file_magic_glob 29929 29930 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 29931 want_nocaseglob=$lt_want_nocaseglob 29932 29933 # Command to associate shared and link libraries. 29934 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 29935 29936 # The archiver. 29937 AR=$lt_AR 29938 29939 # Flags to create an archive. 29940 AR_FLAGS=$lt_AR_FLAGS 29941 29942 # How to feed a file listing to the archiver. 29943 archiver_list_spec=$lt_archiver_list_spec 29944 29945 # A symbol stripping program. 29946 STRIP=$lt_STRIP 29947 29948 # Commands used to install an old-style archive. 29949 RANLIB=$lt_RANLIB 29950 old_postinstall_cmds=$lt_old_postinstall_cmds 29951 old_postuninstall_cmds=$lt_old_postuninstall_cmds 29952 29953 # Whether to use a lock for old archive extraction. 29954 lock_old_archive_extraction=$lock_old_archive_extraction 29955 29956 # A C compiler. 29957 LTCC=$lt_CC 29958 29959 # LTCC compiler flags. 29960 LTCFLAGS=$lt_CFLAGS 29961 29962 # Take the output of nm and produce a listing of raw symbols and C names. 29963 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 29964 29965 # Transform the output of nm in a proper C declaration. 29966 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 29967 29968 # Transform the output of nm into a list of symbols to manually relocate. 29969 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 29970 29971 # Transform the output of nm in a C name address pair. 29972 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 29973 29974 # Transform the output of nm in a C name address pair when lib prefix is needed. 29975 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 29976 29977 # The name lister interface. 29978 nm_interface=$lt_lt_cv_nm_interface 29979 29980 # Specify filename containing input files for \$NM. 29981 nm_file_list_spec=$lt_nm_file_list_spec 29982 29983 # The root where to search for dependent libraries,and where our libraries should be installed. 29984 lt_sysroot=$lt_sysroot 29985 29986 # Command to truncate a binary pipe. 29987 lt_truncate_bin=$lt_lt_cv_truncate_bin 29988 29989 # The name of the directory that contains temporary libtool files. 29990 objdir=$objdir 29991 29992 # Used to examine libraries when file_magic_cmd begins with "file". 29993 MAGIC_CMD=$MAGIC_CMD 29994 29995 # Must we lock files when doing compilation? 29996 need_locks=$lt_need_locks 29997 29998 # Manifest tool. 29999 MANIFEST_TOOL=$lt_MANIFEST_TOOL 30000 30001 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 30002 DSYMUTIL=$lt_DSYMUTIL 30003 30004 # Tool to change global to local symbols on Mac OS X. 30005 NMEDIT=$lt_NMEDIT 30006 30007 # Tool to manipulate fat objects and archives on Mac OS X. 30008 LIPO=$lt_LIPO 30009 30010 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 30011 OTOOL=$lt_OTOOL 30012 30013 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 30014 OTOOL64=$lt_OTOOL64 30015 30016 # Old archive suffix (normally "a"). 30017 libext=$libext 30018 30019 # Shared library suffix (normally ".so"). 30020 shrext_cmds=$lt_shrext_cmds 30021 30022 # The commands to extract the exported symbol list from a shared archive. 30023 extract_expsyms_cmds=$lt_extract_expsyms_cmds 30024 30025 # Variables whose values should be saved in libtool wrapper scripts and 30026 # restored at link time. 30027 variables_saved_for_relink=$lt_variables_saved_for_relink 30028 30029 # Do we need the "lib" prefix for modules? 30030 need_lib_prefix=$need_lib_prefix 30031 30032 # Do we need a version for libraries? 30033 need_version=$need_version 30034 30035 # Library versioning type. 30036 version_type=$version_type 30037 30038 # Shared library runtime path variable. 30039 runpath_var=$runpath_var 30040 30041 # Shared library path variable. 30042 shlibpath_var=$shlibpath_var 30043 30044 # Is shlibpath searched before the hard-coded library search path? 30045 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 30046 30047 # Format of library name prefix. 30048 libname_spec=$lt_libname_spec 30049 30050 # List of archive names. First name is the real one, the rest are links. 30051 # The last name is the one that the linker finds with -lNAME 30052 library_names_spec=$lt_library_names_spec 30053 30054 # The coded name of the library, if different from the real name. 30055 soname_spec=$lt_soname_spec 30056 30057 # Permission mode override for installation of shared libraries. 30058 install_override_mode=$lt_install_override_mode 30059 30060 # Command to use after installation of a shared archive. 30061 postinstall_cmds=$lt_postinstall_cmds 30062 30063 # Command to use after uninstallation of a shared archive. 30064 postuninstall_cmds=$lt_postuninstall_cmds 30065 30066 # Commands used to finish a libtool library installation in a directory. 30067 finish_cmds=$lt_finish_cmds 30068 30069 # As "finish_cmds", except a single script fragment to be evaled but 30070 # not shown. 30071 finish_eval=$lt_finish_eval 30072 30073 # Whether we should hardcode library paths into libraries. 30074 hardcode_into_libs=$hardcode_into_libs 30075 30076 # Compile-time system search path for libraries. 30077 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 30078 30079 # Detected run-time system search path for libraries. 30080 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 30081 30082 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 30083 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 30084 30085 # Whether dlopen is supported. 30086 dlopen_support=$enable_dlopen 30087 30088 # Whether dlopen of programs is supported. 30089 dlopen_self=$enable_dlopen_self 30090 30091 # Whether dlopen of statically linked programs is supported. 30092 dlopen_self_static=$enable_dlopen_self_static 30093 30094 # Commands to strip libraries. 30095 old_striplib=$lt_old_striplib 30096 striplib=$lt_striplib 30097 30098 30099 # The linker used to build libraries. 30100 LD=$lt_LD 30101 30102 # How to create reloadable object files. 30103 reload_flag=$lt_reload_flag 30104 reload_cmds=$lt_reload_cmds 30105 30106 # Commands used to build an old-style archive. 30107 old_archive_cmds=$lt_old_archive_cmds 30108 30109 # A language specific compiler. 30110 CC=$lt_compiler 30111 30112 # Is the compiler the GNU compiler? 30113 with_gcc=$GCC 30114 30115 # Compiler flag to turn off builtin functions. 30116 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 30117 30118 # Additional compiler flags for building library objects. 30119 pic_flag=$lt_lt_prog_compiler_pic 30120 30121 # How to pass a linker flag through the compiler. 30122 wl=$lt_lt_prog_compiler_wl 30123 30124 # Compiler flag to prevent dynamic linking. 30125 link_static_flag=$lt_lt_prog_compiler_static 30126 30127 # Does compiler simultaneously support -c and -o options? 30128 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 30129 30130 # Whether or not to add -lc for building shared libraries. 30131 build_libtool_need_lc=$archive_cmds_need_lc 30132 30133 # Whether or not to disallow shared libs when runtime libs are static. 30134 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 30135 30136 # Compiler flag to allow reflexive dlopens. 30137 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 30138 30139 # Compiler flag to generate shared objects directly from archives. 30140 whole_archive_flag_spec=$lt_whole_archive_flag_spec 30141 30142 # Whether the compiler copes with passing no objects directly. 30143 compiler_needs_object=$lt_compiler_needs_object 30144 30145 # Create an old-style archive from a shared archive. 30146 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 30147 30148 # Create a temporary old-style archive to link instead of a shared archive. 30149 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 30150 30151 # Commands used to build a shared archive. 30152 archive_cmds=$lt_archive_cmds 30153 archive_expsym_cmds=$lt_archive_expsym_cmds 30154 30155 # Commands used to build a loadable module if different from building 30156 # a shared archive. 30157 module_cmds=$lt_module_cmds 30158 module_expsym_cmds=$lt_module_expsym_cmds 30159 30160 # Whether we are building with GNU ld or not. 30161 with_gnu_ld=$lt_with_gnu_ld 30162 30163 # Flag that allows shared libraries with undefined symbols to be built. 30164 allow_undefined_flag=$lt_allow_undefined_flag 30165 30166 # Flag that enforces no undefined symbols. 30167 no_undefined_flag=$lt_no_undefined_flag 30168 30169 # Flag to hardcode \$libdir into a binary during linking. 30170 # This must work even if \$libdir does not exist 30171 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 30172 30173 # Whether we need a single "-rpath" flag with a separated argument. 30174 hardcode_libdir_separator=$lt_hardcode_libdir_separator 30175 30176 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 30177 # DIR into the resulting binary. 30178 hardcode_direct=$hardcode_direct 30179 30180 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 30181 # DIR into the resulting binary and the resulting library dependency is 30182 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 30183 # library is relocated. 30184 hardcode_direct_absolute=$hardcode_direct_absolute 30185 30186 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 30187 # into the resulting binary. 30188 hardcode_minus_L=$hardcode_minus_L 30189 30190 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 30191 # into the resulting binary. 30192 hardcode_shlibpath_var=$hardcode_shlibpath_var 30193 30194 # Set to "yes" if building a shared library automatically hardcodes DIR 30195 # into the library and all subsequent libraries and executables linked 30196 # against it. 30197 hardcode_automatic=$hardcode_automatic 30198 30199 # Set to yes if linker adds runtime paths of dependent libraries 30200 # to runtime path list. 30201 inherit_rpath=$inherit_rpath 30202 30203 # Whether libtool must link a program against all its dependency libraries. 30204 link_all_deplibs=$link_all_deplibs 30205 30206 # Set to "yes" if exported symbols are required. 30207 always_export_symbols=$always_export_symbols 30208 30209 # The commands to list exported symbols. 30210 export_symbols_cmds=$lt_export_symbols_cmds 30211 30212 # Symbols that should not be listed in the preloaded symbols. 30213 exclude_expsyms=$lt_exclude_expsyms 30214 30215 # Symbols that must always be exported. 30216 include_expsyms=$lt_include_expsyms 30217 30218 # Commands necessary for linking programs (against libraries) with templates. 30219 prelink_cmds=$lt_prelink_cmds 30220 30221 # Commands necessary for finishing linking programs. 30222 postlink_cmds=$lt_postlink_cmds 30223 30224 # Specify filename containing input files. 30225 file_list_spec=$lt_file_list_spec 30226 30227 # How to hardcode a shared library path into an executable. 30228 hardcode_action=$hardcode_action 30229 30230 # The directories searched by this compiler when creating a shared library. 30231 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 30232 30233 # Dependencies to place before and after the objects being linked to 30234 # create a shared library. 30235 predep_objects=$lt_predep_objects 30236 postdep_objects=$lt_postdep_objects 30237 predeps=$lt_predeps 30238 postdeps=$lt_postdeps 30239 30240 # The library search path used internally by the compiler when linking 30241 # a shared library. 30242 compiler_lib_search_path=$lt_compiler_lib_search_path 30243 30244 # ### END LIBTOOL CONFIG 30245 30246 _LT_EOF 30247 30248 cat <<'_LT_EOF' >> "$cfgfile" 30249 30250 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 30251 30252 # func_munge_path_list VARIABLE PATH 30253 # ----------------------------------- 30254 # VARIABLE is name of variable containing _space_ separated list of 30255 # directories to be munged by the contents of PATH, which is string 30256 # having a format: 30257 # "DIR[:DIR]:" 30258 # string "DIR[ DIR]" will be prepended to VARIABLE 30259 # ":DIR[:DIR]" 30260 # string "DIR[ DIR]" will be appended to VARIABLE 30261 # "DIRP[:DIRP]::[DIRA:]DIRA" 30262 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 30263 # "DIRA[ DIRA]" will be appended to VARIABLE 30264 # "DIR[:DIR]" 30265 # VARIABLE will be replaced by "DIR[ DIR]" 30266 func_munge_path_list () 30267 { 30268 case x$2 in 30269 x) 30270 ;; 30271 *:) 30272 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 30273 ;; 30274 x:*) 30275 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 30276 ;; 30277 *::*) 30278 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 30279 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 30280 ;; 30281 *) 30282 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 30283 ;; 30284 esac 30285 } 30286 30287 30288 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 30289 func_cc_basename () 30290 { 30291 for cc_temp in $*""; do 30292 case $cc_temp in 30293 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 30294 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 30295 \-*) ;; 30296 *) break;; 30297 esac 30298 done 30299 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 30300 } 30301 30302 30303 # ### END FUNCTIONS SHARED WITH CONFIGURE 30304 30305 _LT_EOF 30306 30307 case $host_os in 30308 aix3*) 30309 cat <<\_LT_EOF >> "$cfgfile" 30310 # AIX sometimes has problems with the GCC collect2 program. For some 30311 # reason, if we set the COLLECT_NAMES environment variable, the problems 30312 # vanish in a puff of smoke. 30313 if test set != "${COLLECT_NAMES+set}"; then 30314 COLLECT_NAMES= 30315 export COLLECT_NAMES 30316 fi 30317 _LT_EOF 30318 ;; 30319 esac 30320 30321 30322 ltmain=$ac_aux_dir/ltmain.sh 30323 30324 30325 # We use sed instead of cat because bash on DJGPP gets confused if 30326 # if finds mixed CR/LF and LF-only lines. Since sed operates in 30327 # text mode, it properly converts lines to CR/LF. This bash problem 30328 # is reportedly fixed, but why not run on old versions too? 30329 sed '$q' "$ltmain" >> "$cfgfile" \ 30330 || (rm -f "$cfgfile"; exit 1) 30331 30332 mv -f "$cfgfile" "$ofile" || 30333 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 30334 chmod +x "$ofile" 30335 30336 30337 cat <<_LT_EOF >> "$ofile" 30338 30339 # ### BEGIN LIBTOOL TAG CONFIG: CXX 30340 30341 # The linker used to build libraries. 30342 LD=$lt_LD_CXX 30343 30344 # How to create reloadable object files. 30345 reload_flag=$lt_reload_flag_CXX 30346 reload_cmds=$lt_reload_cmds_CXX 30347 30348 # Commands used to build an old-style archive. 30349 old_archive_cmds=$lt_old_archive_cmds_CXX 30350 30351 # A language specific compiler. 30352 CC=$lt_compiler_CXX 30353 30354 # Is the compiler the GNU compiler? 30355 with_gcc=$GCC_CXX 30356 30357 # Compiler flag to turn off builtin functions. 30358 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 30359 30360 # Additional compiler flags for building library objects. 30361 pic_flag=$lt_lt_prog_compiler_pic_CXX 30362 30363 # How to pass a linker flag through the compiler. 30364 wl=$lt_lt_prog_compiler_wl_CXX 30365 30366 # Compiler flag to prevent dynamic linking. 30367 link_static_flag=$lt_lt_prog_compiler_static_CXX 30368 30369 # Does compiler simultaneously support -c and -o options? 30370 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 30371 30372 # Whether or not to add -lc for building shared libraries. 30373 build_libtool_need_lc=$archive_cmds_need_lc_CXX 30374 30375 # Whether or not to disallow shared libs when runtime libs are static. 30376 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 30377 30378 # Compiler flag to allow reflexive dlopens. 30379 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 30380 30381 # Compiler flag to generate shared objects directly from archives. 30382 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 30383 30384 # Whether the compiler copes with passing no objects directly. 30385 compiler_needs_object=$lt_compiler_needs_object_CXX 30386 30387 # Create an old-style archive from a shared archive. 30388 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 30389 30390 # Create a temporary old-style archive to link instead of a shared archive. 30391 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 30392 30393 # Commands used to build a shared archive. 30394 archive_cmds=$lt_archive_cmds_CXX 30395 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 30396 30397 # Commands used to build a loadable module if different from building 30398 # a shared archive. 30399 module_cmds=$lt_module_cmds_CXX 30400 module_expsym_cmds=$lt_module_expsym_cmds_CXX 30401 30402 # Whether we are building with GNU ld or not. 30403 with_gnu_ld=$lt_with_gnu_ld_CXX 30404 30405 # Flag that allows shared libraries with undefined symbols to be built. 30406 allow_undefined_flag=$lt_allow_undefined_flag_CXX 30407 30408 # Flag that enforces no undefined symbols. 30409 no_undefined_flag=$lt_no_undefined_flag_CXX 30410 30411 # Flag to hardcode \$libdir into a binary during linking. 30412 # This must work even if \$libdir does not exist 30413 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 30414 30415 # Whether we need a single "-rpath" flag with a separated argument. 30416 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 30417 30418 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 30419 # DIR into the resulting binary. 30420 hardcode_direct=$hardcode_direct_CXX 30421 30422 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 30423 # DIR into the resulting binary and the resulting library dependency is 30424 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 30425 # library is relocated. 30426 hardcode_direct_absolute=$hardcode_direct_absolute_CXX 30427 30428 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 30429 # into the resulting binary. 30430 hardcode_minus_L=$hardcode_minus_L_CXX 30431 30432 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 30433 # into the resulting binary. 30434 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 30435 30436 # Set to "yes" if building a shared library automatically hardcodes DIR 30437 # into the library and all subsequent libraries and executables linked 30438 # against it. 30439 hardcode_automatic=$hardcode_automatic_CXX 30440 30441 # Set to yes if linker adds runtime paths of dependent libraries 30442 # to runtime path list. 30443 inherit_rpath=$inherit_rpath_CXX 30444 30445 # Whether libtool must link a program against all its dependency libraries. 30446 link_all_deplibs=$link_all_deplibs_CXX 30447 30448 # Set to "yes" if exported symbols are required. 30449 always_export_symbols=$always_export_symbols_CXX 30450 30451 # The commands to list exported symbols. 30452 export_symbols_cmds=$lt_export_symbols_cmds_CXX 30453 30454 # Symbols that should not be listed in the preloaded symbols. 30455 exclude_expsyms=$lt_exclude_expsyms_CXX 30456 30457 # Symbols that must always be exported. 30458 include_expsyms=$lt_include_expsyms_CXX 30459 30460 # Commands necessary for linking programs (against libraries) with templates. 30461 prelink_cmds=$lt_prelink_cmds_CXX 30462 30463 # Commands necessary for finishing linking programs. 30464 postlink_cmds=$lt_postlink_cmds_CXX 30465 30466 # Specify filename containing input files. 30467 file_list_spec=$lt_file_list_spec_CXX 30468 30469 # How to hardcode a shared library path into an executable. 30470 hardcode_action=$hardcode_action_CXX 30471 30472 # The directories searched by this compiler when creating a shared library. 30473 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 30474 30475 # Dependencies to place before and after the objects being linked to 30476 # create a shared library. 30477 predep_objects=$lt_predep_objects_CXX 30478 postdep_objects=$lt_postdep_objects_CXX 30479 predeps=$lt_predeps_CXX 30480 postdeps=$lt_postdeps_CXX 30481 30482 # The library search path used internally by the compiler when linking 30483 # a shared library. 30484 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 30485 30486 # ### END LIBTOOL TAG CONFIG: CXX 30487 _LT_EOF 30488 30489 ;; 30490 30491 esac 30492 done # for ac_tag 30493 30494 30495 as_fn_exit 0 30496 _ACEOF 30497 ac_clean_files=$ac_clean_files_save 30498 30499 test $ac_write_fail = 0 || 30500 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 30501 30502 30503 # configure is writing to config.log, and then calls config.status. 30504 # config.status does its own redirection, appending to config.log. 30505 # Unfortunately, on DOS this fails, as config.log is still kept open 30506 # by configure, so config.status won't be able to write to it; its 30507 # output is simply discarded. So we exec the FD to /dev/null, 30508 # effectively closing config.log, so it can be properly (re)opened and 30509 # appended to by config.status. When coming back to configure, we 30510 # need to make the FD available again. 30511 if test "$no_create" != yes; then 30512 ac_cs_success=: 30513 ac_config_status_args= 30514 test "$silent" = yes && 30515 ac_config_status_args="$ac_config_status_args --quiet" 30516 exec 5>/dev/null 30517 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 30518 exec 5>>config.log 30519 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 30520 # would make configure fail if this is the last instruction. 30521 $ac_cs_success || as_fn_exit 1 30522 fi 30523 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 30524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 30525 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 30526 fi 30527 30528 30529 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options: 30530 30531 Version: ${PACKAGE_STRING} 30532 Host type: ${host} 30533 ABI: ${ABI} 30534 Install prefix: ${prefix} 30535 Compiler: ${CC} 30536 Static libraries: ${enable_static} 30537 Shared libraries: ${enable_shared} 30538 " >&5 30539 $as_echo "$as_me: summary of build options: 30540 30541 Version: ${PACKAGE_STRING} 30542 Host type: ${host} 30543 ABI: ${ABI} 30544 Install prefix: ${prefix} 30545 Compiler: ${CC} 30546 Static libraries: ${enable_static} 30547 Shared libraries: ${enable_shared} 30548 " >&6;} 30549