1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for GCC Quad-precision Math Library 0.1. 4 # 5 # 6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7 # 8 # 9 # This configure script is free software; the Free Software Foundation 10 # gives unlimited permission to copy, distribute and modify it. 11 ## -------------------- ## 12 ## M4sh Initialization. ## 13 ## -------------------- ## 14 15 # Be more Bourne compatible 16 DUALCASE=1; export DUALCASE # for MKS sh 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24 else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30 esac 31 fi 32 33 34 as_nl=' 35 ' 36 export as_nl 37 # Printing a long string crashes Solaris 7 /usr/bin/printf. 38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41 # Prefer a ksh shell builtin over an external printf program on Solaris, 42 # but without wasting forks for bash or zsh. 43 if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50 else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70 fi 71 72 # The user is always right. 73 if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79 fi 80 81 82 # IFS 83 # We need space, tab and new line, in precisely that order. Quoting is 84 # there to prevent editors from complaining about space-tab. 85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 86 # splitting by setting IFS to empty value.) 87 IFS=" "" $as_nl" 88 89 # Find who we are. Look in the path if we contain no directory separator. 90 as_myself= 91 case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94 for as_dir in $PATH 95 do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100 IFS=$as_save_IFS 101 102 ;; 103 esac 104 # We did not find ourselves, most probably we were run as `sh COMMAND' 105 # in which case we are not to be found in the path. 106 if test "x$as_myself" = x; then 107 as_myself=$0 108 fi 109 if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112 fi 113 114 # Unset variables that we do not need and which cause bugs (e.g. in 115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116 # suppresses any "Segmentation fault" message there. '((' could 117 # trigger a bug in pdksh 5.2.14. 118 for as_var in BASH_ENV ENV MAIL MAILPATH 119 do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121 done 122 PS1='$ ' 123 PS2='> ' 124 PS4='+ ' 125 126 # NLS nuisances. 127 LC_ALL=C 128 export LC_ALL 129 LANGUAGE=C 130 export LANGUAGE 131 132 # CDPATH. 133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135 # Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140 # neutralization value for shells without unset; and this also 141 # works around shells that cannot unset nonexistent variables. 142 # Preserve -v and -x to the replacement shell. 143 BASH_ENV=/dev/null 144 ENV=/dev/null 145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146 case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151 esac 152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153 # Admittedly, this is quite paranoid, since all the known shells bail 154 # out after a failed `exec'. 155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156 as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160 if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168 else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174 esac 175 fi 176 " 177 as_required="as_fn_return () { (exit \$1); } 178 as_fn_success () { as_fn_return 0; } 179 as_fn_failure () { as_fn_return 1; } 180 as_fn_ret_success () { return 0; } 181 as_fn_ret_failure () { return 1; } 182 183 exitcode=0 184 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190 else 191 exitcode=1; echo positional parameters were not saved. 192 fi 193 test x\$exitcode = x0 || exit 1 194 test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system, 276 $0: including any error possibly output before this 277 $0: message. Then install a modern shell, or manually run 278 $0: the script under such a shell if you do have one." 279 fi 280 exit 1 281 fi 282 fi 283 fi 284 SHELL=${CONFIG_SHELL-/bin/sh} 285 export SHELL 286 # Unset more variables known to interfere with behavior of common tools. 287 CLICOLOR_FORCE= GREP_OPTIONS= 288 unset CLICOLOR_FORCE GREP_OPTIONS 289 290 ## --------------------- ## 291 ## M4sh Shell Functions. ## 292 ## --------------------- ## 293 # as_fn_unset VAR 294 # --------------- 295 # Portably unset VAR. 296 as_fn_unset () 297 { 298 { eval $1=; unset $1;} 299 } 300 as_unset=as_fn_unset 301 302 # as_fn_set_status STATUS 303 # ----------------------- 304 # Set $? to STATUS, without forking. 305 as_fn_set_status () 306 { 307 return $1 308 } # as_fn_set_status 309 310 # as_fn_exit STATUS 311 # ----------------- 312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313 as_fn_exit () 314 { 315 set +e 316 as_fn_set_status $1 317 exit $1 318 } # as_fn_exit 319 320 # as_fn_mkdir_p 321 # ------------- 322 # Create "$as_dir" as a directory, including parents if necessary. 323 as_fn_mkdir_p () 324 { 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342 $as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366 } # as_fn_mkdir_p 367 368 # as_fn_executable_p FILE 369 # ----------------------- 370 # Test if FILE is an executable regular file. 371 as_fn_executable_p () 372 { 373 test -f "$1" && test -x "$1" 374 } # as_fn_executable_p 375 # as_fn_append VAR VALUE 376 # ---------------------- 377 # Append the text in VALUE to the end of the definition contained in VAR. Take 378 # advantage of any shell optimizations that allow amortized linear growth over 379 # repeated appends, instead of the typical quadratic growth present in naive 380 # implementations. 381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386 else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391 fi # as_fn_append 392 393 # as_fn_arith ARG... 394 # ------------------ 395 # Perform arithmetic evaluation on the ARGs, and store the result in the 396 # global $as_val. Take advantage of shells that can avoid forks. The arguments 397 # must be portable across $(()) and expr. 398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403 else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408 fi # as_fn_arith 409 410 411 # as_fn_error STATUS ERROR [LINENO LOG_FD] 412 # ---------------------------------------- 413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415 # script with STATUS, using 1 if that was 0. 416 as_fn_error () 417 { 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425 } # as_fn_error 426 427 if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430 else 431 as_expr=false 432 fi 433 434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436 else 437 as_basename=false 438 fi 439 440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442 else 443 as_dirname=false 444 fi 445 446 as_me=`$as_basename -- "$0" || 447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450 $as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465 # Avoid depending upon Character Ranges. 466 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469 as_cr_digits='0123456789' 470 as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506 } 507 508 ECHO_C= ECHO_N= ECHO_T= 509 case `echo -n x` in #((((( 510 -n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517 *) 518 ECHO_N='-n';; 519 esac 520 521 rm -f conf$$ conf$$.exe conf$$.file 522 if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524 else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527 fi 528 if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542 else 543 as_ln_s='cp -pR' 544 fi 545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546 rmdir conf$$.dir 2>/dev/null 547 548 if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550 else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553 fi 554 555 as_test_x='test -x' 556 as_executable_p=as_fn_executable_p 557 558 # Sed expression to map a string onto a valid CPP name. 559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561 # Sed expression to map a string onto a valid variable name. 562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564 SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567 test -n "$DJDIR" || exec 7<&0 </dev/null 568 exec 6>&1 569 570 # Name of the host. 571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572 # so uname gets run too. 573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575 # 576 # Initializations. 577 # 578 ac_default_prefix=/usr/local 579 ac_clean_files= 580 ac_config_libobj_dir=. 581 LIBOBJS= 582 cross_compiling=no 583 subdirs= 584 MFLAGS= 585 MAKEFLAGS= 586 587 # Identity of this package. 588 PACKAGE_NAME='GCC Quad-precision Math Library' 589 PACKAGE_TARNAME='libquadmath' 590 PACKAGE_VERSION='0.1' 591 PACKAGE_STRING='GCC Quad-precision Math Library 0.1' 592 PACKAGE_BUGREPORT='' 593 PACKAGE_URL='' 594 595 # Factoring default headers for most tests. 596 ac_includes_default="\ 597 #include <stdio.h> 598 #ifdef HAVE_SYS_TYPES_H 599 # include <sys/types.h> 600 #endif 601 #ifdef HAVE_SYS_STAT_H 602 # include <sys/stat.h> 603 #endif 604 #ifdef STDC_HEADERS 605 # include <stdlib.h> 606 # include <stddef.h> 607 #else 608 # ifdef HAVE_STDLIB_H 609 # include <stdlib.h> 610 # endif 611 #endif 612 #ifdef HAVE_STRING_H 613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 614 # include <memory.h> 615 # endif 616 # include <string.h> 617 #endif 618 #ifdef HAVE_STRINGS_H 619 # include <strings.h> 620 #endif 621 #ifdef HAVE_INTTYPES_H 622 # include <inttypes.h> 623 #endif 624 #ifdef HAVE_STDINT_H 625 # include <stdint.h> 626 #endif 627 #ifdef HAVE_UNISTD_H 628 # include <unistd.h> 629 #endif" 630 631 ac_subst_vars='am__EXEEXT_FALSE 632 am__EXEEXT_TRUE 633 LTLIBOBJS 634 LIBOBJS 635 get_gcc_base_ver 636 GENINSRC_FALSE 637 GENINSRC_TRUE 638 XCFLAGS 639 BUILD_LIBQUADMATH_FALSE 640 BUILD_LIBQUADMATH_TRUE 641 LIBQUAD_USE_SYMVER_SUN_FALSE 642 LIBQUAD_USE_SYMVER_SUN_TRUE 643 LIBQUAD_USE_SYMVER_GNU_FALSE 644 LIBQUAD_USE_SYMVER_GNU_TRUE 645 LIBQUAD_USE_SYMVER_FALSE 646 LIBQUAD_USE_SYMVER_TRUE 647 LIBM 648 toolexeclibdir 649 toolexecdir 650 MAINT 651 MAINTAINER_MODE_FALSE 652 MAINTAINER_MODE_TRUE 653 ENABLE_DARWIN_AT_RPATH_FALSE 654 ENABLE_DARWIN_AT_RPATH_TRUE 655 enable_static 656 enable_shared 657 lt_host_flags 658 OTOOL64 659 OTOOL 660 LIPO 661 NMEDIT 662 DSYMUTIL 663 RANLIB 664 AR 665 OBJDUMP 666 LN_S 667 NM 668 ac_ct_DUMPBIN 669 DUMPBIN 670 LD 671 FGREP 672 SED 673 LIBTOOL 674 REPORT_BUGS_TEXI 675 REPORT_BUGS_TO 676 BUILD_INFO_FALSE 677 BUILD_INFO_TRUE 678 EGREP 679 GREP 680 CPP 681 am__fastdepCC_FALSE 682 am__fastdepCC_TRUE 683 CCDEPMODE 684 am__nodep 685 AMDEPBACKSLASH 686 AMDEP_FALSE 687 AMDEP_TRUE 688 am__quote 689 am__include 690 DEPDIR 691 OBJEXT 692 EXEEXT 693 ac_ct_CC 694 CPPFLAGS 695 LDFLAGS 696 CFLAGS 697 CC 698 AM_BACKSLASH 699 AM_DEFAULT_VERBOSITY 700 AM_DEFAULT_V 701 AM_V 702 am__untar 703 am__tar 704 AMTAR 705 am__leading_dot 706 SET_MAKE 707 AWK 708 mkdir_p 709 MKDIR_P 710 INSTALL_STRIP_PROGRAM 711 STRIP 712 install_sh 713 MAKEINFO 714 AUTOHEADER 715 AUTOMAKE 716 AUTOCONF 717 ACLOCAL 718 VERSION 719 PACKAGE 720 CYGPATH_W 721 am__isrc 722 INSTALL_DATA 723 INSTALL_SCRIPT 724 INSTALL_PROGRAM 725 multi_basedir 726 target_noncanonical 727 target_os 728 target_vendor 729 target_cpu 730 target 731 host_os 732 host_vendor 733 host_cpu 734 host 735 build_os 736 build_vendor 737 build_cpu 738 build 739 target_alias 740 host_alias 741 build_alias 742 LIBS 743 ECHO_T 744 ECHO_N 745 ECHO_C 746 DEFS 747 mandir 748 localedir 749 libdir 750 psdir 751 pdfdir 752 dvidir 753 htmldir 754 infodir 755 docdir 756 oldincludedir 757 includedir 758 localstatedir 759 sharedstatedir 760 sysconfdir 761 datadir 762 datarootdir 763 libexecdir 764 sbindir 765 bindir 766 program_transform_name 767 prefix 768 exec_prefix 769 PACKAGE_URL 770 PACKAGE_BUGREPORT 771 PACKAGE_STRING 772 PACKAGE_VERSION 773 PACKAGE_TARNAME 774 PACKAGE_NAME 775 PATH_SEPARATOR 776 SHELL' 777 ac_subst_files='' 778 ac_user_opts=' 779 enable_option_checking 780 enable_multilib 781 enable_silent_rules 782 enable_version_specific_runtime_libs 783 enable_dependency_tracking 784 with_bugurl 785 enable_shared 786 enable_static 787 with_pic 788 enable_fast_install 789 with_gnu_ld 790 enable_libtool_lock 791 enable_darwin_at_rpath 792 enable_maintainer_mode 793 with_toolexeclibdir 794 enable_symvers 795 enable_cet 796 enable_generated_files_in_srcdir 797 with_gcc_major_version_only 798 ' 799 ac_precious_vars='build_alias 800 host_alias 801 target_alias 802 CC 803 CFLAGS 804 LDFLAGS 805 LIBS 806 CPPFLAGS 807 CPP' 808 809 810 # Initialize some variables set by options. 811 ac_init_help= 812 ac_init_version=false 813 ac_unrecognized_opts= 814 ac_unrecognized_sep= 815 # The variables have the same names as the options, with 816 # dashes changed to underlines. 817 cache_file=/dev/null 818 exec_prefix=NONE 819 no_create= 820 no_recursion= 821 prefix=NONE 822 program_prefix=NONE 823 program_suffix=NONE 824 program_transform_name=s,x,x, 825 silent= 826 site= 827 srcdir= 828 verbose= 829 x_includes=NONE 830 x_libraries=NONE 831 832 # Installation directory options. 833 # These are left unexpanded so users can "make install exec_prefix=/foo" 834 # and all the variables that are supposed to be based on exec_prefix 835 # by default will actually change. 836 # Use braces instead of parens because sh, perl, etc. also accept them. 837 # (The list follows the same order as the GNU Coding Standards.) 838 bindir='${exec_prefix}/bin' 839 sbindir='${exec_prefix}/sbin' 840 libexecdir='${exec_prefix}/libexec' 841 datarootdir='${prefix}/share' 842 datadir='${datarootdir}' 843 sysconfdir='${prefix}/etc' 844 sharedstatedir='${prefix}/com' 845 localstatedir='${prefix}/var' 846 includedir='${prefix}/include' 847 oldincludedir='/usr/include' 848 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 849 infodir='${datarootdir}/info' 850 htmldir='${docdir}' 851 dvidir='${docdir}' 852 pdfdir='${docdir}' 853 psdir='${docdir}' 854 libdir='${exec_prefix}/lib' 855 localedir='${datarootdir}/locale' 856 mandir='${datarootdir}/man' 857 858 ac_prev= 859 ac_dashdash= 860 for ac_option 861 do 862 # If the previous option needs an argument, assign it. 863 if test -n "$ac_prev"; then 864 eval $ac_prev=\$ac_option 865 ac_prev= 866 continue 867 fi 868 869 case $ac_option in 870 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 871 *=) ac_optarg= ;; 872 *) ac_optarg=yes ;; 873 esac 874 875 # Accept the important Cygnus configure options, so we can diagnose typos. 876 877 case $ac_dashdash$ac_option in 878 --) 879 ac_dashdash=yes ;; 880 881 -bindir | --bindir | --bindi | --bind | --bin | --bi) 882 ac_prev=bindir ;; 883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 884 bindir=$ac_optarg ;; 885 886 -build | --build | --buil | --bui | --bu) 887 ac_prev=build_alias ;; 888 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 889 build_alias=$ac_optarg ;; 890 891 -cache-file | --cache-file | --cache-fil | --cache-fi \ 892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 893 ac_prev=cache_file ;; 894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 896 cache_file=$ac_optarg ;; 897 898 --config-cache | -C) 899 cache_file=config.cache ;; 900 901 -datadir | --datadir | --datadi | --datad) 902 ac_prev=datadir ;; 903 -datadir=* | --datadir=* | --datadi=* | --datad=*) 904 datadir=$ac_optarg ;; 905 906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 907 | --dataroo | --dataro | --datar) 908 ac_prev=datarootdir ;; 909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 911 datarootdir=$ac_optarg ;; 912 913 -disable-* | --disable-*) 914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 915 # Reject names that are not valid shell variable names. 916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 917 as_fn_error $? "invalid feature name: $ac_useropt" 918 ac_useropt_orig=$ac_useropt 919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 920 case $ac_user_opts in 921 *" 922 "enable_$ac_useropt" 923 "*) ;; 924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 925 ac_unrecognized_sep=', ';; 926 esac 927 eval enable_$ac_useropt=no ;; 928 929 -docdir | --docdir | --docdi | --doc | --do) 930 ac_prev=docdir ;; 931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 932 docdir=$ac_optarg ;; 933 934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 935 ac_prev=dvidir ;; 936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 937 dvidir=$ac_optarg ;; 938 939 -enable-* | --enable-*) 940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 941 # Reject names that are not valid shell variable names. 942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 943 as_fn_error $? "invalid feature name: $ac_useropt" 944 ac_useropt_orig=$ac_useropt 945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 946 case $ac_user_opts in 947 *" 948 "enable_$ac_useropt" 949 "*) ;; 950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 951 ac_unrecognized_sep=', ';; 952 esac 953 eval enable_$ac_useropt=\$ac_optarg ;; 954 955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 957 | --exec | --exe | --ex) 958 ac_prev=exec_prefix ;; 959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 961 | --exec=* | --exe=* | --ex=*) 962 exec_prefix=$ac_optarg ;; 963 964 -gas | --gas | --ga | --g) 965 # Obsolete; use --with-gas. 966 with_gas=yes ;; 967 968 -help | --help | --hel | --he | -h) 969 ac_init_help=long ;; 970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 971 ac_init_help=recursive ;; 972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 973 ac_init_help=short ;; 974 975 -host | --host | --hos | --ho) 976 ac_prev=host_alias ;; 977 -host=* | --host=* | --hos=* | --ho=*) 978 host_alias=$ac_optarg ;; 979 980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 981 ac_prev=htmldir ;; 982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 983 | --ht=*) 984 htmldir=$ac_optarg ;; 985 986 -includedir | --includedir | --includedi | --included | --include \ 987 | --includ | --inclu | --incl | --inc) 988 ac_prev=includedir ;; 989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 990 | --includ=* | --inclu=* | --incl=* | --inc=*) 991 includedir=$ac_optarg ;; 992 993 -infodir | --infodir | --infodi | --infod | --info | --inf) 994 ac_prev=infodir ;; 995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 996 infodir=$ac_optarg ;; 997 998 -libdir | --libdir | --libdi | --libd) 999 ac_prev=libdir ;; 1000 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1001 libdir=$ac_optarg ;; 1002 1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1004 | --libexe | --libex | --libe) 1005 ac_prev=libexecdir ;; 1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1007 | --libexe=* | --libex=* | --libe=*) 1008 libexecdir=$ac_optarg ;; 1009 1010 -localedir | --localedir | --localedi | --localed | --locale) 1011 ac_prev=localedir ;; 1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1013 localedir=$ac_optarg ;; 1014 1015 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1016 | --localstate | --localstat | --localsta | --localst | --locals) 1017 ac_prev=localstatedir ;; 1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1020 localstatedir=$ac_optarg ;; 1021 1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1023 ac_prev=mandir ;; 1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1025 mandir=$ac_optarg ;; 1026 1027 -nfp | --nfp | --nf) 1028 # Obsolete; use --without-fp. 1029 with_fp=no ;; 1030 1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1032 | --no-cr | --no-c | -n) 1033 no_create=yes ;; 1034 1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1037 no_recursion=yes ;; 1038 1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1041 | --oldin | --oldi | --old | --ol | --o) 1042 ac_prev=oldincludedir ;; 1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1046 oldincludedir=$ac_optarg ;; 1047 1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1049 ac_prev=prefix ;; 1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1051 prefix=$ac_optarg ;; 1052 1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1054 | --program-pre | --program-pr | --program-p) 1055 ac_prev=program_prefix ;; 1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1058 program_prefix=$ac_optarg ;; 1059 1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1061 | --program-suf | --program-su | --program-s) 1062 ac_prev=program_suffix ;; 1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1065 program_suffix=$ac_optarg ;; 1066 1067 -program-transform-name | --program-transform-name \ 1068 | --program-transform-nam | --program-transform-na \ 1069 | --program-transform-n | --program-transform- \ 1070 | --program-transform | --program-transfor \ 1071 | --program-transfo | --program-transf \ 1072 | --program-trans | --program-tran \ 1073 | --progr-tra | --program-tr | --program-t) 1074 ac_prev=program_transform_name ;; 1075 -program-transform-name=* | --program-transform-name=* \ 1076 | --program-transform-nam=* | --program-transform-na=* \ 1077 | --program-transform-n=* | --program-transform-=* \ 1078 | --program-transform=* | --program-transfor=* \ 1079 | --program-transfo=* | --program-transf=* \ 1080 | --program-trans=* | --program-tran=* \ 1081 | --progr-tra=* | --program-tr=* | --program-t=*) 1082 program_transform_name=$ac_optarg ;; 1083 1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1085 ac_prev=pdfdir ;; 1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1087 pdfdir=$ac_optarg ;; 1088 1089 -psdir | --psdir | --psdi | --psd | --ps) 1090 ac_prev=psdir ;; 1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1092 psdir=$ac_optarg ;; 1093 1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1095 | -silent | --silent | --silen | --sile | --sil) 1096 silent=yes ;; 1097 1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1099 ac_prev=sbindir ;; 1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1101 | --sbi=* | --sb=*) 1102 sbindir=$ac_optarg ;; 1103 1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1106 | --sharedst | --shareds | --shared | --share | --shar \ 1107 | --sha | --sh) 1108 ac_prev=sharedstatedir ;; 1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1112 | --sha=* | --sh=*) 1113 sharedstatedir=$ac_optarg ;; 1114 1115 -site | --site | --sit) 1116 ac_prev=site ;; 1117 -site=* | --site=* | --sit=*) 1118 site=$ac_optarg ;; 1119 1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1121 ac_prev=srcdir ;; 1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1123 srcdir=$ac_optarg ;; 1124 1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1126 | --syscon | --sysco | --sysc | --sys | --sy) 1127 ac_prev=sysconfdir ;; 1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1130 sysconfdir=$ac_optarg ;; 1131 1132 -target | --target | --targe | --targ | --tar | --ta | --t) 1133 ac_prev=target_alias ;; 1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1135 target_alias=$ac_optarg ;; 1136 1137 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1138 verbose=yes ;; 1139 1140 -version | --version | --versio | --versi | --vers | -V) 1141 ac_init_version=: ;; 1142 1143 -with-* | --with-*) 1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1145 # Reject names that are not valid shell variable names. 1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1147 as_fn_error $? "invalid package name: $ac_useropt" 1148 ac_useropt_orig=$ac_useropt 1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1150 case $ac_user_opts in 1151 *" 1152 "with_$ac_useropt" 1153 "*) ;; 1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1155 ac_unrecognized_sep=', ';; 1156 esac 1157 eval with_$ac_useropt=\$ac_optarg ;; 1158 1159 -without-* | --without-*) 1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1161 # Reject names that are not valid shell variable names. 1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1163 as_fn_error $? "invalid package name: $ac_useropt" 1164 ac_useropt_orig=$ac_useropt 1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1166 case $ac_user_opts in 1167 *" 1168 "with_$ac_useropt" 1169 "*) ;; 1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1171 ac_unrecognized_sep=', ';; 1172 esac 1173 eval with_$ac_useropt=no ;; 1174 1175 --x) 1176 # Obsolete; use --with-x. 1177 with_x=yes ;; 1178 1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1180 | --x-incl | --x-inc | --x-in | --x-i) 1181 ac_prev=x_includes ;; 1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1184 x_includes=$ac_optarg ;; 1185 1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1188 ac_prev=x_libraries ;; 1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1191 x_libraries=$ac_optarg ;; 1192 1193 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1194 Try \`$0 --help' for more information" 1195 ;; 1196 1197 *=*) 1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1199 # Reject names that are not valid shell variable names. 1200 case $ac_envvar in #( 1201 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1202 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1203 esac 1204 eval $ac_envvar=\$ac_optarg 1205 export $ac_envvar ;; 1206 1207 *) 1208 # FIXME: should be removed in autoconf 3.0. 1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1213 ;; 1214 1215 esac 1216 done 1217 1218 if test -n "$ac_prev"; then 1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1220 as_fn_error $? "missing argument to $ac_option" 1221 fi 1222 1223 if test -n "$ac_unrecognized_opts"; then 1224 case $enable_option_checking in 1225 no) ;; 1226 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1228 esac 1229 fi 1230 1231 # Check all directory arguments for consistency. 1232 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1233 datadir sysconfdir sharedstatedir localstatedir includedir \ 1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1235 libdir localedir mandir 1236 do 1237 eval ac_val=\$$ac_var 1238 # Remove trailing slashes. 1239 case $ac_val in 1240 */ ) 1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1242 eval $ac_var=\$ac_val;; 1243 esac 1244 # Be sure to have absolute directory names. 1245 case $ac_val in 1246 [\\/$]* | ?:[\\/]* ) continue;; 1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1248 esac 1249 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1250 done 1251 1252 # There might be people who depend on the old broken behavior: `$host' 1253 # used to hold the argument of --host etc. 1254 # FIXME: To remove some day. 1255 build=$build_alias 1256 host=$host_alias 1257 target=$target_alias 1258 1259 # FIXME: To remove some day. 1260 if test "x$host_alias" != x; then 1261 if test "x$build_alias" = x; then 1262 cross_compiling=maybe 1263 elif test "x$build_alias" != "x$host_alias"; then 1264 cross_compiling=yes 1265 fi 1266 fi 1267 1268 ac_tool_prefix= 1269 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1270 1271 test "$silent" = yes && exec 6>/dev/null 1272 1273 1274 ac_pwd=`pwd` && test -n "$ac_pwd" && 1275 ac_ls_di=`ls -di .` && 1276 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1277 as_fn_error $? "working directory cannot be determined" 1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1279 as_fn_error $? "pwd does not report name of working directory" 1280 1281 1282 # Find the source files, if location was not specified. 1283 if test -z "$srcdir"; then 1284 ac_srcdir_defaulted=yes 1285 # Try the directory containing this script, then the parent directory. 1286 ac_confdir=`$as_dirname -- "$as_myself" || 1287 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1288 X"$as_myself" : 'X\(//\)[^/]' \| \ 1289 X"$as_myself" : 'X\(//\)$' \| \ 1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1291 $as_echo X"$as_myself" | 1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1293 s//\1/ 1294 q 1295 } 1296 /^X\(\/\/\)[^/].*/{ 1297 s//\1/ 1298 q 1299 } 1300 /^X\(\/\/\)$/{ 1301 s//\1/ 1302 q 1303 } 1304 /^X\(\/\).*/{ 1305 s//\1/ 1306 q 1307 } 1308 s/.*/./; q'` 1309 srcdir=$ac_confdir 1310 if test ! -r "$srcdir/$ac_unique_file"; then 1311 srcdir=.. 1312 fi 1313 else 1314 ac_srcdir_defaulted=no 1315 fi 1316 if test ! -r "$srcdir/$ac_unique_file"; then 1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1319 fi 1320 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1321 ac_abs_confdir=`( 1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1323 pwd)` 1324 # When building in place, set srcdir=. 1325 if test "$ac_abs_confdir" = "$ac_pwd"; then 1326 srcdir=. 1327 fi 1328 # Remove unnecessary trailing slashes from srcdir. 1329 # Double slashes in file names in object file debugging info 1330 # mess up M-x gdb in Emacs. 1331 case $srcdir in 1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1333 esac 1334 for ac_var in $ac_precious_vars; do 1335 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1336 eval ac_env_${ac_var}_value=\$${ac_var} 1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1338 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1339 done 1340 1341 # 1342 # Report the --help message. 1343 # 1344 if test "$ac_init_help" = "long"; then 1345 # Omit some internal or obsolete options to make the list less imposing. 1346 # This message is too long to be a string in the A/UX 3.1 sh. 1347 cat <<_ACEOF 1348 \`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems. 1349 1350 Usage: $0 [OPTION]... [VAR=VALUE]... 1351 1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1353 VAR=VALUE. See below for descriptions of some of the useful variables. 1354 1355 Defaults for the options are specified in brackets. 1356 1357 Configuration: 1358 -h, --help display this help and exit 1359 --help=short display options specific to this package 1360 --help=recursive display the short help of all the included packages 1361 -V, --version display version information and exit 1362 -q, --quiet, --silent do not print \`checking ...' messages 1363 --cache-file=FILE cache test results in FILE [disabled] 1364 -C, --config-cache alias for \`--cache-file=config.cache' 1365 -n, --no-create do not create output files 1366 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1367 1368 Installation directories: 1369 --prefix=PREFIX install architecture-independent files in PREFIX 1370 [$ac_default_prefix] 1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1372 [PREFIX] 1373 1374 By default, \`make install' will install all the files in 1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1377 for instance \`--prefix=\$HOME'. 1378 1379 For better control, use the options below. 1380 1381 Fine tuning of the installation directories: 1382 --bindir=DIR user executables [EPREFIX/bin] 1383 --sbindir=DIR system admin executables [EPREFIX/sbin] 1384 --libexecdir=DIR program executables [EPREFIX/libexec] 1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1388 --libdir=DIR object code libraries [EPREFIX/lib] 1389 --includedir=DIR C header files [PREFIX/include] 1390 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1393 --infodir=DIR info documentation [DATAROOTDIR/info] 1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1395 --mandir=DIR man documentation [DATAROOTDIR/man] 1396 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath] 1397 --htmldir=DIR html documentation [DOCDIR] 1398 --dvidir=DIR dvi documentation [DOCDIR] 1399 --pdfdir=DIR pdf documentation [DOCDIR] 1400 --psdir=DIR ps documentation [DOCDIR] 1401 _ACEOF 1402 1403 cat <<\_ACEOF 1404 1405 Program names: 1406 --program-prefix=PREFIX prepend PREFIX to installed program names 1407 --program-suffix=SUFFIX append SUFFIX to installed program names 1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1409 1410 System types: 1411 --build=BUILD configure for building on BUILD [guessed] 1412 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1413 --target=TARGET configure for building compilers for TARGET [HOST] 1414 _ACEOF 1415 fi 1416 1417 if test -n "$ac_init_help"; then 1418 case $ac_init_help in 1419 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";; 1420 esac 1421 cat <<\_ACEOF 1422 1423 Optional Features: 1424 --disable-option-checking ignore unrecognized --enable/--with options 1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1427 --enable-multilib build many library versions (default) 1428 --enable-silent-rules less verbose build output (undo: "make V=1") 1429 --disable-silent-rules verbose build output (undo: "make V=0") 1430 --enable-version-specific-runtime-libs 1431 specify that runtime libraries should be installed 1432 in a compiler-specific directory 1433 --enable-dependency-tracking 1434 do not reject slow dependency extractors 1435 --disable-dependency-tracking 1436 speeds up one-time build 1437 --enable-shared[=PKGS] build shared libraries [default=yes] 1438 --enable-static[=PKGS] build static libraries [default=yes] 1439 --enable-fast-install[=PKGS] 1440 optimize for fast installation [default=yes] 1441 --disable-libtool-lock avoid locking (might break parallel builds) 1442 --enable-darwin-at-rpath 1443 install libraries with @rpath/library-name, requires 1444 rpaths to be added to executables 1445 --enable-maintainer-mode 1446 enable make rules and dependencies not useful (and 1447 sometimes confusing) to the casual installer 1448 --disable-symvers disable symbol versioning for libquadmath 1449 --enable-cet enable Intel CET in target libraries [default=auto] 1450 --enable-generated-files-in-srcdir 1451 put copies of generated files in source dir intended 1452 for creating source tarballs for users without 1453 texinfo bison or flex 1454 1455 Optional Packages: 1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1458 --with-bugurl=URL Direct users to URL to report a bug 1459 --with-pic try to use only PIC/non-PIC objects [default=use 1460 both] 1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1462 --with-toolexeclibdir=DIR 1463 install libraries built with a cross compiler within 1464 DIR 1465 --with-gcc-major-version-only 1466 use only GCC major number in filesystem paths 1467 1468 Some influential environment variables: 1469 CC C compiler command 1470 CFLAGS C compiler flags 1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1472 nonstandard directory <lib dir> 1473 LIBS libraries to pass to the linker, e.g. -l<library> 1474 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1475 you have headers in a nonstandard directory <include dir> 1476 CPP C preprocessor 1477 1478 Use these variables to override the choices made by `configure' or to help 1479 it to find libraries and programs with nonstandard names/locations. 1480 1481 Report bugs to the package provider. 1482 _ACEOF 1483 ac_status=$? 1484 fi 1485 1486 if test "$ac_init_help" = "recursive"; then 1487 # If there are subdirs, report their specific --help. 1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1489 test -d "$ac_dir" || 1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1491 continue 1492 ac_builddir=. 1493 1494 case "$ac_dir" in 1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1496 *) 1497 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1498 # A ".." for each directory in $ac_dir_suffix. 1499 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1500 case $ac_top_builddir_sub in 1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1503 esac ;; 1504 esac 1505 ac_abs_top_builddir=$ac_pwd 1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1507 # for backward compatibility: 1508 ac_top_builddir=$ac_top_build_prefix 1509 1510 case $srcdir in 1511 .) # We are building in place. 1512 ac_srcdir=. 1513 ac_top_srcdir=$ac_top_builddir_sub 1514 ac_abs_top_srcdir=$ac_pwd ;; 1515 [\\/]* | ?:[\\/]* ) # Absolute name. 1516 ac_srcdir=$srcdir$ac_dir_suffix; 1517 ac_top_srcdir=$srcdir 1518 ac_abs_top_srcdir=$srcdir ;; 1519 *) # Relative name. 1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1521 ac_top_srcdir=$ac_top_build_prefix$srcdir 1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1523 esac 1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1525 1526 cd "$ac_dir" || { ac_status=$?; continue; } 1527 # Check for guested configure. 1528 if test -f "$ac_srcdir/configure.gnu"; then 1529 echo && 1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1531 elif test -f "$ac_srcdir/configure"; then 1532 echo && 1533 $SHELL "$ac_srcdir/configure" --help=recursive 1534 else 1535 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1536 fi || ac_status=$? 1537 cd "$ac_pwd" || { ac_status=$?; break; } 1538 done 1539 fi 1540 1541 test -n "$ac_init_help" && exit $ac_status 1542 if $ac_init_version; then 1543 cat <<\_ACEOF 1544 GCC Quad-precision Math Library configure 0.1 1545 generated by GNU Autoconf 2.69 1546 1547 Copyright (C) 2012 Free Software Foundation, Inc. 1548 This configure script is free software; the Free Software Foundation 1549 gives unlimited permission to copy, distribute and modify it. 1550 _ACEOF 1551 exit 1552 fi 1553 1554 ## ------------------------ ## 1555 ## Autoconf initialization. ## 1556 ## ------------------------ ## 1557 1558 # ac_fn_c_try_compile LINENO 1559 # -------------------------- 1560 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1561 ac_fn_c_try_compile () 1562 { 1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1564 rm -f conftest.$ac_objext 1565 if { { ac_try="$ac_compile" 1566 case "(($ac_try" in 1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1568 *) ac_try_echo=$ac_try;; 1569 esac 1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1571 $as_echo "$ac_try_echo"; } >&5 1572 (eval "$ac_compile") 2>conftest.err 1573 ac_status=$? 1574 if test -s conftest.err; then 1575 grep -v '^ *+' conftest.err >conftest.er1 1576 cat conftest.er1 >&5 1577 mv -f conftest.er1 conftest.err 1578 fi 1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1580 test $ac_status = 0; } && { 1581 test -z "$ac_c_werror_flag" || 1582 test ! -s conftest.err 1583 } && test -s conftest.$ac_objext; then : 1584 ac_retval=0 1585 else 1586 $as_echo "$as_me: failed program was:" >&5 1587 sed 's/^/| /' conftest.$ac_ext >&5 1588 1589 ac_retval=1 1590 fi 1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1592 as_fn_set_status $ac_retval 1593 1594 } # ac_fn_c_try_compile 1595 1596 # ac_fn_c_try_cpp LINENO 1597 # ---------------------- 1598 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1599 ac_fn_c_try_cpp () 1600 { 1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1602 if { { ac_try="$ac_cpp conftest.$ac_ext" 1603 case "(($ac_try" in 1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1605 *) ac_try_echo=$ac_try;; 1606 esac 1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1608 $as_echo "$ac_try_echo"; } >&5 1609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1610 ac_status=$? 1611 if test -s conftest.err; then 1612 grep -v '^ *+' conftest.err >conftest.er1 1613 cat conftest.er1 >&5 1614 mv -f conftest.er1 conftest.err 1615 fi 1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1617 test $ac_status = 0; } > conftest.i && { 1618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1619 test ! -s conftest.err 1620 }; then : 1621 ac_retval=0 1622 else 1623 $as_echo "$as_me: failed program was:" >&5 1624 sed 's/^/| /' conftest.$ac_ext >&5 1625 1626 ac_retval=1 1627 fi 1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1629 as_fn_set_status $ac_retval 1630 1631 } # ac_fn_c_try_cpp 1632 1633 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1634 # ------------------------------------------------------- 1635 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1636 # the include files in INCLUDES and setting the cache variable VAR 1637 # accordingly. 1638 ac_fn_c_check_header_mongrel () 1639 { 1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1641 if eval \${$3+:} false; then : 1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1643 $as_echo_n "checking for $2... " >&6; } 1644 if eval \${$3+:} false; then : 1645 $as_echo_n "(cached) " >&6 1646 fi 1647 eval ac_res=\$$3 1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1649 $as_echo "$ac_res" >&6; } 1650 else 1651 # Is the header compilable? 1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1653 $as_echo_n "checking $2 usability... " >&6; } 1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1655 /* end confdefs.h. */ 1656 $4 1657 #include <$2> 1658 _ACEOF 1659 if ac_fn_c_try_compile "$LINENO"; then : 1660 ac_header_compiler=yes 1661 else 1662 ac_header_compiler=no 1663 fi 1664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1666 $as_echo "$ac_header_compiler" >&6; } 1667 1668 # Is the header present? 1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1670 $as_echo_n "checking $2 presence... " >&6; } 1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1672 /* end confdefs.h. */ 1673 #include <$2> 1674 _ACEOF 1675 if ac_fn_c_try_cpp "$LINENO"; then : 1676 ac_header_preproc=yes 1677 else 1678 ac_header_preproc=no 1679 fi 1680 rm -f conftest.err conftest.i conftest.$ac_ext 1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1682 $as_echo "$ac_header_preproc" >&6; } 1683 1684 # So? What about this header? 1685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1686 yes:no: ) 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1688 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1690 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1691 ;; 1692 no:yes:* ) 1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1694 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1696 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1698 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1700 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1702 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1703 ;; 1704 esac 1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1706 $as_echo_n "checking for $2... " >&6; } 1707 if eval \${$3+:} false; then : 1708 $as_echo_n "(cached) " >&6 1709 else 1710 eval "$3=\$ac_header_compiler" 1711 fi 1712 eval ac_res=\$$3 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1714 $as_echo "$ac_res" >&6; } 1715 fi 1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1717 1718 } # ac_fn_c_check_header_mongrel 1719 1720 # ac_fn_c_try_run LINENO 1721 # ---------------------- 1722 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1723 # that executables *can* be run. 1724 ac_fn_c_try_run () 1725 { 1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727 if { { ac_try="$ac_link" 1728 case "(($ac_try" in 1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1730 *) ac_try_echo=$ac_try;; 1731 esac 1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1733 $as_echo "$ac_try_echo"; } >&5 1734 (eval "$ac_link") 2>&5 1735 ac_status=$? 1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1737 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1738 { { case "(($ac_try" in 1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1740 *) ac_try_echo=$ac_try;; 1741 esac 1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1743 $as_echo "$ac_try_echo"; } >&5 1744 (eval "$ac_try") 2>&5 1745 ac_status=$? 1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1747 test $ac_status = 0; }; }; then : 1748 ac_retval=0 1749 else 1750 $as_echo "$as_me: program exited with status $ac_status" >&5 1751 $as_echo "$as_me: failed program was:" >&5 1752 sed 's/^/| /' conftest.$ac_ext >&5 1753 1754 ac_retval=$ac_status 1755 fi 1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1758 as_fn_set_status $ac_retval 1759 1760 } # ac_fn_c_try_run 1761 1762 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1763 # ------------------------------------------------------- 1764 # Tests whether HEADER exists and can be compiled using the include files in 1765 # INCLUDES, setting the cache variable VAR accordingly. 1766 ac_fn_c_check_header_compile () 1767 { 1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1770 $as_echo_n "checking for $2... " >&6; } 1771 if eval \${$3+:} false; then : 1772 $as_echo_n "(cached) " >&6 1773 else 1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1775 /* end confdefs.h. */ 1776 $4 1777 #include <$2> 1778 _ACEOF 1779 if ac_fn_c_try_compile "$LINENO"; then : 1780 eval "$3=yes" 1781 else 1782 eval "$3=no" 1783 fi 1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1785 fi 1786 eval ac_res=\$$3 1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1788 $as_echo "$ac_res" >&6; } 1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1790 1791 } # ac_fn_c_check_header_compile 1792 1793 # ac_fn_c_try_link LINENO 1794 # ----------------------- 1795 # Try to link conftest.$ac_ext, and return whether this succeeded. 1796 ac_fn_c_try_link () 1797 { 1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1799 rm -f conftest.$ac_objext conftest$ac_exeext 1800 if { { ac_try="$ac_link" 1801 case "(($ac_try" in 1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1803 *) ac_try_echo=$ac_try;; 1804 esac 1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1806 $as_echo "$ac_try_echo"; } >&5 1807 (eval "$ac_link") 2>conftest.err 1808 ac_status=$? 1809 if test -s conftest.err; then 1810 grep -v '^ *+' conftest.err >conftest.er1 1811 cat conftest.er1 >&5 1812 mv -f conftest.er1 conftest.err 1813 fi 1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1815 test $ac_status = 0; } && { 1816 test -z "$ac_c_werror_flag" || 1817 test ! -s conftest.err 1818 } && test -s conftest$ac_exeext && { 1819 test "$cross_compiling" = yes || 1820 test -x conftest$ac_exeext 1821 }; then : 1822 ac_retval=0 1823 else 1824 $as_echo "$as_me: failed program was:" >&5 1825 sed 's/^/| /' conftest.$ac_ext >&5 1826 1827 ac_retval=1 1828 fi 1829 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1830 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1831 # interfere with the next link command; also delete a directory that is 1832 # left behind by Apple's compiler. We do this before executing the actions. 1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1835 as_fn_set_status $ac_retval 1836 1837 } # ac_fn_c_try_link 1838 1839 # ac_fn_c_check_func LINENO FUNC VAR 1840 # ---------------------------------- 1841 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1842 ac_fn_c_check_func () 1843 { 1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1846 $as_echo_n "checking for $2... " >&6; } 1847 if eval \${$3+:} false; then : 1848 $as_echo_n "(cached) " >&6 1849 else 1850 if test x$gcc_no_link = xyes; then 1851 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 1852 fi 1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1854 /* end confdefs.h. */ 1855 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1856 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1857 #define $2 innocuous_$2 1858 1859 /* System header to define __stub macros and hopefully few prototypes, 1860 which can conflict with char $2 (); below. 1861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1862 <limits.h> exists even on freestanding compilers. */ 1863 1864 #ifdef __STDC__ 1865 # include <limits.h> 1866 #else 1867 # include <assert.h> 1868 #endif 1869 1870 #undef $2 1871 1872 /* Override any GCC internal prototype to avoid an error. 1873 Use char because int might match the return type of a GCC 1874 builtin and then its argument prototype would still apply. */ 1875 #ifdef __cplusplus 1876 extern "C" 1877 #endif 1878 char $2 (); 1879 /* The GNU C library defines this for functions which it implements 1880 to always fail with ENOSYS. Some functions are actually named 1881 something starting with __ and the normal name is an alias. */ 1882 #if defined __stub_$2 || defined __stub___$2 1883 choke me 1884 #endif 1885 1886 int 1887 main () 1888 { 1889 return $2 (); 1890 ; 1891 return 0; 1892 } 1893 _ACEOF 1894 if ac_fn_c_try_link "$LINENO"; then : 1895 eval "$3=yes" 1896 else 1897 eval "$3=no" 1898 fi 1899 rm -f core conftest.err conftest.$ac_objext \ 1900 conftest$ac_exeext conftest.$ac_ext 1901 fi 1902 eval ac_res=\$$3 1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1904 $as_echo "$ac_res" >&6; } 1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1906 1907 } # ac_fn_c_check_func 1908 cat >config.log <<_ACEOF 1909 This file contains any messages produced by compilers while 1910 running configure, to aid debugging if configure makes a mistake. 1911 1912 It was created by GCC Quad-precision Math Library $as_me 0.1, which was 1913 generated by GNU Autoconf 2.69. Invocation command line was 1914 1915 $ $0 $@ 1916 1917 _ACEOF 1918 exec 5>>config.log 1919 { 1920 cat <<_ASUNAME 1921 ## --------- ## 1922 ## Platform. ## 1923 ## --------- ## 1924 1925 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1926 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1927 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1928 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1929 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1930 1931 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1932 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1933 1934 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1935 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1936 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1937 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1938 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1939 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1940 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1941 1942 _ASUNAME 1943 1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1945 for as_dir in $PATH 1946 do 1947 IFS=$as_save_IFS 1948 test -z "$as_dir" && as_dir=. 1949 $as_echo "PATH: $as_dir" 1950 done 1951 IFS=$as_save_IFS 1952 1953 } >&5 1954 1955 cat >&5 <<_ACEOF 1956 1957 1958 ## ----------- ## 1959 ## Core tests. ## 1960 ## ----------- ## 1961 1962 _ACEOF 1963 1964 1965 # Keep a trace of the command line. 1966 # Strip out --no-create and --no-recursion so they do not pile up. 1967 # Strip out --silent because we don't want to record it for future runs. 1968 # Also quote any args containing shell meta-characters. 1969 # Make two passes to allow for proper duplicate-argument suppression. 1970 ac_configure_args= 1971 ac_configure_args0= 1972 ac_configure_args1= 1973 ac_must_keep_next=false 1974 for ac_pass in 1 2 1975 do 1976 for ac_arg 1977 do 1978 case $ac_arg in 1979 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1981 | -silent | --silent | --silen | --sile | --sil) 1982 continue ;; 1983 *\'*) 1984 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1985 esac 1986 case $ac_pass in 1987 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1988 2) 1989 as_fn_append ac_configure_args1 " '$ac_arg'" 1990 if test $ac_must_keep_next = true; then 1991 ac_must_keep_next=false # Got value, back to normal. 1992 else 1993 case $ac_arg in 1994 *=* | --config-cache | -C | -disable-* | --disable-* \ 1995 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1996 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1997 | -with-* | --with-* | -without-* | --without-* | --x) 1998 case "$ac_configure_args0 " in 1999 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2000 esac 2001 ;; 2002 -* ) ac_must_keep_next=true ;; 2003 esac 2004 fi 2005 as_fn_append ac_configure_args " '$ac_arg'" 2006 ;; 2007 esac 2008 done 2009 done 2010 { ac_configure_args0=; unset ac_configure_args0;} 2011 { ac_configure_args1=; unset ac_configure_args1;} 2012 2013 # When interrupted or exit'd, cleanup temporary files, and complete 2014 # config.log. We remove comments because anyway the quotes in there 2015 # would cause problems or look ugly. 2016 # WARNING: Use '\'' to represent an apostrophe within the trap. 2017 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2018 trap 'exit_status=$? 2019 # Save into config.log some information that might help in debugging. 2020 { 2021 echo 2022 2023 $as_echo "## ---------------- ## 2024 ## Cache variables. ## 2025 ## ---------------- ##" 2026 echo 2027 # The following way of writing the cache mishandles newlines in values, 2028 ( 2029 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2030 eval ac_val=\$$ac_var 2031 case $ac_val in #( 2032 *${as_nl}*) 2033 case $ac_var in #( 2034 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2035 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2036 esac 2037 case $ac_var in #( 2038 _ | IFS | as_nl) ;; #( 2039 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2040 *) { eval $ac_var=; unset $ac_var;} ;; 2041 esac ;; 2042 esac 2043 done 2044 (set) 2>&1 | 2045 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2046 *${as_nl}ac_space=\ *) 2047 sed -n \ 2048 "s/'\''/'\''\\\\'\'''\''/g; 2049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2050 ;; #( 2051 *) 2052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2053 ;; 2054 esac | 2055 sort 2056 ) 2057 echo 2058 2059 $as_echo "## ----------------- ## 2060 ## Output variables. ## 2061 ## ----------------- ##" 2062 echo 2063 for ac_var in $ac_subst_vars 2064 do 2065 eval ac_val=\$$ac_var 2066 case $ac_val in 2067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2068 esac 2069 $as_echo "$ac_var='\''$ac_val'\''" 2070 done | sort 2071 echo 2072 2073 if test -n "$ac_subst_files"; then 2074 $as_echo "## ------------------- ## 2075 ## File substitutions. ## 2076 ## ------------------- ##" 2077 echo 2078 for ac_var in $ac_subst_files 2079 do 2080 eval ac_val=\$$ac_var 2081 case $ac_val in 2082 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2083 esac 2084 $as_echo "$ac_var='\''$ac_val'\''" 2085 done | sort 2086 echo 2087 fi 2088 2089 if test -s confdefs.h; then 2090 $as_echo "## ----------- ## 2091 ## confdefs.h. ## 2092 ## ----------- ##" 2093 echo 2094 cat confdefs.h 2095 echo 2096 fi 2097 test "$ac_signal" != 0 && 2098 $as_echo "$as_me: caught signal $ac_signal" 2099 $as_echo "$as_me: exit $exit_status" 2100 } >&5 2101 rm -f core *.core core.conftest.* && 2102 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2103 exit $exit_status 2104 ' 0 2105 for ac_signal in 1 2 13 15; do 2106 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2107 done 2108 ac_signal=0 2109 2110 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2111 rm -f -r conftest* confdefs.h 2112 2113 $as_echo "/* confdefs.h */" > confdefs.h 2114 2115 # Predefined preprocessor variables. 2116 2117 cat >>confdefs.h <<_ACEOF 2118 #define PACKAGE_NAME "$PACKAGE_NAME" 2119 _ACEOF 2120 2121 cat >>confdefs.h <<_ACEOF 2122 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2123 _ACEOF 2124 2125 cat >>confdefs.h <<_ACEOF 2126 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2127 _ACEOF 2128 2129 cat >>confdefs.h <<_ACEOF 2130 #define PACKAGE_STRING "$PACKAGE_STRING" 2131 _ACEOF 2132 2133 cat >>confdefs.h <<_ACEOF 2134 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2135 _ACEOF 2136 2137 cat >>confdefs.h <<_ACEOF 2138 #define PACKAGE_URL "$PACKAGE_URL" 2139 _ACEOF 2140 2141 2142 # Let the site file select an alternate cache file if it wants to. 2143 # Prefer an explicitly selected file to automatically selected ones. 2144 ac_site_file1=NONE 2145 ac_site_file2=NONE 2146 if test -n "$CONFIG_SITE"; then 2147 # We do not want a PATH search for config.site. 2148 case $CONFIG_SITE in #(( 2149 -*) ac_site_file1=./$CONFIG_SITE;; 2150 */*) ac_site_file1=$CONFIG_SITE;; 2151 *) ac_site_file1=./$CONFIG_SITE;; 2152 esac 2153 elif test "x$prefix" != xNONE; then 2154 ac_site_file1=$prefix/share/config.site 2155 ac_site_file2=$prefix/etc/config.site 2156 else 2157 ac_site_file1=$ac_default_prefix/share/config.site 2158 ac_site_file2=$ac_default_prefix/etc/config.site 2159 fi 2160 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2161 do 2162 test "x$ac_site_file" = xNONE && continue 2163 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2165 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2166 sed 's/^/| /' "$ac_site_file" >&5 2167 . "$ac_site_file" \ 2168 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2170 as_fn_error $? "failed to load site script $ac_site_file 2171 See \`config.log' for more details" "$LINENO" 5; } 2172 fi 2173 done 2174 2175 if test -r "$cache_file"; then 2176 # Some versions of bash will fail to source /dev/null (special files 2177 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2178 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2180 $as_echo "$as_me: loading cache $cache_file" >&6;} 2181 case $cache_file in 2182 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2183 *) . "./$cache_file";; 2184 esac 2185 fi 2186 else 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2188 $as_echo "$as_me: creating cache $cache_file" >&6;} 2189 >$cache_file 2190 fi 2191 2192 # Check that the precious variables saved in the cache have kept the same 2193 # value. 2194 ac_cache_corrupted=false 2195 for ac_var in $ac_precious_vars; do 2196 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2197 eval ac_new_set=\$ac_env_${ac_var}_set 2198 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2199 eval ac_new_val=\$ac_env_${ac_var}_value 2200 case $ac_old_set,$ac_new_set in 2201 set,) 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2203 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2204 ac_cache_corrupted=: ;; 2205 ,set) 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2207 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2208 ac_cache_corrupted=: ;; 2209 ,);; 2210 *) 2211 if test "x$ac_old_val" != "x$ac_new_val"; then 2212 # differences in whitespace do not lead to failure. 2213 ac_old_val_w=`echo x $ac_old_val` 2214 ac_new_val_w=`echo x $ac_new_val` 2215 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2217 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2218 ac_cache_corrupted=: 2219 else 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2221 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2222 eval $ac_var=\$ac_old_val 2223 fi 2224 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2225 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2227 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2228 fi;; 2229 esac 2230 # Pass precious variables to config.status. 2231 if test "$ac_new_set" = set; then 2232 case $ac_new_val in 2233 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2234 *) ac_arg=$ac_var=$ac_new_val ;; 2235 esac 2236 case " $ac_configure_args " in 2237 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2238 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2239 esac 2240 fi 2241 done 2242 if $ac_cache_corrupted; then 2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2246 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2247 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2248 fi 2249 ## -------------------- ## 2250 ## Main body of script. ## 2251 ## -------------------- ## 2252 2253 ac_ext=c 2254 ac_cpp='$CPP $CPPFLAGS' 2255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2257 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2258 2259 2260 2261 2262 2263 ac_config_headers="$ac_config_headers config.h" 2264 2265 2266 # Gets build, host, target, *_vendor, *_cpu, *_os, etc. 2267 # 2268 # You will slowly go insane if you do not grok the following fact: when 2269 # building this library, the top-level /target/ becomes the library's /host/. 2270 # 2271 # configure then causes --target to default to --host, exactly like any 2272 # other package using autoconf. Therefore, 'target' and 'host' will 2273 # always be the same. This makes sense both for native and cross compilers 2274 # just think about it for a little while. :-) 2275 # 2276 # Also, if this library is being configured as part of a cross compiler, the 2277 # top-level configure script will pass the "real" host as $with_cross_host. 2278 # 2279 # Do not delete or change the following two lines. For why, see 2280 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html 2281 ac_aux_dir= 2282 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2283 if test -f "$ac_dir/install-sh"; then 2284 ac_aux_dir=$ac_dir 2285 ac_install_sh="$ac_aux_dir/install-sh -c" 2286 break 2287 elif test -f "$ac_dir/install.sh"; then 2288 ac_aux_dir=$ac_dir 2289 ac_install_sh="$ac_aux_dir/install.sh -c" 2290 break 2291 elif test -f "$ac_dir/shtool"; then 2292 ac_aux_dir=$ac_dir 2293 ac_install_sh="$ac_aux_dir/shtool install -c" 2294 break 2295 fi 2296 done 2297 if test -z "$ac_aux_dir"; then 2298 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2299 fi 2300 2301 # These three variables are undocumented and unsupported, 2302 # and are intended to be withdrawn in a future Autoconf release. 2303 # They can cause serious problems if a builder's source tree is in a directory 2304 # whose full name contains unusual characters. 2305 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2306 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2307 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2308 2309 2310 # Make sure we can run config.sub. 2311 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2312 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2313 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2315 $as_echo_n "checking build system type... " >&6; } 2316 if ${ac_cv_build+:} false; then : 2317 $as_echo_n "(cached) " >&6 2318 else 2319 ac_build_alias=$build_alias 2320 test "x$ac_build_alias" = x && 2321 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2322 test "x$ac_build_alias" = x && 2323 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2324 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2325 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2326 2327 fi 2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2329 $as_echo "$ac_cv_build" >&6; } 2330 case $ac_cv_build in 2331 *-*-*) ;; 2332 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2333 esac 2334 build=$ac_cv_build 2335 ac_save_IFS=$IFS; IFS='-' 2336 set x $ac_cv_build 2337 shift 2338 build_cpu=$1 2339 build_vendor=$2 2340 shift; shift 2341 # Remember, the first character of IFS is used to create $*, 2342 # except with old shells: 2343 build_os=$* 2344 IFS=$ac_save_IFS 2345 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2346 2347 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2349 $as_echo_n "checking host system type... " >&6; } 2350 if ${ac_cv_host+:} false; then : 2351 $as_echo_n "(cached) " >&6 2352 else 2353 if test "x$host_alias" = x; then 2354 ac_cv_host=$ac_cv_build 2355 else 2356 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2357 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2358 fi 2359 2360 fi 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2362 $as_echo "$ac_cv_host" >&6; } 2363 case $ac_cv_host in 2364 *-*-*) ;; 2365 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2366 esac 2367 host=$ac_cv_host 2368 ac_save_IFS=$IFS; IFS='-' 2369 set x $ac_cv_host 2370 shift 2371 host_cpu=$1 2372 host_vendor=$2 2373 shift; shift 2374 # Remember, the first character of IFS is used to create $*, 2375 # except with old shells: 2376 host_os=$* 2377 IFS=$ac_save_IFS 2378 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2379 2380 2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2382 $as_echo_n "checking target system type... " >&6; } 2383 if ${ac_cv_target+:} false; then : 2384 $as_echo_n "(cached) " >&6 2385 else 2386 if test "x$target_alias" = x; then 2387 ac_cv_target=$ac_cv_host 2388 else 2389 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2390 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2391 fi 2392 2393 fi 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2395 $as_echo "$ac_cv_target" >&6; } 2396 case $ac_cv_target in 2397 *-*-*) ;; 2398 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2399 esac 2400 target=$ac_cv_target 2401 ac_save_IFS=$IFS; IFS='-' 2402 set x $ac_cv_target 2403 shift 2404 target_cpu=$1 2405 target_vendor=$2 2406 shift; shift 2407 # Remember, the first character of IFS is used to create $*, 2408 # except with old shells: 2409 target_os=$* 2410 IFS=$ac_save_IFS 2411 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2412 2413 2414 # The aliases save the names the user supplied, while $host etc. 2415 # will get canonicalized. 2416 test -n "$target_alias" && 2417 test "$program_prefix$program_suffix$program_transform_name" = \ 2418 NONENONEs,x,x, && 2419 program_prefix=${target_alias}- 2420 2421 case ${build_alias} in 2422 "") build_noncanonical=${build} ;; 2423 *) build_noncanonical=${build_alias} ;; 2424 esac 2425 2426 case ${host_alias} in 2427 "") host_noncanonical=${build_noncanonical} ;; 2428 *) host_noncanonical=${host_alias} ;; 2429 esac 2430 2431 case ${target_alias} in 2432 "") target_noncanonical=${host_noncanonical} ;; 2433 *) target_noncanonical=${target_alias} ;; 2434 esac 2435 2436 2437 2438 2439 # Default to --enable-multilib 2440 # Check whether --enable-multilib was given. 2441 if test "${enable_multilib+set}" = set; then : 2442 enableval=$enable_multilib; case "$enableval" in 2443 yes) multilib=yes ;; 2444 no) multilib=no ;; 2445 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; 2446 esac 2447 else 2448 multilib=yes 2449 fi 2450 2451 2452 # We may get other options which we leave undocumented: 2453 # --with-target-subdir, --with-multisrctop, --with-multisubdir 2454 # See config-ml.in if you want the gory details. 2455 2456 if test "$srcdir" = "."; then 2457 if test "$with_target_subdir" != "."; then 2458 multi_basedir="$srcdir/$with_multisrctop../.." 2459 else 2460 multi_basedir="$srcdir/$with_multisrctop.." 2461 fi 2462 else 2463 multi_basedir="$srcdir/.." 2464 fi 2465 2466 2467 # Even if the default multilib is not a cross compilation, 2468 # it may be that some of the other multilibs are. 2469 if test $cross_compiling = no && test $multilib = yes \ 2470 && test "x${with_multisubdir}" != x ; then 2471 cross_compiling=maybe 2472 fi 2473 2474 ac_config_commands="$ac_config_commands default-1" 2475 2476 2477 target_alias=${target_alias-$host_alias} 2478 2479 2480 am__api_version='1.15' 2481 2482 # Find a good install program. We prefer a C program (faster), 2483 # so one script is as good as another. But avoid the broken or 2484 # incompatible versions: 2485 # SysV /etc/install, /usr/sbin/install 2486 # SunOS /usr/etc/install 2487 # IRIX /sbin/install 2488 # AIX /bin/install 2489 # AmigaOS /C/install, which installs bootblocks on floppy discs 2490 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2491 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2492 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2493 # OS/2's system install, which has a completely different semantic 2494 # ./install, which can be erroneously created by make from ./install.sh. 2495 # Reject install programs that cannot install multiple files. 2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2497 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2498 if test -z "$INSTALL"; then 2499 if ${ac_cv_path_install+:} false; then : 2500 $as_echo_n "(cached) " >&6 2501 else 2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2503 for as_dir in $PATH 2504 do 2505 IFS=$as_save_IFS 2506 test -z "$as_dir" && as_dir=. 2507 # Account for people who put trailing slashes in PATH elements. 2508 case $as_dir/ in #(( 2509 ./ | .// | /[cC]/* | \ 2510 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2511 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2512 /usr/ucb/* ) ;; 2513 *) 2514 # OSF1 and SCO ODT 3.0 have their own names for install. 2515 # Don't use installbsd from OSF since it installs stuff as root 2516 # by default. 2517 for ac_prog in ginstall scoinst install; do 2518 for ac_exec_ext in '' $ac_executable_extensions; do 2519 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2520 if test $ac_prog = install && 2521 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2522 # AIX install. It has an incompatible calling convention. 2523 : 2524 elif test $ac_prog = install && 2525 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2526 # program-specific install script used by HP pwplus--don't use. 2527 : 2528 else 2529 rm -rf conftest.one conftest.two conftest.dir 2530 echo one > conftest.one 2531 echo two > conftest.two 2532 mkdir conftest.dir 2533 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2534 test -s conftest.one && test -s conftest.two && 2535 test -s conftest.dir/conftest.one && 2536 test -s conftest.dir/conftest.two 2537 then 2538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2539 break 3 2540 fi 2541 fi 2542 fi 2543 done 2544 done 2545 ;; 2546 esac 2547 2548 done 2549 IFS=$as_save_IFS 2550 2551 rm -rf conftest.one conftest.two conftest.dir 2552 2553 fi 2554 if test "${ac_cv_path_install+set}" = set; then 2555 INSTALL=$ac_cv_path_install 2556 else 2557 # As a last resort, use the slow shell script. Don't cache a 2558 # value for INSTALL within a source directory, because that will 2559 # break other packages using the cache if that directory is 2560 # removed, or if the value is a relative name. 2561 INSTALL=$ac_install_sh 2562 fi 2563 fi 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2565 $as_echo "$INSTALL" >&6; } 2566 2567 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2568 # It thinks the first close brace ends the variable substitution. 2569 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2570 2571 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2572 2573 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2574 2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2576 $as_echo_n "checking whether build environment is sane... " >&6; } 2577 # Reject unsafe characters in $srcdir or the absolute working directory 2578 # name. Accept space and tab only in the latter. 2579 am_lf=' 2580 ' 2581 case `pwd` in 2582 *[\\\"\#\$\&\'\`$am_lf]*) 2583 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2584 esac 2585 case $srcdir in 2586 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2587 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2588 esac 2589 2590 # Do 'set' in a subshell so we don't clobber the current shell's 2591 # arguments. Must try -L first in case configure is actually a 2592 # symlink; some systems play weird games with the mod time of symlinks 2593 # (eg FreeBSD returns the mod time of the symlink's containing 2594 # directory). 2595 if ( 2596 am_has_slept=no 2597 for am_try in 1 2; do 2598 echo "timestamp, slept: $am_has_slept" > conftest.file 2599 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2600 if test "$*" = "X"; then 2601 # -L didn't work. 2602 set X `ls -t "$srcdir/configure" conftest.file` 2603 fi 2604 if test "$*" != "X $srcdir/configure conftest.file" \ 2605 && test "$*" != "X conftest.file $srcdir/configure"; then 2606 2607 # If neither matched, then we have a broken ls. This can happen 2608 # if, for instance, CONFIG_SHELL is bash and it inherits a 2609 # broken ls alias from the environment. This has actually 2610 # happened. Such a system could not be considered "sane". 2611 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2612 alias in your environment" "$LINENO" 5 2613 fi 2614 if test "$2" = conftest.file || test $am_try -eq 2; then 2615 break 2616 fi 2617 # Just in case. 2618 sleep 1 2619 am_has_slept=yes 2620 done 2621 test "$2" = conftest.file 2622 ) 2623 then 2624 # Ok. 2625 : 2626 else 2627 as_fn_error $? "newly created file is older than distributed files! 2628 Check your system clock" "$LINENO" 5 2629 fi 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2631 $as_echo "yes" >&6; } 2632 # If we didn't sleep, we still need to ensure time stamps of config.status and 2633 # generated files are strictly newer. 2634 am_sleep_pid= 2635 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2636 ( sleep 1 ) & 2637 am_sleep_pid=$! 2638 fi 2639 2640 rm -f conftest.file 2641 2642 test "$program_prefix" != NONE && 2643 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2644 # Use a double $ so make ignores it. 2645 test "$program_suffix" != NONE && 2646 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2647 # Double any \ or $. 2648 # By default was `s,x,x', remove it if useless. 2649 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2650 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2651 2652 # Expand $ac_aux_dir to an absolute path. 2653 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2654 2655 if test x"${MISSING+set}" != xset; then 2656 case $am_aux_dir in 2657 *\ * | *\ *) 2658 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2659 *) 2660 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2661 esac 2662 fi 2663 # Use eval to expand $SHELL 2664 if eval "$MISSING --is-lightweight"; then 2665 am_missing_run="$MISSING " 2666 else 2667 am_missing_run= 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2669 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2670 fi 2671 2672 if test x"${install_sh+set}" != xset; then 2673 case $am_aux_dir in 2674 *\ * | *\ *) 2675 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2676 *) 2677 install_sh="\${SHELL} $am_aux_dir/install-sh" 2678 esac 2679 fi 2680 2681 # Installed binaries are usually stripped using 'strip' when the user 2682 # run "make install-strip". However 'strip' might not be the right 2683 # tool to use in cross-compilation environments, therefore Automake 2684 # will honor the 'STRIP' environment variable to overrule this program. 2685 if test "$cross_compiling" != no; then 2686 if test -n "$ac_tool_prefix"; then 2687 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2688 set dummy ${ac_tool_prefix}strip; ac_word=$2 2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2690 $as_echo_n "checking for $ac_word... " >&6; } 2691 if ${ac_cv_prog_STRIP+:} false; then : 2692 $as_echo_n "(cached) " >&6 2693 else 2694 if test -n "$STRIP"; then 2695 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2696 else 2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2698 for as_dir in $PATH 2699 do 2700 IFS=$as_save_IFS 2701 test -z "$as_dir" && as_dir=. 2702 for ac_exec_ext in '' $ac_executable_extensions; do 2703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2704 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2706 break 2 2707 fi 2708 done 2709 done 2710 IFS=$as_save_IFS 2711 2712 fi 2713 fi 2714 STRIP=$ac_cv_prog_STRIP 2715 if test -n "$STRIP"; then 2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2717 $as_echo "$STRIP" >&6; } 2718 else 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2720 $as_echo "no" >&6; } 2721 fi 2722 2723 2724 fi 2725 if test -z "$ac_cv_prog_STRIP"; then 2726 ac_ct_STRIP=$STRIP 2727 # Extract the first word of "strip", so it can be a program name with args. 2728 set dummy strip; ac_word=$2 2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2730 $as_echo_n "checking for $ac_word... " >&6; } 2731 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2732 $as_echo_n "(cached) " >&6 2733 else 2734 if test -n "$ac_ct_STRIP"; then 2735 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2736 else 2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2738 for as_dir in $PATH 2739 do 2740 IFS=$as_save_IFS 2741 test -z "$as_dir" && as_dir=. 2742 for ac_exec_ext in '' $ac_executable_extensions; do 2743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2744 ac_cv_prog_ac_ct_STRIP="strip" 2745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2746 break 2 2747 fi 2748 done 2749 done 2750 IFS=$as_save_IFS 2751 2752 fi 2753 fi 2754 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2755 if test -n "$ac_ct_STRIP"; then 2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2757 $as_echo "$ac_ct_STRIP" >&6; } 2758 else 2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2760 $as_echo "no" >&6; } 2761 fi 2762 2763 if test "x$ac_ct_STRIP" = x; then 2764 STRIP=":" 2765 else 2766 case $cross_compiling:$ac_tool_warned in 2767 yes:) 2768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2770 ac_tool_warned=yes ;; 2771 esac 2772 STRIP=$ac_ct_STRIP 2773 fi 2774 else 2775 STRIP="$ac_cv_prog_STRIP" 2776 fi 2777 2778 fi 2779 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2780 2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2782 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2783 if test -z "$MKDIR_P"; then 2784 if ${ac_cv_path_mkdir+:} false; then : 2785 $as_echo_n "(cached) " >&6 2786 else 2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2788 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2789 do 2790 IFS=$as_save_IFS 2791 test -z "$as_dir" && as_dir=. 2792 for ac_prog in mkdir gmkdir; do 2793 for ac_exec_ext in '' $ac_executable_extensions; do 2794 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2795 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2796 'mkdir (GNU coreutils) '* | \ 2797 'mkdir (coreutils) '* | \ 2798 'mkdir (fileutils) '4.1*) 2799 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2800 break 3;; 2801 esac 2802 done 2803 done 2804 done 2805 IFS=$as_save_IFS 2806 2807 fi 2808 2809 test -d ./--version && rmdir ./--version 2810 if test "${ac_cv_path_mkdir+set}" = set; then 2811 MKDIR_P="$ac_cv_path_mkdir -p" 2812 else 2813 # As a last resort, use the slow shell script. Don't cache a 2814 # value for MKDIR_P within a source directory, because that will 2815 # break other packages using the cache if that directory is 2816 # removed, or if the value is a relative name. 2817 MKDIR_P="$ac_install_sh -d" 2818 fi 2819 fi 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2821 $as_echo "$MKDIR_P" >&6; } 2822 2823 for ac_prog in gawk mawk nawk awk 2824 do 2825 # Extract the first word of "$ac_prog", so it can be a program name with args. 2826 set dummy $ac_prog; ac_word=$2 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2828 $as_echo_n "checking for $ac_word... " >&6; } 2829 if ${ac_cv_prog_AWK+:} false; then : 2830 $as_echo_n "(cached) " >&6 2831 else 2832 if test -n "$AWK"; then 2833 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2834 else 2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2836 for as_dir in $PATH 2837 do 2838 IFS=$as_save_IFS 2839 test -z "$as_dir" && as_dir=. 2840 for ac_exec_ext in '' $ac_executable_extensions; do 2841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2842 ac_cv_prog_AWK="$ac_prog" 2843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2844 break 2 2845 fi 2846 done 2847 done 2848 IFS=$as_save_IFS 2849 2850 fi 2851 fi 2852 AWK=$ac_cv_prog_AWK 2853 if test -n "$AWK"; then 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2855 $as_echo "$AWK" >&6; } 2856 else 2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2858 $as_echo "no" >&6; } 2859 fi 2860 2861 2862 test -n "$AWK" && break 2863 done 2864 2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2866 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2867 set x ${MAKE-make} 2868 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2869 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2870 $as_echo_n "(cached) " >&6 2871 else 2872 cat >conftest.make <<\_ACEOF 2873 SHELL = /bin/sh 2874 all: 2875 @echo '@@@%%%=$(MAKE)=@@@%%%' 2876 _ACEOF 2877 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2878 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2879 *@@@%%%=?*=@@@%%%*) 2880 eval ac_cv_prog_make_${ac_make}_set=yes;; 2881 *) 2882 eval ac_cv_prog_make_${ac_make}_set=no;; 2883 esac 2884 rm -f conftest.make 2885 fi 2886 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2888 $as_echo "yes" >&6; } 2889 SET_MAKE= 2890 else 2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2892 $as_echo "no" >&6; } 2893 SET_MAKE="MAKE=${MAKE-make}" 2894 fi 2895 2896 rm -rf .tst 2>/dev/null 2897 mkdir .tst 2>/dev/null 2898 if test -d .tst; then 2899 am__leading_dot=. 2900 else 2901 am__leading_dot=_ 2902 fi 2903 rmdir .tst 2>/dev/null 2904 2905 # Check whether --enable-silent-rules was given. 2906 if test "${enable_silent_rules+set}" = set; then : 2907 enableval=$enable_silent_rules; 2908 fi 2909 2910 case $enable_silent_rules in # ((( 2911 yes) AM_DEFAULT_VERBOSITY=0;; 2912 no) AM_DEFAULT_VERBOSITY=1;; 2913 *) AM_DEFAULT_VERBOSITY=1;; 2914 esac 2915 am_make=${MAKE-make} 2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2917 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2918 if ${am_cv_make_support_nested_variables+:} false; then : 2919 $as_echo_n "(cached) " >&6 2920 else 2921 if $as_echo 'TRUE=$(BAR$(V)) 2922 BAR0=false 2923 BAR1=true 2924 V=1 2925 am__doit: 2926 @$(TRUE) 2927 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2928 am_cv_make_support_nested_variables=yes 2929 else 2930 am_cv_make_support_nested_variables=no 2931 fi 2932 fi 2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2934 $as_echo "$am_cv_make_support_nested_variables" >&6; } 2935 if test $am_cv_make_support_nested_variables = yes; then 2936 AM_V='$(V)' 2937 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2938 else 2939 AM_V=$AM_DEFAULT_VERBOSITY 2940 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2941 fi 2942 AM_BACKSLASH='\' 2943 2944 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2945 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2946 # is not polluted with repeated "-I." 2947 am__isrc=' -I$(srcdir)' 2948 # test to see if srcdir already configured 2949 if test -f $srcdir/config.status; then 2950 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2951 fi 2952 fi 2953 2954 # test whether we have cygpath 2955 if test -z "$CYGPATH_W"; then 2956 if (cygpath --version) >/dev/null 2>/dev/null; then 2957 CYGPATH_W='cygpath -w' 2958 else 2959 CYGPATH_W=echo 2960 fi 2961 fi 2962 2963 2964 # Define the identity of the package. 2965 PACKAGE='libquadmath' 2966 VERSION='0.1' 2967 2968 2969 cat >>confdefs.h <<_ACEOF 2970 #define PACKAGE "$PACKAGE" 2971 _ACEOF 2972 2973 2974 cat >>confdefs.h <<_ACEOF 2975 #define VERSION "$VERSION" 2976 _ACEOF 2977 2978 # Some tools Automake needs. 2979 2980 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2981 2982 2983 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2984 2985 2986 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2987 2988 2989 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2990 2991 2992 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2993 2994 # For better backward compatibility. To be removed once Automake 1.9.x 2995 # dies out for good. For more background, see: 2996 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2997 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2998 mkdir_p='$(MKDIR_P)' 2999 3000 # We need awk for the "check" target (and possibly the TAP driver). The 3001 # system "awk" is bad on some platforms. 3002 # Always define AMTAR for backward compatibility. Yes, it's still used 3003 # in the wild :-( We should find a proper way to deprecate it ... 3004 AMTAR='$${TAR-tar}' 3005 3006 3007 # We'll loop over all known methods to create a tar archive until one works. 3008 _am_tools='gnutar pax cpio none' 3009 3010 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3011 3012 3013 3014 3015 3016 3017 # POSIX will say in a future version that running "rm -f" with no argument 3018 # is OK; and we want to be able to make that assumption in our Makefile 3019 # recipes. So use an aggressive probe to check that the usage we want is 3020 # actually supported "in the wild" to an acceptable degree. 3021 # See automake bug#10828. 3022 # To make any issue more visible, cause the running configure to be aborted 3023 # by default if the 'rm' program in use doesn't match our expectations; the 3024 # user can still override this though. 3025 if rm -f && rm -fr && rm -rf; then : OK; else 3026 cat >&2 <<'END' 3027 Oops! 3028 3029 Your 'rm' program seems unable to run without file operands specified 3030 on the command line, even when the '-f' option is present. This is contrary 3031 to the behaviour of most rm programs out there, and not conforming with 3032 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3033 3034 Please tell bug-automake@gnu.org about your system, including the value 3035 of your $PATH and any error possibly output before this message. This 3036 can help us improve future automake versions. 3037 3038 END 3039 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3040 echo 'Configuration will proceed anyway, since you have set the' >&2 3041 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3042 echo >&2 3043 else 3044 cat >&2 <<'END' 3045 Aborting the configuration process, to ensure you take notice of the issue. 3046 3047 You can download and install GNU coreutils to get an 'rm' implementation 3048 that behaves properly: <http://www.gnu.org/software/coreutils/>. 3049 3050 If you want to complete the configuration process using your problematic 3051 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3052 to "yes", and re-run configure. 3053 3054 END 3055 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3056 fi 3057 fi 3058 3059 3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 3061 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } 3062 # Check whether --enable-version-specific-runtime-libs was given. 3063 if test "${enable_version_specific_runtime_libs+set}" = set; then : 3064 enableval=$enable_version_specific_runtime_libs; case "$enableval" in 3065 yes) version_specific_libs=yes ;; 3066 no) version_specific_libs=no ;; 3067 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; 3068 esac 3069 else 3070 version_specific_libs=no 3071 fi 3072 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 3074 $as_echo "$version_specific_libs" >&6; } 3075 3076 3077 3078 DEPDIR="${am__leading_dot}deps" 3079 3080 ac_config_commands="$ac_config_commands depfiles" 3081 3082 3083 am_make=${MAKE-make} 3084 cat > confinc << 'END' 3085 am__doit: 3086 @echo this is the am__doit target 3087 .PHONY: am__doit 3088 END 3089 # If we don't find an include directive, just comment out the code. 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3091 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3092 am__include="#" 3093 am__quote= 3094 _am_result=none 3095 # First try GNU make style include. 3096 echo "include confinc" > confmf 3097 # Ignore all kinds of additional output from 'make'. 3098 case `$am_make -s -f confmf 2> /dev/null` in #( 3099 *the\ am__doit\ target*) 3100 am__include=include 3101 am__quote= 3102 _am_result=GNU 3103 ;; 3104 esac 3105 # Now try BSD make style include. 3106 if test "$am__include" = "#"; then 3107 echo '.include "confinc"' > confmf 3108 case `$am_make -s -f confmf 2> /dev/null` in #( 3109 *the\ am__doit\ target*) 3110 am__include=.include 3111 am__quote="\"" 3112 _am_result=BSD 3113 ;; 3114 esac 3115 fi 3116 3117 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3119 $as_echo "$_am_result" >&6; } 3120 rm -f confinc confmf 3121 3122 # Check whether --enable-dependency-tracking was given. 3123 if test "${enable_dependency_tracking+set}" = set; then : 3124 enableval=$enable_dependency_tracking; 3125 fi 3126 3127 if test "x$enable_dependency_tracking" != xno; then 3128 am_depcomp="$ac_aux_dir/depcomp" 3129 AMDEPBACKSLASH='\' 3130 am__nodep='_no' 3131 fi 3132 if test "x$enable_dependency_tracking" != xno; then 3133 AMDEP_TRUE= 3134 AMDEP_FALSE='#' 3135 else 3136 AMDEP_TRUE='#' 3137 AMDEP_FALSE= 3138 fi 3139 3140 3141 ac_ext=c 3142 ac_cpp='$CPP $CPPFLAGS' 3143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3145 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3146 if test -n "$ac_tool_prefix"; then 3147 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3148 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3150 $as_echo_n "checking for $ac_word... " >&6; } 3151 if ${ac_cv_prog_CC+:} false; then : 3152 $as_echo_n "(cached) " >&6 3153 else 3154 if test -n "$CC"; then 3155 ac_cv_prog_CC="$CC" # Let the user override the test. 3156 else 3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3158 for as_dir in $PATH 3159 do 3160 IFS=$as_save_IFS 3161 test -z "$as_dir" && as_dir=. 3162 for ac_exec_ext in '' $ac_executable_extensions; do 3163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3164 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3166 break 2 3167 fi 3168 done 3169 done 3170 IFS=$as_save_IFS 3171 3172 fi 3173 fi 3174 CC=$ac_cv_prog_CC 3175 if test -n "$CC"; then 3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3177 $as_echo "$CC" >&6; } 3178 else 3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3180 $as_echo "no" >&6; } 3181 fi 3182 3183 3184 fi 3185 if test -z "$ac_cv_prog_CC"; then 3186 ac_ct_CC=$CC 3187 # Extract the first word of "gcc", so it can be a program name with args. 3188 set dummy gcc; ac_word=$2 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3190 $as_echo_n "checking for $ac_word... " >&6; } 3191 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3192 $as_echo_n "(cached) " >&6 3193 else 3194 if test -n "$ac_ct_CC"; then 3195 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3196 else 3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3198 for as_dir in $PATH 3199 do 3200 IFS=$as_save_IFS 3201 test -z "$as_dir" && as_dir=. 3202 for ac_exec_ext in '' $ac_executable_extensions; do 3203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3204 ac_cv_prog_ac_ct_CC="gcc" 3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3206 break 2 3207 fi 3208 done 3209 done 3210 IFS=$as_save_IFS 3211 3212 fi 3213 fi 3214 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3215 if test -n "$ac_ct_CC"; then 3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3217 $as_echo "$ac_ct_CC" >&6; } 3218 else 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3220 $as_echo "no" >&6; } 3221 fi 3222 3223 if test "x$ac_ct_CC" = x; then 3224 CC="" 3225 else 3226 case $cross_compiling:$ac_tool_warned in 3227 yes:) 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3230 ac_tool_warned=yes ;; 3231 esac 3232 CC=$ac_ct_CC 3233 fi 3234 else 3235 CC="$ac_cv_prog_CC" 3236 fi 3237 3238 if test -z "$CC"; then 3239 if test -n "$ac_tool_prefix"; then 3240 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3241 set dummy ${ac_tool_prefix}cc; ac_word=$2 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3243 $as_echo_n "checking for $ac_word... " >&6; } 3244 if ${ac_cv_prog_CC+:} false; then : 3245 $as_echo_n "(cached) " >&6 3246 else 3247 if test -n "$CC"; then 3248 ac_cv_prog_CC="$CC" # Let the user override the test. 3249 else 3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3251 for as_dir in $PATH 3252 do 3253 IFS=$as_save_IFS 3254 test -z "$as_dir" && as_dir=. 3255 for ac_exec_ext in '' $ac_executable_extensions; do 3256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3257 ac_cv_prog_CC="${ac_tool_prefix}cc" 3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3259 break 2 3260 fi 3261 done 3262 done 3263 IFS=$as_save_IFS 3264 3265 fi 3266 fi 3267 CC=$ac_cv_prog_CC 3268 if test -n "$CC"; then 3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3270 $as_echo "$CC" >&6; } 3271 else 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3273 $as_echo "no" >&6; } 3274 fi 3275 3276 3277 fi 3278 fi 3279 if test -z "$CC"; then 3280 # Extract the first word of "cc", so it can be a program name with args. 3281 set dummy cc; ac_word=$2 3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3283 $as_echo_n "checking for $ac_word... " >&6; } 3284 if ${ac_cv_prog_CC+:} false; then : 3285 $as_echo_n "(cached) " >&6 3286 else 3287 if test -n "$CC"; then 3288 ac_cv_prog_CC="$CC" # Let the user override the test. 3289 else 3290 ac_prog_rejected=no 3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3292 for as_dir in $PATH 3293 do 3294 IFS=$as_save_IFS 3295 test -z "$as_dir" && as_dir=. 3296 for ac_exec_ext in '' $ac_executable_extensions; do 3297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3298 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3299 ac_prog_rejected=yes 3300 continue 3301 fi 3302 ac_cv_prog_CC="cc" 3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3304 break 2 3305 fi 3306 done 3307 done 3308 IFS=$as_save_IFS 3309 3310 if test $ac_prog_rejected = yes; then 3311 # We found a bogon in the path, so make sure we never use it. 3312 set dummy $ac_cv_prog_CC 3313 shift 3314 if test $# != 0; then 3315 # We chose a different compiler from the bogus one. 3316 # However, it has the same basename, so the bogon will be chosen 3317 # first if we set CC to just the basename; use the full file name. 3318 shift 3319 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3320 fi 3321 fi 3322 fi 3323 fi 3324 CC=$ac_cv_prog_CC 3325 if test -n "$CC"; then 3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3327 $as_echo "$CC" >&6; } 3328 else 3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3330 $as_echo "no" >&6; } 3331 fi 3332 3333 3334 fi 3335 if test -z "$CC"; then 3336 if test -n "$ac_tool_prefix"; then 3337 for ac_prog in cl.exe 3338 do 3339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3342 $as_echo_n "checking for $ac_word... " >&6; } 3343 if ${ac_cv_prog_CC+:} false; then : 3344 $as_echo_n "(cached) " >&6 3345 else 3346 if test -n "$CC"; then 3347 ac_cv_prog_CC="$CC" # Let the user override the test. 3348 else 3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3350 for as_dir in $PATH 3351 do 3352 IFS=$as_save_IFS 3353 test -z "$as_dir" && as_dir=. 3354 for ac_exec_ext in '' $ac_executable_extensions; do 3355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3356 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3358 break 2 3359 fi 3360 done 3361 done 3362 IFS=$as_save_IFS 3363 3364 fi 3365 fi 3366 CC=$ac_cv_prog_CC 3367 if test -n "$CC"; then 3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3369 $as_echo "$CC" >&6; } 3370 else 3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3372 $as_echo "no" >&6; } 3373 fi 3374 3375 3376 test -n "$CC" && break 3377 done 3378 fi 3379 if test -z "$CC"; then 3380 ac_ct_CC=$CC 3381 for ac_prog in cl.exe 3382 do 3383 # Extract the first word of "$ac_prog", so it can be a program name with args. 3384 set dummy $ac_prog; ac_word=$2 3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3386 $as_echo_n "checking for $ac_word... " >&6; } 3387 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3388 $as_echo_n "(cached) " >&6 3389 else 3390 if test -n "$ac_ct_CC"; then 3391 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3392 else 3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3394 for as_dir in $PATH 3395 do 3396 IFS=$as_save_IFS 3397 test -z "$as_dir" && as_dir=. 3398 for ac_exec_ext in '' $ac_executable_extensions; do 3399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3400 ac_cv_prog_ac_ct_CC="$ac_prog" 3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3402 break 2 3403 fi 3404 done 3405 done 3406 IFS=$as_save_IFS 3407 3408 fi 3409 fi 3410 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3411 if test -n "$ac_ct_CC"; then 3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3413 $as_echo "$ac_ct_CC" >&6; } 3414 else 3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3416 $as_echo "no" >&6; } 3417 fi 3418 3419 3420 test -n "$ac_ct_CC" && break 3421 done 3422 3423 if test "x$ac_ct_CC" = x; then 3424 CC="" 3425 else 3426 case $cross_compiling:$ac_tool_warned in 3427 yes:) 3428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3430 ac_tool_warned=yes ;; 3431 esac 3432 CC=$ac_ct_CC 3433 fi 3434 fi 3435 3436 fi 3437 3438 3439 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3441 as_fn_error $? "no acceptable C compiler found in \$PATH 3442 See \`config.log' for more details" "$LINENO" 5; } 3443 3444 # Provide some information about the compiler. 3445 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3446 set X $ac_compile 3447 ac_compiler=$2 3448 for ac_option in --version -v -V -qversion; do 3449 { { ac_try="$ac_compiler $ac_option >&5" 3450 case "(($ac_try" in 3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3452 *) ac_try_echo=$ac_try;; 3453 esac 3454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3455 $as_echo "$ac_try_echo"; } >&5 3456 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3457 ac_status=$? 3458 if test -s conftest.err; then 3459 sed '10a\ 3460 ... rest of stderr output deleted ... 3461 10q' conftest.err >conftest.er1 3462 cat conftest.er1 >&5 3463 fi 3464 rm -f conftest.er1 conftest.err 3465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3466 test $ac_status = 0; } 3467 done 3468 3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3470 /* end confdefs.h. */ 3471 #include <stdio.h> 3472 int 3473 main () 3474 { 3475 printf ("hello world\n"); 3476 ; 3477 return 0; 3478 } 3479 _ACEOF 3480 # FIXME: Cleanup? 3481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 3482 (eval $ac_link) 2>&5 3483 ac_status=$? 3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3485 test $ac_status = 0; }; then : 3486 gcc_no_link=no 3487 else 3488 gcc_no_link=yes 3489 fi 3490 if test x$gcc_no_link = xyes; then 3491 # Setting cross_compile will disable run tests; it will 3492 # also disable AC_CHECK_FILE but that's generally 3493 # correct if we can't link. 3494 cross_compiling=yes 3495 EXEEXT= 3496 else 3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3498 /* end confdefs.h. */ 3499 3500 int 3501 main () 3502 { 3503 3504 ; 3505 return 0; 3506 } 3507 _ACEOF 3508 ac_clean_files_save=$ac_clean_files 3509 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3510 # Try to create an executable without -o first, disregard a.out. 3511 # It will help us diagnose broken compilers, and finding out an intuition 3512 # of exeext. 3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3514 $as_echo_n "checking whether the C compiler works... " >&6; } 3515 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3516 3517 # The possible output files: 3518 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3519 3520 ac_rmfiles= 3521 for ac_file in $ac_files 3522 do 3523 case $ac_file in 3524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3525 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3526 esac 3527 done 3528 rm -f $ac_rmfiles 3529 3530 if { { ac_try="$ac_link_default" 3531 case "(($ac_try" in 3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3533 *) ac_try_echo=$ac_try;; 3534 esac 3535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3536 $as_echo "$ac_try_echo"; } >&5 3537 (eval "$ac_link_default") 2>&5 3538 ac_status=$? 3539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3540 test $ac_status = 0; }; then : 3541 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3542 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3543 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3544 # so that the user can short-circuit this test for compilers unknown to 3545 # Autoconf. 3546 for ac_file in $ac_files '' 3547 do 3548 test -f "$ac_file" || continue 3549 case $ac_file in 3550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3551 ;; 3552 [ab].out ) 3553 # We found the default executable, but exeext='' is most 3554 # certainly right. 3555 break;; 3556 *.* ) 3557 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3558 then :; else 3559 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3560 fi 3561 # We set ac_cv_exeext here because the later test for it is not 3562 # safe: cross compilers may not add the suffix if given an `-o' 3563 # argument, so we may need to know it at that point already. 3564 # Even if this section looks crufty: it has the advantage of 3565 # actually working. 3566 break;; 3567 * ) 3568 break;; 3569 esac 3570 done 3571 test "$ac_cv_exeext" = no && ac_cv_exeext= 3572 3573 else 3574 ac_file='' 3575 fi 3576 if test -z "$ac_file"; then : 3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3578 $as_echo "no" >&6; } 3579 $as_echo "$as_me: failed program was:" >&5 3580 sed 's/^/| /' conftest.$ac_ext >&5 3581 3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3584 as_fn_error 77 "C compiler cannot create executables 3585 See \`config.log' for more details" "$LINENO" 5; } 3586 else 3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3588 $as_echo "yes" >&6; } 3589 fi 3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3591 $as_echo_n "checking for C compiler default output file name... " >&6; } 3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3593 $as_echo "$ac_file" >&6; } 3594 ac_exeext=$ac_cv_exeext 3595 3596 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3597 ac_clean_files=$ac_clean_files_save 3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3599 $as_echo_n "checking for suffix of executables... " >&6; } 3600 if { { ac_try="$ac_link" 3601 case "(($ac_try" in 3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3603 *) ac_try_echo=$ac_try;; 3604 esac 3605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3606 $as_echo "$ac_try_echo"; } >&5 3607 (eval "$ac_link") 2>&5 3608 ac_status=$? 3609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3610 test $ac_status = 0; }; then : 3611 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3612 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3613 # work properly (i.e., refer to `conftest.exe'), while it won't with 3614 # `rm'. 3615 for ac_file in conftest.exe conftest conftest.*; do 3616 test -f "$ac_file" || continue 3617 case $ac_file in 3618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3619 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3620 break;; 3621 * ) break;; 3622 esac 3623 done 3624 else 3625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3627 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3628 See \`config.log' for more details" "$LINENO" 5; } 3629 fi 3630 rm -f conftest conftest$ac_cv_exeext 3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3632 $as_echo "$ac_cv_exeext" >&6; } 3633 3634 rm -f conftest.$ac_ext 3635 EXEEXT=$ac_cv_exeext 3636 ac_exeext=$EXEEXT 3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3638 /* end confdefs.h. */ 3639 #include <stdio.h> 3640 int 3641 main () 3642 { 3643 FILE *f = fopen ("conftest.out", "w"); 3644 return ferror (f) || fclose (f) != 0; 3645 3646 ; 3647 return 0; 3648 } 3649 _ACEOF 3650 ac_clean_files="$ac_clean_files conftest.out" 3651 # Check that the compiler produces executables we can run. If not, either 3652 # the compiler is broken, or we cross compile. 3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3654 $as_echo_n "checking whether we are cross compiling... " >&6; } 3655 if test "$cross_compiling" != yes; then 3656 { { ac_try="$ac_link" 3657 case "(($ac_try" in 3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3659 *) ac_try_echo=$ac_try;; 3660 esac 3661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3662 $as_echo "$ac_try_echo"; } >&5 3663 (eval "$ac_link") 2>&5 3664 ac_status=$? 3665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3666 test $ac_status = 0; } 3667 if { ac_try='./conftest$ac_cv_exeext' 3668 { { case "(($ac_try" in 3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3670 *) ac_try_echo=$ac_try;; 3671 esac 3672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3673 $as_echo "$ac_try_echo"; } >&5 3674 (eval "$ac_try") 2>&5 3675 ac_status=$? 3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3677 test $ac_status = 0; }; }; then 3678 cross_compiling=no 3679 else 3680 if test "$cross_compiling" = maybe; then 3681 cross_compiling=yes 3682 else 3683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3685 as_fn_error $? "cannot run C compiled programs. 3686 If you meant to cross compile, use \`--host'. 3687 See \`config.log' for more details" "$LINENO" 5; } 3688 fi 3689 fi 3690 fi 3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3692 $as_echo "$cross_compiling" >&6; } 3693 3694 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3695 ac_clean_files=$ac_clean_files_save 3696 fi 3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3698 $as_echo_n "checking for suffix of object files... " >&6; } 3699 if ${ac_cv_objext+:} false; then : 3700 $as_echo_n "(cached) " >&6 3701 else 3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3703 /* end confdefs.h. */ 3704 3705 int 3706 main () 3707 { 3708 3709 ; 3710 return 0; 3711 } 3712 _ACEOF 3713 rm -f conftest.o conftest.obj 3714 if { { ac_try="$ac_compile" 3715 case "(($ac_try" in 3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3717 *) ac_try_echo=$ac_try;; 3718 esac 3719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3720 $as_echo "$ac_try_echo"; } >&5 3721 (eval "$ac_compile") 2>&5 3722 ac_status=$? 3723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3724 test $ac_status = 0; }; then : 3725 for ac_file in conftest.o conftest.obj conftest.*; do 3726 test -f "$ac_file" || continue; 3727 case $ac_file in 3728 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3729 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3730 break;; 3731 esac 3732 done 3733 else 3734 $as_echo "$as_me: failed program was:" >&5 3735 sed 's/^/| /' conftest.$ac_ext >&5 3736 3737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3739 as_fn_error $? "cannot compute suffix of object files: cannot compile 3740 See \`config.log' for more details" "$LINENO" 5; } 3741 fi 3742 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3743 fi 3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3745 $as_echo "$ac_cv_objext" >&6; } 3746 OBJEXT=$ac_cv_objext 3747 ac_objext=$OBJEXT 3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3749 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3750 if ${ac_cv_c_compiler_gnu+:} false; then : 3751 $as_echo_n "(cached) " >&6 3752 else 3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3754 /* end confdefs.h. */ 3755 3756 int 3757 main () 3758 { 3759 #ifndef __GNUC__ 3760 choke me 3761 #endif 3762 3763 ; 3764 return 0; 3765 } 3766 _ACEOF 3767 if ac_fn_c_try_compile "$LINENO"; then : 3768 ac_compiler_gnu=yes 3769 else 3770 ac_compiler_gnu=no 3771 fi 3772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3773 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3774 3775 fi 3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3777 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3778 if test $ac_compiler_gnu = yes; then 3779 GCC=yes 3780 else 3781 GCC= 3782 fi 3783 ac_test_CFLAGS=${CFLAGS+set} 3784 ac_save_CFLAGS=$CFLAGS 3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3786 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3787 if ${ac_cv_prog_cc_g+:} false; then : 3788 $as_echo_n "(cached) " >&6 3789 else 3790 ac_save_c_werror_flag=$ac_c_werror_flag 3791 ac_c_werror_flag=yes 3792 ac_cv_prog_cc_g=no 3793 CFLAGS="-g" 3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3795 /* end confdefs.h. */ 3796 3797 int 3798 main () 3799 { 3800 3801 ; 3802 return 0; 3803 } 3804 _ACEOF 3805 if ac_fn_c_try_compile "$LINENO"; then : 3806 ac_cv_prog_cc_g=yes 3807 else 3808 CFLAGS="" 3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3810 /* end confdefs.h. */ 3811 3812 int 3813 main () 3814 { 3815 3816 ; 3817 return 0; 3818 } 3819 _ACEOF 3820 if ac_fn_c_try_compile "$LINENO"; then : 3821 3822 else 3823 ac_c_werror_flag=$ac_save_c_werror_flag 3824 CFLAGS="-g" 3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3826 /* end confdefs.h. */ 3827 3828 int 3829 main () 3830 { 3831 3832 ; 3833 return 0; 3834 } 3835 _ACEOF 3836 if ac_fn_c_try_compile "$LINENO"; then : 3837 ac_cv_prog_cc_g=yes 3838 fi 3839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3840 fi 3841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3842 fi 3843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3844 ac_c_werror_flag=$ac_save_c_werror_flag 3845 fi 3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3847 $as_echo "$ac_cv_prog_cc_g" >&6; } 3848 if test "$ac_test_CFLAGS" = set; then 3849 CFLAGS=$ac_save_CFLAGS 3850 elif test $ac_cv_prog_cc_g = yes; then 3851 if test "$GCC" = yes; then 3852 CFLAGS="-g -O2" 3853 else 3854 CFLAGS="-g" 3855 fi 3856 else 3857 if test "$GCC" = yes; then 3858 CFLAGS="-O2" 3859 else 3860 CFLAGS= 3861 fi 3862 fi 3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3864 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3865 if ${ac_cv_prog_cc_c89+:} false; then : 3866 $as_echo_n "(cached) " >&6 3867 else 3868 ac_cv_prog_cc_c89=no 3869 ac_save_CC=$CC 3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3871 /* end confdefs.h. */ 3872 #include <stdarg.h> 3873 #include <stdio.h> 3874 struct stat; 3875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3876 struct buf { int x; }; 3877 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3878 static char *e (p, i) 3879 char **p; 3880 int i; 3881 { 3882 return p[i]; 3883 } 3884 static char *f (char * (*g) (char **, int), char **p, ...) 3885 { 3886 char *s; 3887 va_list v; 3888 va_start (v,p); 3889 s = g (p, va_arg (v,int)); 3890 va_end (v); 3891 return s; 3892 } 3893 3894 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3895 function prototypes and stuff, but not '\xHH' hex character constants. 3896 These don't provoke an error unfortunately, instead are silently treated 3897 as 'x'. The following induces an error, until -std is added to get 3898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3899 array size at least. It's necessary to write '\x00'==0 to get something 3900 that's true only with -std. */ 3901 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3902 3903 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3904 inside strings and character constants. */ 3905 #define FOO(x) 'x' 3906 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3907 3908 int test (int i, double x); 3909 struct s1 {int (*f) (int a);}; 3910 struct s2 {int (*f) (double a);}; 3911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3912 int argc; 3913 char **argv; 3914 int 3915 main () 3916 { 3917 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3918 ; 3919 return 0; 3920 } 3921 _ACEOF 3922 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3923 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3924 do 3925 CC="$ac_save_CC $ac_arg" 3926 if ac_fn_c_try_compile "$LINENO"; then : 3927 ac_cv_prog_cc_c89=$ac_arg 3928 fi 3929 rm -f core conftest.err conftest.$ac_objext 3930 test "x$ac_cv_prog_cc_c89" != "xno" && break 3931 done 3932 rm -f conftest.$ac_ext 3933 CC=$ac_save_CC 3934 3935 fi 3936 # AC_CACHE_VAL 3937 case "x$ac_cv_prog_cc_c89" in 3938 x) 3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3940 $as_echo "none needed" >&6; } ;; 3941 xno) 3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3943 $as_echo "unsupported" >&6; } ;; 3944 *) 3945 CC="$CC $ac_cv_prog_cc_c89" 3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3947 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3948 esac 3949 if test "x$ac_cv_prog_cc_c89" != xno; then : 3950 3951 fi 3952 3953 ac_ext=c 3954 ac_cpp='$CPP $CPPFLAGS' 3955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3957 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3958 3959 ac_ext=c 3960 ac_cpp='$CPP $CPPFLAGS' 3961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3963 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3965 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3966 if ${am_cv_prog_cc_c_o+:} false; then : 3967 $as_echo_n "(cached) " >&6 3968 else 3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3970 /* end confdefs.h. */ 3971 3972 int 3973 main () 3974 { 3975 3976 ; 3977 return 0; 3978 } 3979 _ACEOF 3980 # Make sure it works both with $CC and with simple cc. 3981 # Following AC_PROG_CC_C_O, we do the test twice because some 3982 # compilers refuse to overwrite an existing .o file with -o, 3983 # though they will create one. 3984 am_cv_prog_cc_c_o=yes 3985 for am_i in 1 2; do 3986 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3987 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3988 ac_status=$? 3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3990 (exit $ac_status); } \ 3991 && test -f conftest2.$ac_objext; then 3992 : OK 3993 else 3994 am_cv_prog_cc_c_o=no 3995 break 3996 fi 3997 done 3998 rm -f core conftest* 3999 unset am_i 4000 fi 4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4002 $as_echo "$am_cv_prog_cc_c_o" >&6; } 4003 if test "$am_cv_prog_cc_c_o" != yes; then 4004 # Losing compiler, so override with the script. 4005 # FIXME: It is wrong to rewrite CC. 4006 # But if we don't then we get into trouble of one sort or another. 4007 # A longer-term fix would be to have automake use am__CC in this case, 4008 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4009 CC="$am_aux_dir/compile $CC" 4010 fi 4011 ac_ext=c 4012 ac_cpp='$CPP $CPPFLAGS' 4013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4015 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4016 4017 4018 depcc="$CC" am_compiler_list= 4019 4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4021 $as_echo_n "checking dependency style of $depcc... " >&6; } 4022 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4023 $as_echo_n "(cached) " >&6 4024 else 4025 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4026 # We make a subdir and do the tests there. Otherwise we can end up 4027 # making bogus files that we don't know about and never remove. For 4028 # instance it was reported that on HP-UX the gcc test will end up 4029 # making a dummy file named 'D' -- because '-MD' means "put the output 4030 # in D". 4031 rm -rf conftest.dir 4032 mkdir conftest.dir 4033 # Copy depcomp to subdir because otherwise we won't find it if we're 4034 # using a relative directory. 4035 cp "$am_depcomp" conftest.dir 4036 cd conftest.dir 4037 # We will build objects and dependencies in a subdirectory because 4038 # it helps to detect inapplicable dependency modes. For instance 4039 # both Tru64's cc and ICC support -MD to output dependencies as a 4040 # side effect of compilation, but ICC will put the dependencies in 4041 # the current directory while Tru64 will put them in the object 4042 # directory. 4043 mkdir sub 4044 4045 am_cv_CC_dependencies_compiler_type=none 4046 if test "$am_compiler_list" = ""; then 4047 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4048 fi 4049 am__universal=false 4050 case " $depcc " in #( 4051 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4052 esac 4053 4054 for depmode in $am_compiler_list; do 4055 # Setup a source with many dependencies, because some compilers 4056 # like to wrap large dependency lists on column 80 (with \), and 4057 # we should not choose a depcomp mode which is confused by this. 4058 # 4059 # We need to recreate these files for each test, as the compiler may 4060 # overwrite some of them when testing with obscure command lines. 4061 # This happens at least with the AIX C compiler. 4062 : > sub/conftest.c 4063 for i in 1 2 3 4 5 6; do 4064 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4065 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4066 # Solaris 10 /bin/sh. 4067 echo '/* dummy */' > sub/conftst$i.h 4068 done 4069 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4070 4071 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4072 # mode. It turns out that the SunPro C++ compiler does not properly 4073 # handle '-M -o', and we need to detect this. Also, some Intel 4074 # versions had trouble with output in subdirs. 4075 am__obj=sub/conftest.${OBJEXT-o} 4076 am__minus_obj="-o $am__obj" 4077 case $depmode in 4078 gcc) 4079 # This depmode causes a compiler race in universal mode. 4080 test "$am__universal" = false || continue 4081 ;; 4082 nosideeffect) 4083 # After this tag, mechanisms are not by side-effect, so they'll 4084 # only be used when explicitly requested. 4085 if test "x$enable_dependency_tracking" = xyes; then 4086 continue 4087 else 4088 break 4089 fi 4090 ;; 4091 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4092 # This compiler won't grok '-c -o', but also, the minuso test has 4093 # not run yet. These depmodes are late enough in the game, and 4094 # so weak that their functioning should not be impacted. 4095 am__obj=conftest.${OBJEXT-o} 4096 am__minus_obj= 4097 ;; 4098 none) break ;; 4099 esac 4100 if depmode=$depmode \ 4101 source=sub/conftest.c object=$am__obj \ 4102 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4103 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4104 >/dev/null 2>conftest.err && 4105 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4106 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4107 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4108 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4109 # icc doesn't choke on unknown options, it will just issue warnings 4110 # or remarks (even with -Werror). So we grep stderr for any message 4111 # that says an option was ignored or not supported. 4112 # When given -MP, icc 7.0 and 7.1 complain thusly: 4113 # icc: Command line warning: ignoring option '-M'; no argument required 4114 # The diagnosis changed in icc 8.0: 4115 # icc: Command line remark: option '-MP' not supported 4116 if (grep 'ignoring option' conftest.err || 4117 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4118 am_cv_CC_dependencies_compiler_type=$depmode 4119 break 4120 fi 4121 fi 4122 done 4123 4124 cd .. 4125 rm -rf conftest.dir 4126 else 4127 am_cv_CC_dependencies_compiler_type=none 4128 fi 4129 4130 fi 4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4132 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4133 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4134 4135 if 4136 test "x$enable_dependency_tracking" != xno \ 4137 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4138 am__fastdepCC_TRUE= 4139 am__fastdepCC_FALSE='#' 4140 else 4141 am__fastdepCC_TRUE='#' 4142 am__fastdepCC_FALSE= 4143 fi 4144 4145 4146 4147 ac_ext=c 4148 ac_cpp='$CPP $CPPFLAGS' 4149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4151 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4153 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4154 # On Suns, sometimes $CPP names a directory. 4155 if test -n "$CPP" && test -d "$CPP"; then 4156 CPP= 4157 fi 4158 if test -z "$CPP"; then 4159 if ${ac_cv_prog_CPP+:} false; then : 4160 $as_echo_n "(cached) " >&6 4161 else 4162 # Double quotes because CPP needs to be expanded 4163 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4164 do 4165 ac_preproc_ok=false 4166 for ac_c_preproc_warn_flag in '' yes 4167 do 4168 # Use a header file that comes with gcc, so configuring glibc 4169 # with a fresh cross-compiler works. 4170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4171 # <limits.h> exists even on freestanding compilers. 4172 # On the NeXT, cc -E runs the code through the compiler's parser, 4173 # not just through cpp. "Syntax error" is here to catch this case. 4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4175 /* end confdefs.h. */ 4176 #ifdef __STDC__ 4177 # include <limits.h> 4178 #else 4179 # include <assert.h> 4180 #endif 4181 Syntax error 4182 _ACEOF 4183 if ac_fn_c_try_cpp "$LINENO"; then : 4184 4185 else 4186 # Broken: fails on valid input. 4187 continue 4188 fi 4189 rm -f conftest.err conftest.i conftest.$ac_ext 4190 4191 # OK, works on sane cases. Now check whether nonexistent headers 4192 # can be detected and how. 4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4194 /* end confdefs.h. */ 4195 #include <ac_nonexistent.h> 4196 _ACEOF 4197 if ac_fn_c_try_cpp "$LINENO"; then : 4198 # Broken: success on invalid input. 4199 continue 4200 else 4201 # Passes both tests. 4202 ac_preproc_ok=: 4203 break 4204 fi 4205 rm -f conftest.err conftest.i conftest.$ac_ext 4206 4207 done 4208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4209 rm -f conftest.i conftest.err conftest.$ac_ext 4210 if $ac_preproc_ok; then : 4211 break 4212 fi 4213 4214 done 4215 ac_cv_prog_CPP=$CPP 4216 4217 fi 4218 CPP=$ac_cv_prog_CPP 4219 else 4220 ac_cv_prog_CPP=$CPP 4221 fi 4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4223 $as_echo "$CPP" >&6; } 4224 ac_preproc_ok=false 4225 for ac_c_preproc_warn_flag in '' yes 4226 do 4227 # Use a header file that comes with gcc, so configuring glibc 4228 # with a fresh cross-compiler works. 4229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4230 # <limits.h> exists even on freestanding compilers. 4231 # On the NeXT, cc -E runs the code through the compiler's parser, 4232 # not just through cpp. "Syntax error" is here to catch this case. 4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4234 /* end confdefs.h. */ 4235 #ifdef __STDC__ 4236 # include <limits.h> 4237 #else 4238 # include <assert.h> 4239 #endif 4240 Syntax error 4241 _ACEOF 4242 if ac_fn_c_try_cpp "$LINENO"; then : 4243 4244 else 4245 # Broken: fails on valid input. 4246 continue 4247 fi 4248 rm -f conftest.err conftest.i conftest.$ac_ext 4249 4250 # OK, works on sane cases. Now check whether nonexistent headers 4251 # can be detected and how. 4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4253 /* end confdefs.h. */ 4254 #include <ac_nonexistent.h> 4255 _ACEOF 4256 if ac_fn_c_try_cpp "$LINENO"; then : 4257 # Broken: success on invalid input. 4258 continue 4259 else 4260 # Passes both tests. 4261 ac_preproc_ok=: 4262 break 4263 fi 4264 rm -f conftest.err conftest.i conftest.$ac_ext 4265 4266 done 4267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4268 rm -f conftest.i conftest.err conftest.$ac_ext 4269 if $ac_preproc_ok; then : 4270 4271 else 4272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4274 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4275 See \`config.log' for more details" "$LINENO" 5; } 4276 fi 4277 4278 ac_ext=c 4279 ac_cpp='$CPP $CPPFLAGS' 4280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4282 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4283 4284 4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4286 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4287 if ${ac_cv_path_GREP+:} false; then : 4288 $as_echo_n "(cached) " >&6 4289 else 4290 if test -z "$GREP"; then 4291 ac_path_GREP_found=false 4292 # Loop through the user's path and test for each of PROGNAME-LIST 4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4295 do 4296 IFS=$as_save_IFS 4297 test -z "$as_dir" && as_dir=. 4298 for ac_prog in grep ggrep; do 4299 for ac_exec_ext in '' $ac_executable_extensions; do 4300 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4301 as_fn_executable_p "$ac_path_GREP" || continue 4302 # Check for GNU ac_path_GREP and select it if it is found. 4303 # Check for GNU $ac_path_GREP 4304 case `"$ac_path_GREP" --version 2>&1` in 4305 *GNU*) 4306 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4307 *) 4308 ac_count=0 4309 $as_echo_n 0123456789 >"conftest.in" 4310 while : 4311 do 4312 cat "conftest.in" "conftest.in" >"conftest.tmp" 4313 mv "conftest.tmp" "conftest.in" 4314 cp "conftest.in" "conftest.nl" 4315 $as_echo 'GREP' >> "conftest.nl" 4316 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4318 as_fn_arith $ac_count + 1 && ac_count=$as_val 4319 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4320 # Best one so far, save it but keep looking for a better one 4321 ac_cv_path_GREP="$ac_path_GREP" 4322 ac_path_GREP_max=$ac_count 4323 fi 4324 # 10*(2^10) chars as input seems more than enough 4325 test $ac_count -gt 10 && break 4326 done 4327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4328 esac 4329 4330 $ac_path_GREP_found && break 3 4331 done 4332 done 4333 done 4334 IFS=$as_save_IFS 4335 if test -z "$ac_cv_path_GREP"; then 4336 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4337 fi 4338 else 4339 ac_cv_path_GREP=$GREP 4340 fi 4341 4342 fi 4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4344 $as_echo "$ac_cv_path_GREP" >&6; } 4345 GREP="$ac_cv_path_GREP" 4346 4347 4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4349 $as_echo_n "checking for egrep... " >&6; } 4350 if ${ac_cv_path_EGREP+:} false; then : 4351 $as_echo_n "(cached) " >&6 4352 else 4353 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4354 then ac_cv_path_EGREP="$GREP -E" 4355 else 4356 if test -z "$EGREP"; then 4357 ac_path_EGREP_found=false 4358 # Loop through the user's path and test for each of PROGNAME-LIST 4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4360 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4361 do 4362 IFS=$as_save_IFS 4363 test -z "$as_dir" && as_dir=. 4364 for ac_prog in egrep; do 4365 for ac_exec_ext in '' $ac_executable_extensions; do 4366 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4367 as_fn_executable_p "$ac_path_EGREP" || continue 4368 # Check for GNU ac_path_EGREP and select it if it is found. 4369 # Check for GNU $ac_path_EGREP 4370 case `"$ac_path_EGREP" --version 2>&1` in 4371 *GNU*) 4372 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4373 *) 4374 ac_count=0 4375 $as_echo_n 0123456789 >"conftest.in" 4376 while : 4377 do 4378 cat "conftest.in" "conftest.in" >"conftest.tmp" 4379 mv "conftest.tmp" "conftest.in" 4380 cp "conftest.in" "conftest.nl" 4381 $as_echo 'EGREP' >> "conftest.nl" 4382 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4384 as_fn_arith $ac_count + 1 && ac_count=$as_val 4385 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4386 # Best one so far, save it but keep looking for a better one 4387 ac_cv_path_EGREP="$ac_path_EGREP" 4388 ac_path_EGREP_max=$ac_count 4389 fi 4390 # 10*(2^10) chars as input seems more than enough 4391 test $ac_count -gt 10 && break 4392 done 4393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4394 esac 4395 4396 $ac_path_EGREP_found && break 3 4397 done 4398 done 4399 done 4400 IFS=$as_save_IFS 4401 if test -z "$ac_cv_path_EGREP"; then 4402 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4403 fi 4404 else 4405 ac_cv_path_EGREP=$EGREP 4406 fi 4407 4408 fi 4409 fi 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4411 $as_echo "$ac_cv_path_EGREP" >&6; } 4412 EGREP="$ac_cv_path_EGREP" 4413 4414 4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4416 $as_echo_n "checking for ANSI C header files... " >&6; } 4417 if ${ac_cv_header_stdc+:} false; then : 4418 $as_echo_n "(cached) " >&6 4419 else 4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4421 /* end confdefs.h. */ 4422 #include <stdlib.h> 4423 #include <stdarg.h> 4424 #include <string.h> 4425 #include <float.h> 4426 4427 int 4428 main () 4429 { 4430 4431 ; 4432 return 0; 4433 } 4434 _ACEOF 4435 if ac_fn_c_try_compile "$LINENO"; then : 4436 ac_cv_header_stdc=yes 4437 else 4438 ac_cv_header_stdc=no 4439 fi 4440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4441 4442 if test $ac_cv_header_stdc = yes; then 4443 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4445 /* end confdefs.h. */ 4446 #include <string.h> 4447 4448 _ACEOF 4449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4450 $EGREP "memchr" >/dev/null 2>&1; then : 4451 4452 else 4453 ac_cv_header_stdc=no 4454 fi 4455 rm -f conftest* 4456 4457 fi 4458 4459 if test $ac_cv_header_stdc = yes; then 4460 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4462 /* end confdefs.h. */ 4463 #include <stdlib.h> 4464 4465 _ACEOF 4466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4467 $EGREP "free" >/dev/null 2>&1; then : 4468 4469 else 4470 ac_cv_header_stdc=no 4471 fi 4472 rm -f conftest* 4473 4474 fi 4475 4476 if test $ac_cv_header_stdc = yes; then 4477 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4478 if test "$cross_compiling" = yes; then : 4479 : 4480 else 4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4482 /* end confdefs.h. */ 4483 #include <ctype.h> 4484 #include <stdlib.h> 4485 #if ((' ' & 0x0FF) == 0x020) 4486 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4487 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4488 #else 4489 # define ISLOWER(c) \ 4490 (('a' <= (c) && (c) <= 'i') \ 4491 || ('j' <= (c) && (c) <= 'r') \ 4492 || ('s' <= (c) && (c) <= 'z')) 4493 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4494 #endif 4495 4496 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4497 int 4498 main () 4499 { 4500 int i; 4501 for (i = 0; i < 256; i++) 4502 if (XOR (islower (i), ISLOWER (i)) 4503 || toupper (i) != TOUPPER (i)) 4504 return 2; 4505 return 0; 4506 } 4507 _ACEOF 4508 if ac_fn_c_try_run "$LINENO"; then : 4509 4510 else 4511 ac_cv_header_stdc=no 4512 fi 4513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4514 conftest.$ac_objext conftest.beam conftest.$ac_ext 4515 fi 4516 4517 fi 4518 fi 4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4520 $as_echo "$ac_cv_header_stdc" >&6; } 4521 if test $ac_cv_header_stdc = yes; then 4522 4523 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4524 4525 fi 4526 4527 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4528 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4529 inttypes.h stdint.h unistd.h 4530 do : 4531 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4532 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4533 " 4534 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4535 cat >>confdefs.h <<_ACEOF 4536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4537 _ACEOF 4538 4539 fi 4540 4541 done 4542 4543 4544 4545 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4546 if test "x$ac_cv_header_minix_config_h" = xyes; then : 4547 MINIX=yes 4548 else 4549 MINIX= 4550 fi 4551 4552 4553 if test "$MINIX" = yes; then 4554 4555 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4556 4557 4558 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4559 4560 4561 $as_echo "#define _MINIX 1" >>confdefs.h 4562 4563 fi 4564 4565 4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4567 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4568 if ${ac_cv_safe_to_define___extensions__+:} false; then : 4569 $as_echo_n "(cached) " >&6 4570 else 4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4572 /* end confdefs.h. */ 4573 4574 # define __EXTENSIONS__ 1 4575 $ac_includes_default 4576 int 4577 main () 4578 { 4579 4580 ; 4581 return 0; 4582 } 4583 _ACEOF 4584 if ac_fn_c_try_compile "$LINENO"; then : 4585 ac_cv_safe_to_define___extensions__=yes 4586 else 4587 ac_cv_safe_to_define___extensions__=no 4588 fi 4589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4590 fi 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4592 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4593 test $ac_cv_safe_to_define___extensions__ = yes && 4594 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4595 4596 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4597 4598 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4599 4600 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4601 4602 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4603 4604 4605 4606 # See if makeinfo has been installed and is modern enough 4607 # that we can use it. 4608 4609 # Extract the first word of "makeinfo", so it can be a program name with args. 4610 set dummy makeinfo; ac_word=$2 4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4612 $as_echo_n "checking for $ac_word... " >&6; } 4613 if ${ac_cv_prog_MAKEINFO+:} false; then : 4614 $as_echo_n "(cached) " >&6 4615 else 4616 if test -n "$MAKEINFO"; then 4617 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 4618 else 4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4620 for as_dir in $PATH 4621 do 4622 IFS=$as_save_IFS 4623 test -z "$as_dir" && as_dir=. 4624 for ac_exec_ext in '' $ac_executable_extensions; do 4625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4626 ac_cv_prog_MAKEINFO="makeinfo" 4627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4628 break 2 4629 fi 4630 done 4631 done 4632 IFS=$as_save_IFS 4633 4634 fi 4635 fi 4636 MAKEINFO=$ac_cv_prog_MAKEINFO 4637 if test -n "$MAKEINFO"; then 4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 4639 $as_echo "$MAKEINFO" >&6; } 4640 else 4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4642 $as_echo "no" >&6; } 4643 fi 4644 4645 4646 if test -n "$MAKEINFO"; then 4647 # Found it, now check the version. 4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5 4649 $as_echo_n "checking for modern makeinfo... " >&6; } 4650 if ${gcc_cv_prog_makeinfo_modern+:} false; then : 4651 $as_echo_n "(cached) " >&6 4652 else 4653 ac_prog_version=`eval $MAKEINFO --version 2>&1 | 4654 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` 4655 4656 case $ac_prog_version in 4657 '') gcc_cv_prog_makeinfo_modern=no;; 4658 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;; 4659 *) gcc_cv_prog_makeinfo_modern=no;; 4660 esac 4661 4662 fi 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5 4664 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; } 4665 else 4666 gcc_cv_prog_makeinfo_modern=no 4667 fi 4668 if test $gcc_cv_prog_makeinfo_modern = no; then 4669 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo" 4670 fi 4671 4672 if test $gcc_cv_prog_makeinfo_modern = "yes"; then 4673 BUILD_INFO_TRUE= 4674 BUILD_INFO_FALSE='#' 4675 else 4676 BUILD_INFO_TRUE='#' 4677 BUILD_INFO_FALSE= 4678 fi 4679 4680 4681 4682 4683 # Check whether --with-bugurl was given. 4684 if test "${with_bugurl+set}" = set; then : 4685 withval=$with_bugurl; case "$withval" in 4686 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; 4687 no) BUGURL= 4688 ;; 4689 *) BUGURL="$withval" 4690 ;; 4691 esac 4692 else 4693 BUGURL="https://gcc.gnu.org/bugs/" 4694 4695 fi 4696 4697 case ${BUGURL} in 4698 "") 4699 REPORT_BUGS_TO= 4700 REPORT_BUGS_TEXI= 4701 ;; 4702 *) 4703 REPORT_BUGS_TO="<$BUGURL>" 4704 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} 4705 ;; 4706 esac; 4707 4708 4709 4710 4711 # Configure libtool 4712 case `pwd` in 4713 *\ * | *\ *) 4714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4715 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4716 esac 4717 4718 4719 4720 macro_version='2.2.7a' 4721 macro_revision='1.3134' 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 ltmain="$ac_aux_dir/ltmain.sh" 4736 4737 # Backslashify metacharacters that are still active within 4738 # double-quoted strings. 4739 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4740 4741 # Same as above, but do not quote variable references. 4742 double_quote_subst='s/\(["`\\]\)/\\\1/g' 4743 4744 # Sed substitution to delay expansion of an escaped shell variable in a 4745 # double_quote_subst'ed string. 4746 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4747 4748 # Sed substitution to delay expansion of an escaped single quote. 4749 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4750 4751 # Sed substitution to avoid accidental globbing in evaled expressions 4752 no_glob_subst='s/\*/\\\*/g' 4753 4754 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4755 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4756 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4757 4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4759 $as_echo_n "checking how to print strings... " >&6; } 4760 # Test print first, because it will be a builtin if present. 4761 if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4762 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4763 ECHO='print -r --' 4764 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4765 ECHO='printf %s\n' 4766 else 4767 # Use this function as a fallback that always works. 4768 func_fallback_echo () 4769 { 4770 eval 'cat <<_LTECHO_EOF 4771 $1 4772 _LTECHO_EOF' 4773 } 4774 ECHO='func_fallback_echo' 4775 fi 4776 4777 # func_echo_all arg... 4778 # Invoke $ECHO with all args, space-separated. 4779 func_echo_all () 4780 { 4781 $ECHO "" 4782 } 4783 4784 case "$ECHO" in 4785 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4786 $as_echo "printf" >&6; } ;; 4787 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4788 $as_echo "print -r" >&6; } ;; 4789 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4790 $as_echo "cat" >&6; } ;; 4791 esac 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4807 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4808 if ${ac_cv_path_SED+:} false; then : 4809 $as_echo_n "(cached) " >&6 4810 else 4811 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4812 for ac_i in 1 2 3 4 5 6 7; do 4813 ac_script="$ac_script$as_nl$ac_script" 4814 done 4815 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4816 { ac_script=; unset ac_script;} 4817 if test -z "$SED"; then 4818 ac_path_SED_found=false 4819 # Loop through the user's path and test for each of PROGNAME-LIST 4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4821 for as_dir in $PATH 4822 do 4823 IFS=$as_save_IFS 4824 test -z "$as_dir" && as_dir=. 4825 for ac_prog in sed gsed; do 4826 for ac_exec_ext in '' $ac_executable_extensions; do 4827 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4828 as_fn_executable_p "$ac_path_SED" || continue 4829 # Check for GNU ac_path_SED and select it if it is found. 4830 # Check for GNU $ac_path_SED 4831 case `"$ac_path_SED" --version 2>&1` in 4832 *GNU*) 4833 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4834 *) 4835 ac_count=0 4836 $as_echo_n 0123456789 >"conftest.in" 4837 while : 4838 do 4839 cat "conftest.in" "conftest.in" >"conftest.tmp" 4840 mv "conftest.tmp" "conftest.in" 4841 cp "conftest.in" "conftest.nl" 4842 $as_echo '' >> "conftest.nl" 4843 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4844 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4845 as_fn_arith $ac_count + 1 && ac_count=$as_val 4846 if test $ac_count -gt ${ac_path_SED_max-0}; then 4847 # Best one so far, save it but keep looking for a better one 4848 ac_cv_path_SED="$ac_path_SED" 4849 ac_path_SED_max=$ac_count 4850 fi 4851 # 10*(2^10) chars as input seems more than enough 4852 test $ac_count -gt 10 && break 4853 done 4854 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4855 esac 4856 4857 $ac_path_SED_found && break 3 4858 done 4859 done 4860 done 4861 IFS=$as_save_IFS 4862 if test -z "$ac_cv_path_SED"; then 4863 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4864 fi 4865 else 4866 ac_cv_path_SED=$SED 4867 fi 4868 4869 fi 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4871 $as_echo "$ac_cv_path_SED" >&6; } 4872 SED="$ac_cv_path_SED" 4873 rm -f conftest.sed 4874 4875 test -z "$SED" && SED=sed 4876 Xsed="$SED -e 1s/^X//" 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4889 $as_echo_n "checking for fgrep... " >&6; } 4890 if ${ac_cv_path_FGREP+:} false; then : 4891 $as_echo_n "(cached) " >&6 4892 else 4893 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4894 then ac_cv_path_FGREP="$GREP -F" 4895 else 4896 if test -z "$FGREP"; then 4897 ac_path_FGREP_found=false 4898 # Loop through the user's path and test for each of PROGNAME-LIST 4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4900 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4901 do 4902 IFS=$as_save_IFS 4903 test -z "$as_dir" && as_dir=. 4904 for ac_prog in fgrep; do 4905 for ac_exec_ext in '' $ac_executable_extensions; do 4906 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4907 as_fn_executable_p "$ac_path_FGREP" || continue 4908 # Check for GNU ac_path_FGREP and select it if it is found. 4909 # Check for GNU $ac_path_FGREP 4910 case `"$ac_path_FGREP" --version 2>&1` in 4911 *GNU*) 4912 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4913 *) 4914 ac_count=0 4915 $as_echo_n 0123456789 >"conftest.in" 4916 while : 4917 do 4918 cat "conftest.in" "conftest.in" >"conftest.tmp" 4919 mv "conftest.tmp" "conftest.in" 4920 cp "conftest.in" "conftest.nl" 4921 $as_echo 'FGREP' >> "conftest.nl" 4922 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4923 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4924 as_fn_arith $ac_count + 1 && ac_count=$as_val 4925 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4926 # Best one so far, save it but keep looking for a better one 4927 ac_cv_path_FGREP="$ac_path_FGREP" 4928 ac_path_FGREP_max=$ac_count 4929 fi 4930 # 10*(2^10) chars as input seems more than enough 4931 test $ac_count -gt 10 && break 4932 done 4933 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4934 esac 4935 4936 $ac_path_FGREP_found && break 3 4937 done 4938 done 4939 done 4940 IFS=$as_save_IFS 4941 if test -z "$ac_cv_path_FGREP"; then 4942 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4943 fi 4944 else 4945 ac_cv_path_FGREP=$FGREP 4946 fi 4947 4948 fi 4949 fi 4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4951 $as_echo "$ac_cv_path_FGREP" >&6; } 4952 FGREP="$ac_cv_path_FGREP" 4953 4954 4955 test -z "$GREP" && GREP=grep 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 # Check whether --with-gnu-ld was given. 4976 if test "${with_gnu_ld+set}" = set; then : 4977 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4978 else 4979 with_gnu_ld=no 4980 fi 4981 4982 ac_prog=ld 4983 if test "$GCC" = yes; then 4984 # Check if gcc -print-prog-name=ld gives a path. 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4986 $as_echo_n "checking for ld used by $CC... " >&6; } 4987 case $host in 4988 *-*-mingw*) 4989 # gcc leaves a trailing carriage return which upsets mingw 4990 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4991 *) 4992 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4993 esac 4994 case $ac_prog in 4995 # Accept absolute paths. 4996 [\\/]* | ?:[\\/]*) 4997 re_direlt='/[^/][^/]*/\.\./' 4998 # Canonicalize the pathname of ld 4999 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5000 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5001 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5002 done 5003 test -z "$LD" && LD="$ac_prog" 5004 ;; 5005 "") 5006 # If it fails, then pretend we aren't using GCC. 5007 ac_prog=ld 5008 ;; 5009 *) 5010 # If it is relative, then search for the first ld in PATH. 5011 with_gnu_ld=unknown 5012 ;; 5013 esac 5014 elif test "$with_gnu_ld" = yes; then 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5016 $as_echo_n "checking for GNU ld... " >&6; } 5017 else 5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5019 $as_echo_n "checking for non-GNU ld... " >&6; } 5020 fi 5021 if ${lt_cv_path_LD+:} false; then : 5022 $as_echo_n "(cached) " >&6 5023 else 5024 if test -z "$LD"; then 5025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5026 for ac_dir in $PATH; do 5027 IFS="$lt_save_ifs" 5028 test -z "$ac_dir" && ac_dir=. 5029 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5030 lt_cv_path_LD="$ac_dir/$ac_prog" 5031 # Check to see if the program is GNU ld. I'd rather use --version, 5032 # but apparently some variants of GNU ld only accept -v. 5033 # Break only if it was the GNU/non-GNU ld that we prefer. 5034 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5035 *GNU* | *'with BFD'*) 5036 test "$with_gnu_ld" != no && break 5037 ;; 5038 *) 5039 test "$with_gnu_ld" != yes && break 5040 ;; 5041 esac 5042 fi 5043 done 5044 IFS="$lt_save_ifs" 5045 else 5046 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5047 fi 5048 fi 5049 5050 LD="$lt_cv_path_LD" 5051 if test -n "$LD"; then 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5053 $as_echo "$LD" >&6; } 5054 else 5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5056 $as_echo "no" >&6; } 5057 fi 5058 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5060 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5061 if ${lt_cv_prog_gnu_ld+:} false; then : 5062 $as_echo_n "(cached) " >&6 5063 else 5064 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5065 case `$LD -v 2>&1 </dev/null` in 5066 *GNU* | *'with BFD'*) 5067 lt_cv_prog_gnu_ld=yes 5068 ;; 5069 *) 5070 lt_cv_prog_gnu_ld=no 5071 ;; 5072 esac 5073 fi 5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5075 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 5076 with_gnu_ld=$lt_cv_prog_gnu_ld 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5087 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5088 if ${lt_cv_path_NM+:} false; then : 5089 $as_echo_n "(cached) " >&6 5090 else 5091 if test -n "$NM"; then 5092 # Let the user override the nm to test. 5093 lt_nm_to_check="$NM" 5094 else 5095 lt_nm_to_check="${ac_tool_prefix}nm" 5096 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5097 lt_nm_to_check="$lt_nm_to_check nm" 5098 fi 5099 fi 5100 for lt_tmp_nm in "$lt_nm_to_check"; do 5101 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5102 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5103 IFS="$lt_save_ifs" 5104 test -z "$ac_dir" && ac_dir=. 5105 # Strip out any user-provided options from the nm to test twice, 5106 # the first time to test to see if nm (rather than its options) has 5107 # an explicit path, the second time to yield a file which can be 5108 # nm'ed itself. 5109 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" 5110 case "$tmp_nm_path" in 5111 */*|*\\*) tmp_nm="$lt_tmp_nm";; 5112 *) tmp_nm="$ac_dir/$lt_tmp_nm";; 5113 esac 5114 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" 5115 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then 5116 # Check to see if the nm accepts a BSD-compat flag. 5117 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5118 # nm: unknown option "B" ignored 5119 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 5120 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" 5121 break 5122 ;; 5123 *) 5124 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 5125 *$tmp_nm*) 5126 lt_cv_path_NM="$tmp_nm -p" 5127 break 5128 ;; 5129 *) 5130 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5131 continue # so that we can try to find one that supports BSD flags 5132 ;; 5133 esac 5134 ;; 5135 esac 5136 fi 5137 done 5138 IFS="$lt_save_ifs" 5139 done 5140 : ${lt_cv_path_NM=no} 5141 fi 5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5143 $as_echo "$lt_cv_path_NM" >&6; } 5144 if test "$lt_cv_path_NM" != "no"; then 5145 NM="$lt_cv_path_NM" 5146 else 5147 # Didn't find any BSD compatible name lister, look for dumpbin. 5148 if test -n "$DUMPBIN"; then : 5149 # Let the user override the test. 5150 else 5151 if test -n "$ac_tool_prefix"; then 5152 for ac_prog in dumpbin "link -dump" 5153 do 5154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5157 $as_echo_n "checking for $ac_word... " >&6; } 5158 if ${ac_cv_prog_DUMPBIN+:} false; then : 5159 $as_echo_n "(cached) " >&6 5160 else 5161 if test -n "$DUMPBIN"; then 5162 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5163 else 5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5165 for as_dir in $PATH 5166 do 5167 IFS=$as_save_IFS 5168 test -z "$as_dir" && as_dir=. 5169 for ac_exec_ext in '' $ac_executable_extensions; do 5170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5171 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5173 break 2 5174 fi 5175 done 5176 done 5177 IFS=$as_save_IFS 5178 5179 fi 5180 fi 5181 DUMPBIN=$ac_cv_prog_DUMPBIN 5182 if test -n "$DUMPBIN"; then 5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5184 $as_echo "$DUMPBIN" >&6; } 5185 else 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5187 $as_echo "no" >&6; } 5188 fi 5189 5190 5191 test -n "$DUMPBIN" && break 5192 done 5193 fi 5194 if test -z "$DUMPBIN"; then 5195 ac_ct_DUMPBIN=$DUMPBIN 5196 for ac_prog in dumpbin "link -dump" 5197 do 5198 # Extract the first word of "$ac_prog", so it can be a program name with args. 5199 set dummy $ac_prog; ac_word=$2 5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5201 $as_echo_n "checking for $ac_word... " >&6; } 5202 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5203 $as_echo_n "(cached) " >&6 5204 else 5205 if test -n "$ac_ct_DUMPBIN"; then 5206 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5207 else 5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5209 for as_dir in $PATH 5210 do 5211 IFS=$as_save_IFS 5212 test -z "$as_dir" && as_dir=. 5213 for ac_exec_ext in '' $ac_executable_extensions; do 5214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5215 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5217 break 2 5218 fi 5219 done 5220 done 5221 IFS=$as_save_IFS 5222 5223 fi 5224 fi 5225 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5226 if test -n "$ac_ct_DUMPBIN"; then 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5228 $as_echo "$ac_ct_DUMPBIN" >&6; } 5229 else 5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5231 $as_echo "no" >&6; } 5232 fi 5233 5234 5235 test -n "$ac_ct_DUMPBIN" && break 5236 done 5237 5238 if test "x$ac_ct_DUMPBIN" = x; then 5239 DUMPBIN=":" 5240 else 5241 case $cross_compiling:$ac_tool_warned in 5242 yes:) 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5245 ac_tool_warned=yes ;; 5246 esac 5247 DUMPBIN=$ac_ct_DUMPBIN 5248 fi 5249 fi 5250 5251 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5252 *COFF*) 5253 DUMPBIN="$DUMPBIN -symbols" 5254 ;; 5255 *) 5256 DUMPBIN=: 5257 ;; 5258 esac 5259 fi 5260 5261 if test "$DUMPBIN" != ":"; then 5262 NM="$DUMPBIN" 5263 fi 5264 fi 5265 test -z "$NM" && NM=nm 5266 5267 5268 5269 5270 5271 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5273 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 5274 if ${lt_cv_nm_interface+:} false; then : 5275 $as_echo_n "(cached) " >&6 5276 else 5277 lt_cv_nm_interface="BSD nm" 5278 echo "int some_variable = 0;" > conftest.$ac_ext 5279 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5280 (eval "$ac_compile" 2>conftest.err) 5281 cat conftest.err >&5 5282 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5283 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5284 cat conftest.err >&5 5285 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5286 cat conftest.out >&5 5287 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5288 lt_cv_nm_interface="MS dumpbin" 5289 fi 5290 rm -f conftest* 5291 fi 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5293 $as_echo "$lt_cv_nm_interface" >&6; } 5294 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5296 $as_echo_n "checking whether ln -s works... " >&6; } 5297 LN_S=$as_ln_s 5298 if test "$LN_S" = "ln -s"; then 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5300 $as_echo "yes" >&6; } 5301 else 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5303 $as_echo "no, using $LN_S" >&6; } 5304 fi 5305 5306 # find the maximum length of command line arguments 5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5308 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 5309 if ${lt_cv_sys_max_cmd_len+:} false; then : 5310 $as_echo_n "(cached) " >&6 5311 else 5312 i=0 5313 teststring="ABCD" 5314 5315 case $build_os in 5316 msdosdjgpp*) 5317 # On DJGPP, this test can blow up pretty badly due to problems in libc 5318 # (any single argument exceeding 2000 bytes causes a buffer overrun 5319 # during glob expansion). Even if it were fixed, the result of this 5320 # check would be larger than it should be. 5321 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5322 ;; 5323 5324 gnu*) 5325 # Under GNU Hurd, this test is not required because there is 5326 # no limit to the length of command line arguments. 5327 # Libtool will interpret -1 as no limit whatsoever 5328 lt_cv_sys_max_cmd_len=-1; 5329 ;; 5330 5331 cygwin* | mingw* | cegcc*) 5332 # On Win9x/ME, this test blows up -- it succeeds, but takes 5333 # about 5 minutes as the teststring grows exponentially. 5334 # Worse, since 9x/ME are not pre-emptively multitasking, 5335 # you end up with a "frozen" computer, even though with patience 5336 # the test eventually succeeds (with a max line length of 256k). 5337 # Instead, let's just punt: use the minimum linelength reported by 5338 # all of the supported platforms: 8192 (on NT/2K/XP). 5339 lt_cv_sys_max_cmd_len=8192; 5340 ;; 5341 5342 mint*) 5343 # On MiNT this can take a long time and run out of memory. 5344 lt_cv_sys_max_cmd_len=8192; 5345 ;; 5346 5347 amigaos*) 5348 # On AmigaOS with pdksh, this test takes hours, literally. 5349 # So we just punt and use a minimum line length of 8192. 5350 lt_cv_sys_max_cmd_len=8192; 5351 ;; 5352 5353 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5354 # This has been around since 386BSD, at least. Likely further. 5355 if test -x /sbin/sysctl; then 5356 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5357 elif test -x /usr/sbin/sysctl; then 5358 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5359 else 5360 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5361 fi 5362 # And add a safety zone 5363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5365 ;; 5366 5367 interix*) 5368 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5369 lt_cv_sys_max_cmd_len=196608 5370 ;; 5371 5372 osf*) 5373 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5374 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5375 # nice to cause kernel panics so lets avoid the loop below. 5376 # First set a reasonable default. 5377 lt_cv_sys_max_cmd_len=16384 5378 # 5379 if test -x /sbin/sysconfig; then 5380 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5381 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5382 esac 5383 fi 5384 ;; 5385 sco3.2v5*) 5386 lt_cv_sys_max_cmd_len=102400 5387 ;; 5388 sysv5* | sco5v6* | sysv4.2uw2*) 5389 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5390 if test -n "$kargmax"; then 5391 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5392 else 5393 lt_cv_sys_max_cmd_len=32768 5394 fi 5395 ;; 5396 *) 5397 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5398 if test -n "$lt_cv_sys_max_cmd_len"; then 5399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5401 else 5402 # Make teststring a little bigger before we do anything with it. 5403 # a 1K string should be a reasonable start. 5404 for i in 1 2 3 4 5 6 7 8 ; do 5405 teststring=$teststring$teststring 5406 done 5407 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5408 # If test is not a shell built-in, we'll probably end up computing a 5409 # maximum length that is only half of the actual maximum length, but 5410 # we can't tell. 5411 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5412 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5413 test $i != 17 # 1/2 MB should be enough 5414 do 5415 i=`expr $i + 1` 5416 teststring=$teststring$teststring 5417 done 5418 # Only check the string length outside the loop. 5419 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5420 teststring= 5421 # Add a significant safety factor because C++ compilers can tack on 5422 # massive amounts of additional arguments before passing them to the 5423 # linker. It appears as though 1/2 is a usable value. 5424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5425 fi 5426 ;; 5427 esac 5428 5429 fi 5430 5431 if test -n $lt_cv_sys_max_cmd_len ; then 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5433 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5434 else 5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5436 $as_echo "none" >&6; } 5437 fi 5438 max_cmd_len=$lt_cv_sys_max_cmd_len 5439 5440 5441 5442 5443 5444 5445 : ${CP="cp -f"} 5446 : ${MV="mv -f"} 5447 : ${RM="rm -f"} 5448 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5450 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5451 # Try some XSI features 5452 xsi_shell=no 5453 ( _lt_dummy="a/b/c" 5454 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5455 = c,a/b,, \ 5456 && eval 'test $(( 1 + 1 )) -eq 2 \ 5457 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5458 && xsi_shell=yes 5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5460 $as_echo "$xsi_shell" >&6; } 5461 5462 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5464 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5465 lt_shell_append=no 5466 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5467 >/dev/null 2>&1 \ 5468 && lt_shell_append=yes 5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5470 $as_echo "$lt_shell_append" >&6; } 5471 5472 5473 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5474 lt_unset=unset 5475 else 5476 lt_unset=false 5477 fi 5478 5479 5480 5481 5482 5483 # test EBCDIC or ASCII 5484 case `echo X|tr X '\101'` in 5485 A) # ASCII based system 5486 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5487 lt_SP2NL='tr \040 \012' 5488 lt_NL2SP='tr \015\012 \040\040' 5489 ;; 5490 *) # EBCDIC based system 5491 lt_SP2NL='tr \100 \n' 5492 lt_NL2SP='tr \r\n \100\100' 5493 ;; 5494 esac 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5505 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5506 if ${lt_cv_ld_reload_flag+:} false; then : 5507 $as_echo_n "(cached) " >&6 5508 else 5509 lt_cv_ld_reload_flag='-r' 5510 fi 5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5512 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5513 reload_flag=$lt_cv_ld_reload_flag 5514 case $reload_flag in 5515 "" | " "*) ;; 5516 *) reload_flag=" $reload_flag" ;; 5517 esac 5518 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5519 case $host_os in 5520 darwin*) 5521 if test "$GCC" = yes; then 5522 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5523 else 5524 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5525 fi 5526 ;; 5527 esac 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 if test -n "$ac_tool_prefix"; then 5538 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5539 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5541 $as_echo_n "checking for $ac_word... " >&6; } 5542 if ${ac_cv_prog_OBJDUMP+:} false; then : 5543 $as_echo_n "(cached) " >&6 5544 else 5545 if test -n "$OBJDUMP"; then 5546 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5547 else 5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5549 for as_dir in $PATH 5550 do 5551 IFS=$as_save_IFS 5552 test -z "$as_dir" && as_dir=. 5553 for ac_exec_ext in '' $ac_executable_extensions; do 5554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5555 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5557 break 2 5558 fi 5559 done 5560 done 5561 IFS=$as_save_IFS 5562 5563 fi 5564 fi 5565 OBJDUMP=$ac_cv_prog_OBJDUMP 5566 if test -n "$OBJDUMP"; then 5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5568 $as_echo "$OBJDUMP" >&6; } 5569 else 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5571 $as_echo "no" >&6; } 5572 fi 5573 5574 5575 fi 5576 if test -z "$ac_cv_prog_OBJDUMP"; then 5577 ac_ct_OBJDUMP=$OBJDUMP 5578 # Extract the first word of "objdump", so it can be a program name with args. 5579 set dummy objdump; ac_word=$2 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5581 $as_echo_n "checking for $ac_word... " >&6; } 5582 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5583 $as_echo_n "(cached) " >&6 5584 else 5585 if test -n "$ac_ct_OBJDUMP"; then 5586 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5587 else 5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5589 for as_dir in $PATH 5590 do 5591 IFS=$as_save_IFS 5592 test -z "$as_dir" && as_dir=. 5593 for ac_exec_ext in '' $ac_executable_extensions; do 5594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5595 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5597 break 2 5598 fi 5599 done 5600 done 5601 IFS=$as_save_IFS 5602 5603 fi 5604 fi 5605 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5606 if test -n "$ac_ct_OBJDUMP"; then 5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5608 $as_echo "$ac_ct_OBJDUMP" >&6; } 5609 else 5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5611 $as_echo "no" >&6; } 5612 fi 5613 5614 if test "x$ac_ct_OBJDUMP" = x; then 5615 OBJDUMP="false" 5616 else 5617 case $cross_compiling:$ac_tool_warned in 5618 yes:) 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5621 ac_tool_warned=yes ;; 5622 esac 5623 OBJDUMP=$ac_ct_OBJDUMP 5624 fi 5625 else 5626 OBJDUMP="$ac_cv_prog_OBJDUMP" 5627 fi 5628 5629 test -z "$OBJDUMP" && OBJDUMP=objdump 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5640 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5641 if ${lt_cv_deplibs_check_method+:} false; then : 5642 $as_echo_n "(cached) " >&6 5643 else 5644 lt_cv_file_magic_cmd='$MAGIC_CMD' 5645 lt_cv_file_magic_test_file= 5646 lt_cv_deplibs_check_method='unknown' 5647 # Need to set the preceding variable on all platforms that support 5648 # interlibrary dependencies. 5649 # 'none' -- dependencies not supported. 5650 # `unknown' -- same as none, but documents that we really don't know. 5651 # 'pass_all' -- all dependencies passed with no checks. 5652 # 'test_compile' -- check by making test program. 5653 # 'file_magic [[regex]]' -- check by looking for files in library path 5654 # which responds to the $file_magic_cmd with a given extended regex. 5655 # If you have `file' or equivalent on your system and you're not sure 5656 # whether `pass_all' will *always* work, you probably want this one. 5657 5658 case $host_os in 5659 aix[4-9]*) 5660 lt_cv_deplibs_check_method=pass_all 5661 ;; 5662 5663 beos*) 5664 lt_cv_deplibs_check_method=pass_all 5665 ;; 5666 5667 bsdi[45]*) 5668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5669 lt_cv_file_magic_cmd='/usr/bin/file -L' 5670 lt_cv_file_magic_test_file=/shlib/libc.so 5671 ;; 5672 5673 cygwin*) 5674 # func_win32_libid is a shell function defined in ltmain.sh 5675 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5676 lt_cv_file_magic_cmd='func_win32_libid' 5677 ;; 5678 5679 mingw* | pw32*) 5680 # Base MSYS/MinGW do not provide the 'file' command needed by 5681 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5682 # unless we find 'file', for example because we are cross-compiling. 5683 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5684 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5685 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5686 lt_cv_file_magic_cmd='func_win32_libid' 5687 else 5688 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5689 lt_cv_file_magic_cmd='$OBJDUMP -f' 5690 fi 5691 ;; 5692 5693 cegcc*) 5694 # use the weaker test based on 'objdump'. See mingw*. 5695 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5696 lt_cv_file_magic_cmd='$OBJDUMP -f' 5697 ;; 5698 5699 darwin* | rhapsody*) 5700 lt_cv_deplibs_check_method=pass_all 5701 ;; 5702 5703 freebsd* | dragonfly*) 5704 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5705 case $host_cpu in 5706 i*86 ) 5707 # Not sure whether the presence of OpenBSD here was a mistake. 5708 # Let's accept both of them until this is cleared up. 5709 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5710 lt_cv_file_magic_cmd=/usr/bin/file 5711 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5712 ;; 5713 esac 5714 else 5715 lt_cv_deplibs_check_method=pass_all 5716 fi 5717 ;; 5718 5719 gnu*) 5720 lt_cv_deplibs_check_method=pass_all 5721 ;; 5722 5723 haiku*) 5724 lt_cv_deplibs_check_method=pass_all 5725 ;; 5726 5727 hpux10.20* | hpux11*) 5728 lt_cv_file_magic_cmd=/usr/bin/file 5729 case $host_cpu in 5730 ia64*) 5731 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5732 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5733 ;; 5734 hppa*64*) 5735 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]' 5736 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5737 ;; 5738 *) 5739 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5740 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5741 ;; 5742 esac 5743 ;; 5744 5745 interix[3-9]*) 5746 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5748 ;; 5749 5750 irix5* | irix6* | nonstopux*) 5751 case $LD in 5752 *-32|*"-32 ") libmagic=32-bit;; 5753 *-n32|*"-n32 ") libmagic=N32;; 5754 *-64|*"-64 ") libmagic=64-bit;; 5755 *) libmagic=never-match;; 5756 esac 5757 lt_cv_deplibs_check_method=pass_all 5758 ;; 5759 5760 # This must be Linux ELF. 5761 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 5762 lt_cv_deplibs_check_method=pass_all 5763 ;; 5764 5765 netbsd*) 5766 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5767 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5768 else 5769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5770 fi 5771 ;; 5772 5773 newos6*) 5774 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5775 lt_cv_file_magic_cmd=/usr/bin/file 5776 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5777 ;; 5778 5779 *nto* | *qnx*) 5780 lt_cv_deplibs_check_method=pass_all 5781 ;; 5782 5783 openbsd*) 5784 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5785 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5786 else 5787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5788 fi 5789 ;; 5790 5791 osf3* | osf4* | osf5*) 5792 lt_cv_deplibs_check_method=pass_all 5793 ;; 5794 5795 rdos*) 5796 lt_cv_deplibs_check_method=pass_all 5797 ;; 5798 5799 solaris*) 5800 lt_cv_deplibs_check_method=pass_all 5801 ;; 5802 5803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5804 lt_cv_deplibs_check_method=pass_all 5805 ;; 5806 5807 sysv4 | sysv4.3*) 5808 case $host_vendor in 5809 motorola) 5810 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]' 5811 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5812 ;; 5813 ncr) 5814 lt_cv_deplibs_check_method=pass_all 5815 ;; 5816 sequent) 5817 lt_cv_file_magic_cmd='/bin/file' 5818 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5819 ;; 5820 sni) 5821 lt_cv_file_magic_cmd='/bin/file' 5822 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5823 lt_cv_file_magic_test_file=/lib/libc.so 5824 ;; 5825 siemens) 5826 lt_cv_deplibs_check_method=pass_all 5827 ;; 5828 pc) 5829 lt_cv_deplibs_check_method=pass_all 5830 ;; 5831 esac 5832 ;; 5833 5834 tpf*) 5835 lt_cv_deplibs_check_method=pass_all 5836 ;; 5837 vxworks*) 5838 # Assume VxWorks cross toolchains are built on Linux, possibly 5839 # as canadian for Windows hosts. 5840 lt_cv_deplibs_check_method=pass_all 5841 ;; 5842 esac 5843 5844 fi 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5846 $as_echo "$lt_cv_deplibs_check_method" >&6; } 5847 file_magic_cmd=$lt_cv_file_magic_cmd 5848 deplibs_check_method=$lt_cv_deplibs_check_method 5849 test -z "$deplibs_check_method" && deplibs_check_method=unknown 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 plugin_option= 5863 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" 5864 for plugin in $plugin_names; do 5865 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` 5866 if test x$plugin_so = x$plugin; then 5867 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` 5868 fi 5869 if test x$plugin_so != x$plugin; then 5870 plugin_option="--plugin $plugin_so" 5871 break 5872 fi 5873 done 5874 5875 if test -n "$ac_tool_prefix"; then 5876 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5877 set dummy ${ac_tool_prefix}ar; ac_word=$2 5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5879 $as_echo_n "checking for $ac_word... " >&6; } 5880 if ${ac_cv_prog_AR+:} false; then : 5881 $as_echo_n "(cached) " >&6 5882 else 5883 if test -n "$AR"; then 5884 ac_cv_prog_AR="$AR" # Let the user override the test. 5885 else 5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5887 for as_dir in $PATH 5888 do 5889 IFS=$as_save_IFS 5890 test -z "$as_dir" && as_dir=. 5891 for ac_exec_ext in '' $ac_executable_extensions; do 5892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5893 ac_cv_prog_AR="${ac_tool_prefix}ar" 5894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5895 break 2 5896 fi 5897 done 5898 done 5899 IFS=$as_save_IFS 5900 5901 fi 5902 fi 5903 AR=$ac_cv_prog_AR 5904 if test -n "$AR"; then 5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5906 $as_echo "$AR" >&6; } 5907 else 5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5909 $as_echo "no" >&6; } 5910 fi 5911 5912 5913 fi 5914 if test -z "$ac_cv_prog_AR"; then 5915 ac_ct_AR=$AR 5916 # Extract the first word of "ar", so it can be a program name with args. 5917 set dummy ar; ac_word=$2 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5919 $as_echo_n "checking for $ac_word... " >&6; } 5920 if ${ac_cv_prog_ac_ct_AR+:} false; then : 5921 $as_echo_n "(cached) " >&6 5922 else 5923 if test -n "$ac_ct_AR"; then 5924 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5925 else 5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5927 for as_dir in $PATH 5928 do 5929 IFS=$as_save_IFS 5930 test -z "$as_dir" && as_dir=. 5931 for ac_exec_ext in '' $ac_executable_extensions; do 5932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5933 ac_cv_prog_ac_ct_AR="ar" 5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5935 break 2 5936 fi 5937 done 5938 done 5939 IFS=$as_save_IFS 5940 5941 fi 5942 fi 5943 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5944 if test -n "$ac_ct_AR"; then 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5946 $as_echo "$ac_ct_AR" >&6; } 5947 else 5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5949 $as_echo "no" >&6; } 5950 fi 5951 5952 if test "x$ac_ct_AR" = x; then 5953 AR="false" 5954 else 5955 case $cross_compiling:$ac_tool_warned in 5956 yes:) 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5959 ac_tool_warned=yes ;; 5960 esac 5961 AR=$ac_ct_AR 5962 fi 5963 else 5964 AR="$ac_cv_prog_AR" 5965 fi 5966 5967 test -z "$AR" && AR=ar 5968 if test -n "$plugin_option"; then 5969 if $AR --help 2>&1 | grep -q "\--plugin"; then 5970 touch conftest.c 5971 $AR $plugin_option rc conftest.a conftest.c 5972 if test "$?" != 0; then 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 5974 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} 5975 else 5976 AR="$AR $plugin_option" 5977 fi 5978 rm -f conftest.* 5979 fi 5980 fi 5981 test -z "$AR_FLAGS" && AR_FLAGS=cru 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 if test -n "$ac_tool_prefix"; then 5994 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5995 set dummy ${ac_tool_prefix}strip; ac_word=$2 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5997 $as_echo_n "checking for $ac_word... " >&6; } 5998 if ${ac_cv_prog_STRIP+:} false; then : 5999 $as_echo_n "(cached) " >&6 6000 else 6001 if test -n "$STRIP"; then 6002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6003 else 6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6005 for as_dir in $PATH 6006 do 6007 IFS=$as_save_IFS 6008 test -z "$as_dir" && as_dir=. 6009 for ac_exec_ext in '' $ac_executable_extensions; do 6010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6011 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6013 break 2 6014 fi 6015 done 6016 done 6017 IFS=$as_save_IFS 6018 6019 fi 6020 fi 6021 STRIP=$ac_cv_prog_STRIP 6022 if test -n "$STRIP"; then 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6024 $as_echo "$STRIP" >&6; } 6025 else 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6027 $as_echo "no" >&6; } 6028 fi 6029 6030 6031 fi 6032 if test -z "$ac_cv_prog_STRIP"; then 6033 ac_ct_STRIP=$STRIP 6034 # Extract the first word of "strip", so it can be a program name with args. 6035 set dummy strip; ac_word=$2 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6037 $as_echo_n "checking for $ac_word... " >&6; } 6038 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6039 $as_echo_n "(cached) " >&6 6040 else 6041 if test -n "$ac_ct_STRIP"; then 6042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6043 else 6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6045 for as_dir in $PATH 6046 do 6047 IFS=$as_save_IFS 6048 test -z "$as_dir" && as_dir=. 6049 for ac_exec_ext in '' $ac_executable_extensions; do 6050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6051 ac_cv_prog_ac_ct_STRIP="strip" 6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6053 break 2 6054 fi 6055 done 6056 done 6057 IFS=$as_save_IFS 6058 6059 fi 6060 fi 6061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6062 if test -n "$ac_ct_STRIP"; then 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6064 $as_echo "$ac_ct_STRIP" >&6; } 6065 else 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6067 $as_echo "no" >&6; } 6068 fi 6069 6070 if test "x$ac_ct_STRIP" = x; then 6071 STRIP=":" 6072 else 6073 case $cross_compiling:$ac_tool_warned in 6074 yes:) 6075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6077 ac_tool_warned=yes ;; 6078 esac 6079 STRIP=$ac_ct_STRIP 6080 fi 6081 else 6082 STRIP="$ac_cv_prog_STRIP" 6083 fi 6084 6085 test -z "$STRIP" && STRIP=: 6086 6087 6088 6089 6090 6091 6092 if test -n "$ac_tool_prefix"; then 6093 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6094 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6096 $as_echo_n "checking for $ac_word... " >&6; } 6097 if ${ac_cv_prog_RANLIB+:} false; then : 6098 $as_echo_n "(cached) " >&6 6099 else 6100 if test -n "$RANLIB"; then 6101 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6102 else 6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6104 for as_dir in $PATH 6105 do 6106 IFS=$as_save_IFS 6107 test -z "$as_dir" && as_dir=. 6108 for ac_exec_ext in '' $ac_executable_extensions; do 6109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6110 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6112 break 2 6113 fi 6114 done 6115 done 6116 IFS=$as_save_IFS 6117 6118 fi 6119 fi 6120 RANLIB=$ac_cv_prog_RANLIB 6121 if test -n "$RANLIB"; then 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6123 $as_echo "$RANLIB" >&6; } 6124 else 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6126 $as_echo "no" >&6; } 6127 fi 6128 6129 6130 fi 6131 if test -z "$ac_cv_prog_RANLIB"; then 6132 ac_ct_RANLIB=$RANLIB 6133 # Extract the first word of "ranlib", so it can be a program name with args. 6134 set dummy ranlib; ac_word=$2 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6136 $as_echo_n "checking for $ac_word... " >&6; } 6137 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6138 $as_echo_n "(cached) " >&6 6139 else 6140 if test -n "$ac_ct_RANLIB"; then 6141 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6142 else 6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6144 for as_dir in $PATH 6145 do 6146 IFS=$as_save_IFS 6147 test -z "$as_dir" && as_dir=. 6148 for ac_exec_ext in '' $ac_executable_extensions; do 6149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6150 ac_cv_prog_ac_ct_RANLIB="ranlib" 6151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6152 break 2 6153 fi 6154 done 6155 done 6156 IFS=$as_save_IFS 6157 6158 fi 6159 fi 6160 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6161 if test -n "$ac_ct_RANLIB"; then 6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6163 $as_echo "$ac_ct_RANLIB" >&6; } 6164 else 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6166 $as_echo "no" >&6; } 6167 fi 6168 6169 if test "x$ac_ct_RANLIB" = x; then 6170 RANLIB=":" 6171 else 6172 case $cross_compiling:$ac_tool_warned in 6173 yes:) 6174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6176 ac_tool_warned=yes ;; 6177 esac 6178 RANLIB=$ac_ct_RANLIB 6179 fi 6180 else 6181 RANLIB="$ac_cv_prog_RANLIB" 6182 fi 6183 6184 test -z "$RANLIB" && RANLIB=: 6185 if test -n "$plugin_option" && test "$RANLIB" != ":"; then 6186 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then 6187 RANLIB="$RANLIB $plugin_option" 6188 fi 6189 fi 6190 6191 6192 6193 6194 6195 6196 # Determine commands to create old-style static archives. 6197 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6198 old_postinstall_cmds='chmod 644 $oldlib' 6199 old_postuninstall_cmds= 6200 6201 if test -n "$RANLIB"; then 6202 case $host_os in 6203 openbsd*) 6204 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6205 ;; 6206 *) 6207 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6208 ;; 6209 esac 6210 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6211 fi 6212 6213 case $host_os in 6214 darwin*) 6215 lock_old_archive_extraction=yes ;; 6216 *) 6217 lock_old_archive_extraction=no ;; 6218 esac 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 # If no C compiler was specified, use CC. 6259 LTCC=${LTCC-"$CC"} 6260 6261 # If no C compiler flags were specified, use CFLAGS. 6262 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6263 6264 # Allow CC to be a program name with arguments. 6265 compiler=$CC 6266 6267 6268 # Check for command to grab the raw symbol name followed by C symbol from nm. 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6270 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6271 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6272 $as_echo_n "(cached) " >&6 6273 else 6274 6275 # These are sane defaults that work on at least a few old systems. 6276 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6277 6278 # Character class describing NM global symbol codes. 6279 symcode='[BCDEGRST]' 6280 6281 # Regexp to match symbols that can be accessed directly from C. 6282 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6283 6284 # Define system-specific variables. 6285 case $host_os in 6286 aix*) 6287 symcode='[BCDT]' 6288 ;; 6289 cygwin* | mingw* | pw32* | cegcc*) 6290 symcode='[ABCDGISTW]' 6291 ;; 6292 hpux*) 6293 if test "$host_cpu" = ia64; then 6294 symcode='[ABCDEGRST]' 6295 fi 6296 ;; 6297 irix* | nonstopux*) 6298 symcode='[BCDEGRST]' 6299 ;; 6300 osf*) 6301 symcode='[BCDEGQRST]' 6302 ;; 6303 solaris*) 6304 symcode='[BCDRT]' 6305 ;; 6306 sco3.2v5*) 6307 symcode='[DT]' 6308 ;; 6309 sysv4.2uw2*) 6310 symcode='[DT]' 6311 ;; 6312 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6313 symcode='[ABDT]' 6314 ;; 6315 sysv4) 6316 symcode='[DFNSTU]' 6317 ;; 6318 esac 6319 6320 # If we're using GNU nm, then use its standard symbol codes. 6321 case `$NM -V 2>&1` in 6322 *GNU* | *'with BFD'*) 6323 symcode='[ABCDGIRSTW]' ;; 6324 esac 6325 6326 # Transform an extracted symbol line into a proper C declaration. 6327 # Some systems (esp. on ia64) link data and code symbols differently, 6328 # so use this general approach. 6329 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6330 6331 # Transform an extracted symbol line into symbol name and symbol address 6332 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6333 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6334 6335 # Handle CRLF in mingw tool chain 6336 opt_cr= 6337 case $build_os in 6338 mingw*) 6339 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6340 ;; 6341 esac 6342 6343 # Try without a prefix underscore, then with it. 6344 for ac_symprfx in "" "_"; do 6345 6346 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6347 symxfrm="\\1 $ac_symprfx\\2 \\2" 6348 6349 # Write the raw and C identifiers. 6350 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6351 # Fake it for dumpbin and say T for any non-static function 6352 # and D for any global variable. 6353 # Also find C++ and __fastcall symbols from MSVC++, 6354 # which start with @ or ?. 6355 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6356 " {last_section=section; section=\$ 3};"\ 6357 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6358 " \$ 0!~/External *\|/{next};"\ 6359 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6360 " {if(hide[section]) next};"\ 6361 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6362 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6363 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6364 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6365 " ' prfx=^$ac_symprfx" 6366 else 6367 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6368 fi 6369 6370 # Check to see that the pipe works correctly. 6371 pipe_works=no 6372 6373 rm -f conftest* 6374 cat > conftest.$ac_ext <<_LT_EOF 6375 #ifdef __cplusplus 6376 extern "C" { 6377 #endif 6378 char nm_test_var; 6379 void nm_test_func(void); 6380 void nm_test_func(void){} 6381 #ifdef __cplusplus 6382 } 6383 #endif 6384 int main(){nm_test_var='a';nm_test_func();return(0);} 6385 _LT_EOF 6386 6387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6388 (eval $ac_compile) 2>&5 6389 ac_status=$? 6390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6391 test $ac_status = 0; }; then 6392 # Now try to grab the symbols. 6393 nlist=conftest.nm 6394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6395 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6396 ac_status=$? 6397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6398 test $ac_status = 0; } && test -s "$nlist"; then 6399 # Try sorting and uniquifying the output. 6400 if sort "$nlist" | uniq > "$nlist"T; then 6401 mv -f "$nlist"T "$nlist" 6402 else 6403 rm -f "$nlist"T 6404 fi 6405 6406 # Make sure that we snagged all the symbols we need. 6407 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6408 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6409 cat <<_LT_EOF > conftest.$ac_ext 6410 #ifdef __cplusplus 6411 extern "C" { 6412 #endif 6413 6414 _LT_EOF 6415 # Now generate the symbol file. 6416 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6417 6418 cat <<_LT_EOF >> conftest.$ac_ext 6419 6420 /* The mapping between symbol names and symbols. */ 6421 const struct { 6422 const char *name; 6423 void *address; 6424 } 6425 lt__PROGRAM__LTX_preloaded_symbols[] = 6426 { 6427 { "@PROGRAM@", (void *) 0 }, 6428 _LT_EOF 6429 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6430 cat <<\_LT_EOF >> conftest.$ac_ext 6431 {0, (void *) 0} 6432 }; 6433 6434 /* This works around a problem in FreeBSD linker */ 6435 #ifdef FREEBSD_WORKAROUND 6436 static const void *lt_preloaded_setup() { 6437 return lt__PROGRAM__LTX_preloaded_symbols; 6438 } 6439 #endif 6440 6441 #ifdef __cplusplus 6442 } 6443 #endif 6444 _LT_EOF 6445 # Now try linking the two files. 6446 mv conftest.$ac_objext conftstm.$ac_objext 6447 lt_save_LIBS="$LIBS" 6448 lt_save_CFLAGS="$CFLAGS" 6449 LIBS="conftstm.$ac_objext" 6450 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6452 (eval $ac_link) 2>&5 6453 ac_status=$? 6454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6455 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6456 pipe_works=yes 6457 fi 6458 LIBS="$lt_save_LIBS" 6459 CFLAGS="$lt_save_CFLAGS" 6460 else 6461 echo "cannot find nm_test_func in $nlist" >&5 6462 fi 6463 else 6464 echo "cannot find nm_test_var in $nlist" >&5 6465 fi 6466 else 6467 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6468 fi 6469 else 6470 echo "$progname: failed program was:" >&5 6471 cat conftest.$ac_ext >&5 6472 fi 6473 rm -rf conftest* conftst* 6474 6475 # Do not use the global_symbol_pipe unless it works. 6476 if test "$pipe_works" = yes; then 6477 break 6478 else 6479 lt_cv_sys_global_symbol_pipe= 6480 fi 6481 done 6482 6483 fi 6484 6485 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6486 lt_cv_sys_global_symbol_to_cdecl= 6487 fi 6488 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6490 $as_echo "failed" >&6; } 6491 else 6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6493 $as_echo "ok" >&6; } 6494 fi 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 # Check whether --enable-libtool-lock was given. 6518 if test "${enable_libtool_lock+set}" = set; then : 6519 enableval=$enable_libtool_lock; 6520 fi 6521 6522 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6523 6524 # Some flags need to be propagated to the compiler or linker for good 6525 # libtool support. 6526 case $host in 6527 ia64-*-hpux*) 6528 # Find out which ABI we are using. 6529 echo 'int i;' > conftest.$ac_ext 6530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6531 (eval $ac_compile) 2>&5 6532 ac_status=$? 6533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6534 test $ac_status = 0; }; then 6535 case `/usr/bin/file conftest.$ac_objext` in 6536 *ELF-32*) 6537 HPUX_IA64_MODE="32" 6538 ;; 6539 *ELF-64*) 6540 HPUX_IA64_MODE="64" 6541 ;; 6542 esac 6543 fi 6544 rm -rf conftest* 6545 ;; 6546 *-*-irix6*) 6547 # Find out which ABI we are using. 6548 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6550 (eval $ac_compile) 2>&5 6551 ac_status=$? 6552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6553 test $ac_status = 0; }; then 6554 if test "$lt_cv_prog_gnu_ld" = yes; then 6555 case `/usr/bin/file conftest.$ac_objext` in 6556 *32-bit*) 6557 LD="${LD-ld} -melf32bsmip" 6558 ;; 6559 *N32*) 6560 LD="${LD-ld} -melf32bmipn32" 6561 ;; 6562 *64-bit*) 6563 LD="${LD-ld} -melf64bmip" 6564 ;; 6565 esac 6566 else 6567 case `/usr/bin/file conftest.$ac_objext` in 6568 *32-bit*) 6569 LD="${LD-ld} -32" 6570 ;; 6571 *N32*) 6572 LD="${LD-ld} -n32" 6573 ;; 6574 *64-bit*) 6575 LD="${LD-ld} -64" 6576 ;; 6577 esac 6578 fi 6579 fi 6580 rm -rf conftest* 6581 ;; 6582 6583 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6584 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6585 # Find out which ABI we are using. 6586 echo 'int i;' > conftest.$ac_ext 6587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6588 (eval $ac_compile) 2>&5 6589 ac_status=$? 6590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6591 test $ac_status = 0; }; then 6592 case `/usr/bin/file conftest.o` in 6593 *32-bit*) 6594 case $host in 6595 x86_64-*kfreebsd*-gnu) 6596 LD="${LD-ld} -m elf_i386_fbsd" 6597 ;; 6598 x86_64-*linux*) 6599 case `/usr/bin/file conftest.o` in 6600 *x86-64*) 6601 LD="${LD-ld} -m elf32_x86_64" 6602 ;; 6603 *) 6604 LD="${LD-ld} -m elf_i386" 6605 ;; 6606 esac 6607 ;; 6608 powerpc64le-*linux*) 6609 LD="${LD-ld} -m elf32lppclinux" 6610 ;; 6611 powerpc64-*linux*) 6612 LD="${LD-ld} -m elf32ppclinux" 6613 ;; 6614 s390x-*linux*) 6615 LD="${LD-ld} -m elf_s390" 6616 ;; 6617 sparc64-*linux*) 6618 LD="${LD-ld} -m elf32_sparc" 6619 ;; 6620 esac 6621 ;; 6622 *64-bit*) 6623 case $host in 6624 x86_64-*kfreebsd*-gnu) 6625 LD="${LD-ld} -m elf_x86_64_fbsd" 6626 ;; 6627 x86_64-*linux*) 6628 LD="${LD-ld} -m elf_x86_64" 6629 ;; 6630 powerpcle-*linux*) 6631 LD="${LD-ld} -m elf64lppc" 6632 ;; 6633 powerpc-*linux*) 6634 LD="${LD-ld} -m elf64ppc" 6635 ;; 6636 s390*-*linux*|s390*-*tpf*) 6637 LD="${LD-ld} -m elf64_s390" 6638 ;; 6639 sparc*-*linux*) 6640 LD="${LD-ld} -m elf64_sparc" 6641 ;; 6642 esac 6643 ;; 6644 esac 6645 fi 6646 rm -rf conftest* 6647 ;; 6648 6649 *-*-sco3.2v5*) 6650 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6651 SAVE_CFLAGS="$CFLAGS" 6652 CFLAGS="$CFLAGS -belf" 6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6654 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6655 if ${lt_cv_cc_needs_belf+:} false; then : 6656 $as_echo_n "(cached) " >&6 6657 else 6658 ac_ext=c 6659 ac_cpp='$CPP $CPPFLAGS' 6660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6662 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6663 6664 if test x$gcc_no_link = xyes; then 6665 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 6666 fi 6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6668 /* end confdefs.h. */ 6669 6670 int 6671 main () 6672 { 6673 6674 ; 6675 return 0; 6676 } 6677 _ACEOF 6678 if ac_fn_c_try_link "$LINENO"; then : 6679 lt_cv_cc_needs_belf=yes 6680 else 6681 lt_cv_cc_needs_belf=no 6682 fi 6683 rm -f core conftest.err conftest.$ac_objext \ 6684 conftest$ac_exeext conftest.$ac_ext 6685 ac_ext=c 6686 ac_cpp='$CPP $CPPFLAGS' 6687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6689 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6690 6691 fi 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6693 $as_echo "$lt_cv_cc_needs_belf" >&6; } 6694 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6695 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6696 CFLAGS="$SAVE_CFLAGS" 6697 fi 6698 ;; 6699 sparc*-*solaris*) 6700 # Find out which ABI we are using. 6701 echo 'int i;' > conftest.$ac_ext 6702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6703 (eval $ac_compile) 2>&5 6704 ac_status=$? 6705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6706 test $ac_status = 0; }; then 6707 case `/usr/bin/file conftest.o` in 6708 *64-bit*) 6709 case $lt_cv_prog_gnu_ld in 6710 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6711 *) 6712 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6713 LD="${LD-ld} -64" 6714 fi 6715 ;; 6716 esac 6717 ;; 6718 esac 6719 fi 6720 rm -rf conftest* 6721 ;; 6722 esac 6723 6724 need_locks="$enable_libtool_lock" 6725 6726 6727 case $host_os in 6728 rhapsody* | darwin*) 6729 if test -n "$ac_tool_prefix"; then 6730 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6731 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6733 $as_echo_n "checking for $ac_word... " >&6; } 6734 if ${ac_cv_prog_DSYMUTIL+:} false; then : 6735 $as_echo_n "(cached) " >&6 6736 else 6737 if test -n "$DSYMUTIL"; then 6738 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6739 else 6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6741 for as_dir in $PATH 6742 do 6743 IFS=$as_save_IFS 6744 test -z "$as_dir" && as_dir=. 6745 for ac_exec_ext in '' $ac_executable_extensions; do 6746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6747 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6749 break 2 6750 fi 6751 done 6752 done 6753 IFS=$as_save_IFS 6754 6755 fi 6756 fi 6757 DSYMUTIL=$ac_cv_prog_DSYMUTIL 6758 if test -n "$DSYMUTIL"; then 6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6760 $as_echo "$DSYMUTIL" >&6; } 6761 else 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6763 $as_echo "no" >&6; } 6764 fi 6765 6766 6767 fi 6768 if test -z "$ac_cv_prog_DSYMUTIL"; then 6769 ac_ct_DSYMUTIL=$DSYMUTIL 6770 # Extract the first word of "dsymutil", so it can be a program name with args. 6771 set dummy dsymutil; ac_word=$2 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6773 $as_echo_n "checking for $ac_word... " >&6; } 6774 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6775 $as_echo_n "(cached) " >&6 6776 else 6777 if test -n "$ac_ct_DSYMUTIL"; then 6778 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6779 else 6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6781 for as_dir in $PATH 6782 do 6783 IFS=$as_save_IFS 6784 test -z "$as_dir" && as_dir=. 6785 for ac_exec_ext in '' $ac_executable_extensions; do 6786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6787 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6789 break 2 6790 fi 6791 done 6792 done 6793 IFS=$as_save_IFS 6794 6795 fi 6796 fi 6797 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6798 if test -n "$ac_ct_DSYMUTIL"; then 6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6800 $as_echo "$ac_ct_DSYMUTIL" >&6; } 6801 else 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6803 $as_echo "no" >&6; } 6804 fi 6805 6806 if test "x$ac_ct_DSYMUTIL" = x; then 6807 DSYMUTIL=":" 6808 else 6809 case $cross_compiling:$ac_tool_warned in 6810 yes:) 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6813 ac_tool_warned=yes ;; 6814 esac 6815 DSYMUTIL=$ac_ct_DSYMUTIL 6816 fi 6817 else 6818 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6819 fi 6820 6821 if test -n "$ac_tool_prefix"; then 6822 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6823 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6825 $as_echo_n "checking for $ac_word... " >&6; } 6826 if ${ac_cv_prog_NMEDIT+:} false; then : 6827 $as_echo_n "(cached) " >&6 6828 else 6829 if test -n "$NMEDIT"; then 6830 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6831 else 6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6833 for as_dir in $PATH 6834 do 6835 IFS=$as_save_IFS 6836 test -z "$as_dir" && as_dir=. 6837 for ac_exec_ext in '' $ac_executable_extensions; do 6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6839 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6841 break 2 6842 fi 6843 done 6844 done 6845 IFS=$as_save_IFS 6846 6847 fi 6848 fi 6849 NMEDIT=$ac_cv_prog_NMEDIT 6850 if test -n "$NMEDIT"; then 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6852 $as_echo "$NMEDIT" >&6; } 6853 else 6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6855 $as_echo "no" >&6; } 6856 fi 6857 6858 6859 fi 6860 if test -z "$ac_cv_prog_NMEDIT"; then 6861 ac_ct_NMEDIT=$NMEDIT 6862 # Extract the first word of "nmedit", so it can be a program name with args. 6863 set dummy nmedit; ac_word=$2 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6865 $as_echo_n "checking for $ac_word... " >&6; } 6866 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6867 $as_echo_n "(cached) " >&6 6868 else 6869 if test -n "$ac_ct_NMEDIT"; then 6870 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6871 else 6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6873 for as_dir in $PATH 6874 do 6875 IFS=$as_save_IFS 6876 test -z "$as_dir" && as_dir=. 6877 for ac_exec_ext in '' $ac_executable_extensions; do 6878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6879 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6881 break 2 6882 fi 6883 done 6884 done 6885 IFS=$as_save_IFS 6886 6887 fi 6888 fi 6889 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6890 if test -n "$ac_ct_NMEDIT"; then 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6892 $as_echo "$ac_ct_NMEDIT" >&6; } 6893 else 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6895 $as_echo "no" >&6; } 6896 fi 6897 6898 if test "x$ac_ct_NMEDIT" = x; then 6899 NMEDIT=":" 6900 else 6901 case $cross_compiling:$ac_tool_warned in 6902 yes:) 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6905 ac_tool_warned=yes ;; 6906 esac 6907 NMEDIT=$ac_ct_NMEDIT 6908 fi 6909 else 6910 NMEDIT="$ac_cv_prog_NMEDIT" 6911 fi 6912 6913 if test -n "$ac_tool_prefix"; then 6914 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6915 set dummy ${ac_tool_prefix}lipo; ac_word=$2 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6917 $as_echo_n "checking for $ac_word... " >&6; } 6918 if ${ac_cv_prog_LIPO+:} false; then : 6919 $as_echo_n "(cached) " >&6 6920 else 6921 if test -n "$LIPO"; then 6922 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6923 else 6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6925 for as_dir in $PATH 6926 do 6927 IFS=$as_save_IFS 6928 test -z "$as_dir" && as_dir=. 6929 for ac_exec_ext in '' $ac_executable_extensions; do 6930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6931 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6933 break 2 6934 fi 6935 done 6936 done 6937 IFS=$as_save_IFS 6938 6939 fi 6940 fi 6941 LIPO=$ac_cv_prog_LIPO 6942 if test -n "$LIPO"; then 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6944 $as_echo "$LIPO" >&6; } 6945 else 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6947 $as_echo "no" >&6; } 6948 fi 6949 6950 6951 fi 6952 if test -z "$ac_cv_prog_LIPO"; then 6953 ac_ct_LIPO=$LIPO 6954 # Extract the first word of "lipo", so it can be a program name with args. 6955 set dummy lipo; ac_word=$2 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6957 $as_echo_n "checking for $ac_word... " >&6; } 6958 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6959 $as_echo_n "(cached) " >&6 6960 else 6961 if test -n "$ac_ct_LIPO"; then 6962 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6963 else 6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6965 for as_dir in $PATH 6966 do 6967 IFS=$as_save_IFS 6968 test -z "$as_dir" && as_dir=. 6969 for ac_exec_ext in '' $ac_executable_extensions; do 6970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6971 ac_cv_prog_ac_ct_LIPO="lipo" 6972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6973 break 2 6974 fi 6975 done 6976 done 6977 IFS=$as_save_IFS 6978 6979 fi 6980 fi 6981 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6982 if test -n "$ac_ct_LIPO"; then 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6984 $as_echo "$ac_ct_LIPO" >&6; } 6985 else 6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6987 $as_echo "no" >&6; } 6988 fi 6989 6990 if test "x$ac_ct_LIPO" = x; then 6991 LIPO=":" 6992 else 6993 case $cross_compiling:$ac_tool_warned in 6994 yes:) 6995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6997 ac_tool_warned=yes ;; 6998 esac 6999 LIPO=$ac_ct_LIPO 7000 fi 7001 else 7002 LIPO="$ac_cv_prog_LIPO" 7003 fi 7004 7005 if test -n "$ac_tool_prefix"; then 7006 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7007 set dummy ${ac_tool_prefix}otool; ac_word=$2 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7009 $as_echo_n "checking for $ac_word... " >&6; } 7010 if ${ac_cv_prog_OTOOL+:} false; then : 7011 $as_echo_n "(cached) " >&6 7012 else 7013 if test -n "$OTOOL"; then 7014 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7015 else 7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7017 for as_dir in $PATH 7018 do 7019 IFS=$as_save_IFS 7020 test -z "$as_dir" && as_dir=. 7021 for ac_exec_ext in '' $ac_executable_extensions; do 7022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7023 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7025 break 2 7026 fi 7027 done 7028 done 7029 IFS=$as_save_IFS 7030 7031 fi 7032 fi 7033 OTOOL=$ac_cv_prog_OTOOL 7034 if test -n "$OTOOL"; then 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7036 $as_echo "$OTOOL" >&6; } 7037 else 7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7039 $as_echo "no" >&6; } 7040 fi 7041 7042 7043 fi 7044 if test -z "$ac_cv_prog_OTOOL"; then 7045 ac_ct_OTOOL=$OTOOL 7046 # Extract the first word of "otool", so it can be a program name with args. 7047 set dummy otool; ac_word=$2 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7049 $as_echo_n "checking for $ac_word... " >&6; } 7050 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7051 $as_echo_n "(cached) " >&6 7052 else 7053 if test -n "$ac_ct_OTOOL"; then 7054 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7055 else 7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7057 for as_dir in $PATH 7058 do 7059 IFS=$as_save_IFS 7060 test -z "$as_dir" && as_dir=. 7061 for ac_exec_ext in '' $ac_executable_extensions; do 7062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7063 ac_cv_prog_ac_ct_OTOOL="otool" 7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7065 break 2 7066 fi 7067 done 7068 done 7069 IFS=$as_save_IFS 7070 7071 fi 7072 fi 7073 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7074 if test -n "$ac_ct_OTOOL"; then 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7076 $as_echo "$ac_ct_OTOOL" >&6; } 7077 else 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7079 $as_echo "no" >&6; } 7080 fi 7081 7082 if test "x$ac_ct_OTOOL" = x; then 7083 OTOOL=":" 7084 else 7085 case $cross_compiling:$ac_tool_warned in 7086 yes:) 7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7089 ac_tool_warned=yes ;; 7090 esac 7091 OTOOL=$ac_ct_OTOOL 7092 fi 7093 else 7094 OTOOL="$ac_cv_prog_OTOOL" 7095 fi 7096 7097 if test -n "$ac_tool_prefix"; then 7098 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7099 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7101 $as_echo_n "checking for $ac_word... " >&6; } 7102 if ${ac_cv_prog_OTOOL64+:} false; then : 7103 $as_echo_n "(cached) " >&6 7104 else 7105 if test -n "$OTOOL64"; then 7106 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7107 else 7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7109 for as_dir in $PATH 7110 do 7111 IFS=$as_save_IFS 7112 test -z "$as_dir" && as_dir=. 7113 for ac_exec_ext in '' $ac_executable_extensions; do 7114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7115 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7117 break 2 7118 fi 7119 done 7120 done 7121 IFS=$as_save_IFS 7122 7123 fi 7124 fi 7125 OTOOL64=$ac_cv_prog_OTOOL64 7126 if test -n "$OTOOL64"; then 7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7128 $as_echo "$OTOOL64" >&6; } 7129 else 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7131 $as_echo "no" >&6; } 7132 fi 7133 7134 7135 fi 7136 if test -z "$ac_cv_prog_OTOOL64"; then 7137 ac_ct_OTOOL64=$OTOOL64 7138 # Extract the first word of "otool64", so it can be a program name with args. 7139 set dummy otool64; ac_word=$2 7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7141 $as_echo_n "checking for $ac_word... " >&6; } 7142 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7143 $as_echo_n "(cached) " >&6 7144 else 7145 if test -n "$ac_ct_OTOOL64"; then 7146 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7147 else 7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7149 for as_dir in $PATH 7150 do 7151 IFS=$as_save_IFS 7152 test -z "$as_dir" && as_dir=. 7153 for ac_exec_ext in '' $ac_executable_extensions; do 7154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7155 ac_cv_prog_ac_ct_OTOOL64="otool64" 7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7157 break 2 7158 fi 7159 done 7160 done 7161 IFS=$as_save_IFS 7162 7163 fi 7164 fi 7165 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7166 if test -n "$ac_ct_OTOOL64"; then 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7168 $as_echo "$ac_ct_OTOOL64" >&6; } 7169 else 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7171 $as_echo "no" >&6; } 7172 fi 7173 7174 if test "x$ac_ct_OTOOL64" = x; then 7175 OTOOL64=":" 7176 else 7177 case $cross_compiling:$ac_tool_warned in 7178 yes:) 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7181 ac_tool_warned=yes ;; 7182 esac 7183 OTOOL64=$ac_ct_OTOOL64 7184 fi 7185 else 7186 OTOOL64="$ac_cv_prog_OTOOL64" 7187 fi 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7216 $as_echo_n "checking for -single_module linker flag... " >&6; } 7217 if ${lt_cv_apple_cc_single_mod+:} false; then : 7218 $as_echo_n "(cached) " >&6 7219 else 7220 lt_cv_apple_cc_single_mod=no 7221 if test -z "${LT_MULTI_MODULE}"; then 7222 # By default we will add the -single_module flag. You can override 7223 # by either setting the environment variable LT_MULTI_MODULE 7224 # non-empty at configure time, or by adding -multi_module to the 7225 # link flags. 7226 rm -rf libconftest.dylib* 7227 echo "int foo(void){return 1;}" > conftest.c 7228 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7229 -dynamiclib -Wl,-single_module conftest.c" >&5 7230 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7231 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7232 _lt_result=$? 7233 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7234 lt_cv_apple_cc_single_mod=yes 7235 else 7236 cat conftest.err >&5 7237 fi 7238 rm -rf libconftest.dylib* 7239 rm -f conftest.* 7240 fi 7241 fi 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7243 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7245 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7246 if ${lt_cv_ld_exported_symbols_list+:} false; then : 7247 $as_echo_n "(cached) " >&6 7248 else 7249 lt_cv_ld_exported_symbols_list=no 7250 save_LDFLAGS=$LDFLAGS 7251 echo "_main" > conftest.sym 7252 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7253 if test x$gcc_no_link = xyes; then 7254 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 7255 fi 7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7257 /* end confdefs.h. */ 7258 7259 int 7260 main () 7261 { 7262 7263 ; 7264 return 0; 7265 } 7266 _ACEOF 7267 if ac_fn_c_try_link "$LINENO"; then : 7268 lt_cv_ld_exported_symbols_list=yes 7269 else 7270 lt_cv_ld_exported_symbols_list=no 7271 fi 7272 rm -f core conftest.err conftest.$ac_objext \ 7273 conftest$ac_exeext conftest.$ac_ext 7274 LDFLAGS="$save_LDFLAGS" 7275 7276 fi 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7278 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7280 $as_echo_n "checking for -force_load linker flag... " >&6; } 7281 if ${lt_cv_ld_force_load+:} false; then : 7282 $as_echo_n "(cached) " >&6 7283 else 7284 lt_cv_ld_force_load=no 7285 cat > conftest.c << _LT_EOF 7286 int forced_loaded() { return 2;} 7287 _LT_EOF 7288 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7289 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7290 echo "$AR cru libconftest.a conftest.o" >&5 7291 $AR cru libconftest.a conftest.o 2>&5 7292 cat > conftest.c << _LT_EOF 7293 int main() { return 0;} 7294 _LT_EOF 7295 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7296 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7297 _lt_result=$? 7298 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7299 lt_cv_ld_force_load=yes 7300 else 7301 cat conftest.err >&5 7302 fi 7303 rm -f conftest.err libconftest.a conftest conftest.c 7304 rm -rf conftest.dSYM 7305 7306 fi 7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7308 $as_echo "$lt_cv_ld_force_load" >&6; } 7309 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to 7310 # build without first building modern cctools / linker. 7311 case $host_cpu-$host_os in 7312 *-rhapsody* | *-darwin1.[012]) 7313 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7314 *-darwin1.*) 7315 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7316 *-darwin*) 7317 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the 7318 # deployment target is forced to an earlier version. 7319 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in 7320 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*) 7321 ;; 7322 10.[012][,.]*) 7323 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7324 ;; 7325 *) 7326 ;; 7327 esac 7328 ;; 7329 esac 7330 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7331 _lt_dar_single_mod='$single_module' 7332 fi 7333 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7334 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7335 else 7336 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7337 fi 7338 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7339 _lt_dsymutil='~$DSYMUTIL $lib || :' 7340 else 7341 _lt_dsymutil= 7342 fi 7343 ;; 7344 esac 7345 7346 for ac_header in dlfcn.h 7347 do : 7348 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7349 " 7350 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7351 cat >>confdefs.h <<_ACEOF 7352 #define HAVE_DLFCN_H 1 7353 _ACEOF 7354 7355 fi 7356 7357 done 7358 7359 7360 7361 7362 7363 # Set options 7364 7365 7366 7367 enable_dlopen=no 7368 7369 7370 enable_win32_dll=no 7371 7372 7373 # Check whether --enable-shared was given. 7374 if test "${enable_shared+set}" = set; then : 7375 enableval=$enable_shared; p=${PACKAGE-default} 7376 case $enableval in 7377 yes) enable_shared=yes ;; 7378 no) enable_shared=no ;; 7379 *) 7380 enable_shared=no 7381 # Look at the argument we got. We use all the common list separators. 7382 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7383 for pkg in $enableval; do 7384 IFS="$lt_save_ifs" 7385 if test "X$pkg" = "X$p"; then 7386 enable_shared=yes 7387 fi 7388 done 7389 IFS="$lt_save_ifs" 7390 ;; 7391 esac 7392 else 7393 enable_shared=yes 7394 fi 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 # Check whether --enable-static was given. 7405 if test "${enable_static+set}" = set; then : 7406 enableval=$enable_static; p=${PACKAGE-default} 7407 case $enableval in 7408 yes) enable_static=yes ;; 7409 no) enable_static=no ;; 7410 *) 7411 enable_static=no 7412 # Look at the argument we got. We use all the common list separators. 7413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7414 for pkg in $enableval; do 7415 IFS="$lt_save_ifs" 7416 if test "X$pkg" = "X$p"; then 7417 enable_static=yes 7418 fi 7419 done 7420 IFS="$lt_save_ifs" 7421 ;; 7422 esac 7423 else 7424 enable_static=yes 7425 fi 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 # Check whether --with-pic was given. 7437 if test "${with_pic+set}" = set; then : 7438 withval=$with_pic; pic_mode="$withval" 7439 else 7440 pic_mode=default 7441 fi 7442 7443 7444 test -z "$pic_mode" && pic_mode=default 7445 7446 7447 7448 7449 7450 7451 7452 # Check whether --enable-fast-install was given. 7453 if test "${enable_fast_install+set}" = set; then : 7454 enableval=$enable_fast_install; p=${PACKAGE-default} 7455 case $enableval in 7456 yes) enable_fast_install=yes ;; 7457 no) enable_fast_install=no ;; 7458 *) 7459 enable_fast_install=no 7460 # Look at the argument we got. We use all the common list separators. 7461 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7462 for pkg in $enableval; do 7463 IFS="$lt_save_ifs" 7464 if test "X$pkg" = "X$p"; then 7465 enable_fast_install=yes 7466 fi 7467 done 7468 IFS="$lt_save_ifs" 7469 ;; 7470 esac 7471 else 7472 enable_fast_install=yes 7473 fi 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 # This can be used to rebuild libtool when needed 7486 LIBTOOL_DEPS="$ltmain" 7487 7488 # Always use our own libtool. 7489 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 test -z "$LN_S" && LN_S="ln -s" 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 if test -n "${ZSH_VERSION+set}" ; then 7532 setopt NO_GLOB_SUBST 7533 fi 7534 7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7536 $as_echo_n "checking for objdir... " >&6; } 7537 if ${lt_cv_objdir+:} false; then : 7538 $as_echo_n "(cached) " >&6 7539 else 7540 rm -f .libs 2>/dev/null 7541 mkdir .libs 2>/dev/null 7542 if test -d .libs; then 7543 lt_cv_objdir=.libs 7544 else 7545 # MS-DOS does not allow filenames that begin with a dot. 7546 lt_cv_objdir=_libs 7547 fi 7548 rmdir .libs 2>/dev/null 7549 fi 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7551 $as_echo "$lt_cv_objdir" >&6; } 7552 objdir=$lt_cv_objdir 7553 7554 7555 7556 7557 7558 cat >>confdefs.h <<_ACEOF 7559 #define LT_OBJDIR "$lt_cv_objdir/" 7560 _ACEOF 7561 7562 7563 7564 7565 case $host_os in 7566 aix3*) 7567 # AIX sometimes has problems with the GCC collect2 program. For some 7568 # reason, if we set the COLLECT_NAMES environment variable, the problems 7569 # vanish in a puff of smoke. 7570 if test "X${COLLECT_NAMES+set}" != Xset; then 7571 COLLECT_NAMES= 7572 export COLLECT_NAMES 7573 fi 7574 ;; 7575 esac 7576 7577 # Global variables: 7578 ofile=libtool 7579 can_build_shared=yes 7580 7581 # All known linkers require a `.a' archive for static linking (except MSVC, 7582 # which needs '.lib'). 7583 libext=a 7584 7585 with_gnu_ld="$lt_cv_prog_gnu_ld" 7586 7587 old_CC="$CC" 7588 old_CFLAGS="$CFLAGS" 7589 7590 # Set sane defaults for various variables 7591 test -z "$CC" && CC=cc 7592 test -z "$LTCC" && LTCC=$CC 7593 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7594 test -z "$LD" && LD=ld 7595 test -z "$ac_objext" && ac_objext=o 7596 7597 for cc_temp in $compiler""; do 7598 case $cc_temp in 7599 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7600 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7601 \-*) ;; 7602 *) break;; 7603 esac 7604 done 7605 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7606 7607 7608 # Only perform the check for file, if the check method requires it 7609 test -z "$MAGIC_CMD" && MAGIC_CMD=file 7610 case $deplibs_check_method in 7611 file_magic*) 7612 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7614 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7615 if ${lt_cv_path_MAGIC_CMD+:} false; then : 7616 $as_echo_n "(cached) " >&6 7617 else 7618 case $MAGIC_CMD in 7619 [\\/*] | ?:[\\/]*) 7620 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7621 ;; 7622 *) 7623 lt_save_MAGIC_CMD="$MAGIC_CMD" 7624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7625 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7626 for ac_dir in $ac_dummy; do 7627 IFS="$lt_save_ifs" 7628 test -z "$ac_dir" && ac_dir=. 7629 if test -f $ac_dir/${ac_tool_prefix}file; then 7630 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7631 if test -n "$file_magic_test_file"; then 7632 case $deplibs_check_method in 7633 "file_magic "*) 7634 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7635 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7636 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7637 $EGREP "$file_magic_regex" > /dev/null; then 7638 : 7639 else 7640 cat <<_LT_EOF 1>&2 7641 7642 *** Warning: the command libtool uses to detect shared libraries, 7643 *** $file_magic_cmd, produces output that libtool cannot recognize. 7644 *** The result is that libtool may fail to recognize shared libraries 7645 *** as such. This will affect the creation of libtool libraries that 7646 *** depend on shared libraries, but programs linked with such libtool 7647 *** libraries will work regardless of this problem. Nevertheless, you 7648 *** may want to report the problem to your system manager and/or to 7649 *** bug-libtool@gnu.org 7650 7651 _LT_EOF 7652 fi ;; 7653 esac 7654 fi 7655 break 7656 fi 7657 done 7658 IFS="$lt_save_ifs" 7659 MAGIC_CMD="$lt_save_MAGIC_CMD" 7660 ;; 7661 esac 7662 fi 7663 7664 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7665 if test -n "$MAGIC_CMD"; then 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7667 $as_echo "$MAGIC_CMD" >&6; } 7668 else 7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7670 $as_echo "no" >&6; } 7671 fi 7672 7673 7674 7675 7676 7677 if test -z "$lt_cv_path_MAGIC_CMD"; then 7678 if test -n "$ac_tool_prefix"; then 7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7680 $as_echo_n "checking for file... " >&6; } 7681 if ${lt_cv_path_MAGIC_CMD+:} false; then : 7682 $as_echo_n "(cached) " >&6 7683 else 7684 case $MAGIC_CMD in 7685 [\\/*] | ?:[\\/]*) 7686 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7687 ;; 7688 *) 7689 lt_save_MAGIC_CMD="$MAGIC_CMD" 7690 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7691 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7692 for ac_dir in $ac_dummy; do 7693 IFS="$lt_save_ifs" 7694 test -z "$ac_dir" && ac_dir=. 7695 if test -f $ac_dir/file; then 7696 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7697 if test -n "$file_magic_test_file"; then 7698 case $deplibs_check_method in 7699 "file_magic "*) 7700 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7702 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7703 $EGREP "$file_magic_regex" > /dev/null; then 7704 : 7705 else 7706 cat <<_LT_EOF 1>&2 7707 7708 *** Warning: the command libtool uses to detect shared libraries, 7709 *** $file_magic_cmd, produces output that libtool cannot recognize. 7710 *** The result is that libtool may fail to recognize shared libraries 7711 *** as such. This will affect the creation of libtool libraries that 7712 *** depend on shared libraries, but programs linked with such libtool 7713 *** libraries will work regardless of this problem. Nevertheless, you 7714 *** may want to report the problem to your system manager and/or to 7715 *** bug-libtool@gnu.org 7716 7717 _LT_EOF 7718 fi ;; 7719 esac 7720 fi 7721 break 7722 fi 7723 done 7724 IFS="$lt_save_ifs" 7725 MAGIC_CMD="$lt_save_MAGIC_CMD" 7726 ;; 7727 esac 7728 fi 7729 7730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7731 if test -n "$MAGIC_CMD"; then 7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7733 $as_echo "$MAGIC_CMD" >&6; } 7734 else 7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7736 $as_echo "no" >&6; } 7737 fi 7738 7739 7740 else 7741 MAGIC_CMD=: 7742 fi 7743 fi 7744 7745 fi 7746 ;; 7747 esac 7748 7749 # Use C for the default configuration in the libtool script 7750 7751 lt_save_CC="$CC" 7752 ac_ext=c 7753 ac_cpp='$CPP $CPPFLAGS' 7754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7756 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7757 7758 7759 # Source file extension for C test sources. 7760 ac_ext=c 7761 7762 # Object file extension for compiled C test sources. 7763 objext=o 7764 objext=$objext 7765 7766 # Code to be used in simple compile tests 7767 lt_simple_compile_test_code="int some_variable = 0;" 7768 7769 # Code to be used in simple link tests 7770 lt_simple_link_test_code='int main(){return(0);}' 7771 7772 7773 7774 7775 7776 7777 7778 # If no C compiler was specified, use CC. 7779 LTCC=${LTCC-"$CC"} 7780 7781 # If no C compiler flags were specified, use CFLAGS. 7782 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7783 7784 # Allow CC to be a program name with arguments. 7785 compiler=$CC 7786 7787 # Save the default compiler, since it gets overwritten when the other 7788 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7789 compiler_DEFAULT=$CC 7790 7791 # save warnings/boilerplate of simple test code 7792 ac_outfile=conftest.$ac_objext 7793 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7794 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7795 _lt_compiler_boilerplate=`cat conftest.err` 7796 $RM conftest* 7797 7798 ac_outfile=conftest.$ac_objext 7799 echo "$lt_simple_link_test_code" >conftest.$ac_ext 7800 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7801 _lt_linker_boilerplate=`cat conftest.err` 7802 $RM -r conftest* 7803 7804 7805 ## CAVEAT EMPTOR: 7806 ## There is no encapsulation within the following macros, do not change 7807 ## the running order or otherwise move them around unless you know exactly 7808 ## what you are doing... 7809 if test -n "$compiler"; then 7810 7811 lt_prog_compiler_no_builtin_flag= 7812 7813 if test "$GCC" = yes; then 7814 case $cc_basename in 7815 nvcc*) 7816 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7817 *) 7818 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7819 esac 7820 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7822 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7823 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7824 $as_echo_n "(cached) " >&6 7825 else 7826 lt_cv_prog_compiler_rtti_exceptions=no 7827 ac_outfile=conftest.$ac_objext 7828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7829 lt_compiler_flag="-fno-rtti -fno-exceptions" 7830 # Insert the option either (1) after the last *FLAGS variable, or 7831 # (2) before a word containing "conftest.", or (3) at the end. 7832 # Note that $ac_compile itself does not contain backslashes and begins 7833 # with a dollar sign (not a hyphen), so the echo should work correctly. 7834 # The option is referenced via a variable to avoid confusing sed. 7835 lt_compile=`echo "$ac_compile" | $SED \ 7836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7838 -e 's:$: $lt_compiler_flag:'` 7839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7840 (eval "$lt_compile" 2>conftest.err) 7841 ac_status=$? 7842 cat conftest.err >&5 7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7844 if (exit $ac_status) && test -s "$ac_outfile"; then 7845 # The compiler can only warn and ignore the option if not recognized 7846 # So say no if there are warnings other than the usual output. 7847 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7849 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7850 lt_cv_prog_compiler_rtti_exceptions=yes 7851 fi 7852 fi 7853 $RM conftest* 7854 7855 fi 7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7857 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7858 7859 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7860 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7861 else 7862 : 7863 fi 7864 7865 fi 7866 7867 7868 7869 7870 7871 7872 lt_prog_compiler_wl= 7873 lt_prog_compiler_pic= 7874 lt_prog_compiler_static= 7875 7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7877 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7878 7879 if test "$GCC" = yes; then 7880 lt_prog_compiler_wl='-Wl,' 7881 lt_prog_compiler_static='-static' 7882 7883 case $host_os in 7884 aix*) 7885 # All AIX code is PIC. 7886 if test "$host_cpu" = ia64; then 7887 # AIX 5 now supports IA64 processor 7888 lt_prog_compiler_static='-Bstatic' 7889 fi 7890 lt_prog_compiler_pic='-fPIC' 7891 ;; 7892 7893 amigaos*) 7894 case $host_cpu in 7895 powerpc) 7896 # see comment about AmigaOS4 .so support 7897 lt_prog_compiler_pic='-fPIC' 7898 ;; 7899 m68k) 7900 # FIXME: we need at least 68020 code to build shared libraries, but 7901 # adding the `-m68020' flag to GCC prevents building anything better, 7902 # like `-m68040'. 7903 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7904 ;; 7905 esac 7906 ;; 7907 7908 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7909 # PIC is the default for these OSes. 7910 ;; 7911 7912 mingw* | cygwin* | pw32* | os2* | cegcc*) 7913 # This hack is so that the source file can tell whether it is being 7914 # built for inclusion in a dll (and should export symbols for example). 7915 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7916 # (--disable-auto-import) libraries 7917 lt_prog_compiler_pic='-DDLL_EXPORT' 7918 ;; 7919 7920 darwin* | rhapsody*) 7921 # PIC is the default on this platform 7922 # Common symbols not allowed in MH_DYLIB files 7923 lt_prog_compiler_pic='-fno-common' 7924 ;; 7925 7926 haiku*) 7927 # PIC is the default for Haiku. 7928 # The "-static" flag exists, but is broken. 7929 lt_prog_compiler_static= 7930 ;; 7931 7932 hpux*) 7933 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7934 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7935 # sets the default TLS model and affects inlining. 7936 case $host_cpu in 7937 hppa*64*) 7938 # +Z the default 7939 ;; 7940 *) 7941 lt_prog_compiler_pic='-fPIC' 7942 ;; 7943 esac 7944 ;; 7945 7946 interix[3-9]*) 7947 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7948 # Instead, we relocate shared libraries at runtime. 7949 ;; 7950 7951 msdosdjgpp*) 7952 # Just because we use GCC doesn't mean we suddenly get shared libraries 7953 # on systems that don't support them. 7954 lt_prog_compiler_can_build_shared=no 7955 enable_shared=no 7956 ;; 7957 7958 *nto* | *qnx*) 7959 # QNX uses GNU C++, but need to define -shared option too, otherwise 7960 # it will coredump. 7961 lt_prog_compiler_pic='-fPIC -shared' 7962 ;; 7963 7964 sysv4*MP*) 7965 if test -d /usr/nec; then 7966 lt_prog_compiler_pic=-Kconform_pic 7967 fi 7968 ;; 7969 7970 *) 7971 lt_prog_compiler_pic='-fPIC' 7972 ;; 7973 esac 7974 7975 case $cc_basename in 7976 nvcc*) # Cuda Compiler Driver 2.2 7977 lt_prog_compiler_wl='-Xlinker ' 7978 lt_prog_compiler_pic='-Xcompiler -fPIC' 7979 ;; 7980 esac 7981 else 7982 # PORTME Check for flag to pass linker flags through the system compiler. 7983 case $host_os in 7984 aix*) 7985 lt_prog_compiler_wl='-Wl,' 7986 if test "$host_cpu" = ia64; then 7987 # AIX 5 now supports IA64 processor 7988 lt_prog_compiler_static='-Bstatic' 7989 else 7990 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7991 fi 7992 ;; 7993 7994 mingw* | cygwin* | pw32* | os2* | cegcc*) 7995 # This hack is so that the source file can tell whether it is being 7996 # built for inclusion in a dll (and should export symbols for example). 7997 lt_prog_compiler_pic='-DDLL_EXPORT' 7998 ;; 7999 8000 hpux9* | hpux10* | hpux11*) 8001 lt_prog_compiler_wl='-Wl,' 8002 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8003 # not for PA HP-UX. 8004 case $host_cpu in 8005 hppa*64*|ia64*) 8006 # +Z the default 8007 ;; 8008 *) 8009 lt_prog_compiler_pic='+Z' 8010 ;; 8011 esac 8012 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8013 lt_prog_compiler_static='${wl}-a ${wl}archive' 8014 ;; 8015 8016 irix5* | irix6* | nonstopux*) 8017 lt_prog_compiler_wl='-Wl,' 8018 # PIC (with -KPIC) is the default. 8019 lt_prog_compiler_static='-non_shared' 8020 ;; 8021 8022 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8023 case $cc_basename in 8024 # old Intel for x86_64 which still supported -KPIC. 8025 ecc*) 8026 lt_prog_compiler_wl='-Wl,' 8027 lt_prog_compiler_pic='-KPIC' 8028 lt_prog_compiler_static='-static' 8029 ;; 8030 # icc used to be incompatible with GCC. 8031 # ICC 10 doesn't accept -KPIC any more. 8032 icc* | ifort*) 8033 lt_prog_compiler_wl='-Wl,' 8034 lt_prog_compiler_pic='-fPIC' 8035 lt_prog_compiler_static='-static' 8036 ;; 8037 # Lahey Fortran 8.1. 8038 lf95*) 8039 lt_prog_compiler_wl='-Wl,' 8040 lt_prog_compiler_pic='--shared' 8041 lt_prog_compiler_static='--static' 8042 ;; 8043 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8044 # Portland Group compilers (*not* the Pentium gcc compiler, 8045 # which looks to be a dead project) 8046 lt_prog_compiler_wl='-Wl,' 8047 lt_prog_compiler_pic='-fpic' 8048 lt_prog_compiler_static='-Bstatic' 8049 ;; 8050 ccc*) 8051 lt_prog_compiler_wl='-Wl,' 8052 # All Alpha code is PIC. 8053 lt_prog_compiler_static='-non_shared' 8054 ;; 8055 xl* | bgxl* | bgf* | mpixl*) 8056 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8057 lt_prog_compiler_wl='-Wl,' 8058 lt_prog_compiler_pic='-qpic' 8059 lt_prog_compiler_static='-qstaticlink' 8060 ;; 8061 *) 8062 case `$CC -V 2>&1 | sed 5q` in 8063 *Sun\ F* | *Sun*Fortran*) 8064 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8065 lt_prog_compiler_pic='-KPIC' 8066 lt_prog_compiler_static='-Bstatic' 8067 lt_prog_compiler_wl='' 8068 ;; 8069 *Sun\ C*) 8070 # Sun C 5.9 8071 lt_prog_compiler_pic='-KPIC' 8072 lt_prog_compiler_static='-Bstatic' 8073 lt_prog_compiler_wl='-Wl,' 8074 ;; 8075 esac 8076 ;; 8077 esac 8078 ;; 8079 8080 newsos6) 8081 lt_prog_compiler_pic='-KPIC' 8082 lt_prog_compiler_static='-Bstatic' 8083 ;; 8084 8085 *nto* | *qnx*) 8086 # QNX uses GNU C++, but need to define -shared option too, otherwise 8087 # it will coredump. 8088 lt_prog_compiler_pic='-fPIC -shared' 8089 ;; 8090 8091 osf3* | osf4* | osf5*) 8092 lt_prog_compiler_wl='-Wl,' 8093 # All OSF/1 code is PIC. 8094 lt_prog_compiler_static='-non_shared' 8095 ;; 8096 8097 rdos*) 8098 lt_prog_compiler_static='-non_shared' 8099 ;; 8100 8101 solaris*) 8102 lt_prog_compiler_pic='-KPIC' 8103 lt_prog_compiler_static='-Bstatic' 8104 case $cc_basename in 8105 f77* | f90* | f95*) 8106 lt_prog_compiler_wl='-Qoption ld ';; 8107 *) 8108 lt_prog_compiler_wl='-Wl,';; 8109 esac 8110 ;; 8111 8112 sunos4*) 8113 lt_prog_compiler_wl='-Qoption ld ' 8114 lt_prog_compiler_pic='-PIC' 8115 lt_prog_compiler_static='-Bstatic' 8116 ;; 8117 8118 sysv4 | sysv4.2uw2* | sysv4.3*) 8119 lt_prog_compiler_wl='-Wl,' 8120 lt_prog_compiler_pic='-KPIC' 8121 lt_prog_compiler_static='-Bstatic' 8122 ;; 8123 8124 sysv4*MP*) 8125 if test -d /usr/nec ;then 8126 lt_prog_compiler_pic='-Kconform_pic' 8127 lt_prog_compiler_static='-Bstatic' 8128 fi 8129 ;; 8130 8131 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8132 lt_prog_compiler_wl='-Wl,' 8133 lt_prog_compiler_pic='-KPIC' 8134 lt_prog_compiler_static='-Bstatic' 8135 ;; 8136 8137 unicos*) 8138 lt_prog_compiler_wl='-Wl,' 8139 lt_prog_compiler_can_build_shared=no 8140 ;; 8141 8142 uts4*) 8143 lt_prog_compiler_pic='-pic' 8144 lt_prog_compiler_static='-Bstatic' 8145 ;; 8146 8147 *) 8148 lt_prog_compiler_can_build_shared=no 8149 ;; 8150 esac 8151 fi 8152 8153 case $host_os in 8154 # For platforms which do not support PIC, -DPIC is meaningless: 8155 *djgpp*) 8156 lt_prog_compiler_pic= 8157 ;; 8158 *) 8159 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8160 ;; 8161 esac 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8163 $as_echo "$lt_prog_compiler_pic" >&6; } 8164 8165 8166 8167 8168 8169 8170 # 8171 # Check to make sure the PIC flag actually works. 8172 # 8173 if test -n "$lt_prog_compiler_pic"; then 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8175 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8176 if ${lt_cv_prog_compiler_pic_works+:} false; then : 8177 $as_echo_n "(cached) " >&6 8178 else 8179 lt_cv_prog_compiler_pic_works=no 8180 ac_outfile=conftest.$ac_objext 8181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8182 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8183 # Insert the option either (1) after the last *FLAGS variable, or 8184 # (2) before a word containing "conftest.", or (3) at the end. 8185 # Note that $ac_compile itself does not contain backslashes and begins 8186 # with a dollar sign (not a hyphen), so the echo should work correctly. 8187 # The option is referenced via a variable to avoid confusing sed. 8188 lt_compile=`echo "$ac_compile" | $SED \ 8189 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8191 -e 's:$: $lt_compiler_flag:'` 8192 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8193 (eval "$lt_compile" 2>conftest.err) 8194 ac_status=$? 8195 cat conftest.err >&5 8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8197 if (exit $ac_status) && test -s "$ac_outfile"; then 8198 # The compiler can only warn and ignore the option if not recognized 8199 # So say no if there are warnings other than the usual output. 8200 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8202 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8203 lt_cv_prog_compiler_pic_works=yes 8204 fi 8205 fi 8206 $RM conftest* 8207 8208 fi 8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8210 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8211 8212 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8213 case $lt_prog_compiler_pic in 8214 "" | " "*) ;; 8215 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8216 esac 8217 else 8218 lt_prog_compiler_pic= 8219 lt_prog_compiler_can_build_shared=no 8220 fi 8221 8222 fi 8223 8224 8225 8226 8227 8228 8229 # 8230 # Check to make sure the static flag actually works. 8231 # 8232 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8234 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8235 if ${lt_cv_prog_compiler_static_works+:} false; then : 8236 $as_echo_n "(cached) " >&6 8237 else 8238 lt_cv_prog_compiler_static_works=no 8239 save_LDFLAGS="$LDFLAGS" 8240 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8241 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8242 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8243 # The linker can only warn and ignore the option if not recognized 8244 # So say no if there are warnings 8245 if test -s conftest.err; then 8246 # Append any errors to the config.log. 8247 cat conftest.err 1>&5 8248 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8250 if diff conftest.exp conftest.er2 >/dev/null; then 8251 lt_cv_prog_compiler_static_works=yes 8252 fi 8253 else 8254 lt_cv_prog_compiler_static_works=yes 8255 fi 8256 fi 8257 $RM -r conftest* 8258 LDFLAGS="$save_LDFLAGS" 8259 8260 fi 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8262 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8263 8264 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8265 : 8266 else 8267 lt_prog_compiler_static= 8268 fi 8269 8270 8271 8272 8273 8274 8275 8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8277 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8278 if ${lt_cv_prog_compiler_c_o+:} false; then : 8279 $as_echo_n "(cached) " >&6 8280 else 8281 lt_cv_prog_compiler_c_o=no 8282 $RM -r conftest 2>/dev/null 8283 mkdir conftest 8284 cd conftest 8285 mkdir out 8286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8287 8288 lt_compiler_flag="-o out/conftest2.$ac_objext" 8289 # Insert the option either (1) after the last *FLAGS variable, or 8290 # (2) before a word containing "conftest.", or (3) at the end. 8291 # Note that $ac_compile itself does not contain backslashes and begins 8292 # with a dollar sign (not a hyphen), so the echo should work correctly. 8293 lt_compile=`echo "$ac_compile" | $SED \ 8294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8296 -e 's:$: $lt_compiler_flag:'` 8297 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8298 (eval "$lt_compile" 2>out/conftest.err) 8299 ac_status=$? 8300 cat out/conftest.err >&5 8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8302 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8303 then 8304 # The compiler can only warn and ignore the option if not recognized 8305 # So say no if there are warnings 8306 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8307 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8308 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8309 lt_cv_prog_compiler_c_o=yes 8310 fi 8311 fi 8312 chmod u+w . 2>&5 8313 $RM conftest* 8314 # SGI C++ compiler will create directory out/ii_files/ for 8315 # template instantiation 8316 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8317 $RM out/* && rmdir out 8318 cd .. 8319 $RM -r conftest 8320 $RM conftest* 8321 8322 fi 8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8324 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8325 8326 8327 8328 8329 8330 8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8332 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8333 if ${lt_cv_prog_compiler_c_o+:} false; then : 8334 $as_echo_n "(cached) " >&6 8335 else 8336 lt_cv_prog_compiler_c_o=no 8337 $RM -r conftest 2>/dev/null 8338 mkdir conftest 8339 cd conftest 8340 mkdir out 8341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8342 8343 lt_compiler_flag="-o out/conftest2.$ac_objext" 8344 # Insert the option either (1) after the last *FLAGS variable, or 8345 # (2) before a word containing "conftest.", or (3) at the end. 8346 # Note that $ac_compile itself does not contain backslashes and begins 8347 # with a dollar sign (not a hyphen), so the echo should work correctly. 8348 lt_compile=`echo "$ac_compile" | $SED \ 8349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8351 -e 's:$: $lt_compiler_flag:'` 8352 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8353 (eval "$lt_compile" 2>out/conftest.err) 8354 ac_status=$? 8355 cat out/conftest.err >&5 8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8357 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8358 then 8359 # The compiler can only warn and ignore the option if not recognized 8360 # So say no if there are warnings 8361 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8362 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8363 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8364 lt_cv_prog_compiler_c_o=yes 8365 fi 8366 fi 8367 chmod u+w . 2>&5 8368 $RM conftest* 8369 # SGI C++ compiler will create directory out/ii_files/ for 8370 # template instantiation 8371 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8372 $RM out/* && rmdir out 8373 cd .. 8374 $RM -r conftest 8375 $RM conftest* 8376 8377 fi 8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8379 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8380 8381 8382 8383 8384 hard_links="nottested" 8385 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8386 # do not overwrite the value of need_locks provided by the user 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8388 $as_echo_n "checking if we can lock with hard links... " >&6; } 8389 hard_links=yes 8390 $RM conftest* 8391 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8392 touch conftest.a 8393 ln conftest.a conftest.b 2>&5 || hard_links=no 8394 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8396 $as_echo "$hard_links" >&6; } 8397 if test "$hard_links" = no; then 8398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8399 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8400 need_locks=warn 8401 fi 8402 else 8403 need_locks=no 8404 fi 8405 8406 8407 8408 8409 8410 8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8412 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8413 8414 runpath_var= 8415 allow_undefined_flag= 8416 always_export_symbols=no 8417 archive_cmds= 8418 archive_expsym_cmds= 8419 compiler_needs_object=no 8420 enable_shared_with_static_runtimes=no 8421 export_dynamic_flag_spec= 8422 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8423 hardcode_automatic=no 8424 hardcode_direct=no 8425 hardcode_direct_absolute=no 8426 hardcode_libdir_flag_spec= 8427 hardcode_libdir_flag_spec_ld= 8428 hardcode_libdir_separator= 8429 hardcode_minus_L=no 8430 hardcode_shlibpath_var=unsupported 8431 inherit_rpath=no 8432 link_all_deplibs=unknown 8433 module_cmds= 8434 module_expsym_cmds= 8435 old_archive_from_new_cmds= 8436 old_archive_from_expsyms_cmds= 8437 thread_safe_flag_spec= 8438 whole_archive_flag_spec= 8439 # include_expsyms should be a list of space-separated symbols to be *always* 8440 # included in the symbol list 8441 include_expsyms= 8442 # exclude_expsyms can be an extended regexp of symbols to exclude 8443 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8444 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8445 # as well as any symbol that contains `d'. 8446 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8447 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8448 # platforms (ab)use it in PIC code, but their linkers get confused if 8449 # the symbol is explicitly referenced. Since portable code cannot 8450 # rely on this symbol name, it's probably fine to never include it in 8451 # preloaded symbol tables. 8452 # Exclude shared library initialization/finalization symbols. 8453 extract_expsyms_cmds= 8454 8455 case $host_os in 8456 cygwin* | mingw* | pw32* | cegcc*) 8457 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8458 # When not using gcc, we currently assume that we are using 8459 # Microsoft Visual C++. 8460 if test "$GCC" != yes; then 8461 with_gnu_ld=no 8462 fi 8463 ;; 8464 interix*) 8465 # we just hope/assume this is gcc and not c89 (= MSVC++) 8466 with_gnu_ld=yes 8467 ;; 8468 openbsd*) 8469 with_gnu_ld=no 8470 ;; 8471 esac 8472 8473 ld_shlibs=yes 8474 8475 # On some targets, GNU ld is compatible enough with the native linker 8476 # that we're better off using the native interface for both. 8477 lt_use_gnu_ld_interface=no 8478 if test "$with_gnu_ld" = yes; then 8479 case $host_os in 8480 aix*) 8481 # The AIX port of GNU ld has always aspired to compatibility 8482 # with the native linker. However, as the warning in the GNU ld 8483 # block says, versions before 2.19.5* couldn't really create working 8484 # shared libraries, regardless of the interface used. 8485 case `$LD -v 2>&1` in 8486 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8487 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8488 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8489 *) 8490 lt_use_gnu_ld_interface=yes 8491 ;; 8492 esac 8493 ;; 8494 *) 8495 lt_use_gnu_ld_interface=yes 8496 ;; 8497 esac 8498 fi 8499 8500 if test "$lt_use_gnu_ld_interface" = yes; then 8501 # If archive_cmds runs LD, not CC, wlarc should be empty 8502 wlarc='${wl}' 8503 8504 # Set some defaults for GNU ld with shared library support. These 8505 # are reset later if shared libraries are not supported. Putting them 8506 # here allows them to be overridden if necessary. 8507 runpath_var=LD_RUN_PATH 8508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8509 export_dynamic_flag_spec='${wl}--export-dynamic' 8510 # ancient GNU ld didn't support --whole-archive et. al. 8511 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8512 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8513 else 8514 whole_archive_flag_spec= 8515 fi 8516 supports_anon_versioning=no 8517 case `$LD -v 2>&1` in 8518 *GNU\ gold*) supports_anon_versioning=yes ;; 8519 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8520 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8521 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8522 *\ 2.11.*) ;; # other 2.11 versions 8523 *) supports_anon_versioning=yes ;; 8524 esac 8525 8526 # See if GNU ld supports shared libraries. 8527 case $host_os in 8528 aix[3-9]*) 8529 # On AIX/PPC, the GNU linker is very broken 8530 if test "$host_cpu" != ia64; then 8531 ld_shlibs=no 8532 cat <<_LT_EOF 1>&2 8533 8534 *** Warning: the GNU linker, at least up to release 2.19, is reported 8535 *** to be unable to reliably create shared libraries on AIX. 8536 *** Therefore, libtool is disabling shared libraries support. If you 8537 *** really care for shared libraries, you may want to install binutils 8538 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8539 *** You will then need to restart the configuration process. 8540 8541 _LT_EOF 8542 fi 8543 ;; 8544 8545 amigaos*) 8546 case $host_cpu in 8547 powerpc) 8548 # see comment about AmigaOS4 .so support 8549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8550 archive_expsym_cmds='' 8551 ;; 8552 m68k) 8553 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)' 8554 hardcode_libdir_flag_spec='-L$libdir' 8555 hardcode_minus_L=yes 8556 ;; 8557 esac 8558 ;; 8559 8560 beos*) 8561 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8562 allow_undefined_flag=unsupported 8563 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 8564 # support --undefined. This deserves some investigation. FIXME 8565 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8566 else 8567 ld_shlibs=no 8568 fi 8569 ;; 8570 8571 cygwin* | mingw* | pw32* | cegcc*) 8572 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8573 # as there is no search path for DLLs. 8574 hardcode_libdir_flag_spec='-L$libdir' 8575 export_dynamic_flag_spec='${wl}--export-all-symbols' 8576 allow_undefined_flag=unsupported 8577 always_export_symbols=no 8578 enable_shared_with_static_runtimes=yes 8579 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8580 8581 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8583 # If the export-symbols file already is a .def file (1st line 8584 # is EXPORTS), use it as is; otherwise, prepend... 8585 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8586 cp $export_symbols $output_objdir/$soname.def; 8587 else 8588 echo EXPORTS > $output_objdir/$soname.def; 8589 cat $export_symbols >> $output_objdir/$soname.def; 8590 fi~ 8591 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8592 else 8593 ld_shlibs=no 8594 fi 8595 ;; 8596 8597 haiku*) 8598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8599 link_all_deplibs=yes 8600 ;; 8601 8602 interix[3-9]*) 8603 hardcode_direct=no 8604 hardcode_shlibpath_var=no 8605 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8606 export_dynamic_flag_spec='${wl}-E' 8607 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8608 # Instead, shared libraries are loaded at an image base (0x10000000 by 8609 # default) and relocated if they conflict, which is a slow very memory 8610 # consuming and fragmenting process. To avoid this, we pick a random, 8611 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8612 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8613 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8614 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' 8615 ;; 8616 8617 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 8618 tmp_diet=no 8619 if test "$host_os" = linux-dietlibc; then 8620 case $cc_basename in 8621 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8622 esac 8623 fi 8624 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8625 && test "$tmp_diet" = no 8626 then 8627 tmp_addflag=' $pic_flag' 8628 tmp_sharedflag='-shared' 8629 case $cc_basename,$host_cpu in 8630 pgcc*) # Portland Group C compiler 8631 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' 8632 tmp_addflag=' $pic_flag' 8633 ;; 8634 pgf77* | pgf90* | pgf95* | pgfortran*) 8635 # Portland Group f77 and f90 compilers 8636 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' 8637 tmp_addflag=' $pic_flag -Mnomain' ;; 8638 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8639 tmp_addflag=' -i_dynamic' ;; 8640 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8641 tmp_addflag=' -i_dynamic -nofor_main' ;; 8642 ifc* | ifort*) # Intel Fortran compiler 8643 tmp_addflag=' -nofor_main' ;; 8644 lf95*) # Lahey Fortran 8.1 8645 whole_archive_flag_spec= 8646 tmp_sharedflag='--shared' ;; 8647 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8648 tmp_sharedflag='-qmkshrobj' 8649 tmp_addflag= ;; 8650 nvcc*) # Cuda Compiler Driver 2.2 8651 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' 8652 compiler_needs_object=yes 8653 ;; 8654 esac 8655 case `$CC -V 2>&1 | sed 5q` in 8656 *Sun\ C*) # Sun C 5.9 8657 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' 8658 compiler_needs_object=yes 8659 tmp_sharedflag='-G' ;; 8660 *Sun\ F*) # Sun Fortran 8.3 8661 tmp_sharedflag='-G' ;; 8662 esac 8663 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8664 8665 if test "x$supports_anon_versioning" = xyes; then 8666 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8667 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8668 echo "local: *; };" >> $output_objdir/$libname.ver~ 8669 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8670 fi 8671 8672 case $cc_basename in 8673 xlf* | bgf* | bgxlf* | mpixlf*) 8674 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8675 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8676 hardcode_libdir_flag_spec= 8677 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8678 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8679 if test "x$supports_anon_versioning" = xyes; then 8680 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8681 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8682 echo "local: *; };" >> $output_objdir/$libname.ver~ 8683 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8684 fi 8685 ;; 8686 esac 8687 else 8688 ld_shlibs=no 8689 fi 8690 ;; 8691 8692 netbsd*) 8693 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8694 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8695 wlarc= 8696 else 8697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8698 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8699 fi 8700 ;; 8701 8702 solaris*) 8703 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8704 ld_shlibs=no 8705 cat <<_LT_EOF 1>&2 8706 8707 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 8708 *** create shared libraries on Solaris systems. Therefore, libtool 8709 *** is disabling shared libraries support. We urge you to upgrade GNU 8710 *** binutils to release 2.9.1 or newer. Another option is to modify 8711 *** your PATH or compiler configuration so that the native linker is 8712 *** used, and then restart. 8713 8714 _LT_EOF 8715 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8717 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8718 else 8719 ld_shlibs=no 8720 fi 8721 ;; 8722 8723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8724 case `$LD -v 2>&1` in 8725 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8726 ld_shlibs=no 8727 cat <<_LT_EOF 1>&2 8728 8729 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8730 *** reliably create shared libraries on SCO systems. Therefore, libtool 8731 *** is disabling shared libraries support. We urge you to upgrade GNU 8732 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8733 *** your PATH or compiler configuration so that the native linker is 8734 *** used, and then restart. 8735 8736 _LT_EOF 8737 ;; 8738 *) 8739 # For security reasons, it is highly recommended that you always 8740 # use absolute paths for naming shared libraries, and exclude the 8741 # DT_RUNPATH tag from executables and libraries. But doing so 8742 # requires that you compile everything twice, which is a pain. 8743 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8747 else 8748 ld_shlibs=no 8749 fi 8750 ;; 8751 esac 8752 ;; 8753 8754 sunos4*) 8755 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8756 wlarc= 8757 hardcode_direct=yes 8758 hardcode_shlibpath_var=no 8759 ;; 8760 8761 *) 8762 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8764 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8765 else 8766 ld_shlibs=no 8767 fi 8768 ;; 8769 esac 8770 8771 if test "$ld_shlibs" = no; then 8772 runpath_var= 8773 hardcode_libdir_flag_spec= 8774 export_dynamic_flag_spec= 8775 whole_archive_flag_spec= 8776 fi 8777 else 8778 # PORTME fill in a description of your system's linker (not GNU ld) 8779 case $host_os in 8780 aix3*) 8781 allow_undefined_flag=unsupported 8782 always_export_symbols=yes 8783 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' 8784 # Note: this linker hardcodes the directories in LIBPATH if there 8785 # are no directories specified by -L. 8786 hardcode_minus_L=yes 8787 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8788 # Neither direct hardcoding nor static linking is supported with a 8789 # broken collect2. 8790 hardcode_direct=unsupported 8791 fi 8792 ;; 8793 8794 aix[4-9]*) 8795 if test "$host_cpu" = ia64; then 8796 # On IA64, the linker does run time linking by default, so we don't 8797 # have to do anything special. 8798 aix_use_runtimelinking=no 8799 exp_sym_flag='-Bexport' 8800 no_entry_flag="" 8801 else 8802 # If we're using GNU nm, then we don't want the "-C" option. 8803 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8804 # Also, AIX nm treats weak defined symbols like other global 8805 # defined symbols, whereas GNU nm marks them as "W". 8806 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8807 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8808 else 8809 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8810 fi 8811 aix_use_runtimelinking=no 8812 8813 # Test if we are trying to use run time linking or normal 8814 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8815 # need to do runtime linking. 8816 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8817 for ld_flag in $LDFLAGS; do 8818 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8819 aix_use_runtimelinking=yes 8820 break 8821 fi 8822 done 8823 ;; 8824 esac 8825 8826 exp_sym_flag='-bexport' 8827 no_entry_flag='-bnoentry' 8828 fi 8829 8830 # When large executables or shared objects are built, AIX ld can 8831 # have problems creating the table of contents. If linking a library 8832 # or program results in "error TOC overflow" add -mminimal-toc to 8833 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8834 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8835 8836 archive_cmds='' 8837 hardcode_direct=yes 8838 hardcode_direct_absolute=yes 8839 hardcode_libdir_separator=':' 8840 link_all_deplibs=yes 8841 file_list_spec='${wl}-f,' 8842 8843 if test "$GCC" = yes; then 8844 case $host_os in aix4.[012]|aix4.[012].*) 8845 # We only want to do this on AIX 4.2 and lower, the check 8846 # below for broken collect2 doesn't work under 4.3+ 8847 collect2name=`${CC} -print-prog-name=collect2` 8848 if test -f "$collect2name" && 8849 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8850 then 8851 # We have reworked collect2 8852 : 8853 else 8854 # We have old collect2 8855 hardcode_direct=unsupported 8856 # It fails to find uninstalled libraries when the uninstalled 8857 # path is not listed in the libpath. Setting hardcode_minus_L 8858 # to unsupported forces relinking 8859 hardcode_minus_L=yes 8860 hardcode_libdir_flag_spec='-L$libdir' 8861 hardcode_libdir_separator= 8862 fi 8863 ;; 8864 esac 8865 shared_flag='-shared' 8866 if test "$aix_use_runtimelinking" = yes; then 8867 shared_flag="$shared_flag "'${wl}-G' 8868 fi 8869 else 8870 # not using gcc 8871 if test "$host_cpu" = ia64; then 8872 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8873 # chokes on -Wl,-G. The following line is correct: 8874 shared_flag='-G' 8875 else 8876 if test "$aix_use_runtimelinking" = yes; then 8877 shared_flag='${wl}-G' 8878 else 8879 shared_flag='${wl}-bM:SRE' 8880 fi 8881 fi 8882 fi 8883 8884 export_dynamic_flag_spec='${wl}-bexpall' 8885 # It seems that -bexpall does not export symbols beginning with 8886 # underscore (_), so it is better to generate a list of symbols to export. 8887 always_export_symbols=yes 8888 if test "$aix_use_runtimelinking" = yes; then 8889 # Warning - without using the other runtime loading flags (-brtl), 8890 # -berok will link without error, but may produce a broken library. 8891 allow_undefined_flag='-berok' 8892 # Determine the default libpath from the value encoded in an 8893 # empty executable. 8894 if test x$gcc_no_link = xyes; then 8895 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 8896 fi 8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8898 /* end confdefs.h. */ 8899 8900 int 8901 main () 8902 { 8903 8904 ; 8905 return 0; 8906 } 8907 _ACEOF 8908 if ac_fn_c_try_link "$LINENO"; then : 8909 8910 lt_aix_libpath_sed=' 8911 /Import File Strings/,/^$/ { 8912 /^0/ { 8913 s/^0 *\(.*\)$/\1/ 8914 p 8915 } 8916 }' 8917 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8918 # Check for a 64-bit object if we didn't find anything. 8919 if test -z "$aix_libpath"; then 8920 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8921 fi 8922 fi 8923 rm -f core conftest.err conftest.$ac_objext \ 8924 conftest$ac_exeext conftest.$ac_ext 8925 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8926 8927 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8928 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8929 else 8930 if test "$host_cpu" = ia64; then 8931 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8932 allow_undefined_flag="-z nodefs" 8933 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" 8934 else 8935 # Determine the default libpath from the value encoded in an 8936 # empty executable. 8937 if test x$gcc_no_link = xyes; then 8938 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 8939 fi 8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8941 /* end confdefs.h. */ 8942 8943 int 8944 main () 8945 { 8946 8947 ; 8948 return 0; 8949 } 8950 _ACEOF 8951 if ac_fn_c_try_link "$LINENO"; then : 8952 8953 lt_aix_libpath_sed=' 8954 /Import File Strings/,/^$/ { 8955 /^0/ { 8956 s/^0 *\(.*\)$/\1/ 8957 p 8958 } 8959 }' 8960 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8961 # Check for a 64-bit object if we didn't find anything. 8962 if test -z "$aix_libpath"; then 8963 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8964 fi 8965 fi 8966 rm -f core conftest.err conftest.$ac_objext \ 8967 conftest$ac_exeext conftest.$ac_ext 8968 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8969 8970 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8971 # Warning - without using the other run time loading flags, 8972 # -berok will link without error, but may produce a broken library. 8973 no_undefined_flag=' ${wl}-bernotok' 8974 allow_undefined_flag=' ${wl}-berok' 8975 if test "$with_gnu_ld" = yes; then 8976 # We only use this code for GNU lds that support --whole-archive. 8977 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8978 else 8979 # Exported symbols can be pulled into shared objects from archives 8980 whole_archive_flag_spec='$convenience' 8981 fi 8982 archive_cmds_need_lc=yes 8983 # This is similar to how AIX traditionally builds its shared libraries. 8984 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 8985 fi 8986 fi 8987 ;; 8988 8989 amigaos*) 8990 case $host_cpu in 8991 powerpc) 8992 # see comment about AmigaOS4 .so support 8993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8994 archive_expsym_cmds='' 8995 ;; 8996 m68k) 8997 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)' 8998 hardcode_libdir_flag_spec='-L$libdir' 8999 hardcode_minus_L=yes 9000 ;; 9001 esac 9002 ;; 9003 9004 bsdi[45]*) 9005 export_dynamic_flag_spec=-rdynamic 9006 ;; 9007 9008 cygwin* | mingw* | pw32* | cegcc*) 9009 # When not using gcc, we currently assume that we are using 9010 # Microsoft Visual C++. 9011 # hardcode_libdir_flag_spec is actually meaningless, as there is 9012 # no search path for DLLs. 9013 hardcode_libdir_flag_spec=' ' 9014 allow_undefined_flag=unsupported 9015 # Tell ltmain to make .lib files, not .a files. 9016 libext=lib 9017 # Tell ltmain to make .dll files, not .so files. 9018 shrext_cmds=".dll" 9019 # FIXME: Setting linknames here is a bad hack. 9020 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9021 # The linker will automatically build a .lib file if we build a DLL. 9022 old_archive_from_new_cmds='true' 9023 # FIXME: Should let the user specify the lib program. 9024 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9025 fix_srcfile_path='`cygpath -w "$srcfile"`' 9026 enable_shared_with_static_runtimes=yes 9027 ;; 9028 9029 darwin* | rhapsody*) 9030 9031 9032 9033 # Publish an arg to allow the user to select that Darwin host (and target) 9034 # libraries should be given install-names like @rpath/libfoo.dylib. This 9035 # requires that the user of the library then adds an 'rpath' to the DSO that 9036 # needs access. 9037 # NOTE: there are defaults below, for systems that support rpaths. The person 9038 # configuring can override the defaults for any system version that supports 9039 # them - they are, however, forced off for system versions without support. 9040 # Check whether --enable-darwin-at-rpath was given. 9041 if test "${enable_darwin_at_rpath+set}" = set; then : 9042 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then 9043 # This is not supported before macOS 10.5 / Darwin9. 9044 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in 9045 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*) 9046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5 9047 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;} 9048 enable_darwin_at_rpath=no 9049 ;; 9050 esac 9051 fi 9052 else 9053 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in 9054 # As above, before 10.5 / Darwin9 this does not work. 9055 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*) 9056 enable_darwin_at_rpath=no 9057 ;; 9058 9059 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use 9060 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key 9061 # system executables (e.g. /bin/sh). Force rpaths on for these systems. 9062 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* ) 9063 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5 9064 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;} 9065 enable_darwin_at_rpath=yes 9066 ;; 9067 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can 9068 # work with either DYLD_LIBRARY_PATH or embedded rpaths. 9069 9070 esac 9071 9072 fi 9073 9074 9075 archive_cmds_need_lc=no 9076 hardcode_direct=no 9077 hardcode_automatic=yes 9078 hardcode_shlibpath_var=unsupported 9079 if test "$lt_cv_ld_force_load" = "yes"; then 9080 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\"`' 9081 else 9082 whole_archive_flag_spec='' 9083 fi 9084 link_all_deplibs=yes 9085 allow_undefined_flag="$_lt_dar_allow_undefined" 9086 case $cc_basename in 9087 ifort*) _lt_dar_can_shared=yes ;; 9088 *) _lt_dar_can_shared=$GCC ;; 9089 esac 9090 if test "$_lt_dar_can_shared" = "yes"; then 9091 output_verbose_link_cmd=func_echo_all 9092 _lt_install_name='\$rpath/\$soname' 9093 if test "x$enable_darwin_at_rpath" = "xyes"; then 9094 _lt_install_name='@rpath/\$soname' 9095 fi 9096 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}" 9097 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9098 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}" 9099 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}" 9100 9101 else 9102 ld_shlibs=no 9103 fi 9104 9105 ;; 9106 9107 dgux*) 9108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9109 hardcode_libdir_flag_spec='-L$libdir' 9110 hardcode_shlibpath_var=no 9111 ;; 9112 9113 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9114 # support. Future versions do this automatically, but an explicit c++rt0.o 9115 # does not break anything, and helps significantly (at the cost of a little 9116 # extra space). 9117 freebsd2.2*) 9118 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9119 hardcode_libdir_flag_spec='-R$libdir' 9120 hardcode_direct=yes 9121 hardcode_shlibpath_var=no 9122 ;; 9123 9124 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9125 freebsd2.*) 9126 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9127 hardcode_direct=yes 9128 hardcode_minus_L=yes 9129 hardcode_shlibpath_var=no 9130 ;; 9131 9132 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9133 freebsd* | dragonfly*) 9134 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9135 hardcode_libdir_flag_spec='-R$libdir' 9136 hardcode_direct=yes 9137 hardcode_shlibpath_var=no 9138 ;; 9139 9140 hpux9*) 9141 if test "$GCC" = yes; then 9142 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9143 else 9144 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9145 fi 9146 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9147 hardcode_libdir_separator=: 9148 hardcode_direct=yes 9149 9150 # hardcode_minus_L: Not really in the search PATH, 9151 # but as the default location of the library. 9152 hardcode_minus_L=yes 9153 export_dynamic_flag_spec='${wl}-E' 9154 ;; 9155 9156 hpux10*) 9157 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9158 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9159 else 9160 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9161 fi 9162 if test "$with_gnu_ld" = no; then 9163 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9164 hardcode_libdir_flag_spec_ld='+b $libdir' 9165 hardcode_libdir_separator=: 9166 hardcode_direct=yes 9167 hardcode_direct_absolute=yes 9168 export_dynamic_flag_spec='${wl}-E' 9169 # hardcode_minus_L: Not really in the search PATH, 9170 # but as the default location of the library. 9171 hardcode_minus_L=yes 9172 fi 9173 ;; 9174 9175 hpux11*) 9176 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9177 case $host_cpu in 9178 hppa*64*) 9179 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9180 ;; 9181 ia64*) 9182 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9183 ;; 9184 *) 9185 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9186 ;; 9187 esac 9188 else 9189 case $host_cpu in 9190 hppa*64*) 9191 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9192 ;; 9193 ia64*) 9194 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9195 ;; 9196 *) 9197 9198 # Older versions of the 11.00 compiler do not understand -b yet 9199 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9201 $as_echo_n "checking if $CC understands -b... " >&6; } 9202 if ${lt_cv_prog_compiler__b+:} false; then : 9203 $as_echo_n "(cached) " >&6 9204 else 9205 lt_cv_prog_compiler__b=no 9206 save_LDFLAGS="$LDFLAGS" 9207 LDFLAGS="$LDFLAGS -b" 9208 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9209 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9210 # The linker can only warn and ignore the option if not recognized 9211 # So say no if there are warnings 9212 if test -s conftest.err; then 9213 # Append any errors to the config.log. 9214 cat conftest.err 1>&5 9215 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9217 if diff conftest.exp conftest.er2 >/dev/null; then 9218 lt_cv_prog_compiler__b=yes 9219 fi 9220 else 9221 lt_cv_prog_compiler__b=yes 9222 fi 9223 fi 9224 $RM -r conftest* 9225 LDFLAGS="$save_LDFLAGS" 9226 9227 fi 9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9229 $as_echo "$lt_cv_prog_compiler__b" >&6; } 9230 9231 if test x"$lt_cv_prog_compiler__b" = xyes; then 9232 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9233 else 9234 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9235 fi 9236 9237 ;; 9238 esac 9239 fi 9240 if test "$with_gnu_ld" = no; then 9241 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9242 hardcode_libdir_separator=: 9243 9244 case $host_cpu in 9245 hppa*64*|ia64*) 9246 hardcode_direct=no 9247 hardcode_shlibpath_var=no 9248 ;; 9249 *) 9250 hardcode_direct=yes 9251 hardcode_direct_absolute=yes 9252 export_dynamic_flag_spec='${wl}-E' 9253 9254 # hardcode_minus_L: Not really in the search PATH, 9255 # but as the default location of the library. 9256 hardcode_minus_L=yes 9257 ;; 9258 esac 9259 fi 9260 ;; 9261 9262 irix5* | irix6* | nonstopux*) 9263 if test "$GCC" = yes; then 9264 archive_cmds='$CC -shared $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' 9265 # Try to use the -exported_symbol ld option, if it does not 9266 # work, assume that -exports_file does not work either and 9267 # implicitly export all symbols. 9268 save_LDFLAGS="$LDFLAGS" 9269 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9270 if test x$gcc_no_link = xyes; then 9271 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 9272 fi 9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9274 /* end confdefs.h. */ 9275 int foo(void) {} 9276 _ACEOF 9277 if ac_fn_c_try_link "$LINENO"; then : 9278 archive_expsym_cmds='$CC -shared $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' 9279 9280 fi 9281 rm -f core conftest.err conftest.$ac_objext \ 9282 conftest$ac_exeext conftest.$ac_ext 9283 LDFLAGS="$save_LDFLAGS" 9284 else 9285 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' 9286 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' 9287 fi 9288 archive_cmds_need_lc='no' 9289 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9290 hardcode_libdir_separator=: 9291 inherit_rpath=yes 9292 link_all_deplibs=yes 9293 ;; 9294 9295 netbsd*) 9296 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9297 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9298 else 9299 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9300 fi 9301 hardcode_libdir_flag_spec='-R$libdir' 9302 hardcode_direct=yes 9303 hardcode_shlibpath_var=no 9304 ;; 9305 9306 newsos6) 9307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9308 hardcode_direct=yes 9309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9310 hardcode_libdir_separator=: 9311 hardcode_shlibpath_var=no 9312 ;; 9313 9314 *nto* | *qnx*) 9315 ;; 9316 9317 openbsd*) 9318 if test -f /usr/libexec/ld.so; then 9319 hardcode_direct=yes 9320 hardcode_shlibpath_var=no 9321 hardcode_direct_absolute=yes 9322 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9324 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9325 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9326 export_dynamic_flag_spec='${wl}-E' 9327 else 9328 case $host_os in 9329 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9331 hardcode_libdir_flag_spec='-R$libdir' 9332 ;; 9333 *) 9334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9335 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9336 ;; 9337 esac 9338 fi 9339 else 9340 ld_shlibs=no 9341 fi 9342 ;; 9343 9344 os2*) 9345 hardcode_libdir_flag_spec='-L$libdir' 9346 hardcode_minus_L=yes 9347 allow_undefined_flag=unsupported 9348 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9349 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9350 ;; 9351 9352 osf3*) 9353 if test "$GCC" = yes; then 9354 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9355 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' 9356 else 9357 allow_undefined_flag=' -expect_unresolved \*' 9358 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' 9359 fi 9360 archive_cmds_need_lc='no' 9361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9362 hardcode_libdir_separator=: 9363 ;; 9364 9365 osf4* | osf5*) # as osf3* with the addition of -msym flag 9366 if test "$GCC" = yes; then 9367 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9368 archive_cmds='$CC -shared${allow_undefined_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' 9369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9370 else 9371 allow_undefined_flag=' -expect_unresolved \*' 9372 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' 9373 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~ 9374 $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' 9375 9376 # Both c and cxx compiler support -rpath directly 9377 hardcode_libdir_flag_spec='-rpath $libdir' 9378 fi 9379 archive_cmds_need_lc='no' 9380 hardcode_libdir_separator=: 9381 ;; 9382 9383 solaris*) 9384 no_undefined_flag=' -z defs' 9385 if test "$GCC" = yes; then 9386 wlarc='${wl}' 9387 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9388 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9389 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9390 else 9391 case `$CC -V 2>&1` in 9392 *"Compilers 5.0"*) 9393 wlarc='' 9394 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9395 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9396 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9397 ;; 9398 *) 9399 wlarc='${wl}' 9400 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9401 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9402 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9403 ;; 9404 esac 9405 fi 9406 hardcode_libdir_flag_spec='-R$libdir' 9407 hardcode_shlibpath_var=no 9408 case $host_os in 9409 solaris2.[0-5] | solaris2.[0-5].*) ;; 9410 *) 9411 # The compiler driver will combine and reorder linker options, 9412 # but understands `-z linker_flag'. GCC discards it without `$wl', 9413 # but is careful enough not to reorder. 9414 # Supported since Solaris 2.6 (maybe 2.5.1?) 9415 if test "$GCC" = yes; then 9416 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9417 else 9418 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9419 fi 9420 ;; 9421 esac 9422 link_all_deplibs=yes 9423 ;; 9424 9425 sunos4*) 9426 if test "x$host_vendor" = xsequent; then 9427 # Use $CC to link under sequent, because it throws in some extra .o 9428 # files that make .init and .fini sections work. 9429 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9430 else 9431 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9432 fi 9433 hardcode_libdir_flag_spec='-L$libdir' 9434 hardcode_direct=yes 9435 hardcode_minus_L=yes 9436 hardcode_shlibpath_var=no 9437 ;; 9438 9439 sysv4) 9440 case $host_vendor in 9441 sni) 9442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9443 hardcode_direct=yes # is this really true??? 9444 ;; 9445 siemens) 9446 ## LD is ld it makes a PLAMLIB 9447 ## CC just makes a GrossModule. 9448 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9449 reload_cmds='$CC -r -o $output$reload_objs' 9450 hardcode_direct=no 9451 ;; 9452 motorola) 9453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9454 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9455 ;; 9456 esac 9457 runpath_var='LD_RUN_PATH' 9458 hardcode_shlibpath_var=no 9459 ;; 9460 9461 sysv4.3*) 9462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9463 hardcode_shlibpath_var=no 9464 export_dynamic_flag_spec='-Bexport' 9465 ;; 9466 9467 sysv4*MP*) 9468 if test -d /usr/nec; then 9469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9470 hardcode_shlibpath_var=no 9471 runpath_var=LD_RUN_PATH 9472 hardcode_runpath_var=yes 9473 ld_shlibs=yes 9474 fi 9475 ;; 9476 9477 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9478 no_undefined_flag='${wl}-z,text' 9479 archive_cmds_need_lc=no 9480 hardcode_shlibpath_var=no 9481 runpath_var='LD_RUN_PATH' 9482 9483 if test "$GCC" = yes; then 9484 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9485 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9486 else 9487 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9488 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9489 fi 9490 ;; 9491 9492 sysv5* | sco3.2v5* | sco5v6*) 9493 # Note: We can NOT use -z defs as we might desire, because we do not 9494 # link with -lc, and that would cause any symbols used from libc to 9495 # always be unresolved, which means just about no library would 9496 # ever link correctly. If we're not using GNU ld we use -z text 9497 # though, which does catch some bad symbols but isn't as heavy-handed 9498 # as -z defs. 9499 no_undefined_flag='${wl}-z,text' 9500 allow_undefined_flag='${wl}-z,nodefs' 9501 archive_cmds_need_lc=no 9502 hardcode_shlibpath_var=no 9503 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9504 hardcode_libdir_separator=':' 9505 link_all_deplibs=yes 9506 export_dynamic_flag_spec='${wl}-Bexport' 9507 runpath_var='LD_RUN_PATH' 9508 9509 if test "$GCC" = yes; then 9510 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9511 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9512 else 9513 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9514 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9515 fi 9516 ;; 9517 9518 uts4*) 9519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9520 hardcode_libdir_flag_spec='-L$libdir' 9521 hardcode_shlibpath_var=no 9522 ;; 9523 9524 *) 9525 ld_shlibs=no 9526 ;; 9527 esac 9528 9529 if test x$host_vendor = xsni; then 9530 case $host in 9531 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9532 export_dynamic_flag_spec='${wl}-Blargedynsym' 9533 ;; 9534 esac 9535 fi 9536 fi 9537 9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9539 $as_echo "$ld_shlibs" >&6; } 9540 test "$ld_shlibs" = no && can_build_shared=no 9541 9542 with_gnu_ld=$with_gnu_ld 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 # 9559 # Do we need to explicitly link libc? 9560 # 9561 case "x$archive_cmds_need_lc" in 9562 x|xyes) 9563 # Assume -lc should be added 9564 archive_cmds_need_lc=yes 9565 9566 if test "$enable_shared" = yes && test "$GCC" = yes; then 9567 case $archive_cmds in 9568 *'~'*) 9569 # FIXME: we may have to deal with multi-command sequences. 9570 ;; 9571 '$CC '*) 9572 # Test whether the compiler implicitly links with -lc since on some 9573 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9574 # to ld, don't add -lc before -lgcc. 9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9576 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9577 if ${lt_cv_archive_cmds_need_lc+:} false; then : 9578 $as_echo_n "(cached) " >&6 9579 else 9580 $RM conftest* 9581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9582 9583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9584 (eval $ac_compile) 2>&5 9585 ac_status=$? 9586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9587 test $ac_status = 0; } 2>conftest.err; then 9588 soname=conftest 9589 lib=conftest 9590 libobjs=conftest.$ac_objext 9591 deplibs= 9592 wl=$lt_prog_compiler_wl 9593 pic_flag=$lt_prog_compiler_pic 9594 compiler_flags=-v 9595 linker_flags=-v 9596 verstring= 9597 output_objdir=. 9598 libname=conftest 9599 lt_save_allow_undefined_flag=$allow_undefined_flag 9600 allow_undefined_flag= 9601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9602 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9603 ac_status=$? 9604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9605 test $ac_status = 0; } 9606 then 9607 lt_cv_archive_cmds_need_lc=no 9608 else 9609 lt_cv_archive_cmds_need_lc=yes 9610 fi 9611 allow_undefined_flag=$lt_save_allow_undefined_flag 9612 else 9613 cat conftest.err 1>&5 9614 fi 9615 $RM conftest* 9616 9617 fi 9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9619 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9620 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9621 ;; 9622 esac 9623 fi 9624 ;; 9625 esac 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9784 $as_echo_n "checking dynamic linker characteristics... " >&6; } 9785 9786 if test "$GCC" = yes; then 9787 case $host_os in 9788 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9789 *) lt_awk_arg="/^libraries:/" ;; 9790 esac 9791 case $host_os in 9792 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9793 *) lt_sed_strip_eq="s,=/,/,g" ;; 9794 esac 9795 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9796 case $lt_search_path_spec in 9797 *\;*) 9798 # if the path contains ";" then we assume it to be the separator 9799 # otherwise default to the standard path separator (i.e. ":") - it is 9800 # assumed that no part of a normal pathname contains ";" but that should 9801 # okay in the real world where ";" in dirpaths is itself problematic. 9802 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9803 ;; 9804 *) 9805 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9806 ;; 9807 esac 9808 # Ok, now we have the path, separated by spaces, we can step through it 9809 # and add multilib dir if necessary. 9810 lt_tmp_lt_search_path_spec= 9811 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9812 for lt_sys_path in $lt_search_path_spec; do 9813 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9814 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9815 else 9816 test -d "$lt_sys_path" && \ 9817 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9818 fi 9819 done 9820 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9821 BEGIN {RS=" "; FS="/|\n";} { 9822 lt_foo=""; 9823 lt_count=0; 9824 for (lt_i = NF; lt_i > 0; lt_i--) { 9825 if ($lt_i != "" && $lt_i != ".") { 9826 if ($lt_i == "..") { 9827 lt_count++; 9828 } else { 9829 if (lt_count == 0) { 9830 lt_foo="/" $lt_i lt_foo; 9831 } else { 9832 lt_count--; 9833 } 9834 } 9835 } 9836 } 9837 if (lt_foo != "") { lt_freq[lt_foo]++; } 9838 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9839 }'` 9840 # AWK program above erroneously prepends '/' to C:/dos/paths 9841 # for these hosts. 9842 case $host_os in 9843 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9844 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9845 esac 9846 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9847 else 9848 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9849 fi 9850 library_names_spec= 9851 libname_spec='lib$name' 9852 soname_spec= 9853 shrext_cmds=".so" 9854 postinstall_cmds= 9855 postuninstall_cmds= 9856 finish_cmds= 9857 finish_eval= 9858 shlibpath_var= 9859 shlibpath_overrides_runpath=unknown 9860 version_type=none 9861 dynamic_linker="$host_os ld.so" 9862 sys_lib_dlsearch_path_spec="/lib /usr/lib" 9863 need_lib_prefix=unknown 9864 hardcode_into_libs=no 9865 9866 # when you set need_version to no, make sure it does not cause -set_version 9867 # flags to be left without arguments 9868 need_version=unknown 9869 9870 case $host_os in 9871 aix3*) 9872 version_type=linux 9873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9874 shlibpath_var=LIBPATH 9875 9876 # AIX 3 has no versioning support, so we append a major version to the name. 9877 soname_spec='${libname}${release}${shared_ext}$major' 9878 ;; 9879 9880 aix[4-9]*) 9881 version_type=linux 9882 need_lib_prefix=no 9883 need_version=no 9884 hardcode_into_libs=yes 9885 if test "$host_cpu" = ia64; then 9886 # AIX 5 supports IA64 9887 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9888 shlibpath_var=LD_LIBRARY_PATH 9889 else 9890 # With GCC up to 2.95.x, collect2 would create an import file 9891 # for dependence libraries. The import file would start with 9892 # the line `#! .'. This would cause the generated library to 9893 # depend on `.', always an invalid library. This was fixed in 9894 # development snapshots of GCC prior to 3.0. 9895 case $host_os in 9896 aix4 | aix4.[01] | aix4.[01].*) 9897 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9898 echo ' yes ' 9899 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9900 : 9901 else 9902 can_build_shared=no 9903 fi 9904 ;; 9905 esac 9906 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9907 # soname into executable. Probably we can add versioning support to 9908 # collect2, so additional links can be useful in future. 9909 if test "$aix_use_runtimelinking" = yes; then 9910 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9911 # instead of lib<name>.a to let people know that these are not 9912 # typical AIX shared libraries. 9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9914 else 9915 # We preserve .a as extension for shared libraries through AIX4.2 9916 # and later when we are not doing run time linking. 9917 library_names_spec='${libname}${release}.a $libname.a' 9918 soname_spec='${libname}${release}${shared_ext}$major' 9919 fi 9920 shlibpath_var=LIBPATH 9921 fi 9922 ;; 9923 9924 amigaos*) 9925 case $host_cpu in 9926 powerpc) 9927 # Since July 2007 AmigaOS4 officially supports .so libraries. 9928 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9930 ;; 9931 m68k) 9932 library_names_spec='$libname.ixlibrary $libname.a' 9933 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9934 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 9935 ;; 9936 esac 9937 ;; 9938 9939 beos*) 9940 library_names_spec='${libname}${shared_ext}' 9941 dynamic_linker="$host_os ld.so" 9942 shlibpath_var=LIBRARY_PATH 9943 ;; 9944 9945 bsdi[45]*) 9946 version_type=linux 9947 need_version=no 9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9949 soname_spec='${libname}${release}${shared_ext}$major' 9950 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9951 shlibpath_var=LD_LIBRARY_PATH 9952 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9953 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9954 # the default ld.so.conf also contains /usr/contrib/lib and 9955 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9956 # libtool to hard-code these into programs 9957 ;; 9958 9959 cygwin* | mingw* | pw32* | cegcc*) 9960 version_type=windows 9961 shrext_cmds=".dll" 9962 need_version=no 9963 need_lib_prefix=no 9964 9965 case $GCC,$host_os in 9966 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9967 library_names_spec='$libname.dll.a' 9968 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9969 postinstall_cmds='base_file=`basename \${file}`~ 9970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9971 dldir=$destdir/`dirname \$dlpath`~ 9972 test -d \$dldir || mkdir -p \$dldir~ 9973 $install_prog $dir/$dlname \$dldir/$dlname~ 9974 chmod a+x \$dldir/$dlname~ 9975 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9976 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9977 fi' 9978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9979 dlpath=$dir/\$dldll~ 9980 $RM \$dlpath' 9981 shlibpath_overrides_runpath=yes 9982 9983 case $host_os in 9984 cygwin*) 9985 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9986 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9987 9988 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9989 ;; 9990 mingw* | cegcc*) 9991 # MinGW DLLs use traditional 'lib' prefix 9992 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9993 ;; 9994 pw32*) 9995 # pw32 DLLs use 'pw' prefix rather than 'lib' 9996 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9997 ;; 9998 esac 9999 ;; 10000 10001 *) 10002 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10003 ;; 10004 esac 10005 dynamic_linker='Win32 ld.exe' 10006 # FIXME: first we should search . and the directory the executable is in 10007 shlibpath_var=PATH 10008 ;; 10009 10010 darwin* | rhapsody*) 10011 dynamic_linker="$host_os dyld" 10012 version_type=darwin 10013 need_lib_prefix=no 10014 need_version=no 10015 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10016 soname_spec='${libname}${release}${major}$shared_ext' 10017 shlibpath_overrides_runpath=yes 10018 shlibpath_var=DYLD_LIBRARY_PATH 10019 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10020 10021 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10022 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10023 ;; 10024 10025 dgux*) 10026 version_type=linux 10027 need_lib_prefix=no 10028 need_version=no 10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10030 soname_spec='${libname}${release}${shared_ext}$major' 10031 shlibpath_var=LD_LIBRARY_PATH 10032 ;; 10033 10034 freebsd* | dragonfly*) 10035 # DragonFly does not have aout. When/if they implement a new 10036 # versioning mechanism, adjust this. 10037 if test -x /usr/bin/objformat; then 10038 objformat=`/usr/bin/objformat` 10039 else 10040 case $host_os in 10041 freebsd[23].*) objformat=aout ;; 10042 *) objformat=elf ;; 10043 esac 10044 fi 10045 version_type=freebsd-$objformat 10046 case $version_type in 10047 freebsd-elf*) 10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10049 need_version=no 10050 need_lib_prefix=no 10051 ;; 10052 freebsd-*) 10053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10054 need_version=yes 10055 ;; 10056 esac 10057 shlibpath_var=LD_LIBRARY_PATH 10058 case $host_os in 10059 freebsd2.*) 10060 shlibpath_overrides_runpath=yes 10061 ;; 10062 freebsd3.[01]* | freebsdelf3.[01]*) 10063 shlibpath_overrides_runpath=yes 10064 hardcode_into_libs=yes 10065 ;; 10066 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10067 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10068 shlibpath_overrides_runpath=no 10069 hardcode_into_libs=yes 10070 ;; 10071 *) # from 4.6 on, and DragonFly 10072 shlibpath_overrides_runpath=yes 10073 hardcode_into_libs=yes 10074 ;; 10075 esac 10076 ;; 10077 10078 haiku*) 10079 version_type=linux 10080 need_lib_prefix=no 10081 need_version=no 10082 dynamic_linker="$host_os runtime_loader" 10083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10084 soname_spec='${libname}${release}${shared_ext}$major' 10085 shlibpath_var=LIBRARY_PATH 10086 shlibpath_overrides_runpath=yes 10087 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10088 hardcode_into_libs=yes 10089 ;; 10090 10091 hpux9* | hpux10* | hpux11*) 10092 # Give a soname corresponding to the major version so that dld.sl refuses to 10093 # link against other versions. 10094 version_type=sunos 10095 need_lib_prefix=no 10096 need_version=no 10097 case $host_cpu in 10098 ia64*) 10099 shrext_cmds='.so' 10100 hardcode_into_libs=yes 10101 dynamic_linker="$host_os dld.so" 10102 shlibpath_var=LD_LIBRARY_PATH 10103 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10105 soname_spec='${libname}${release}${shared_ext}$major' 10106 if test "X$HPUX_IA64_MODE" = X32; then 10107 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10108 else 10109 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10110 fi 10111 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10112 ;; 10113 hppa*64*) 10114 shrext_cmds='.sl' 10115 hardcode_into_libs=yes 10116 dynamic_linker="$host_os dld.sl" 10117 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10120 soname_spec='${libname}${release}${shared_ext}$major' 10121 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10122 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10123 ;; 10124 *) 10125 shrext_cmds='.sl' 10126 dynamic_linker="$host_os dld.sl" 10127 shlibpath_var=SHLIB_PATH 10128 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10130 soname_spec='${libname}${release}${shared_ext}$major' 10131 ;; 10132 esac 10133 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10134 postinstall_cmds='chmod 555 $lib' 10135 # or fails outright, so override atomically: 10136 install_override_mode=555 10137 ;; 10138 10139 interix[3-9]*) 10140 version_type=linux 10141 need_lib_prefix=no 10142 need_version=no 10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10144 soname_spec='${libname}${release}${shared_ext}$major' 10145 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10146 shlibpath_var=LD_LIBRARY_PATH 10147 shlibpath_overrides_runpath=no 10148 hardcode_into_libs=yes 10149 ;; 10150 10151 irix5* | irix6* | nonstopux*) 10152 case $host_os in 10153 nonstopux*) version_type=nonstopux ;; 10154 *) 10155 if test "$lt_cv_prog_gnu_ld" = yes; then 10156 version_type=linux 10157 else 10158 version_type=irix 10159 fi ;; 10160 esac 10161 need_lib_prefix=no 10162 need_version=no 10163 soname_spec='${libname}${release}${shared_ext}$major' 10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10165 case $host_os in 10166 irix5* | nonstopux*) 10167 libsuff= shlibsuff= 10168 ;; 10169 *) 10170 case $LD in # libtool.m4 will add one of these switches to LD 10171 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10172 libsuff= shlibsuff= libmagic=32-bit;; 10173 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10174 libsuff=32 shlibsuff=N32 libmagic=N32;; 10175 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10176 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10177 *) libsuff= shlibsuff= libmagic=never-match;; 10178 esac 10179 ;; 10180 esac 10181 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10182 shlibpath_overrides_runpath=no 10183 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10184 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10185 hardcode_into_libs=yes 10186 ;; 10187 10188 # No shared lib support for Linux oldld, aout, or coff. 10189 linux*oldld* | linux*aout* | linux*coff*) 10190 dynamic_linker=no 10191 ;; 10192 10193 # This must be Linux ELF. 10194 10195 # uclinux* changes (here and below) have been submitted to the libtool 10196 # project, but have not yet been accepted: they are GCC-local changes 10197 # for the time being. (See 10198 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 10199 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) 10200 version_type=linux 10201 need_lib_prefix=no 10202 need_version=no 10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10204 soname_spec='${libname}${release}${shared_ext}$major' 10205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10206 shlibpath_var=LD_LIBRARY_PATH 10207 shlibpath_overrides_runpath=no 10208 10209 # Some binutils ld are patched to set DT_RUNPATH 10210 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10211 $as_echo_n "(cached) " >&6 10212 else 10213 lt_cv_shlibpath_overrides_runpath=no 10214 save_LDFLAGS=$LDFLAGS 10215 save_libdir=$libdir 10216 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10217 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10218 if test x$gcc_no_link = xyes; then 10219 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10220 fi 10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10222 /* end confdefs.h. */ 10223 10224 int 10225 main () 10226 { 10227 10228 ; 10229 return 0; 10230 } 10231 _ACEOF 10232 if ac_fn_c_try_link "$LINENO"; then : 10233 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10234 lt_cv_shlibpath_overrides_runpath=yes 10235 fi 10236 fi 10237 rm -f core conftest.err conftest.$ac_objext \ 10238 conftest$ac_exeext conftest.$ac_ext 10239 LDFLAGS=$save_LDFLAGS 10240 libdir=$save_libdir 10241 10242 fi 10243 10244 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10245 10246 # This implies no fast_install, which is unacceptable. 10247 # Some rework will be needed to allow for fast_install 10248 # before this can be enabled. 10249 hardcode_into_libs=yes 10250 10251 # Append ld.so.conf contents to the search path 10252 if test -f /etc/ld.so.conf; then 10253 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' ' '` 10254 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10255 fi 10256 10257 # We used to test for /lib/ld.so.1 and disable shared libraries on 10258 # powerpc, because MkLinux only supported shared libraries with the 10259 # GNU dynamic linker. Since this was broken with cross compilers, 10260 # most powerpc-linux boxes support dynamic linking these days and 10261 # people can always --disable-shared, the test was removed, and we 10262 # assume the GNU/Linux dynamic linker is in use. 10263 dynamic_linker='GNU/Linux ld.so' 10264 ;; 10265 10266 netbsd*) 10267 version_type=sunos 10268 need_lib_prefix=no 10269 need_version=no 10270 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10273 dynamic_linker='NetBSD (a.out) ld.so' 10274 else 10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10276 soname_spec='${libname}${release}${shared_ext}$major' 10277 dynamic_linker='NetBSD ld.elf_so' 10278 fi 10279 shlibpath_var=LD_LIBRARY_PATH 10280 shlibpath_overrides_runpath=yes 10281 hardcode_into_libs=yes 10282 ;; 10283 10284 newsos6) 10285 version_type=linux 10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10287 shlibpath_var=LD_LIBRARY_PATH 10288 shlibpath_overrides_runpath=yes 10289 ;; 10290 10291 *nto* | *qnx*) 10292 version_type=qnx 10293 need_lib_prefix=no 10294 need_version=no 10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10296 soname_spec='${libname}${release}${shared_ext}$major' 10297 shlibpath_var=LD_LIBRARY_PATH 10298 shlibpath_overrides_runpath=no 10299 hardcode_into_libs=yes 10300 dynamic_linker='ldqnx.so' 10301 ;; 10302 10303 openbsd*) 10304 version_type=sunos 10305 sys_lib_dlsearch_path_spec="/usr/lib" 10306 need_lib_prefix=no 10307 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10308 case $host_os in 10309 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10310 *) need_version=no ;; 10311 esac 10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10314 shlibpath_var=LD_LIBRARY_PATH 10315 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10316 case $host_os in 10317 openbsd2.[89] | openbsd2.[89].*) 10318 shlibpath_overrides_runpath=no 10319 ;; 10320 *) 10321 shlibpath_overrides_runpath=yes 10322 ;; 10323 esac 10324 else 10325 shlibpath_overrides_runpath=yes 10326 fi 10327 ;; 10328 10329 os2*) 10330 libname_spec='$name' 10331 shrext_cmds=".dll" 10332 need_lib_prefix=no 10333 library_names_spec='$libname${shared_ext} $libname.a' 10334 dynamic_linker='OS/2 ld.exe' 10335 shlibpath_var=LIBPATH 10336 ;; 10337 10338 osf3* | osf4* | osf5*) 10339 version_type=osf 10340 need_lib_prefix=no 10341 need_version=no 10342 soname_spec='${libname}${release}${shared_ext}$major' 10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10344 shlibpath_var=LD_LIBRARY_PATH 10345 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10346 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10347 ;; 10348 10349 rdos*) 10350 dynamic_linker=no 10351 ;; 10352 10353 solaris*) 10354 version_type=linux 10355 need_lib_prefix=no 10356 need_version=no 10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10358 soname_spec='${libname}${release}${shared_ext}$major' 10359 shlibpath_var=LD_LIBRARY_PATH 10360 shlibpath_overrides_runpath=yes 10361 hardcode_into_libs=yes 10362 # ldd complains unless libraries are executable 10363 postinstall_cmds='chmod +x $lib' 10364 ;; 10365 10366 sunos4*) 10367 version_type=sunos 10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10369 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10370 shlibpath_var=LD_LIBRARY_PATH 10371 shlibpath_overrides_runpath=yes 10372 if test "$with_gnu_ld" = yes; then 10373 need_lib_prefix=no 10374 fi 10375 need_version=yes 10376 ;; 10377 10378 sysv4 | sysv4.3*) 10379 version_type=linux 10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10381 soname_spec='${libname}${release}${shared_ext}$major' 10382 shlibpath_var=LD_LIBRARY_PATH 10383 case $host_vendor in 10384 sni) 10385 shlibpath_overrides_runpath=no 10386 need_lib_prefix=no 10387 runpath_var=LD_RUN_PATH 10388 ;; 10389 siemens) 10390 need_lib_prefix=no 10391 ;; 10392 motorola) 10393 need_lib_prefix=no 10394 need_version=no 10395 shlibpath_overrides_runpath=no 10396 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10397 ;; 10398 esac 10399 ;; 10400 10401 sysv4*MP*) 10402 if test -d /usr/nec ;then 10403 version_type=linux 10404 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10405 soname_spec='$libname${shared_ext}.$major' 10406 shlibpath_var=LD_LIBRARY_PATH 10407 fi 10408 ;; 10409 10410 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10411 version_type=freebsd-elf 10412 need_lib_prefix=no 10413 need_version=no 10414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10415 soname_spec='${libname}${release}${shared_ext}$major' 10416 shlibpath_var=LD_LIBRARY_PATH 10417 shlibpath_overrides_runpath=yes 10418 hardcode_into_libs=yes 10419 if test "$with_gnu_ld" = yes; then 10420 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10421 else 10422 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10423 case $host_os in 10424 sco3.2v5*) 10425 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10426 ;; 10427 esac 10428 fi 10429 sys_lib_dlsearch_path_spec='/usr/lib' 10430 ;; 10431 10432 tpf*) 10433 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10434 version_type=linux 10435 need_lib_prefix=no 10436 need_version=no 10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10438 shlibpath_var=LD_LIBRARY_PATH 10439 shlibpath_overrides_runpath=no 10440 hardcode_into_libs=yes 10441 ;; 10442 10443 uts4*) 10444 version_type=linux 10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10446 soname_spec='${libname}${release}${shared_ext}$major' 10447 shlibpath_var=LD_LIBRARY_PATH 10448 ;; 10449 10450 # Shared libraries for VwWorks, >= 7 only at this stage 10451 # and (fpic) still incompatible with "large" code models 10452 # in a few configurations. Only for RTP mode in any case, 10453 # and upon explicit request at configure time. 10454 vxworks7*) 10455 dynamic_linker=no 10456 case ${with_multisubdir}-${enable_shared} in 10457 *large*) 10458 ;; 10459 *mrtp*-yes) 10460 version_type=linux 10461 need_lib_prefix=no 10462 need_version=no 10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10464 soname_spec='${libname}${release}${shared_ext}$major' 10465 dynamic_linker="$host_os module_loader" 10466 ;; 10467 esac 10468 ;; 10469 *) 10470 dynamic_linker=no 10471 ;; 10472 esac 10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10474 $as_echo "$dynamic_linker" >&6; } 10475 test "$dynamic_linker" = no && can_build_shared=no 10476 10477 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10478 if test "$GCC" = yes; then 10479 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10480 fi 10481 10482 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10483 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10484 fi 10485 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10486 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10487 fi 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10581 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10582 hardcode_action= 10583 if test -n "$hardcode_libdir_flag_spec" || 10584 test -n "$runpath_var" || 10585 test "X$hardcode_automatic" = "Xyes" ; then 10586 10587 # We can hardcode non-existent directories. 10588 if test "$hardcode_direct" != no && 10589 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10590 # have to relink, otherwise we might link with an installed library 10591 # when we should be linking with a yet-to-be-installed one 10592 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10593 test "$hardcode_minus_L" != no; then 10594 # Linking always hardcodes the temporary library directory. 10595 hardcode_action=relink 10596 else 10597 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10598 hardcode_action=immediate 10599 fi 10600 else 10601 # We cannot hardcode anything, or else we can only hardcode existing 10602 # directories. 10603 hardcode_action=unsupported 10604 fi 10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10606 $as_echo "$hardcode_action" >&6; } 10607 10608 if test "$hardcode_action" = relink || 10609 test "$inherit_rpath" = yes; then 10610 # Fast installation is not supported 10611 enable_fast_install=no 10612 elif test "$shlibpath_overrides_runpath" = yes || 10613 test "$enable_shared" = no; then 10614 # Fast installation is not necessary 10615 enable_fast_install=needless 10616 fi 10617 10618 10619 10620 10621 10622 10623 if test "x$enable_dlopen" != xyes; then 10624 enable_dlopen=unknown 10625 enable_dlopen_self=unknown 10626 enable_dlopen_self_static=unknown 10627 else 10628 lt_cv_dlopen=no 10629 lt_cv_dlopen_libs= 10630 10631 case $host_os in 10632 beos*) 10633 lt_cv_dlopen="load_add_on" 10634 lt_cv_dlopen_libs= 10635 lt_cv_dlopen_self=yes 10636 ;; 10637 10638 mingw* | pw32* | cegcc*) 10639 lt_cv_dlopen="LoadLibrary" 10640 lt_cv_dlopen_libs= 10641 ;; 10642 10643 cygwin*) 10644 lt_cv_dlopen="dlopen" 10645 lt_cv_dlopen_libs= 10646 ;; 10647 10648 darwin*) 10649 # if libdl is installed we need to link against it 10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10651 $as_echo_n "checking for dlopen in -ldl... " >&6; } 10652 if ${ac_cv_lib_dl_dlopen+:} false; then : 10653 $as_echo_n "(cached) " >&6 10654 else 10655 ac_check_lib_save_LIBS=$LIBS 10656 LIBS="-ldl $LIBS" 10657 if test x$gcc_no_link = xyes; then 10658 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10659 fi 10660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10661 /* end confdefs.h. */ 10662 10663 /* Override any GCC internal prototype to avoid an error. 10664 Use char because int might match the return type of a GCC 10665 builtin and then its argument prototype would still apply. */ 10666 #ifdef __cplusplus 10667 extern "C" 10668 #endif 10669 char dlopen (); 10670 int 10671 main () 10672 { 10673 return dlopen (); 10674 ; 10675 return 0; 10676 } 10677 _ACEOF 10678 if ac_fn_c_try_link "$LINENO"; then : 10679 ac_cv_lib_dl_dlopen=yes 10680 else 10681 ac_cv_lib_dl_dlopen=no 10682 fi 10683 rm -f core conftest.err conftest.$ac_objext \ 10684 conftest$ac_exeext conftest.$ac_ext 10685 LIBS=$ac_check_lib_save_LIBS 10686 fi 10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10688 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10689 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10690 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10691 else 10692 10693 lt_cv_dlopen="dyld" 10694 lt_cv_dlopen_libs= 10695 lt_cv_dlopen_self=yes 10696 10697 fi 10698 10699 ;; 10700 10701 *) 10702 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10703 if test "x$ac_cv_func_shl_load" = xyes; then : 10704 lt_cv_dlopen="shl_load" 10705 else 10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10707 $as_echo_n "checking for shl_load in -ldld... " >&6; } 10708 if ${ac_cv_lib_dld_shl_load+:} false; then : 10709 $as_echo_n "(cached) " >&6 10710 else 10711 ac_check_lib_save_LIBS=$LIBS 10712 LIBS="-ldld $LIBS" 10713 if test x$gcc_no_link = xyes; then 10714 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10715 fi 10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10717 /* end confdefs.h. */ 10718 10719 /* Override any GCC internal prototype to avoid an error. 10720 Use char because int might match the return type of a GCC 10721 builtin and then its argument prototype would still apply. */ 10722 #ifdef __cplusplus 10723 extern "C" 10724 #endif 10725 char shl_load (); 10726 int 10727 main () 10728 { 10729 return shl_load (); 10730 ; 10731 return 0; 10732 } 10733 _ACEOF 10734 if ac_fn_c_try_link "$LINENO"; then : 10735 ac_cv_lib_dld_shl_load=yes 10736 else 10737 ac_cv_lib_dld_shl_load=no 10738 fi 10739 rm -f core conftest.err conftest.$ac_objext \ 10740 conftest$ac_exeext conftest.$ac_ext 10741 LIBS=$ac_check_lib_save_LIBS 10742 fi 10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10744 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10745 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10746 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10747 else 10748 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10749 if test "x$ac_cv_func_dlopen" = xyes; then : 10750 lt_cv_dlopen="dlopen" 10751 else 10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10753 $as_echo_n "checking for dlopen in -ldl... " >&6; } 10754 if ${ac_cv_lib_dl_dlopen+:} false; then : 10755 $as_echo_n "(cached) " >&6 10756 else 10757 ac_check_lib_save_LIBS=$LIBS 10758 LIBS="-ldl $LIBS" 10759 if test x$gcc_no_link = xyes; then 10760 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10761 fi 10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10763 /* end confdefs.h. */ 10764 10765 /* Override any GCC internal prototype to avoid an error. 10766 Use char because int might match the return type of a GCC 10767 builtin and then its argument prototype would still apply. */ 10768 #ifdef __cplusplus 10769 extern "C" 10770 #endif 10771 char dlopen (); 10772 int 10773 main () 10774 { 10775 return dlopen (); 10776 ; 10777 return 0; 10778 } 10779 _ACEOF 10780 if ac_fn_c_try_link "$LINENO"; then : 10781 ac_cv_lib_dl_dlopen=yes 10782 else 10783 ac_cv_lib_dl_dlopen=no 10784 fi 10785 rm -f core conftest.err conftest.$ac_objext \ 10786 conftest$ac_exeext conftest.$ac_ext 10787 LIBS=$ac_check_lib_save_LIBS 10788 fi 10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10790 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10791 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10792 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10793 else 10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10795 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 10796 if ${ac_cv_lib_svld_dlopen+:} false; then : 10797 $as_echo_n "(cached) " >&6 10798 else 10799 ac_check_lib_save_LIBS=$LIBS 10800 LIBS="-lsvld $LIBS" 10801 if test x$gcc_no_link = xyes; then 10802 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10803 fi 10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10805 /* end confdefs.h. */ 10806 10807 /* Override any GCC internal prototype to avoid an error. 10808 Use char because int might match the return type of a GCC 10809 builtin and then its argument prototype would still apply. */ 10810 #ifdef __cplusplus 10811 extern "C" 10812 #endif 10813 char dlopen (); 10814 int 10815 main () 10816 { 10817 return dlopen (); 10818 ; 10819 return 0; 10820 } 10821 _ACEOF 10822 if ac_fn_c_try_link "$LINENO"; then : 10823 ac_cv_lib_svld_dlopen=yes 10824 else 10825 ac_cv_lib_svld_dlopen=no 10826 fi 10827 rm -f core conftest.err conftest.$ac_objext \ 10828 conftest$ac_exeext conftest.$ac_ext 10829 LIBS=$ac_check_lib_save_LIBS 10830 fi 10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10832 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10833 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10834 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10835 else 10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10837 $as_echo_n "checking for dld_link in -ldld... " >&6; } 10838 if ${ac_cv_lib_dld_dld_link+:} false; then : 10839 $as_echo_n "(cached) " >&6 10840 else 10841 ac_check_lib_save_LIBS=$LIBS 10842 LIBS="-ldld $LIBS" 10843 if test x$gcc_no_link = xyes; then 10844 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10845 fi 10846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10847 /* end confdefs.h. */ 10848 10849 /* Override any GCC internal prototype to avoid an error. 10850 Use char because int might match the return type of a GCC 10851 builtin and then its argument prototype would still apply. */ 10852 #ifdef __cplusplus 10853 extern "C" 10854 #endif 10855 char dld_link (); 10856 int 10857 main () 10858 { 10859 return dld_link (); 10860 ; 10861 return 0; 10862 } 10863 _ACEOF 10864 if ac_fn_c_try_link "$LINENO"; then : 10865 ac_cv_lib_dld_dld_link=yes 10866 else 10867 ac_cv_lib_dld_dld_link=no 10868 fi 10869 rm -f core conftest.err conftest.$ac_objext \ 10870 conftest$ac_exeext conftest.$ac_ext 10871 LIBS=$ac_check_lib_save_LIBS 10872 fi 10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10874 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10875 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10876 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10877 fi 10878 10879 10880 fi 10881 10882 10883 fi 10884 10885 10886 fi 10887 10888 10889 fi 10890 10891 10892 fi 10893 10894 ;; 10895 esac 10896 10897 if test "x$lt_cv_dlopen" != xno; then 10898 enable_dlopen=yes 10899 else 10900 enable_dlopen=no 10901 fi 10902 10903 case $lt_cv_dlopen in 10904 dlopen) 10905 save_CPPFLAGS="$CPPFLAGS" 10906 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10907 10908 save_LDFLAGS="$LDFLAGS" 10909 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10910 10911 save_LIBS="$LIBS" 10912 LIBS="$lt_cv_dlopen_libs $LIBS" 10913 10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10915 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 10916 if ${lt_cv_dlopen_self+:} false; then : 10917 $as_echo_n "(cached) " >&6 10918 else 10919 if test "$cross_compiling" = yes; then : 10920 lt_cv_dlopen_self=cross 10921 else 10922 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10923 lt_status=$lt_dlunknown 10924 cat > conftest.$ac_ext <<_LT_EOF 10925 #line 10925 "configure" 10926 #include "confdefs.h" 10927 10928 #if HAVE_DLFCN_H 10929 #include <dlfcn.h> 10930 #endif 10931 10932 #include <stdio.h> 10933 10934 #ifdef RTLD_GLOBAL 10935 # define LT_DLGLOBAL RTLD_GLOBAL 10936 #else 10937 # ifdef DL_GLOBAL 10938 # define LT_DLGLOBAL DL_GLOBAL 10939 # else 10940 # define LT_DLGLOBAL 0 10941 # endif 10942 #endif 10943 10944 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10945 find out it does not work in some platform. */ 10946 #ifndef LT_DLLAZY_OR_NOW 10947 # ifdef RTLD_LAZY 10948 # define LT_DLLAZY_OR_NOW RTLD_LAZY 10949 # else 10950 # ifdef DL_LAZY 10951 # define LT_DLLAZY_OR_NOW DL_LAZY 10952 # else 10953 # ifdef RTLD_NOW 10954 # define LT_DLLAZY_OR_NOW RTLD_NOW 10955 # else 10956 # ifdef DL_NOW 10957 # define LT_DLLAZY_OR_NOW DL_NOW 10958 # else 10959 # define LT_DLLAZY_OR_NOW 0 10960 # endif 10961 # endif 10962 # endif 10963 # endif 10964 #endif 10965 10966 /* When -fvisbility=hidden is used, assume the code has been annotated 10967 correspondingly for the symbols needed. */ 10968 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10969 void fnord () __attribute__((visibility("default"))); 10970 #endif 10971 10972 void fnord () { int i=42; } 10973 int main () 10974 { 10975 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10976 int status = $lt_dlunknown; 10977 10978 if (self) 10979 { 10980 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10981 else 10982 { 10983 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10984 else puts (dlerror ()); 10985 } 10986 /* dlclose (self); */ 10987 } 10988 else 10989 puts (dlerror ()); 10990 10991 return status; 10992 } 10993 _LT_EOF 10994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10995 (eval $ac_link) 2>&5 10996 ac_status=$? 10997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10998 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10999 (./conftest; exit; ) >&5 2>/dev/null 11000 lt_status=$? 11001 case x$lt_status in 11002 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11003 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11004 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11005 esac 11006 else : 11007 # compilation failed 11008 lt_cv_dlopen_self=no 11009 fi 11010 fi 11011 rm -fr conftest* 11012 11013 11014 fi 11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11016 $as_echo "$lt_cv_dlopen_self" >&6; } 11017 11018 if test "x$lt_cv_dlopen_self" = xyes; then 11019 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11021 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11022 if ${lt_cv_dlopen_self_static+:} false; then : 11023 $as_echo_n "(cached) " >&6 11024 else 11025 if test "$cross_compiling" = yes; then : 11026 lt_cv_dlopen_self_static=cross 11027 else 11028 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11029 lt_status=$lt_dlunknown 11030 cat > conftest.$ac_ext <<_LT_EOF 11031 #line 11031 "configure" 11032 #include "confdefs.h" 11033 11034 #if HAVE_DLFCN_H 11035 #include <dlfcn.h> 11036 #endif 11037 11038 #include <stdio.h> 11039 11040 #ifdef RTLD_GLOBAL 11041 # define LT_DLGLOBAL RTLD_GLOBAL 11042 #else 11043 # ifdef DL_GLOBAL 11044 # define LT_DLGLOBAL DL_GLOBAL 11045 # else 11046 # define LT_DLGLOBAL 0 11047 # endif 11048 #endif 11049 11050 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11051 find out it does not work in some platform. */ 11052 #ifndef LT_DLLAZY_OR_NOW 11053 # ifdef RTLD_LAZY 11054 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11055 # else 11056 # ifdef DL_LAZY 11057 # define LT_DLLAZY_OR_NOW DL_LAZY 11058 # else 11059 # ifdef RTLD_NOW 11060 # define LT_DLLAZY_OR_NOW RTLD_NOW 11061 # else 11062 # ifdef DL_NOW 11063 # define LT_DLLAZY_OR_NOW DL_NOW 11064 # else 11065 # define LT_DLLAZY_OR_NOW 0 11066 # endif 11067 # endif 11068 # endif 11069 # endif 11070 #endif 11071 11072 /* When -fvisbility=hidden is used, assume the code has been annotated 11073 correspondingly for the symbols needed. */ 11074 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11075 void fnord () __attribute__((visibility("default"))); 11076 #endif 11077 11078 void fnord () { int i=42; } 11079 int main () 11080 { 11081 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11082 int status = $lt_dlunknown; 11083 11084 if (self) 11085 { 11086 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11087 else 11088 { 11089 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11090 else puts (dlerror ()); 11091 } 11092 /* dlclose (self); */ 11093 } 11094 else 11095 puts (dlerror ()); 11096 11097 return status; 11098 } 11099 _LT_EOF 11100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11101 (eval $ac_link) 2>&5 11102 ac_status=$? 11103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11104 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11105 (./conftest; exit; ) >&5 2>/dev/null 11106 lt_status=$? 11107 case x$lt_status in 11108 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11109 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11110 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11111 esac 11112 else : 11113 # compilation failed 11114 lt_cv_dlopen_self_static=no 11115 fi 11116 fi 11117 rm -fr conftest* 11118 11119 11120 fi 11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11122 $as_echo "$lt_cv_dlopen_self_static" >&6; } 11123 fi 11124 11125 CPPFLAGS="$save_CPPFLAGS" 11126 LDFLAGS="$save_LDFLAGS" 11127 LIBS="$save_LIBS" 11128 ;; 11129 esac 11130 11131 case $lt_cv_dlopen_self in 11132 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11133 *) enable_dlopen_self=unknown ;; 11134 esac 11135 11136 case $lt_cv_dlopen_self_static in 11137 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11138 *) enable_dlopen_self_static=unknown ;; 11139 esac 11140 fi 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 striplib= 11159 old_striplib= 11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11161 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 11162 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11163 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11164 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11166 $as_echo "yes" >&6; } 11167 else 11168 # FIXME - insert some real tests, host_os isn't really good enough 11169 case $host_os in 11170 darwin*) 11171 if test -n "$STRIP" ; then 11172 striplib="$STRIP -x" 11173 old_striplib="$STRIP -S" 11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11175 $as_echo "yes" >&6; } 11176 else 11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11178 $as_echo "no" >&6; } 11179 fi 11180 ;; 11181 *) 11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11183 $as_echo "no" >&6; } 11184 ;; 11185 esac 11186 fi 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 # Report which library types will actually be built 11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11201 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11203 $as_echo "$can_build_shared" >&6; } 11204 11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11206 $as_echo_n "checking whether to build shared libraries... " >&6; } 11207 test "$can_build_shared" = "no" && enable_shared=no 11208 11209 # On AIX, shared libraries and static libraries use the same namespace, and 11210 # are all built from PIC. 11211 case $host_os in 11212 aix3*) 11213 test "$enable_shared" = yes && enable_static=no 11214 if test -n "$RANLIB"; then 11215 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11216 postinstall_cmds='$RANLIB $lib' 11217 fi 11218 ;; 11219 11220 aix[4-9]*) 11221 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11222 test "$enable_shared" = yes && enable_static=no 11223 fi 11224 ;; 11225 esac 11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11227 $as_echo "$enable_shared" >&6; } 11228 11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11230 $as_echo_n "checking whether to build static libraries... " >&6; } 11231 # Make sure either enable_shared or enable_static is yes. 11232 test "$enable_shared" = yes || enable_static=yes 11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11234 $as_echo "$enable_static" >&6; } 11235 11236 11237 11238 11239 fi 11240 ac_ext=c 11241 ac_cpp='$CPP $CPPFLAGS' 11242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11244 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11245 11246 CC="$lt_save_CC" 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 ac_config_commands="$ac_config_commands libtool" 11261 11262 11263 11264 11265 # Only expand once: 11266 11267 11268 11269 11270 11271 case $host in 11272 *-cygwin* | *-mingw*) 11273 # 'host' will be top-level target in the case of a target lib, 11274 # we must compare to with_cross_host to decide if this is a native 11275 # or cross-compiler and select where to install dlls appropriately. 11276 if test -n "$with_cross_host" && 11277 test x"$with_cross_host" != x"no"; then 11278 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; 11279 else 11280 lt_host_flags='-no-undefined -bindir "$(bindir)"'; 11281 fi 11282 ;; 11283 *) 11284 lt_host_flags= 11285 ;; 11286 esac 11287 11288 11289 11290 11291 11292 if test x$enable_darwin_at_rpath = xyes; then 11293 ENABLE_DARWIN_AT_RPATH_TRUE= 11294 ENABLE_DARWIN_AT_RPATH_FALSE='#' 11295 else 11296 ENABLE_DARWIN_AT_RPATH_TRUE='#' 11297 ENABLE_DARWIN_AT_RPATH_FALSE= 11298 fi 11299 11300 11301 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 11303 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 11304 # Check whether --enable-maintainer-mode was given. 11305 if test "${enable_maintainer_mode+set}" = set; then : 11306 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 11307 else 11308 USE_MAINTAINER_MODE=no 11309 fi 11310 11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 11312 $as_echo "$USE_MAINTAINER_MODE" >&6; } 11313 if test $USE_MAINTAINER_MODE = yes; then 11314 MAINTAINER_MODE_TRUE= 11315 MAINTAINER_MODE_FALSE='#' 11316 else 11317 MAINTAINER_MODE_TRUE='#' 11318 MAINTAINER_MODE_FALSE= 11319 fi 11320 11321 MAINT=$MAINTAINER_MODE_TRUE 11322 11323 11324 11325 ac_ext=c 11326 ac_cpp='$CPP $CPPFLAGS' 11327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11329 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11330 11331 # The same as in boehm-gc and libstdc++. Have to borrow it from there. 11332 # We must force CC to /not/ be precious variables; otherwise 11333 # the wrong, non-multilib-adjusted value will be used in multilibs. 11334 # As a side effect, we have to subst CFLAGS ourselves. 11335 11336 11337 11338 ac_ext=c 11339 ac_cpp='$CPP $CPPFLAGS' 11340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11342 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11343 if test -n "$ac_tool_prefix"; then 11344 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11345 set dummy ${ac_tool_prefix}gcc; ac_word=$2 11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11347 $as_echo_n "checking for $ac_word... " >&6; } 11348 if ${ac_cv_prog_CC+:} false; then : 11349 $as_echo_n "(cached) " >&6 11350 else 11351 if test -n "$CC"; then 11352 ac_cv_prog_CC="$CC" # Let the user override the test. 11353 else 11354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11355 for as_dir in $PATH 11356 do 11357 IFS=$as_save_IFS 11358 test -z "$as_dir" && as_dir=. 11359 for ac_exec_ext in '' $ac_executable_extensions; do 11360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11361 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11363 break 2 11364 fi 11365 done 11366 done 11367 IFS=$as_save_IFS 11368 11369 fi 11370 fi 11371 CC=$ac_cv_prog_CC 11372 if test -n "$CC"; then 11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11374 $as_echo "$CC" >&6; } 11375 else 11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11377 $as_echo "no" >&6; } 11378 fi 11379 11380 11381 fi 11382 if test -z "$ac_cv_prog_CC"; then 11383 ac_ct_CC=$CC 11384 # Extract the first word of "gcc", so it can be a program name with args. 11385 set dummy gcc; ac_word=$2 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11387 $as_echo_n "checking for $ac_word... " >&6; } 11388 if ${ac_cv_prog_ac_ct_CC+:} false; then : 11389 $as_echo_n "(cached) " >&6 11390 else 11391 if test -n "$ac_ct_CC"; then 11392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11393 else 11394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11395 for as_dir in $PATH 11396 do 11397 IFS=$as_save_IFS 11398 test -z "$as_dir" && as_dir=. 11399 for ac_exec_ext in '' $ac_executable_extensions; do 11400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11401 ac_cv_prog_ac_ct_CC="gcc" 11402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11403 break 2 11404 fi 11405 done 11406 done 11407 IFS=$as_save_IFS 11408 11409 fi 11410 fi 11411 ac_ct_CC=$ac_cv_prog_ac_ct_CC 11412 if test -n "$ac_ct_CC"; then 11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11414 $as_echo "$ac_ct_CC" >&6; } 11415 else 11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11417 $as_echo "no" >&6; } 11418 fi 11419 11420 if test "x$ac_ct_CC" = x; then 11421 CC="" 11422 else 11423 case $cross_compiling:$ac_tool_warned in 11424 yes:) 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11427 ac_tool_warned=yes ;; 11428 esac 11429 CC=$ac_ct_CC 11430 fi 11431 else 11432 CC="$ac_cv_prog_CC" 11433 fi 11434 11435 if test -z "$CC"; then 11436 if test -n "$ac_tool_prefix"; then 11437 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11438 set dummy ${ac_tool_prefix}cc; ac_word=$2 11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11440 $as_echo_n "checking for $ac_word... " >&6; } 11441 if ${ac_cv_prog_CC+:} false; then : 11442 $as_echo_n "(cached) " >&6 11443 else 11444 if test -n "$CC"; then 11445 ac_cv_prog_CC="$CC" # Let the user override the test. 11446 else 11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11448 for as_dir in $PATH 11449 do 11450 IFS=$as_save_IFS 11451 test -z "$as_dir" && as_dir=. 11452 for ac_exec_ext in '' $ac_executable_extensions; do 11453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11454 ac_cv_prog_CC="${ac_tool_prefix}cc" 11455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11456 break 2 11457 fi 11458 done 11459 done 11460 IFS=$as_save_IFS 11461 11462 fi 11463 fi 11464 CC=$ac_cv_prog_CC 11465 if test -n "$CC"; then 11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11467 $as_echo "$CC" >&6; } 11468 else 11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11470 $as_echo "no" >&6; } 11471 fi 11472 11473 11474 fi 11475 fi 11476 if test -z "$CC"; then 11477 # Extract the first word of "cc", so it can be a program name with args. 11478 set dummy cc; ac_word=$2 11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11480 $as_echo_n "checking for $ac_word... " >&6; } 11481 if ${ac_cv_prog_CC+:} false; then : 11482 $as_echo_n "(cached) " >&6 11483 else 11484 if test -n "$CC"; then 11485 ac_cv_prog_CC="$CC" # Let the user override the test. 11486 else 11487 ac_prog_rejected=no 11488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11489 for as_dir in $PATH 11490 do 11491 IFS=$as_save_IFS 11492 test -z "$as_dir" && as_dir=. 11493 for ac_exec_ext in '' $ac_executable_extensions; do 11494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11496 ac_prog_rejected=yes 11497 continue 11498 fi 11499 ac_cv_prog_CC="cc" 11500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11501 break 2 11502 fi 11503 done 11504 done 11505 IFS=$as_save_IFS 11506 11507 if test $ac_prog_rejected = yes; then 11508 # We found a bogon in the path, so make sure we never use it. 11509 set dummy $ac_cv_prog_CC 11510 shift 11511 if test $# != 0; then 11512 # We chose a different compiler from the bogus one. 11513 # However, it has the same basename, so the bogon will be chosen 11514 # first if we set CC to just the basename; use the full file name. 11515 shift 11516 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11517 fi 11518 fi 11519 fi 11520 fi 11521 CC=$ac_cv_prog_CC 11522 if test -n "$CC"; then 11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11524 $as_echo "$CC" >&6; } 11525 else 11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11527 $as_echo "no" >&6; } 11528 fi 11529 11530 11531 fi 11532 if test -z "$CC"; then 11533 if test -n "$ac_tool_prefix"; then 11534 for ac_prog in cl.exe 11535 do 11536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11539 $as_echo_n "checking for $ac_word... " >&6; } 11540 if ${ac_cv_prog_CC+:} false; then : 11541 $as_echo_n "(cached) " >&6 11542 else 11543 if test -n "$CC"; then 11544 ac_cv_prog_CC="$CC" # Let the user override the test. 11545 else 11546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11547 for as_dir in $PATH 11548 do 11549 IFS=$as_save_IFS 11550 test -z "$as_dir" && as_dir=. 11551 for ac_exec_ext in '' $ac_executable_extensions; do 11552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11553 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11555 break 2 11556 fi 11557 done 11558 done 11559 IFS=$as_save_IFS 11560 11561 fi 11562 fi 11563 CC=$ac_cv_prog_CC 11564 if test -n "$CC"; then 11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11566 $as_echo "$CC" >&6; } 11567 else 11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11569 $as_echo "no" >&6; } 11570 fi 11571 11572 11573 test -n "$CC" && break 11574 done 11575 fi 11576 if test -z "$CC"; then 11577 ac_ct_CC=$CC 11578 for ac_prog in cl.exe 11579 do 11580 # Extract the first word of "$ac_prog", so it can be a program name with args. 11581 set dummy $ac_prog; ac_word=$2 11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11583 $as_echo_n "checking for $ac_word... " >&6; } 11584 if ${ac_cv_prog_ac_ct_CC+:} false; then : 11585 $as_echo_n "(cached) " >&6 11586 else 11587 if test -n "$ac_ct_CC"; then 11588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11589 else 11590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11591 for as_dir in $PATH 11592 do 11593 IFS=$as_save_IFS 11594 test -z "$as_dir" && as_dir=. 11595 for ac_exec_ext in '' $ac_executable_extensions; do 11596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11597 ac_cv_prog_ac_ct_CC="$ac_prog" 11598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11599 break 2 11600 fi 11601 done 11602 done 11603 IFS=$as_save_IFS 11604 11605 fi 11606 fi 11607 ac_ct_CC=$ac_cv_prog_ac_ct_CC 11608 if test -n "$ac_ct_CC"; then 11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11610 $as_echo "$ac_ct_CC" >&6; } 11611 else 11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11613 $as_echo "no" >&6; } 11614 fi 11615 11616 11617 test -n "$ac_ct_CC" && break 11618 done 11619 11620 if test "x$ac_ct_CC" = x; then 11621 CC="" 11622 else 11623 case $cross_compiling:$ac_tool_warned in 11624 yes:) 11625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11627 ac_tool_warned=yes ;; 11628 esac 11629 CC=$ac_ct_CC 11630 fi 11631 fi 11632 11633 fi 11634 11635 11636 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11638 as_fn_error $? "no acceptable C compiler found in \$PATH 11639 See \`config.log' for more details" "$LINENO" 5; } 11640 11641 # Provide some information about the compiler. 11642 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 11643 set X $ac_compile 11644 ac_compiler=$2 11645 for ac_option in --version -v -V -qversion; do 11646 { { ac_try="$ac_compiler $ac_option >&5" 11647 case "(($ac_try" in 11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11649 *) ac_try_echo=$ac_try;; 11650 esac 11651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11652 $as_echo "$ac_try_echo"; } >&5 11653 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11654 ac_status=$? 11655 if test -s conftest.err; then 11656 sed '10a\ 11657 ... rest of stderr output deleted ... 11658 10q' conftest.err >conftest.er1 11659 cat conftest.er1 >&5 11660 fi 11661 rm -f conftest.er1 conftest.err 11662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11663 test $ac_status = 0; } 11664 done 11665 11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 11667 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11668 if ${ac_cv_c_compiler_gnu+:} false; then : 11669 $as_echo_n "(cached) " >&6 11670 else 11671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11672 /* end confdefs.h. */ 11673 11674 int 11675 main () 11676 { 11677 #ifndef __GNUC__ 11678 choke me 11679 #endif 11680 11681 ; 11682 return 0; 11683 } 11684 _ACEOF 11685 if ac_fn_c_try_compile "$LINENO"; then : 11686 ac_compiler_gnu=yes 11687 else 11688 ac_compiler_gnu=no 11689 fi 11690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11691 ac_cv_c_compiler_gnu=$ac_compiler_gnu 11692 11693 fi 11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 11695 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 11696 if test $ac_compiler_gnu = yes; then 11697 GCC=yes 11698 else 11699 GCC= 11700 fi 11701 ac_test_CFLAGS=${CFLAGS+set} 11702 ac_save_CFLAGS=$CFLAGS 11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 11704 $as_echo_n "checking whether $CC accepts -g... " >&6; } 11705 if ${ac_cv_prog_cc_g+:} false; then : 11706 $as_echo_n "(cached) " >&6 11707 else 11708 ac_save_c_werror_flag=$ac_c_werror_flag 11709 ac_c_werror_flag=yes 11710 ac_cv_prog_cc_g=no 11711 CFLAGS="-g" 11712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11713 /* end confdefs.h. */ 11714 11715 int 11716 main () 11717 { 11718 11719 ; 11720 return 0; 11721 } 11722 _ACEOF 11723 if ac_fn_c_try_compile "$LINENO"; then : 11724 ac_cv_prog_cc_g=yes 11725 else 11726 CFLAGS="" 11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11728 /* end confdefs.h. */ 11729 11730 int 11731 main () 11732 { 11733 11734 ; 11735 return 0; 11736 } 11737 _ACEOF 11738 if ac_fn_c_try_compile "$LINENO"; then : 11739 11740 else 11741 ac_c_werror_flag=$ac_save_c_werror_flag 11742 CFLAGS="-g" 11743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11744 /* end confdefs.h. */ 11745 11746 int 11747 main () 11748 { 11749 11750 ; 11751 return 0; 11752 } 11753 _ACEOF 11754 if ac_fn_c_try_compile "$LINENO"; then : 11755 ac_cv_prog_cc_g=yes 11756 fi 11757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11758 fi 11759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11760 fi 11761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11762 ac_c_werror_flag=$ac_save_c_werror_flag 11763 fi 11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 11765 $as_echo "$ac_cv_prog_cc_g" >&6; } 11766 if test "$ac_test_CFLAGS" = set; then 11767 CFLAGS=$ac_save_CFLAGS 11768 elif test $ac_cv_prog_cc_g = yes; then 11769 if test "$GCC" = yes; then 11770 CFLAGS="-g -O2" 11771 else 11772 CFLAGS="-g" 11773 fi 11774 else 11775 if test "$GCC" = yes; then 11776 CFLAGS="-O2" 11777 else 11778 CFLAGS= 11779 fi 11780 fi 11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 11782 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11783 if ${ac_cv_prog_cc_c89+:} false; then : 11784 $as_echo_n "(cached) " >&6 11785 else 11786 ac_cv_prog_cc_c89=no 11787 ac_save_CC=$CC 11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11789 /* end confdefs.h. */ 11790 #include <stdarg.h> 11791 #include <stdio.h> 11792 struct stat; 11793 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11794 struct buf { int x; }; 11795 FILE * (*rcsopen) (struct buf *, struct stat *, int); 11796 static char *e (p, i) 11797 char **p; 11798 int i; 11799 { 11800 return p[i]; 11801 } 11802 static char *f (char * (*g) (char **, int), char **p, ...) 11803 { 11804 char *s; 11805 va_list v; 11806 va_start (v,p); 11807 s = g (p, va_arg (v,int)); 11808 va_end (v); 11809 return s; 11810 } 11811 11812 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11813 function prototypes and stuff, but not '\xHH' hex character constants. 11814 These don't provoke an error unfortunately, instead are silently treated 11815 as 'x'. The following induces an error, until -std is added to get 11816 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11817 array size at least. It's necessary to write '\x00'==0 to get something 11818 that's true only with -std. */ 11819 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11820 11821 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11822 inside strings and character constants. */ 11823 #define FOO(x) 'x' 11824 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11825 11826 int test (int i, double x); 11827 struct s1 {int (*f) (int a);}; 11828 struct s2 {int (*f) (double a);}; 11829 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11830 int argc; 11831 char **argv; 11832 int 11833 main () 11834 { 11835 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11836 ; 11837 return 0; 11838 } 11839 _ACEOF 11840 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11841 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11842 do 11843 CC="$ac_save_CC $ac_arg" 11844 if ac_fn_c_try_compile "$LINENO"; then : 11845 ac_cv_prog_cc_c89=$ac_arg 11846 fi 11847 rm -f core conftest.err conftest.$ac_objext 11848 test "x$ac_cv_prog_cc_c89" != "xno" && break 11849 done 11850 rm -f conftest.$ac_ext 11851 CC=$ac_save_CC 11852 11853 fi 11854 # AC_CACHE_VAL 11855 case "x$ac_cv_prog_cc_c89" in 11856 x) 11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11858 $as_echo "none needed" >&6; } ;; 11859 xno) 11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11861 $as_echo "unsupported" >&6; } ;; 11862 *) 11863 CC="$CC $ac_cv_prog_cc_c89" 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 11865 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 11866 esac 11867 if test "x$ac_cv_prog_cc_c89" != xno; then : 11868 11869 fi 11870 11871 ac_ext=c 11872 ac_cpp='$CPP $CPPFLAGS' 11873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11875 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11876 11877 ac_ext=c 11878 ac_cpp='$CPP $CPPFLAGS' 11879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11881 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 11883 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 11884 if ${am_cv_prog_cc_c_o+:} false; then : 11885 $as_echo_n "(cached) " >&6 11886 else 11887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11888 /* end confdefs.h. */ 11889 11890 int 11891 main () 11892 { 11893 11894 ; 11895 return 0; 11896 } 11897 _ACEOF 11898 # Make sure it works both with $CC and with simple cc. 11899 # Following AC_PROG_CC_C_O, we do the test twice because some 11900 # compilers refuse to overwrite an existing .o file with -o, 11901 # though they will create one. 11902 am_cv_prog_cc_c_o=yes 11903 for am_i in 1 2; do 11904 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 11905 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 11906 ac_status=$? 11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11908 (exit $ac_status); } \ 11909 && test -f conftest2.$ac_objext; then 11910 : OK 11911 else 11912 am_cv_prog_cc_c_o=no 11913 break 11914 fi 11915 done 11916 rm -f core conftest* 11917 unset am_i 11918 fi 11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 11920 $as_echo "$am_cv_prog_cc_c_o" >&6; } 11921 if test "$am_cv_prog_cc_c_o" != yes; then 11922 # Losing compiler, so override with the script. 11923 # FIXME: It is wrong to rewrite CC. 11924 # But if we don't then we get into trouble of one sort or another. 11925 # A longer-term fix would be to have automake use am__CC in this case, 11926 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 11927 CC="$am_aux_dir/compile $CC" 11928 fi 11929 ac_ext=c 11930 ac_cpp='$CPP $CPPFLAGS' 11931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11933 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11934 11935 11936 depcc="$CC" am_compiler_list= 11937 11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 11939 $as_echo_n "checking dependency style of $depcc... " >&6; } 11940 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 11941 $as_echo_n "(cached) " >&6 11942 else 11943 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11944 # We make a subdir and do the tests there. Otherwise we can end up 11945 # making bogus files that we don't know about and never remove. For 11946 # instance it was reported that on HP-UX the gcc test will end up 11947 # making a dummy file named 'D' -- because '-MD' means "put the output 11948 # in D". 11949 rm -rf conftest.dir 11950 mkdir conftest.dir 11951 # Copy depcomp to subdir because otherwise we won't find it if we're 11952 # using a relative directory. 11953 cp "$am_depcomp" conftest.dir 11954 cd conftest.dir 11955 # We will build objects and dependencies in a subdirectory because 11956 # it helps to detect inapplicable dependency modes. For instance 11957 # both Tru64's cc and ICC support -MD to output dependencies as a 11958 # side effect of compilation, but ICC will put the dependencies in 11959 # the current directory while Tru64 will put them in the object 11960 # directory. 11961 mkdir sub 11962 11963 am_cv_CC_dependencies_compiler_type=none 11964 if test "$am_compiler_list" = ""; then 11965 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11966 fi 11967 am__universal=false 11968 case " $depcc " in #( 11969 *\ -arch\ *\ -arch\ *) am__universal=true ;; 11970 esac 11971 11972 for depmode in $am_compiler_list; do 11973 # Setup a source with many dependencies, because some compilers 11974 # like to wrap large dependency lists on column 80 (with \), and 11975 # we should not choose a depcomp mode which is confused by this. 11976 # 11977 # We need to recreate these files for each test, as the compiler may 11978 # overwrite some of them when testing with obscure command lines. 11979 # This happens at least with the AIX C compiler. 11980 : > sub/conftest.c 11981 for i in 1 2 3 4 5 6; do 11982 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11983 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 11984 # Solaris 10 /bin/sh. 11985 echo '/* dummy */' > sub/conftst$i.h 11986 done 11987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11988 11989 # We check with '-c' and '-o' for the sake of the "dashmstdout" 11990 # mode. It turns out that the SunPro C++ compiler does not properly 11991 # handle '-M -o', and we need to detect this. Also, some Intel 11992 # versions had trouble with output in subdirs. 11993 am__obj=sub/conftest.${OBJEXT-o} 11994 am__minus_obj="-o $am__obj" 11995 case $depmode in 11996 gcc) 11997 # This depmode causes a compiler race in universal mode. 11998 test "$am__universal" = false || continue 11999 ;; 12000 nosideeffect) 12001 # After this tag, mechanisms are not by side-effect, so they'll 12002 # only be used when explicitly requested. 12003 if test "x$enable_dependency_tracking" = xyes; then 12004 continue 12005 else 12006 break 12007 fi 12008 ;; 12009 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12010 # This compiler won't grok '-c -o', but also, the minuso test has 12011 # not run yet. These depmodes are late enough in the game, and 12012 # so weak that their functioning should not be impacted. 12013 am__obj=conftest.${OBJEXT-o} 12014 am__minus_obj= 12015 ;; 12016 none) break ;; 12017 esac 12018 if depmode=$depmode \ 12019 source=sub/conftest.c object=$am__obj \ 12020 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12021 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12022 >/dev/null 2>conftest.err && 12023 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12024 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12025 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12026 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12027 # icc doesn't choke on unknown options, it will just issue warnings 12028 # or remarks (even with -Werror). So we grep stderr for any message 12029 # that says an option was ignored or not supported. 12030 # When given -MP, icc 7.0 and 7.1 complain thusly: 12031 # icc: Command line warning: ignoring option '-M'; no argument required 12032 # The diagnosis changed in icc 8.0: 12033 # icc: Command line remark: option '-MP' not supported 12034 if (grep 'ignoring option' conftest.err || 12035 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12036 am_cv_CC_dependencies_compiler_type=$depmode 12037 break 12038 fi 12039 fi 12040 done 12041 12042 cd .. 12043 rm -rf conftest.dir 12044 else 12045 am_cv_CC_dependencies_compiler_type=none 12046 fi 12047 12048 fi 12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 12050 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 12051 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 12052 12053 if 12054 test "x$enable_dependency_tracking" != xno \ 12055 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 12056 am__fastdepCC_TRUE= 12057 am__fastdepCC_FALSE='#' 12058 else 12059 am__fastdepCC_TRUE='#' 12060 am__fastdepCC_FALSE= 12061 fi 12062 12063 12064 12065 12066 12067 12068 12069 12070 if test "x$GCC" != "xyes"; then 12071 as_fn_error $? "libquadmath must be built with GCC" "$LINENO" 5 12072 fi 12073 ac_ext=c 12074 ac_cpp='$CPP $CPPFLAGS' 12075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12077 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 12079 $as_echo_n "checking how to run the C preprocessor... " >&6; } 12080 # On Suns, sometimes $CPP names a directory. 12081 if test -n "$CPP" && test -d "$CPP"; then 12082 CPP= 12083 fi 12084 if test -z "$CPP"; then 12085 if ${ac_cv_prog_CPP+:} false; then : 12086 $as_echo_n "(cached) " >&6 12087 else 12088 # Double quotes because CPP needs to be expanded 12089 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 12090 do 12091 ac_preproc_ok=false 12092 for ac_c_preproc_warn_flag in '' yes 12093 do 12094 # Use a header file that comes with gcc, so configuring glibc 12095 # with a fresh cross-compiler works. 12096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12097 # <limits.h> exists even on freestanding compilers. 12098 # On the NeXT, cc -E runs the code through the compiler's parser, 12099 # not just through cpp. "Syntax error" is here to catch this case. 12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12101 /* end confdefs.h. */ 12102 #ifdef __STDC__ 12103 # include <limits.h> 12104 #else 12105 # include <assert.h> 12106 #endif 12107 Syntax error 12108 _ACEOF 12109 if ac_fn_c_try_cpp "$LINENO"; then : 12110 12111 else 12112 # Broken: fails on valid input. 12113 continue 12114 fi 12115 rm -f conftest.err conftest.i conftest.$ac_ext 12116 12117 # OK, works on sane cases. Now check whether nonexistent headers 12118 # can be detected and how. 12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12120 /* end confdefs.h. */ 12121 #include <ac_nonexistent.h> 12122 _ACEOF 12123 if ac_fn_c_try_cpp "$LINENO"; then : 12124 # Broken: success on invalid input. 12125 continue 12126 else 12127 # Passes both tests. 12128 ac_preproc_ok=: 12129 break 12130 fi 12131 rm -f conftest.err conftest.i conftest.$ac_ext 12132 12133 done 12134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12135 rm -f conftest.i conftest.err conftest.$ac_ext 12136 if $ac_preproc_ok; then : 12137 break 12138 fi 12139 12140 done 12141 ac_cv_prog_CPP=$CPP 12142 12143 fi 12144 CPP=$ac_cv_prog_CPP 12145 else 12146 ac_cv_prog_CPP=$CPP 12147 fi 12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 12149 $as_echo "$CPP" >&6; } 12150 ac_preproc_ok=false 12151 for ac_c_preproc_warn_flag in '' yes 12152 do 12153 # Use a header file that comes with gcc, so configuring glibc 12154 # with a fresh cross-compiler works. 12155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12156 # <limits.h> exists even on freestanding compilers. 12157 # On the NeXT, cc -E runs the code through the compiler's parser, 12158 # not just through cpp. "Syntax error" is here to catch this case. 12159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12160 /* end confdefs.h. */ 12161 #ifdef __STDC__ 12162 # include <limits.h> 12163 #else 12164 # include <assert.h> 12165 #endif 12166 Syntax error 12167 _ACEOF 12168 if ac_fn_c_try_cpp "$LINENO"; then : 12169 12170 else 12171 # Broken: fails on valid input. 12172 continue 12173 fi 12174 rm -f conftest.err conftest.i conftest.$ac_ext 12175 12176 # OK, works on sane cases. Now check whether nonexistent headers 12177 # can be detected and how. 12178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12179 /* end confdefs.h. */ 12180 #include <ac_nonexistent.h> 12181 _ACEOF 12182 if ac_fn_c_try_cpp "$LINENO"; then : 12183 # Broken: success on invalid input. 12184 continue 12185 else 12186 # Passes both tests. 12187 ac_preproc_ok=: 12188 break 12189 fi 12190 rm -f conftest.err conftest.i conftest.$ac_ext 12191 12192 done 12193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12194 rm -f conftest.i conftest.err conftest.$ac_ext 12195 if $ac_preproc_ok; then : 12196 12197 else 12198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12200 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 12201 See \`config.log' for more details" "$LINENO" 5; } 12202 fi 12203 12204 ac_ext=c 12205 ac_cpp='$CPP $CPPFLAGS' 12206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12208 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12209 12210 12211 12212 # Check whether --with-toolexeclibdir was given. 12213 if test "${with_toolexeclibdir+set}" = set; then : 12214 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in 12215 /) 12216 ;; 12217 */) 12218 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'` 12219 ;; 12220 esac 12221 else 12222 with_toolexeclibdir=no 12223 fi 12224 12225 12226 12227 # Calculate toolexeclibdir 12228 # Also toolexecdir, though it's only used in toolexeclibdir 12229 case ${version_specific_libs} in 12230 yes) 12231 # Need the gcc compiler version to know where to install libraries 12232 # and header files if --enable-version-specific-runtime-libs option 12233 # is selected. 12234 toolexecdir='$(libdir)/gcc/$(target_alias)' 12235 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' 12236 ;; 12237 no) 12238 if test -n "$with_cross_host" && 12239 test x"$with_cross_host" != x"no"; then 12240 # Install a library built with a cross compiler in tooldir, not libdir. 12241 toolexecdir='$(exec_prefix)/$(target_alias)' 12242 case ${with_toolexeclibdir} in 12243 no) 12244 toolexeclibdir='$(toolexecdir)/lib' 12245 ;; 12246 *) 12247 toolexeclibdir=${with_toolexeclibdir} 12248 ;; 12249 esac 12250 else 12251 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 12252 toolexeclibdir='$(libdir)' 12253 fi 12254 multi_os_directory=`$CC -print-multi-os-directory` 12255 case $multi_os_directory in 12256 .) ;; # Avoid trailing /. 12257 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; 12258 esac 12259 ;; 12260 esac 12261 12262 12263 12264 # AC_CHECK_LIBM variant which avoids AC_CHECK_LIB (that doesn't work 12265 # on bare metal). In the past we've used -lm in Makefile.am unconditionally, 12266 # let's use it there unless target knows it doesn't need that. 12267 LIBM= 12268 case $host in 12269 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 12270 # These system don't have libm, or don't need it 12271 ;; 12272 *) 12273 LIBM=-lm 12274 ;; 12275 esac 12276 12277 12278 for ac_header in fenv.h langinfo.h locale.h wchar.h wctype.h limits.h ctype.h printf.h errno.h 12279 do : 12280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12281 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12282 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12283 cat >>confdefs.h <<_ACEOF 12284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12285 _ACEOF 12286 12287 fi 12288 12289 done 12290 12291 12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the math.h includes POSIX's signgam" >&5 12293 $as_echo_n "checking whether the math.h includes POSIX's signgam... " >&6; } 12294 if ${libgfor_cv_have_math_h_signgam+:} false; then : 12295 $as_echo_n "(cached) " >&6 12296 else 12297 12298 save_CFLAGS="$CFLAGS" 12299 CFLAGS="$CFLAGS -Werror" 12300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12301 /* end confdefs.h. */ 12302 12303 #include <math.h> 12304 void foo(void) { signgam = 1; } 12305 int 12306 main () 12307 { 12308 12309 ; 12310 return 0; 12311 } 12312 _ACEOF 12313 if ac_fn_c_try_compile "$LINENO"; then : 12314 libgfor_cv_have_math_h_signgam=yes 12315 else 12316 libgfor_cv_have_math_h_signgam=no 12317 fi 12318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12319 CFLAGS="$save_CFLAGS" 12320 fi 12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_math_h_signgam" >&5 12322 $as_echo "$libgfor_cv_have_math_h_signgam" >&6; } 12323 if test $libgfor_cv_have_math_h_signgam = yes; then 12324 12325 $as_echo "#define HAVE_MATH_H_SIGNGAM 1" >>confdefs.h 12326 12327 fi 12328 12329 # If available, sqrtl and cbrtl speed up the calculation - 12330 # but they are not required 12331 if test x$gcc_no_link != xyes; then 12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5 12333 $as_echo_n "checking for sqrtl in -lm... " >&6; } 12334 if ${ac_cv_lib_m_sqrtl+:} false; then : 12335 $as_echo_n "(cached) " >&6 12336 else 12337 ac_check_lib_save_LIBS=$LIBS 12338 LIBS="-lm $LIBS" 12339 if test x$gcc_no_link = xyes; then 12340 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12341 fi 12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12343 /* end confdefs.h. */ 12344 12345 /* Override any GCC internal prototype to avoid an error. 12346 Use char because int might match the return type of a GCC 12347 builtin and then its argument prototype would still apply. */ 12348 #ifdef __cplusplus 12349 extern "C" 12350 #endif 12351 char sqrtl (); 12352 int 12353 main () 12354 { 12355 return sqrtl (); 12356 ; 12357 return 0; 12358 } 12359 _ACEOF 12360 if ac_fn_c_try_link "$LINENO"; then : 12361 ac_cv_lib_m_sqrtl=yes 12362 else 12363 ac_cv_lib_m_sqrtl=no 12364 fi 12365 rm -f core conftest.err conftest.$ac_objext \ 12366 conftest$ac_exeext conftest.$ac_ext 12367 LIBS=$ac_check_lib_save_LIBS 12368 fi 12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5 12370 $as_echo "$ac_cv_lib_m_sqrtl" >&6; } 12371 if test "x$ac_cv_lib_m_sqrtl" = xyes; then : 12372 12373 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h 12374 12375 fi 12376 12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5 12378 $as_echo_n "checking for cbrtl in -lm... " >&6; } 12379 if ${ac_cv_lib_m_cbrtl+:} false; then : 12380 $as_echo_n "(cached) " >&6 12381 else 12382 ac_check_lib_save_LIBS=$LIBS 12383 LIBS="-lm $LIBS" 12384 if test x$gcc_no_link = xyes; then 12385 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12386 fi 12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12388 /* end confdefs.h. */ 12389 12390 /* Override any GCC internal prototype to avoid an error. 12391 Use char because int might match the return type of a GCC 12392 builtin and then its argument prototype would still apply. */ 12393 #ifdef __cplusplus 12394 extern "C" 12395 #endif 12396 char cbrtl (); 12397 int 12398 main () 12399 { 12400 return cbrtl (); 12401 ; 12402 return 0; 12403 } 12404 _ACEOF 12405 if ac_fn_c_try_link "$LINENO"; then : 12406 ac_cv_lib_m_cbrtl=yes 12407 else 12408 ac_cv_lib_m_cbrtl=no 12409 fi 12410 rm -f core conftest.err conftest.$ac_objext \ 12411 conftest$ac_exeext conftest.$ac_ext 12412 LIBS=$ac_check_lib_save_LIBS 12413 fi 12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5 12415 $as_echo "$ac_cv_lib_m_cbrtl" >&6; } 12416 if test "x$ac_cv_lib_m_cbrtl" = xyes; then : 12417 12418 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h 12419 12420 fi 12421 12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5 12423 $as_echo_n "checking for feholdexcept in -lm... " >&6; } 12424 if ${ac_cv_lib_m_feholdexcept+:} false; then : 12425 $as_echo_n "(cached) " >&6 12426 else 12427 ac_check_lib_save_LIBS=$LIBS 12428 LIBS="-lm $LIBS" 12429 if test x$gcc_no_link = xyes; then 12430 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12431 fi 12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12433 /* end confdefs.h. */ 12434 12435 /* Override any GCC internal prototype to avoid an error. 12436 Use char because int might match the return type of a GCC 12437 builtin and then its argument prototype would still apply. */ 12438 #ifdef __cplusplus 12439 extern "C" 12440 #endif 12441 char feholdexcept (); 12442 int 12443 main () 12444 { 12445 return feholdexcept (); 12446 ; 12447 return 0; 12448 } 12449 _ACEOF 12450 if ac_fn_c_try_link "$LINENO"; then : 12451 ac_cv_lib_m_feholdexcept=yes 12452 else 12453 ac_cv_lib_m_feholdexcept=no 12454 fi 12455 rm -f core conftest.err conftest.$ac_objext \ 12456 conftest$ac_exeext conftest.$ac_ext 12457 LIBS=$ac_check_lib_save_LIBS 12458 fi 12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5 12460 $as_echo "$ac_cv_lib_m_feholdexcept" >&6; } 12461 if test "x$ac_cv_lib_m_feholdexcept" = xyes; then : 12462 12463 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h 12464 12465 fi 12466 12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5 12468 $as_echo_n "checking for fesetround in -lm... " >&6; } 12469 if ${ac_cv_lib_m_fesetround+:} false; then : 12470 $as_echo_n "(cached) " >&6 12471 else 12472 ac_check_lib_save_LIBS=$LIBS 12473 LIBS="-lm $LIBS" 12474 if test x$gcc_no_link = xyes; then 12475 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12476 fi 12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12478 /* end confdefs.h. */ 12479 12480 /* Override any GCC internal prototype to avoid an error. 12481 Use char because int might match the return type of a GCC 12482 builtin and then its argument prototype would still apply. */ 12483 #ifdef __cplusplus 12484 extern "C" 12485 #endif 12486 char fesetround (); 12487 int 12488 main () 12489 { 12490 return fesetround (); 12491 ; 12492 return 0; 12493 } 12494 _ACEOF 12495 if ac_fn_c_try_link "$LINENO"; then : 12496 ac_cv_lib_m_fesetround=yes 12497 else 12498 ac_cv_lib_m_fesetround=no 12499 fi 12500 rm -f core conftest.err conftest.$ac_objext \ 12501 conftest$ac_exeext conftest.$ac_ext 12502 LIBS=$ac_check_lib_save_LIBS 12503 fi 12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5 12505 $as_echo "$ac_cv_lib_m_fesetround" >&6; } 12506 if test "x$ac_cv_lib_m_fesetround" = xyes; then : 12507 12508 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h 12509 12510 fi 12511 12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5 12513 $as_echo_n "checking for feupdateenv in -lm... " >&6; } 12514 if ${ac_cv_lib_m_feupdateenv+:} false; then : 12515 $as_echo_n "(cached) " >&6 12516 else 12517 ac_check_lib_save_LIBS=$LIBS 12518 LIBS="-lm $LIBS" 12519 if test x$gcc_no_link = xyes; then 12520 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12521 fi 12522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12523 /* end confdefs.h. */ 12524 12525 /* Override any GCC internal prototype to avoid an error. 12526 Use char because int might match the return type of a GCC 12527 builtin and then its argument prototype would still apply. */ 12528 #ifdef __cplusplus 12529 extern "C" 12530 #endif 12531 char feupdateenv (); 12532 int 12533 main () 12534 { 12535 return feupdateenv (); 12536 ; 12537 return 0; 12538 } 12539 _ACEOF 12540 if ac_fn_c_try_link "$LINENO"; then : 12541 ac_cv_lib_m_feupdateenv=yes 12542 else 12543 ac_cv_lib_m_feupdateenv=no 12544 fi 12545 rm -f core conftest.err conftest.$ac_objext \ 12546 conftest$ac_exeext conftest.$ac_ext 12547 LIBS=$ac_check_lib_save_LIBS 12548 fi 12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5 12550 $as_echo "$ac_cv_lib_m_feupdateenv" >&6; } 12551 if test "x$ac_cv_lib_m_feupdateenv" = xyes; then : 12552 12553 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h 12554 12555 fi 12556 12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5 12558 $as_echo_n "checking for fesetenv in -lm... " >&6; } 12559 if ${ac_cv_lib_m_fesetenv+:} false; then : 12560 $as_echo_n "(cached) " >&6 12561 else 12562 ac_check_lib_save_LIBS=$LIBS 12563 LIBS="-lm $LIBS" 12564 if test x$gcc_no_link = xyes; then 12565 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12566 fi 12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12568 /* end confdefs.h. */ 12569 12570 /* Override any GCC internal prototype to avoid an error. 12571 Use char because int might match the return type of a GCC 12572 builtin and then its argument prototype would still apply. */ 12573 #ifdef __cplusplus 12574 extern "C" 12575 #endif 12576 char fesetenv (); 12577 int 12578 main () 12579 { 12580 return fesetenv (); 12581 ; 12582 return 0; 12583 } 12584 _ACEOF 12585 if ac_fn_c_try_link "$LINENO"; then : 12586 ac_cv_lib_m_fesetenv=yes 12587 else 12588 ac_cv_lib_m_fesetenv=no 12589 fi 12590 rm -f core conftest.err conftest.$ac_objext \ 12591 conftest$ac_exeext conftest.$ac_ext 12592 LIBS=$ac_check_lib_save_LIBS 12593 fi 12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5 12595 $as_echo "$ac_cv_lib_m_fesetenv" >&6; } 12596 if test "x$ac_cv_lib_m_fesetenv" = xyes; then : 12597 12598 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h 12599 12600 fi 12601 12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5 12603 $as_echo_n "checking for fetestexcept in -lm... " >&6; } 12604 if ${ac_cv_lib_m_fetestexcept+:} false; then : 12605 $as_echo_n "(cached) " >&6 12606 else 12607 ac_check_lib_save_LIBS=$LIBS 12608 LIBS="-lm $LIBS" 12609 if test x$gcc_no_link = xyes; then 12610 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12611 fi 12612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12613 /* end confdefs.h. */ 12614 12615 /* Override any GCC internal prototype to avoid an error. 12616 Use char because int might match the return type of a GCC 12617 builtin and then its argument prototype would still apply. */ 12618 #ifdef __cplusplus 12619 extern "C" 12620 #endif 12621 char fetestexcept (); 12622 int 12623 main () 12624 { 12625 return fetestexcept (); 12626 ; 12627 return 0; 12628 } 12629 _ACEOF 12630 if ac_fn_c_try_link "$LINENO"; then : 12631 ac_cv_lib_m_fetestexcept=yes 12632 else 12633 ac_cv_lib_m_fetestexcept=no 12634 fi 12635 rm -f core conftest.err conftest.$ac_objext \ 12636 conftest$ac_exeext conftest.$ac_ext 12637 LIBS=$ac_check_lib_save_LIBS 12638 fi 12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5 12640 $as_echo "$ac_cv_lib_m_fetestexcept" >&6; } 12641 if test "x$ac_cv_lib_m_fetestexcept" = xyes; then : 12642 12643 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h 12644 12645 fi 12646 12647 for ac_func in strtoull 12648 do : 12649 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" 12650 if test "x$ac_cv_func_strtoull" = xyes; then : 12651 cat >>confdefs.h <<_ACEOF 12652 #define HAVE_STRTOULL 1 12653 _ACEOF 12654 12655 fi 12656 done 12657 12658 else 12659 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then 12660 12661 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h 12662 12663 fi 12664 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then 12665 12666 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h 12667 12668 fi 12669 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then 12670 12671 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h 12672 12673 fi 12674 if test "x$ac_cv_lib_m_fesetround" = x""yes; then 12675 12676 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h 12677 12678 fi 12679 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then 12680 12681 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h 12682 12683 fi 12684 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then 12685 12686 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h 12687 12688 fi 12689 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then 12690 12691 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h 12692 12693 fi 12694 fi 12695 12696 # Check for hidden visibility (copied from libssp). 12697 saved_CFLAGS="$CFLAGS" 12698 CFLAGS="$CFLAGS -Werror" 12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5 12700 $as_echo_n "checking whether hidden visibility is supported... " >&6; } 12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12702 /* end confdefs.h. */ 12703 12704 void __attribute__((visibility ("hidden"))) bar (void) {} 12705 int 12706 main () 12707 { 12708 12709 ; 12710 return 0; 12711 } 12712 _ACEOF 12713 if ac_fn_c_try_compile "$LINENO"; then : 12714 quadmath_hidden=yes 12715 else 12716 quadmath_hidden=no 12717 fi 12718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_hidden" >&5 12720 $as_echo "$quadmath_hidden" >&6; } 12721 if test x$quadmath_hidden = xyes; then 12722 12723 $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h 12724 12725 fi 12726 CFLAGS="$saved_CFLAGS" 12727 12728 # Check for symbol versioning (copied from libssp). 12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5 12730 $as_echo_n "checking whether symbol versioning is supported... " >&6; } 12731 # Check whether --enable-symvers was given. 12732 if test "${enable_symvers+set}" = set; then : 12733 enableval=$enable_symvers; quadmath_use_symver=$enableval 12734 else 12735 quadmath_use_symver=yes 12736 fi 12737 12738 if test "x$quadmath_use_symver" != xno; then 12739 if test x$gcc_no_link = xyes; then 12740 # If we cannot link, we cannot build shared libraries, so do not use 12741 # symbol versioning. 12742 quadmath_use_symver=no 12743 else 12744 save_LDFLAGS="$LDFLAGS" 12745 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map" 12746 cat > conftest.map <<EOF 12747 FOO_1.0 { 12748 global: *foo*; bar; local: *; 12749 }; 12750 EOF 12751 if test x$gcc_no_link = xyes; then 12752 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12753 fi 12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12755 /* end confdefs.h. */ 12756 int foo; 12757 int 12758 main () 12759 { 12760 12761 ; 12762 return 0; 12763 } 12764 _ACEOF 12765 if ac_fn_c_try_link "$LINENO"; then : 12766 quadmath_use_symver=gnu 12767 else 12768 quadmath_use_symver=no 12769 fi 12770 rm -f core conftest.err conftest.$ac_objext \ 12771 conftest$ac_exeext conftest.$ac_ext 12772 if test x$quadmath_use_symver = xno; then 12773 case "$target_os" in 12774 solaris2*) 12775 LDFLAGS="$save_LDFLAGS" 12776 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map" 12777 # Sun ld cannot handle wildcards and treats all entries as undefined. 12778 cat > conftest.map <<EOF 12779 FOO_1.0 { 12780 global: foo; local: *; 12781 }; 12782 EOF 12783 if test x$gcc_no_link = xyes; then 12784 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12785 fi 12786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12787 /* end confdefs.h. */ 12788 int foo; 12789 int 12790 main () 12791 { 12792 12793 ; 12794 return 0; 12795 } 12796 _ACEOF 12797 if ac_fn_c_try_link "$LINENO"; then : 12798 quadmath_use_symver=sun 12799 else 12800 quadmath_use_symver=no 12801 fi 12802 rm -f core conftest.err conftest.$ac_objext \ 12803 conftest$ac_exeext conftest.$ac_ext 12804 ;; 12805 esac 12806 fi 12807 LDFLAGS="$save_LDFLAGS" 12808 fi 12809 fi 12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5 12811 $as_echo "$quadmath_use_symver" >&6; } 12812 if test "x$quadmath_use_symver" != xno; then 12813 LIBQUAD_USE_SYMVER_TRUE= 12814 LIBQUAD_USE_SYMVER_FALSE='#' 12815 else 12816 LIBQUAD_USE_SYMVER_TRUE='#' 12817 LIBQUAD_USE_SYMVER_FALSE= 12818 fi 12819 12820 if test "x$quadmath_use_symver" = xgnu; then 12821 LIBQUAD_USE_SYMVER_GNU_TRUE= 12822 LIBQUAD_USE_SYMVER_GNU_FALSE='#' 12823 else 12824 LIBQUAD_USE_SYMVER_GNU_TRUE='#' 12825 LIBQUAD_USE_SYMVER_GNU_FALSE= 12826 fi 12827 12828 if test "x$quadmath_use_symver" = xsun; then 12829 LIBQUAD_USE_SYMVER_SUN_TRUE= 12830 LIBQUAD_USE_SYMVER_SUN_FALSE='#' 12831 else 12832 LIBQUAD_USE_SYMVER_SUN_TRUE='#' 12833 LIBQUAD_USE_SYMVER_SUN_FALSE= 12834 fi 12835 12836 12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5 12838 $as_echo_n "checking whether __float128 is supported... " >&6; } 12839 if ${libquad_cv_have_float128+:} false; then : 12840 $as_echo_n "(cached) " >&6 12841 else 12842 if test x$gcc_no_link = xyes; then 12843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12844 /* end confdefs.h. */ 12845 12846 #ifdef __loongarch__ 12847 #error On LoongArch we should use long double instead; __float128 is only for porting existing code easier. 12848 #endif 12849 12850 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__) 12851 typedef _Complex float __attribute__((mode(TC))) __complex128; 12852 #else 12853 typedef _Complex float __attribute__((mode(KC))) __complex128; 12854 #endif 12855 12856 __float128 foo (__float128 x) 12857 { 12858 12859 __complex128 z1, z2; 12860 12861 z1 = x; 12862 z2 = x / 7.Q; 12863 z2 /= z1; 12864 12865 return (__float128) z2; 12866 } 12867 12868 __float128 bar (__float128 x) 12869 { 12870 return x * __builtin_huge_valq (); 12871 } 12872 12873 int 12874 main () 12875 { 12876 12877 foo (1.2Q); 12878 bar (1.2Q); 12879 12880 ; 12881 return 0; 12882 } 12883 _ACEOF 12884 if ac_fn_c_try_compile "$LINENO"; then : 12885 12886 libquad_cv_have_float128=yes 12887 12888 else 12889 12890 libquad_cv_have_float128=no 12891 12892 fi 12893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12894 else 12895 if test x$gcc_no_link = xyes; then 12896 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12897 fi 12898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12899 /* end confdefs.h. */ 12900 12901 #ifdef __loongarch__ 12902 #error On LoongArch we should use long double instead; __float128 is only for porting existing code easier. 12903 #endif 12904 12905 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__) 12906 typedef _Complex float __attribute__((mode(TC))) __complex128; 12907 #else 12908 typedef _Complex float __attribute__((mode(KC))) __complex128; 12909 #endif 12910 12911 __float128 foo (__float128 x) 12912 { 12913 12914 __complex128 z1, z2; 12915 12916 z1 = x; 12917 z2 = x / 7.Q; 12918 z2 /= z1; 12919 12920 return (__float128) z2; 12921 } 12922 12923 __float128 bar (__float128 x) 12924 { 12925 return x * __builtin_huge_valq (); 12926 } 12927 12928 int 12929 main () 12930 { 12931 12932 foo (1.2Q); 12933 bar (1.2Q); 12934 12935 ; 12936 return 0; 12937 } 12938 _ACEOF 12939 if ac_fn_c_try_link "$LINENO"; then : 12940 12941 libquad_cv_have_float128=yes 12942 12943 else 12944 12945 libquad_cv_have_float128=no 12946 12947 fi 12948 rm -f core conftest.err conftest.$ac_objext \ 12949 conftest$ac_exeext conftest.$ac_ext 12950 fi 12951 fi 12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5 12953 $as_echo "$libquad_cv_have_float128" >&6; } 12954 if test "x$libquad_cv_have_float128" = xyes; then 12955 BUILD_LIBQUADMATH_TRUE= 12956 BUILD_LIBQUADMATH_FALSE='#' 12957 else 12958 BUILD_LIBQUADMATH_TRUE='#' 12959 BUILD_LIBQUADMATH_FALSE= 12960 fi 12961 12962 12963 # Check for printf hook support. 12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf hooks are supported" >&5 12965 $as_echo_n "checking whether printf hooks are supported... " >&6; } 12966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12967 /* end confdefs.h. */ 12968 12969 #include <printf.h> 12970 #include <stdarg.h> 12971 #include <stdlib.h> 12972 extern void flt128_va (void *, va_list *); 12973 extern int flt128_ais (const struct printf_info *, size_t, int *, int *); 12974 extern int flt128_printf_fp (FILE *, const struct printf_info *, const void *const *); 12975 12976 int 12977 main () 12978 { 12979 12980 int pa_flt128 = register_printf_type (flt128_va); 12981 int mod_Q = register_printf_modifier (L"Q"); 12982 int res = register_printf_specifier ('f', flt128_printf_fp, flt128_ais); 12983 struct printf_info info = { .user = -1 }; 12984 12985 ; 12986 return 0; 12987 } 12988 _ACEOF 12989 if ac_fn_c_try_compile "$LINENO"; then : 12990 quadmath_printf_hooks=yes 12991 else 12992 quadmath_printf_hooks=no 12993 fi 12994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_printf_hooks" >&5 12996 $as_echo "$quadmath_printf_hooks" >&6; } 12997 if test x$quadmath_printf_hooks = xyes; then 12998 12999 $as_echo "#define HAVE_PRINTF_HOOKS 1" >>confdefs.h 13000 13001 fi 13002 13003 # Check for whether locale support for quadmath_snprintf or Q printf hooks 13004 # should be provided. 13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used" >&5 13006 $as_echo_n "checking whether nl_langinfo should be used... " >&6; } 13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13008 /* end confdefs.h. */ 13009 #include <langinfo.h> 13010 int 13011 main () 13012 { 13013 13014 const char *s; 13015 s = nl_langinfo (DECIMAL_POINT); 13016 s = nl_langinfo (MON_DECIMAL_POINT); 13017 s = nl_langinfo (GROUPING); 13018 s = nl_langinfo (MON_GROUPING); 13019 s = nl_langinfo (THOUSANDS_SEP); 13020 s = nl_langinfo (MON_THOUSANDS_SEP); 13021 (void) s; 13022 13023 ; 13024 return 0; 13025 } 13026 _ACEOF 13027 if ac_fn_c_try_compile "$LINENO"; then : 13028 quadmath_use_nl_langinfo=yes 13029 else 13030 quadmath_use_nl_langinfo=no 13031 fi 13032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo" >&5 13034 $as_echo "$quadmath_use_nl_langinfo" >&6; } 13035 if test x$quadmath_use_nl_langinfo = xyes; then 13036 13037 $as_echo "#define USE_NL_LANGINFO 1" >>confdefs.h 13038 13039 fi 13040 13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used for wide char locale info" >&5 13042 $as_echo_n "checking whether nl_langinfo should be used for wide char locale info... " >&6; } 13043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13044 /* end confdefs.h. */ 13045 #include <langinfo.h> 13046 int 13047 main () 13048 { 13049 13050 const char *s; 13051 s = nl_langinfo (_NL_NUMERIC_DECIMAL_POINT_WC); 13052 s = nl_langinfo (_NL_MONETARY_DECIMAL_POINT_WC); 13053 s = nl_langinfo (_NL_NUMERIC_THOUSANDS_SEP_WC); 13054 s = nl_langinfo (_NL_MONETARY_THOUSANDS_SEP_WC); 13055 (void) s; 13056 13057 ; 13058 return 0; 13059 } 13060 _ACEOF 13061 if ac_fn_c_try_compile "$LINENO"; then : 13062 quadmath_use_nl_langinfo_wc=yes 13063 else 13064 quadmath_use_nl_langinfo_wc=no 13065 fi 13066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo_wc" >&5 13068 $as_echo "$quadmath_use_nl_langinfo_wc" >&6; } 13069 if test x$quadmath_use_nl_langinfo_wc = xyes; then 13070 13071 $as_echo "#define USE_NL_LANGINFO_WC 1" >>confdefs.h 13072 13073 fi 13074 13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localeconv should be used" >&5 13076 $as_echo_n "checking whether localeconv should be used... " >&6; } 13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13078 /* end confdefs.h. */ 13079 #include <locale.h> 13080 int 13081 main () 13082 { 13083 13084 const struct lconv *l = localeconv (); 13085 const char *s; 13086 s = l->decimal_point; 13087 s = l->mon_decimal_point; 13088 s = l->grouping; 13089 s = l->mon_grouping; 13090 s = l->thousands_sep; 13091 s = l->mon_thousands_sep; 13092 (void) s; 13093 13094 ; 13095 return 0; 13096 } 13097 _ACEOF 13098 if ac_fn_c_try_compile "$LINENO"; then : 13099 quadmath_use_localeconv=yes 13100 else 13101 quadmath_use_localeconv=no 13102 fi 13103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_localeconv" >&5 13105 $as_echo "$quadmath_use_localeconv" >&6; } 13106 if test x$quadmath_use_localeconv = xyes; then 13107 13108 $as_echo "#define USE_LOCALECONV 1" >>confdefs.h 13109 13110 fi 13111 13112 # Check for whether i18n number rewriting support for quadmath_snprintf 13113 # or Q printf hooks should be provided. 13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i18n number rewriting support for quadmath_snprintf should be added" >&5 13115 $as_echo_n "checking whether i18n number rewriting support for quadmath_snprintf should be added... " >&6; } 13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13117 /* end confdefs.h. */ 13118 #include <langinfo.h> 13119 #include <limits.h> 13120 #include <string.h> 13121 #include <wchar.h> 13122 #include <wctype.h> 13123 int 13124 main () 13125 { 13126 13127 const char *s; 13128 char decimal[MB_LEN_MAX]; 13129 wctrans_t map = wctrans ("to_outpunct"); 13130 wint_t wdecimal = towctrans (L'.', map); 13131 mbstate_t state; 13132 memset (&state, '\0', sizeof (state)); 13133 wcrtomb (decimal, wdecimal, &state); 13134 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB); 13135 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_WC); 13136 s = nl_langinfo (_NL_CTYPE_MB_CUR_MAX); 13137 (void) s; 13138 13139 ; 13140 return 0; 13141 } 13142 _ACEOF 13143 if ac_fn_c_try_compile "$LINENO"; then : 13144 quadmath_use_i18n_number_h=yes 13145 else 13146 quadmath_use_i18n_number_h=no 13147 fi 13148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_i18n_number_h" >&5 13150 $as_echo "$quadmath_use_i18n_number_h" >&6; } 13151 if test x$quadmath_use_i18n_number_h = xyes; then 13152 13153 $as_echo "#define USE_I18N_NUMBER_H 1" >>confdefs.h 13154 13155 fi 13156 13157 # Add CET specific flags if CET is enabled 13158 # Check whether --enable-cet was given. 13159 if test "${enable_cet+set}" = set; then : 13160 enableval=$enable_cet; 13161 case "$enableval" in 13162 yes|no|auto) ;; 13163 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; 13164 esac 13165 13166 else 13167 enable_cet=auto 13168 fi 13169 13170 13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 13172 $as_echo_n "checking for CET support... " >&6; } 13173 13174 # NB: Avoid nested save_CFLAGS and save_LDFLAGS. 13175 case "$host" in 13176 i[34567]86-*-linux* | x86_64-*-linux*) 13177 case "$enable_cet" in 13178 auto) 13179 # Check if target supports multi-byte NOPs 13180 # and if compiler and assembler support CET insn. 13181 cet_save_CFLAGS="$CFLAGS" 13182 CFLAGS="$CFLAGS -fcf-protection" 13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13184 /* end confdefs.h. */ 13185 13186 int 13187 main () 13188 { 13189 13190 #if !defined(__SSE2__) 13191 #error target does not support multi-byte NOPs 13192 #else 13193 asm ("setssbsy"); 13194 #endif 13195 13196 ; 13197 return 0; 13198 } 13199 _ACEOF 13200 if ac_fn_c_try_compile "$LINENO"; then : 13201 enable_cet=yes 13202 else 13203 enable_cet=no 13204 fi 13205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13206 CFLAGS="$cet_save_CFLAGS" 13207 ;; 13208 yes) 13209 # Check if assembler supports CET. 13210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13211 /* end confdefs.h. */ 13212 13213 int 13214 main () 13215 { 13216 asm ("setssbsy"); 13217 ; 13218 return 0; 13219 } 13220 _ACEOF 13221 if ac_fn_c_try_compile "$LINENO"; then : 13222 13223 else 13224 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 13225 fi 13226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13227 ;; 13228 esac 13229 ;; 13230 *) 13231 enable_cet=no 13232 ;; 13233 esac 13234 if test x$enable_cet = xyes; then 13235 CET_FLAGS="-fcf-protection -mshstk" 13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13237 $as_echo "yes" >&6; } 13238 else 13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13240 $as_echo "no" >&6; } 13241 fi 13242 13243 XCFLAGS="$XCFLAGS $CET_FLAGS" 13244 13245 case x$target in 13246 xpowerpc64le*-linux*) 13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13248 /* end confdefs.h. */ 13249 #if __SIZEOF_LONG_DOUBLE__ != 16 13250 #error long double is double 13251 #endif 13252 int 13253 main () 13254 { 13255 (void) 0; 13256 ; 13257 return 0; 13258 } 13259 _ACEOF 13260 if ac_fn_c_try_cpp "$LINENO"; then : 13261 XCFLAGS="$XCFLAGS -mno-gnu-attribute" 13262 fi 13263 rm -f conftest.err conftest.i conftest.$ac_ext 13264 ;; 13265 *) 13266 ;; 13267 esac 13268 13269 13270 cat >confcache <<\_ACEOF 13271 # This file is a shell script that caches the results of configure 13272 # tests run on this system so they can be shared between configure 13273 # scripts and configure runs, see configure's option --config-cache. 13274 # It is not useful on other systems. If it contains results you don't 13275 # want to keep, you may remove or edit it. 13276 # 13277 # config.status only pays attention to the cache file if you give it 13278 # the --recheck option to rerun configure. 13279 # 13280 # `ac_cv_env_foo' variables (set or unset) will be overridden when 13281 # loading this file, other *unset* `ac_cv_foo' will be assigned the 13282 # following values. 13283 13284 _ACEOF 13285 13286 # The following way of writing the cache mishandles newlines in values, 13287 # but we know of no workaround that is simple, portable, and efficient. 13288 # So, we kill variables containing newlines. 13289 # Ultrix sh set writes to stderr and can't be redirected directly, 13290 # and sets the high bit in the cache file unless we assign to the vars. 13291 ( 13292 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13293 eval ac_val=\$$ac_var 13294 case $ac_val in #( 13295 *${as_nl}*) 13296 case $ac_var in #( 13297 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13298 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13299 esac 13300 case $ac_var in #( 13301 _ | IFS | as_nl) ;; #( 13302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13303 *) { eval $ac_var=; unset $ac_var;} ;; 13304 esac ;; 13305 esac 13306 done 13307 13308 (set) 2>&1 | 13309 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13310 *${as_nl}ac_space=\ *) 13311 # `set' does not quote correctly, so add quotes: double-quote 13312 # substitution turns \\\\ into \\, and sed turns \\ into \. 13313 sed -n \ 13314 "s/'/'\\\\''/g; 13315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13316 ;; #( 13317 *) 13318 # `set' quotes correctly as required by POSIX, so do not add quotes. 13319 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13320 ;; 13321 esac | 13322 sort 13323 ) | 13324 sed ' 13325 /^ac_cv_env_/b end 13326 t clear 13327 :clear 13328 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13329 t end 13330 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13331 :end' >>confcache 13332 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13333 if test -w "$cache_file"; then 13334 if test "x$cache_file" != "x/dev/null"; then 13335 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13336 $as_echo "$as_me: updating cache $cache_file" >&6;} 13337 if test ! -f "$cache_file" || test -h "$cache_file"; then 13338 cat confcache >"$cache_file" 13339 else 13340 case $cache_file in #( 13341 */* | ?:*) 13342 mv -f confcache "$cache_file"$$ && 13343 mv -f "$cache_file"$$ "$cache_file" ;; #( 13344 *) 13345 mv -f confcache "$cache_file" ;; 13346 esac 13347 fi 13348 fi 13349 else 13350 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13351 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13352 fi 13353 fi 13354 rm -f confcache 13355 13356 if test ${multilib} = yes; then 13357 multilib_arg="--enable-multilib" 13358 else 13359 multilib_arg= 13360 fi 13361 13362 13363 # We would like our source tree to be readonly. However when releases or 13364 # pre-releases are generated, the flex/bison generated files as well as the 13365 # various formats of manuals need to be included along with the rest of the 13366 # sources. Therefore we have --enable-generated-files-in-srcdir to do 13367 # just that. 13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5 13369 $as_echo_n "checking generated-files-in-srcdir... " >&6; } 13370 # Check whether --enable-generated-files-in-srcdir was given. 13371 if test "${enable_generated_files_in_srcdir+set}" = set; then : 13372 enableval=$enable_generated_files_in_srcdir; case "$enableval" in 13373 yes) enable_generated_files_in_srcdir=yes ;; 13374 no) enable_generated_files_in_srcdir=no ;; 13375 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; 13376 esac 13377 else 13378 enable_generated_files_in_srcdir=no 13379 fi 13380 13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5 13382 $as_echo "$enable_generated_files_in_srcdir" >&6; } 13383 if test "$enable_generated_files_in_srcdir" = yes; then 13384 GENINSRC_TRUE= 13385 GENINSRC_FALSE='#' 13386 else 13387 GENINSRC_TRUE='#' 13388 GENINSRC_FALSE= 13389 fi 13390 13391 13392 # Determine what GCC version number to use in filesystem paths. 13393 13394 get_gcc_base_ver="cat" 13395 13396 # Check whether --with-gcc-major-version-only was given. 13397 if test "${with_gcc_major_version_only+set}" = set; then : 13398 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 13399 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 13400 fi 13401 13402 fi 13403 13404 13405 13406 13407 ac_config_files="$ac_config_files Makefile" 13408 13409 cat >confcache <<\_ACEOF 13410 # This file is a shell script that caches the results of configure 13411 # tests run on this system so they can be shared between configure 13412 # scripts and configure runs, see configure's option --config-cache. 13413 # It is not useful on other systems. If it contains results you don't 13414 # want to keep, you may remove or edit it. 13415 # 13416 # config.status only pays attention to the cache file if you give it 13417 # the --recheck option to rerun configure. 13418 # 13419 # `ac_cv_env_foo' variables (set or unset) will be overridden when 13420 # loading this file, other *unset* `ac_cv_foo' will be assigned the 13421 # following values. 13422 13423 _ACEOF 13424 13425 # The following way of writing the cache mishandles newlines in values, 13426 # but we know of no workaround that is simple, portable, and efficient. 13427 # So, we kill variables containing newlines. 13428 # Ultrix sh set writes to stderr and can't be redirected directly, 13429 # and sets the high bit in the cache file unless we assign to the vars. 13430 ( 13431 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13432 eval ac_val=\$$ac_var 13433 case $ac_val in #( 13434 *${as_nl}*) 13435 case $ac_var in #( 13436 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13437 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13438 esac 13439 case $ac_var in #( 13440 _ | IFS | as_nl) ;; #( 13441 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13442 *) { eval $ac_var=; unset $ac_var;} ;; 13443 esac ;; 13444 esac 13445 done 13446 13447 (set) 2>&1 | 13448 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13449 *${as_nl}ac_space=\ *) 13450 # `set' does not quote correctly, so add quotes: double-quote 13451 # substitution turns \\\\ into \\, and sed turns \\ into \. 13452 sed -n \ 13453 "s/'/'\\\\''/g; 13454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13455 ;; #( 13456 *) 13457 # `set' quotes correctly as required by POSIX, so do not add quotes. 13458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13459 ;; 13460 esac | 13461 sort 13462 ) | 13463 sed ' 13464 /^ac_cv_env_/b end 13465 t clear 13466 :clear 13467 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13468 t end 13469 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13470 :end' >>confcache 13471 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13472 if test -w "$cache_file"; then 13473 if test "x$cache_file" != "x/dev/null"; then 13474 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13475 $as_echo "$as_me: updating cache $cache_file" >&6;} 13476 if test ! -f "$cache_file" || test -h "$cache_file"; then 13477 cat confcache >"$cache_file" 13478 else 13479 case $cache_file in #( 13480 */* | ?:*) 13481 mv -f confcache "$cache_file"$$ && 13482 mv -f "$cache_file"$$ "$cache_file" ;; #( 13483 *) 13484 mv -f confcache "$cache_file" ;; 13485 esac 13486 fi 13487 fi 13488 else 13489 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13490 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13491 fi 13492 fi 13493 rm -f confcache 13494 13495 test "x$prefix" = xNONE && prefix=$ac_default_prefix 13496 # Let make expand exec_prefix. 13497 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13498 13499 DEFS=-DHAVE_CONFIG_H 13500 13501 ac_libobjs= 13502 ac_ltlibobjs= 13503 U= 13504 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13505 # 1. Remove the extension, and $U if already installed. 13506 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13507 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13508 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13509 # will be set to the directory where LIBOBJS objects are built. 13510 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13511 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13512 done 13513 LIBOBJS=$ac_libobjs 13514 13515 LTLIBOBJS=$ac_ltlibobjs 13516 13517 13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13519 $as_echo_n "checking that generated files are newer than configure... " >&6; } 13520 if test -n "$am_sleep_pid"; then 13521 # Hide warnings about reused PIDs. 13522 wait $am_sleep_pid 2>/dev/null 13523 fi 13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13525 $as_echo "done" >&6; } 13526 if test -n "$EXEEXT"; then 13527 am__EXEEXT_TRUE= 13528 am__EXEEXT_FALSE='#' 13529 else 13530 am__EXEEXT_TRUE='#' 13531 am__EXEEXT_FALSE= 13532 fi 13533 13534 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13535 as_fn_error $? "conditional \"AMDEP\" was never defined. 13536 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13537 fi 13538 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13539 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13540 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13541 fi 13542 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then 13543 as_fn_error $? "conditional \"BUILD_INFO\" was never defined. 13544 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13545 fi 13546 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then 13547 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined. 13548 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13549 fi 13550 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13551 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 13552 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13553 fi 13554 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13555 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13556 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13557 fi 13558 if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then 13559 as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER\" was never defined. 13560 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13561 fi 13562 if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then 13563 as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined. 13564 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13565 fi 13566 if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then 13567 as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined. 13568 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13569 fi 13570 if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then 13571 as_fn_error $? "conditional \"BUILD_LIBQUADMATH\" was never defined. 13572 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13573 fi 13574 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then 13575 as_fn_error $? "conditional \"GENINSRC\" was never defined. 13576 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13577 fi 13578 13579 : "${CONFIG_STATUS=./config.status}" 13580 ac_write_fail=0 13581 ac_clean_files_save=$ac_clean_files 13582 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13583 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13584 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13585 as_write_fail=0 13586 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13587 #! $SHELL 13588 # Generated by $as_me. 13589 # Run this file to recreate the current configuration. 13590 # Compiler output produced by configure, useful for debugging 13591 # configure, is in config.log if it exists. 13592 13593 debug=false 13594 ac_cs_recheck=false 13595 ac_cs_silent=false 13596 13597 SHELL=\${CONFIG_SHELL-$SHELL} 13598 export SHELL 13599 _ASEOF 13600 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13601 ## -------------------- ## 13602 ## M4sh Initialization. ## 13603 ## -------------------- ## 13604 13605 # Be more Bourne compatible 13606 DUALCASE=1; export DUALCASE # for MKS sh 13607 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13608 emulate sh 13609 NULLCMD=: 13610 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13611 # is contrary to our usage. Disable this feature. 13612 alias -g '${1+"$@"}'='"$@"' 13613 setopt NO_GLOB_SUBST 13614 else 13615 case `(set -o) 2>/dev/null` in #( 13616 *posix*) : 13617 set -o posix ;; #( 13618 *) : 13619 ;; 13620 esac 13621 fi 13622 13623 13624 as_nl=' 13625 ' 13626 export as_nl 13627 # Printing a long string crashes Solaris 7 /usr/bin/printf. 13628 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13629 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13630 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13631 # Prefer a ksh shell builtin over an external printf program on Solaris, 13632 # but without wasting forks for bash or zsh. 13633 if test -z "$BASH_VERSION$ZSH_VERSION" \ 13634 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13635 as_echo='print -r --' 13636 as_echo_n='print -rn --' 13637 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13638 as_echo='printf %s\n' 13639 as_echo_n='printf %s' 13640 else 13641 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13642 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13643 as_echo_n='/usr/ucb/echo -n' 13644 else 13645 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13646 as_echo_n_body='eval 13647 arg=$1; 13648 case $arg in #( 13649 *"$as_nl"*) 13650 expr "X$arg" : "X\\(.*\\)$as_nl"; 13651 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13652 esac; 13653 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13654 ' 13655 export as_echo_n_body 13656 as_echo_n='sh -c $as_echo_n_body as_echo' 13657 fi 13658 export as_echo_body 13659 as_echo='sh -c $as_echo_body as_echo' 13660 fi 13661 13662 # The user is always right. 13663 if test "${PATH_SEPARATOR+set}" != set; then 13664 PATH_SEPARATOR=: 13665 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13666 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13667 PATH_SEPARATOR=';' 13668 } 13669 fi 13670 13671 13672 # IFS 13673 # We need space, tab and new line, in precisely that order. Quoting is 13674 # there to prevent editors from complaining about space-tab. 13675 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 13676 # splitting by setting IFS to empty value.) 13677 IFS=" "" $as_nl" 13678 13679 # Find who we are. Look in the path if we contain no directory separator. 13680 as_myself= 13681 case $0 in #(( 13682 *[\\/]* ) as_myself=$0 ;; 13683 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13684 for as_dir in $PATH 13685 do 13686 IFS=$as_save_IFS 13687 test -z "$as_dir" && as_dir=. 13688 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13689 done 13690 IFS=$as_save_IFS 13691 13692 ;; 13693 esac 13694 # We did not find ourselves, most probably we were run as `sh COMMAND' 13695 # in which case we are not to be found in the path. 13696 if test "x$as_myself" = x; then 13697 as_myself=$0 13698 fi 13699 if test ! -f "$as_myself"; then 13700 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13701 exit 1 13702 fi 13703 13704 # Unset variables that we do not need and which cause bugs (e.g. in 13705 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13706 # suppresses any "Segmentation fault" message there. '((' could 13707 # trigger a bug in pdksh 5.2.14. 13708 for as_var in BASH_ENV ENV MAIL MAILPATH 13709 do eval test x\${$as_var+set} = xset \ 13710 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13711 done 13712 PS1='$ ' 13713 PS2='> ' 13714 PS4='+ ' 13715 13716 # NLS nuisances. 13717 LC_ALL=C 13718 export LC_ALL 13719 LANGUAGE=C 13720 export LANGUAGE 13721 13722 # CDPATH. 13723 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13724 13725 13726 # as_fn_error STATUS ERROR [LINENO LOG_FD] 13727 # ---------------------------------------- 13728 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13729 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13730 # script with STATUS, using 1 if that was 0. 13731 as_fn_error () 13732 { 13733 as_status=$1; test $as_status -eq 0 && as_status=1 13734 if test "$4"; then 13735 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13736 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13737 fi 13738 $as_echo "$as_me: error: $2" >&2 13739 as_fn_exit $as_status 13740 } # as_fn_error 13741 13742 13743 # as_fn_set_status STATUS 13744 # ----------------------- 13745 # Set $? to STATUS, without forking. 13746 as_fn_set_status () 13747 { 13748 return $1 13749 } # as_fn_set_status 13750 13751 # as_fn_exit STATUS 13752 # ----------------- 13753 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13754 as_fn_exit () 13755 { 13756 set +e 13757 as_fn_set_status $1 13758 exit $1 13759 } # as_fn_exit 13760 13761 # as_fn_unset VAR 13762 # --------------- 13763 # Portably unset VAR. 13764 as_fn_unset () 13765 { 13766 { eval $1=; unset $1;} 13767 } 13768 as_unset=as_fn_unset 13769 # as_fn_append VAR VALUE 13770 # ---------------------- 13771 # Append the text in VALUE to the end of the definition contained in VAR. Take 13772 # advantage of any shell optimizations that allow amortized linear growth over 13773 # repeated appends, instead of the typical quadratic growth present in naive 13774 # implementations. 13775 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13776 eval 'as_fn_append () 13777 { 13778 eval $1+=\$2 13779 }' 13780 else 13781 as_fn_append () 13782 { 13783 eval $1=\$$1\$2 13784 } 13785 fi # as_fn_append 13786 13787 # as_fn_arith ARG... 13788 # ------------------ 13789 # Perform arithmetic evaluation on the ARGs, and store the result in the 13790 # global $as_val. Take advantage of shells that can avoid forks. The arguments 13791 # must be portable across $(()) and expr. 13792 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13793 eval 'as_fn_arith () 13794 { 13795 as_val=$(( $* )) 13796 }' 13797 else 13798 as_fn_arith () 13799 { 13800 as_val=`expr "$@" || test $? -eq 1` 13801 } 13802 fi # as_fn_arith 13803 13804 13805 if expr a : '\(a\)' >/dev/null 2>&1 && 13806 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13807 as_expr=expr 13808 else 13809 as_expr=false 13810 fi 13811 13812 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13813 as_basename=basename 13814 else 13815 as_basename=false 13816 fi 13817 13818 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13819 as_dirname=dirname 13820 else 13821 as_dirname=false 13822 fi 13823 13824 as_me=`$as_basename -- "$0" || 13825 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13826 X"$0" : 'X\(//\)$' \| \ 13827 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13828 $as_echo X/"$0" | 13829 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13830 s//\1/ 13831 q 13832 } 13833 /^X\/\(\/\/\)$/{ 13834 s//\1/ 13835 q 13836 } 13837 /^X\/\(\/\).*/{ 13838 s//\1/ 13839 q 13840 } 13841 s/.*/./; q'` 13842 13843 # Avoid depending upon Character Ranges. 13844 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13845 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13846 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13847 as_cr_digits='0123456789' 13848 as_cr_alnum=$as_cr_Letters$as_cr_digits 13849 13850 ECHO_C= ECHO_N= ECHO_T= 13851 case `echo -n x` in #((((( 13852 -n*) 13853 case `echo 'xy\c'` in 13854 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13855 xy) ECHO_C='\c';; 13856 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13857 ECHO_T=' ';; 13858 esac;; 13859 *) 13860 ECHO_N='-n';; 13861 esac 13862 13863 rm -f conf$$ conf$$.exe conf$$.file 13864 if test -d conf$$.dir; then 13865 rm -f conf$$.dir/conf$$.file 13866 else 13867 rm -f conf$$.dir 13868 mkdir conf$$.dir 2>/dev/null 13869 fi 13870 if (echo >conf$$.file) 2>/dev/null; then 13871 if ln -s conf$$.file conf$$ 2>/dev/null; then 13872 as_ln_s='ln -s' 13873 # ... but there are two gotchas: 13874 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13875 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13876 # In both cases, we have to default to `cp -pR'. 13877 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13878 as_ln_s='cp -pR' 13879 elif ln conf$$.file conf$$ 2>/dev/null; then 13880 as_ln_s=ln 13881 else 13882 as_ln_s='cp -pR' 13883 fi 13884 else 13885 as_ln_s='cp -pR' 13886 fi 13887 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13888 rmdir conf$$.dir 2>/dev/null 13889 13890 13891 # as_fn_mkdir_p 13892 # ------------- 13893 # Create "$as_dir" as a directory, including parents if necessary. 13894 as_fn_mkdir_p () 13895 { 13896 13897 case $as_dir in #( 13898 -*) as_dir=./$as_dir;; 13899 esac 13900 test -d "$as_dir" || eval $as_mkdir_p || { 13901 as_dirs= 13902 while :; do 13903 case $as_dir in #( 13904 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13905 *) as_qdir=$as_dir;; 13906 esac 13907 as_dirs="'$as_qdir' $as_dirs" 13908 as_dir=`$as_dirname -- "$as_dir" || 13909 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13910 X"$as_dir" : 'X\(//\)[^/]' \| \ 13911 X"$as_dir" : 'X\(//\)$' \| \ 13912 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13913 $as_echo X"$as_dir" | 13914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13915 s//\1/ 13916 q 13917 } 13918 /^X\(\/\/\)[^/].*/{ 13919 s//\1/ 13920 q 13921 } 13922 /^X\(\/\/\)$/{ 13923 s//\1/ 13924 q 13925 } 13926 /^X\(\/\).*/{ 13927 s//\1/ 13928 q 13929 } 13930 s/.*/./; q'` 13931 test -d "$as_dir" && break 13932 done 13933 test -z "$as_dirs" || eval "mkdir $as_dirs" 13934 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13935 13936 13937 } # as_fn_mkdir_p 13938 if mkdir -p . 2>/dev/null; then 13939 as_mkdir_p='mkdir -p "$as_dir"' 13940 else 13941 test -d ./-p && rmdir ./-p 13942 as_mkdir_p=false 13943 fi 13944 13945 13946 # as_fn_executable_p FILE 13947 # ----------------------- 13948 # Test if FILE is an executable regular file. 13949 as_fn_executable_p () 13950 { 13951 test -f "$1" && test -x "$1" 13952 } # as_fn_executable_p 13953 as_test_x='test -x' 13954 as_executable_p=as_fn_executable_p 13955 13956 # Sed expression to map a string onto a valid CPP name. 13957 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13958 13959 # Sed expression to map a string onto a valid variable name. 13960 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13961 13962 13963 exec 6>&1 13964 ## ----------------------------------- ## 13965 ## Main body of $CONFIG_STATUS script. ## 13966 ## ----------------------------------- ## 13967 _ASEOF 13968 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13969 13970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13971 # Save the log message, to keep $0 and so on meaningful, and to 13972 # report actual input values of CONFIG_FILES etc. instead of their 13973 # values after options handling. 13974 ac_log=" 13975 This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was 13976 generated by GNU Autoconf 2.69. Invocation command line was 13977 13978 CONFIG_FILES = $CONFIG_FILES 13979 CONFIG_HEADERS = $CONFIG_HEADERS 13980 CONFIG_LINKS = $CONFIG_LINKS 13981 CONFIG_COMMANDS = $CONFIG_COMMANDS 13982 $ $0 $@ 13983 13984 on `(hostname || uname -n) 2>/dev/null | sed 1q` 13985 " 13986 13987 _ACEOF 13988 13989 case $ac_config_files in *" 13990 "*) set x $ac_config_files; shift; ac_config_files=$*;; 13991 esac 13992 13993 case $ac_config_headers in *" 13994 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13995 esac 13996 13997 13998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13999 # Files that config.status was made for. 14000 config_files="$ac_config_files" 14001 config_headers="$ac_config_headers" 14002 config_commands="$ac_config_commands" 14003 14004 _ACEOF 14005 14006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14007 ac_cs_usage="\ 14008 \`$as_me' instantiates files and other configuration actions 14009 from templates according to the current configuration. Unless the files 14010 and actions are specified as TAGs, all are instantiated by default. 14011 14012 Usage: $0 [OPTION]... [TAG]... 14013 14014 -h, --help print this help, then exit 14015 -V, --version print version number and configuration settings, then exit 14016 --config print configuration, then exit 14017 -q, --quiet, --silent 14018 do not print progress messages 14019 -d, --debug don't remove temporary files 14020 --recheck update $as_me by reconfiguring in the same conditions 14021 --file=FILE[:TEMPLATE] 14022 instantiate the configuration file FILE 14023 --header=FILE[:TEMPLATE] 14024 instantiate the configuration header FILE 14025 14026 Configuration files: 14027 $config_files 14028 14029 Configuration headers: 14030 $config_headers 14031 14032 Configuration commands: 14033 $config_commands 14034 14035 Report bugs to the package provider." 14036 14037 _ACEOF 14038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14039 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14040 ac_cs_version="\\ 14041 GCC Quad-precision Math Library config.status 0.1 14042 configured by $0, generated by GNU Autoconf 2.69, 14043 with options \\"\$ac_cs_config\\" 14044 14045 Copyright (C) 2012 Free Software Foundation, Inc. 14046 This config.status script is free software; the Free Software Foundation 14047 gives unlimited permission to copy, distribute and modify it." 14048 14049 ac_pwd='$ac_pwd' 14050 srcdir='$srcdir' 14051 INSTALL='$INSTALL' 14052 MKDIR_P='$MKDIR_P' 14053 AWK='$AWK' 14054 test -n "\$AWK" || AWK=awk 14055 _ACEOF 14056 14057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14058 # The default lists apply if the user does not specify any file. 14059 ac_need_defaults=: 14060 while test $# != 0 14061 do 14062 case $1 in 14063 --*=?*) 14064 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14065 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14066 ac_shift=: 14067 ;; 14068 --*=) 14069 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14070 ac_optarg= 14071 ac_shift=: 14072 ;; 14073 *) 14074 ac_option=$1 14075 ac_optarg=$2 14076 ac_shift=shift 14077 ;; 14078 esac 14079 14080 case $ac_option in 14081 # Handling of the options. 14082 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14083 ac_cs_recheck=: ;; 14084 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14085 $as_echo "$ac_cs_version"; exit ;; 14086 --config | --confi | --conf | --con | --co | --c ) 14087 $as_echo "$ac_cs_config"; exit ;; 14088 --debug | --debu | --deb | --de | --d | -d ) 14089 debug=: ;; 14090 --file | --fil | --fi | --f ) 14091 $ac_shift 14092 case $ac_optarg in 14093 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14094 '') as_fn_error $? "missing file argument" ;; 14095 esac 14096 as_fn_append CONFIG_FILES " '$ac_optarg'" 14097 ac_need_defaults=false;; 14098 --header | --heade | --head | --hea ) 14099 $ac_shift 14100 case $ac_optarg in 14101 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14102 esac 14103 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14104 ac_need_defaults=false;; 14105 --he | --h) 14106 # Conflict between --help and --header 14107 as_fn_error $? "ambiguous option: \`$1' 14108 Try \`$0 --help' for more information.";; 14109 --help | --hel | -h ) 14110 $as_echo "$ac_cs_usage"; exit ;; 14111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14112 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14113 ac_cs_silent=: ;; 14114 14115 # This is an error. 14116 -*) as_fn_error $? "unrecognized option: \`$1' 14117 Try \`$0 --help' for more information." ;; 14118 14119 *) as_fn_append ac_config_targets " $1" 14120 ac_need_defaults=false ;; 14121 14122 esac 14123 shift 14124 done 14125 14126 ac_configure_extra_args= 14127 14128 if $ac_cs_silent; then 14129 exec 6>/dev/null 14130 ac_configure_extra_args="$ac_configure_extra_args --silent" 14131 fi 14132 14133 _ACEOF 14134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14135 if \$ac_cs_recheck; then 14136 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14137 shift 14138 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14139 CONFIG_SHELL='$SHELL' 14140 export CONFIG_SHELL 14141 exec "\$@" 14142 fi 14143 14144 _ACEOF 14145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14146 exec 5>>config.log 14147 { 14148 echo 14149 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14150 ## Running $as_me. ## 14151 _ASBOX 14152 $as_echo "$ac_log" 14153 } >&5 14154 14155 _ACEOF 14156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14157 # 14158 # INIT-COMMANDS 14159 # 14160 14161 srcdir="$srcdir" 14162 host="$host" 14163 target="$target" 14164 with_multisubdir="$with_multisubdir" 14165 with_multisrctop="$with_multisrctop" 14166 with_target_subdir="$with_target_subdir" 14167 ac_configure_args="${multilib_arg} ${ac_configure_args}" 14168 multi_basedir="$multi_basedir" 14169 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 14170 CC="$CC" 14171 CXX="$CXX" 14172 GFORTRAN="$GFORTRAN" 14173 GDC="$GDC" 14174 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14175 14176 14177 # The HP-UX ksh and POSIX shell print the target directory to stdout 14178 # if CDPATH is set. 14179 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14180 14181 sed_quote_subst='$sed_quote_subst' 14182 double_quote_subst='$double_quote_subst' 14183 delay_variable_subst='$delay_variable_subst' 14184 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14185 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14186 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14187 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14188 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14189 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14190 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14191 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14192 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14193 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14194 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14195 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14196 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14197 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14198 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14199 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14200 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14201 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14202 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14203 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14204 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14205 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14206 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14207 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14208 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14209 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14210 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14211 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14212 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14213 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14214 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14215 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14216 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14217 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14218 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14219 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14220 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14221 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14222 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14223 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14224 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14225 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14226 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14227 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14228 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14229 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14230 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14231 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14232 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"`' 14233 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14234 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14235 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14236 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14237 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14238 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14239 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14240 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14241 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14242 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14243 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14244 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14245 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14246 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14247 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14248 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14249 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14250 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14251 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14252 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14253 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14254 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14255 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14256 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14257 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14258 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14259 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14260 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14261 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14262 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14263 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14264 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 14265 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14266 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14267 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14268 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14269 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14270 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14271 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14272 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14273 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 14274 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14275 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14276 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14277 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14278 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14279 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14280 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14281 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14282 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14283 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14284 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14285 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14286 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14287 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14288 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14289 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14290 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14291 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14292 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14293 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14294 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14295 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14296 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14297 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 14298 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14299 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14300 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14301 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14302 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14303 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14304 14305 LTCC='$LTCC' 14306 LTCFLAGS='$LTCFLAGS' 14307 compiler='$compiler_DEFAULT' 14308 14309 # A function that is used when there is no print builtin or printf. 14310 func_fallback_echo () 14311 { 14312 eval 'cat <<_LTECHO_EOF 14313 \$1 14314 _LTECHO_EOF' 14315 } 14316 14317 # Quote evaled strings. 14318 for var in SHELL \ 14319 ECHO \ 14320 SED \ 14321 GREP \ 14322 EGREP \ 14323 FGREP \ 14324 LD \ 14325 NM \ 14326 LN_S \ 14327 lt_SP2NL \ 14328 lt_NL2SP \ 14329 reload_flag \ 14330 OBJDUMP \ 14331 deplibs_check_method \ 14332 file_magic_cmd \ 14333 AR \ 14334 AR_FLAGS \ 14335 STRIP \ 14336 RANLIB \ 14337 CC \ 14338 CFLAGS \ 14339 compiler \ 14340 lt_cv_sys_global_symbol_pipe \ 14341 lt_cv_sys_global_symbol_to_cdecl \ 14342 lt_cv_sys_global_symbol_to_c_name_address \ 14343 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14344 lt_prog_compiler_no_builtin_flag \ 14345 lt_prog_compiler_wl \ 14346 lt_prog_compiler_pic \ 14347 lt_prog_compiler_static \ 14348 lt_cv_prog_compiler_c_o \ 14349 need_locks \ 14350 DSYMUTIL \ 14351 NMEDIT \ 14352 LIPO \ 14353 OTOOL \ 14354 OTOOL64 \ 14355 shrext_cmds \ 14356 export_dynamic_flag_spec \ 14357 whole_archive_flag_spec \ 14358 compiler_needs_object \ 14359 with_gnu_ld \ 14360 allow_undefined_flag \ 14361 no_undefined_flag \ 14362 hardcode_libdir_flag_spec \ 14363 hardcode_libdir_flag_spec_ld \ 14364 hardcode_libdir_separator \ 14365 fix_srcfile_path \ 14366 exclude_expsyms \ 14367 include_expsyms \ 14368 file_list_spec \ 14369 variables_saved_for_relink \ 14370 libname_spec \ 14371 library_names_spec \ 14372 soname_spec \ 14373 install_override_mode \ 14374 finish_eval \ 14375 old_striplib \ 14376 striplib; do 14377 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14378 *[\\\\\\\`\\"\\\$]*) 14379 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14380 ;; 14381 *) 14382 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14383 ;; 14384 esac 14385 done 14386 14387 # Double-quote double-evaled strings. 14388 for var in reload_cmds \ 14389 old_postinstall_cmds \ 14390 old_postuninstall_cmds \ 14391 old_archive_cmds \ 14392 extract_expsyms_cmds \ 14393 old_archive_from_new_cmds \ 14394 old_archive_from_expsyms_cmds \ 14395 archive_cmds \ 14396 archive_expsym_cmds \ 14397 module_cmds \ 14398 module_expsym_cmds \ 14399 export_symbols_cmds \ 14400 prelink_cmds \ 14401 postinstall_cmds \ 14402 postuninstall_cmds \ 14403 finish_cmds \ 14404 sys_lib_search_path_spec \ 14405 sys_lib_dlsearch_path_spec; do 14406 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14407 *[\\\\\\\`\\"\\\$]*) 14408 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14409 ;; 14410 *) 14411 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14412 ;; 14413 esac 14414 done 14415 14416 ac_aux_dir='$ac_aux_dir' 14417 xsi_shell='$xsi_shell' 14418 lt_shell_append='$lt_shell_append' 14419 14420 # See if we are running on zsh, and set the options which allow our 14421 # commands through without removal of \ escapes INIT. 14422 if test -n "\${ZSH_VERSION+set}" ; then 14423 setopt NO_GLOB_SUBST 14424 fi 14425 14426 14427 PACKAGE='$PACKAGE' 14428 VERSION='$VERSION' 14429 TIMESTAMP='$TIMESTAMP' 14430 RM='$RM' 14431 ofile='$ofile' 14432 14433 14434 14435 14436 _ACEOF 14437 14438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14439 14440 # Handling of arguments. 14441 for ac_config_target in $ac_config_targets 14442 do 14443 case $ac_config_target in 14444 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14445 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 14446 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14447 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14448 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14449 14450 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14451 esac 14452 done 14453 14454 14455 # If the user did not use the arguments to specify the items to instantiate, 14456 # then the envvar interface is used. Set only those that are not. 14457 # We use the long form for the default assignment because of an extremely 14458 # bizarre bug on SunOS 4.1.3. 14459 if $ac_need_defaults; then 14460 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14461 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14462 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14463 fi 14464 14465 # Have a temporary directory for convenience. Make it in the build tree 14466 # simply because there is no reason against having it here, and in addition, 14467 # creating and moving files from /tmp can sometimes cause problems. 14468 # Hook for its removal unless debugging. 14469 # Note that there is a small window in which the directory will not be cleaned: 14470 # after its creation but before its name has been assigned to `$tmp'. 14471 $debug || 14472 { 14473 tmp= ac_tmp= 14474 trap 'exit_status=$? 14475 : "${ac_tmp:=$tmp}" 14476 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14477 ' 0 14478 trap 'as_fn_exit 1' 1 2 13 15 14479 } 14480 # Create a (secure) tmp directory for tmp files. 14481 14482 { 14483 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14484 test -d "$tmp" 14485 } || 14486 { 14487 tmp=./conf$$-$RANDOM 14488 (umask 077 && mkdir "$tmp") 14489 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14490 ac_tmp=$tmp 14491 14492 # Set up the scripts for CONFIG_FILES section. 14493 # No need to generate them if there are no CONFIG_FILES. 14494 # This happens for instance with `./config.status config.h'. 14495 if test -n "$CONFIG_FILES"; then 14496 14497 14498 ac_cr=`echo X | tr X '\015'` 14499 # On cygwin, bash can eat \r inside `` if the user requested igncr. 14500 # But we know of no other shell where ac_cr would be empty at this 14501 # point, so we can use a bashism as a fallback. 14502 if test "x$ac_cr" = x; then 14503 eval ac_cr=\$\'\\r\' 14504 fi 14505 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14506 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14507 ac_cs_awk_cr='\\r' 14508 else 14509 ac_cs_awk_cr=$ac_cr 14510 fi 14511 14512 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14513 _ACEOF 14514 14515 14516 { 14517 echo "cat >conf$$subs.awk <<_ACEOF" && 14518 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14519 echo "_ACEOF" 14520 } >conf$$subs.sh || 14521 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14522 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14523 ac_delim='%!_!# ' 14524 for ac_last_try in false false false false false :; do 14525 . ./conf$$subs.sh || 14526 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14527 14528 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14529 if test $ac_delim_n = $ac_delim_num; then 14530 break 14531 elif $ac_last_try; then 14532 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14533 else 14534 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14535 fi 14536 done 14537 rm -f conf$$subs.sh 14538 14539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14540 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14541 _ACEOF 14542 sed -n ' 14543 h 14544 s/^/S["/; s/!.*/"]=/ 14545 p 14546 g 14547 s/^[^!]*!// 14548 :repl 14549 t repl 14550 s/'"$ac_delim"'$// 14551 t delim 14552 :nl 14553 h 14554 s/\(.\{148\}\)..*/\1/ 14555 t more1 14556 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14557 p 14558 n 14559 b repl 14560 :more1 14561 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14562 p 14563 g 14564 s/.\{148\}// 14565 t nl 14566 :delim 14567 h 14568 s/\(.\{148\}\)..*/\1/ 14569 t more2 14570 s/["\\]/\\&/g; s/^/"/; s/$/"/ 14571 p 14572 b 14573 :more2 14574 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14575 p 14576 g 14577 s/.\{148\}// 14578 t delim 14579 ' <conf$$subs.awk | sed ' 14580 /^[^""]/{ 14581 N 14582 s/\n// 14583 } 14584 ' >>$CONFIG_STATUS || ac_write_fail=1 14585 rm -f conf$$subs.awk 14586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14587 _ACAWK 14588 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14589 for (key in S) S_is_set[key] = 1 14590 FS = "" 14591 14592 } 14593 { 14594 line = $ 0 14595 nfields = split(line, field, "@") 14596 substed = 0 14597 len = length(field[1]) 14598 for (i = 2; i < nfields; i++) { 14599 key = field[i] 14600 keylen = length(key) 14601 if (S_is_set[key]) { 14602 value = S[key] 14603 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14604 len += length(value) + length(field[++i]) 14605 substed = 1 14606 } else 14607 len += 1 + keylen 14608 } 14609 14610 print line 14611 } 14612 14613 _ACAWK 14614 _ACEOF 14615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14616 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14617 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14618 else 14619 cat 14620 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14621 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14622 _ACEOF 14623 14624 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14625 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14626 # trailing colons and then remove the whole line if VPATH becomes empty 14627 # (actually we leave an empty line to preserve line numbers). 14628 if test "x$srcdir" = x.; then 14629 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14630 h 14631 s/// 14632 s/^/:/ 14633 s/[ ]*$/:/ 14634 s/:\$(srcdir):/:/g 14635 s/:\${srcdir}:/:/g 14636 s/:@srcdir@:/:/g 14637 s/^:*// 14638 s/:*$// 14639 x 14640 s/\(=[ ]*\).*/\1/ 14641 G 14642 s/\n// 14643 s/^[^=]*=[ ]*$// 14644 }' 14645 fi 14646 14647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14648 fi # test -n "$CONFIG_FILES" 14649 14650 # Set up the scripts for CONFIG_HEADERS section. 14651 # No need to generate them if there are no CONFIG_HEADERS. 14652 # This happens for instance with `./config.status Makefile'. 14653 if test -n "$CONFIG_HEADERS"; then 14654 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14655 BEGIN { 14656 _ACEOF 14657 14658 # Transform confdefs.h into an awk script `defines.awk', embedded as 14659 # here-document in config.status, that substitutes the proper values into 14660 # config.h.in to produce config.h. 14661 14662 # Create a delimiter string that does not exist in confdefs.h, to ease 14663 # handling of long lines. 14664 ac_delim='%!_!# ' 14665 for ac_last_try in false false :; do 14666 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14667 if test -z "$ac_tt"; then 14668 break 14669 elif $ac_last_try; then 14670 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14671 else 14672 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14673 fi 14674 done 14675 14676 # For the awk script, D is an array of macro values keyed by name, 14677 # likewise P contains macro parameters if any. Preserve backslash 14678 # newline sequences. 14679 14680 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14681 sed -n ' 14682 s/.\{148\}/&'"$ac_delim"'/g 14683 t rset 14684 :rset 14685 s/^[ ]*#[ ]*define[ ][ ]*/ / 14686 t def 14687 d 14688 :def 14689 s/\\$// 14690 t bsnl 14691 s/["\\]/\\&/g 14692 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14693 D["\1"]=" \3"/p 14694 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14695 d 14696 :bsnl 14697 s/["\\]/\\&/g 14698 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14699 D["\1"]=" \3\\\\\\n"\\/p 14700 t cont 14701 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14702 t cont 14703 d 14704 :cont 14705 n 14706 s/.\{148\}/&'"$ac_delim"'/g 14707 t clear 14708 :clear 14709 s/\\$// 14710 t bsnlc 14711 s/["\\]/\\&/g; s/^/"/; s/$/"/p 14712 d 14713 :bsnlc 14714 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14715 b cont 14716 ' <confdefs.h | sed ' 14717 s/'"$ac_delim"'/"\\\ 14718 "/g' >>$CONFIG_STATUS || ac_write_fail=1 14719 14720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14721 for (key in D) D_is_set[key] = 1 14722 FS = "" 14723 } 14724 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14725 line = \$ 0 14726 split(line, arg, " ") 14727 if (arg[1] == "#") { 14728 defundef = arg[2] 14729 mac1 = arg[3] 14730 } else { 14731 defundef = substr(arg[1], 2) 14732 mac1 = arg[2] 14733 } 14734 split(mac1, mac2, "(") #) 14735 macro = mac2[1] 14736 prefix = substr(line, 1, index(line, defundef) - 1) 14737 if (D_is_set[macro]) { 14738 # Preserve the white space surrounding the "#". 14739 print prefix "define", macro P[macro] D[macro] 14740 next 14741 } else { 14742 # Replace #undef with comments. This is necessary, for example, 14743 # in the case of _POSIX_SOURCE, which is predefined and required 14744 # on some systems where configure will not decide to define it. 14745 if (defundef == "undef") { 14746 print "/*", prefix defundef, macro, "*/" 14747 next 14748 } 14749 } 14750 } 14751 { print } 14752 _ACAWK 14753 _ACEOF 14754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14755 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14756 fi # test -n "$CONFIG_HEADERS" 14757 14758 14759 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14760 shift 14761 for ac_tag 14762 do 14763 case $ac_tag in 14764 :[FHLC]) ac_mode=$ac_tag; continue;; 14765 esac 14766 case $ac_mode$ac_tag in 14767 :[FHL]*:*);; 14768 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14769 :[FH]-) ac_tag=-:-;; 14770 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14771 esac 14772 ac_save_IFS=$IFS 14773 IFS=: 14774 set x $ac_tag 14775 IFS=$ac_save_IFS 14776 shift 14777 ac_file=$1 14778 shift 14779 14780 case $ac_mode in 14781 :L) ac_source=$1;; 14782 :[FH]) 14783 ac_file_inputs= 14784 for ac_f 14785 do 14786 case $ac_f in 14787 -) ac_f="$ac_tmp/stdin";; 14788 *) # Look for the file first in the build tree, then in the source tree 14789 # (if the path is not absolute). The absolute path cannot be DOS-style, 14790 # because $ac_f cannot contain `:'. 14791 test -f "$ac_f" || 14792 case $ac_f in 14793 [\\/$]*) false;; 14794 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14795 esac || 14796 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14797 esac 14798 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14799 as_fn_append ac_file_inputs " '$ac_f'" 14800 done 14801 14802 # Let's still pretend it is `configure' which instantiates (i.e., don't 14803 # use $as_me), people would be surprised to read: 14804 # /* config.h. Generated by config.status. */ 14805 configure_input='Generated from '` 14806 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14807 `' by configure.' 14808 if test x"$ac_file" != x-; then 14809 configure_input="$ac_file. $configure_input" 14810 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14811 $as_echo "$as_me: creating $ac_file" >&6;} 14812 fi 14813 # Neutralize special characters interpreted by sed in replacement strings. 14814 case $configure_input in #( 14815 *\&* | *\|* | *\\* ) 14816 ac_sed_conf_input=`$as_echo "$configure_input" | 14817 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14818 *) ac_sed_conf_input=$configure_input;; 14819 esac 14820 14821 case $ac_tag in 14822 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14823 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14824 esac 14825 ;; 14826 esac 14827 14828 ac_dir=`$as_dirname -- "$ac_file" || 14829 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14830 X"$ac_file" : 'X\(//\)[^/]' \| \ 14831 X"$ac_file" : 'X\(//\)$' \| \ 14832 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14833 $as_echo X"$ac_file" | 14834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14835 s//\1/ 14836 q 14837 } 14838 /^X\(\/\/\)[^/].*/{ 14839 s//\1/ 14840 q 14841 } 14842 /^X\(\/\/\)$/{ 14843 s//\1/ 14844 q 14845 } 14846 /^X\(\/\).*/{ 14847 s//\1/ 14848 q 14849 } 14850 s/.*/./; q'` 14851 as_dir="$ac_dir"; as_fn_mkdir_p 14852 ac_builddir=. 14853 14854 case "$ac_dir" in 14855 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14856 *) 14857 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14858 # A ".." for each directory in $ac_dir_suffix. 14859 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14860 case $ac_top_builddir_sub in 14861 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14862 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14863 esac ;; 14864 esac 14865 ac_abs_top_builddir=$ac_pwd 14866 ac_abs_builddir=$ac_pwd$ac_dir_suffix 14867 # for backward compatibility: 14868 ac_top_builddir=$ac_top_build_prefix 14869 14870 case $srcdir in 14871 .) # We are building in place. 14872 ac_srcdir=. 14873 ac_top_srcdir=$ac_top_builddir_sub 14874 ac_abs_top_srcdir=$ac_pwd ;; 14875 [\\/]* | ?:[\\/]* ) # Absolute name. 14876 ac_srcdir=$srcdir$ac_dir_suffix; 14877 ac_top_srcdir=$srcdir 14878 ac_abs_top_srcdir=$srcdir ;; 14879 *) # Relative name. 14880 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14881 ac_top_srcdir=$ac_top_build_prefix$srcdir 14882 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14883 esac 14884 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14885 14886 14887 case $ac_mode in 14888 :F) 14889 # 14890 # CONFIG_FILE 14891 # 14892 14893 case $INSTALL in 14894 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14895 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14896 esac 14897 ac_MKDIR_P=$MKDIR_P 14898 case $MKDIR_P in 14899 [\\/$]* | ?:[\\/]* ) ;; 14900 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14901 esac 14902 _ACEOF 14903 14904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14905 # If the template does not know about datarootdir, expand it. 14906 # FIXME: This hack should be removed a few years after 2.60. 14907 ac_datarootdir_hack=; ac_datarootdir_seen= 14908 ac_sed_dataroot=' 14909 /datarootdir/ { 14910 p 14911 q 14912 } 14913 /@datadir@/p 14914 /@docdir@/p 14915 /@infodir@/p 14916 /@localedir@/p 14917 /@mandir@/p' 14918 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14919 *datarootdir*) ac_datarootdir_seen=yes;; 14920 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14922 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14923 _ACEOF 14924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14925 ac_datarootdir_hack=' 14926 s&@datadir@&$datadir&g 14927 s&@docdir@&$docdir&g 14928 s&@infodir@&$infodir&g 14929 s&@localedir@&$localedir&g 14930 s&@mandir@&$mandir&g 14931 s&\\\${datarootdir}&$datarootdir&g' ;; 14932 esac 14933 _ACEOF 14934 14935 # Neutralize VPATH when `$srcdir' = `.'. 14936 # Shell code in configure.ac might set extrasub. 14937 # FIXME: do we really want to maintain this feature? 14938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14939 ac_sed_extra="$ac_vpsub 14940 $extrasub 14941 _ACEOF 14942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14943 :t 14944 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14945 s|@configure_input@|$ac_sed_conf_input|;t t 14946 s&@top_builddir@&$ac_top_builddir_sub&;t t 14947 s&@top_build_prefix@&$ac_top_build_prefix&;t t 14948 s&@srcdir@&$ac_srcdir&;t t 14949 s&@abs_srcdir@&$ac_abs_srcdir&;t t 14950 s&@top_srcdir@&$ac_top_srcdir&;t t 14951 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14952 s&@builddir@&$ac_builddir&;t t 14953 s&@abs_builddir@&$ac_abs_builddir&;t t 14954 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14955 s&@INSTALL@&$ac_INSTALL&;t t 14956 s&@MKDIR_P@&$ac_MKDIR_P&;t t 14957 $ac_datarootdir_hack 14958 " 14959 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14960 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14961 14962 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14963 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14964 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14965 "$ac_tmp/out"`; test -z "$ac_out"; } && 14966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14967 which seems to be undefined. Please make sure it is defined" >&5 14968 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14969 which seems to be undefined. Please make sure it is defined" >&2;} 14970 14971 rm -f "$ac_tmp/stdin" 14972 case $ac_file in 14973 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14974 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14975 esac \ 14976 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14977 ;; 14978 :H) 14979 # 14980 # CONFIG_HEADER 14981 # 14982 if test x"$ac_file" != x-; then 14983 { 14984 $as_echo "/* $configure_input */" \ 14985 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14986 } >"$ac_tmp/config.h" \ 14987 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14988 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14989 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14990 $as_echo "$as_me: $ac_file is unchanged" >&6;} 14991 else 14992 rm -f "$ac_file" 14993 mv "$ac_tmp/config.h" "$ac_file" \ 14994 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14995 fi 14996 else 14997 $as_echo "/* $configure_input */" \ 14998 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14999 || as_fn_error $? "could not create -" "$LINENO" 5 15000 fi 15001 # Compute "$ac_file"'s index in $config_headers. 15002 _am_arg="$ac_file" 15003 _am_stamp_count=1 15004 for _am_header in $config_headers :; do 15005 case $_am_header in 15006 $_am_arg | $_am_arg:* ) 15007 break ;; 15008 * ) 15009 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15010 esac 15011 done 15012 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15013 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15014 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15015 X"$_am_arg" : 'X\(//\)$' \| \ 15016 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15017 $as_echo X"$_am_arg" | 15018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15019 s//\1/ 15020 q 15021 } 15022 /^X\(\/\/\)[^/].*/{ 15023 s//\1/ 15024 q 15025 } 15026 /^X\(\/\/\)$/{ 15027 s//\1/ 15028 q 15029 } 15030 /^X\(\/\).*/{ 15031 s//\1/ 15032 q 15033 } 15034 s/.*/./; q'`/stamp-h$_am_stamp_count 15035 ;; 15036 15037 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15038 $as_echo "$as_me: executing $ac_file commands" >&6;} 15039 ;; 15040 esac 15041 15042 15043 case $ac_file$ac_mode in 15044 "default-1":C) 15045 # Only add multilib support code if we just rebuilt the top-level 15046 # Makefile. 15047 case " $CONFIG_FILES " in 15048 *" Makefile "*) 15049 ac_file=Makefile . ${multi_basedir}/config-ml.in 15050 ;; 15051 esac ;; 15052 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15053 # Older Autoconf quotes --file arguments for eval, but not when files 15054 # are listed without --file. Let's play safe and only enable the eval 15055 # if we detect the quoting. 15056 case $CONFIG_FILES in 15057 *\'*) eval set x "$CONFIG_FILES" ;; 15058 *) set x $CONFIG_FILES ;; 15059 esac 15060 shift 15061 for mf 15062 do 15063 # Strip MF so we end up with the name of the file. 15064 mf=`echo "$mf" | sed -e 's/:.*$//'` 15065 # Check whether this is an Automake generated Makefile or not. 15066 # We used to match only the files named 'Makefile.in', but 15067 # some people rename them; so instead we look at the file content. 15068 # Grep'ing the first line is not enough: some people post-process 15069 # each Makefile.in and add a new line on top of each file to say so. 15070 # Grep'ing the whole file is not good either: AIX grep has a line 15071 # limit of 2048, but all sed's we know have understand at least 4000. 15072 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15073 dirpart=`$as_dirname -- "$mf" || 15074 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15075 X"$mf" : 'X\(//\)[^/]' \| \ 15076 X"$mf" : 'X\(//\)$' \| \ 15077 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15078 $as_echo X"$mf" | 15079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15080 s//\1/ 15081 q 15082 } 15083 /^X\(\/\/\)[^/].*/{ 15084 s//\1/ 15085 q 15086 } 15087 /^X\(\/\/\)$/{ 15088 s//\1/ 15089 q 15090 } 15091 /^X\(\/\).*/{ 15092 s//\1/ 15093 q 15094 } 15095 s/.*/./; q'` 15096 else 15097 continue 15098 fi 15099 # Extract the definition of DEPDIR, am__include, and am__quote 15100 # from the Makefile without running 'make'. 15101 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15102 test -z "$DEPDIR" && continue 15103 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15104 test -z "$am__include" && continue 15105 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15106 # Find all dependency output files, they are included files with 15107 # $(DEPDIR) in their names. We invoke sed twice because it is the 15108 # simplest approach to changing $(DEPDIR) to its actual value in the 15109 # expansion. 15110 for file in `sed -n " 15111 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15112 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 15113 # Make sure the directory exists. 15114 test -f "$dirpart/$file" && continue 15115 fdir=`$as_dirname -- "$file" || 15116 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15117 X"$file" : 'X\(//\)[^/]' \| \ 15118 X"$file" : 'X\(//\)$' \| \ 15119 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15120 $as_echo X"$file" | 15121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15122 s//\1/ 15123 q 15124 } 15125 /^X\(\/\/\)[^/].*/{ 15126 s//\1/ 15127 q 15128 } 15129 /^X\(\/\/\)$/{ 15130 s//\1/ 15131 q 15132 } 15133 /^X\(\/\).*/{ 15134 s//\1/ 15135 q 15136 } 15137 s/.*/./; q'` 15138 as_dir=$dirpart/$fdir; as_fn_mkdir_p 15139 # echo "creating $dirpart/$file" 15140 echo '# dummy' > "$dirpart/$file" 15141 done 15142 done 15143 } 15144 ;; 15145 "libtool":C) 15146 15147 # See if we are running on zsh, and set the options which allow our 15148 # commands through without removal of \ escapes. 15149 if test -n "${ZSH_VERSION+set}" ; then 15150 setopt NO_GLOB_SUBST 15151 fi 15152 15153 cfgfile="${ofile}T" 15154 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15155 $RM "$cfgfile" 15156 15157 cat <<_LT_EOF >> "$cfgfile" 15158 #! $SHELL 15159 15160 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15161 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15162 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15163 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 15164 # 15165 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15166 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 15167 # Written by Gordon Matzigkeit, 1996 15168 # 15169 # This file is part of GNU Libtool. 15170 # 15171 # GNU Libtool is free software; you can redistribute it and/or 15172 # modify it under the terms of the GNU General Public License as 15173 # published by the Free Software Foundation; either version 2 of 15174 # the License, or (at your option) any later version. 15175 # 15176 # As a special exception to the GNU General Public License, 15177 # if you distribute this file as part of a program or library that 15178 # is built using GNU Libtool, you may include this file under the 15179 # same distribution terms that you use for the rest of that program. 15180 # 15181 # GNU Libtool is distributed in the hope that it will be useful, 15182 # but WITHOUT ANY WARRANTY; without even the implied warranty of 15183 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15184 # GNU General Public License for more details. 15185 # 15186 # You should have received a copy of the GNU General Public License 15187 # along with GNU Libtool; see the file COPYING. If not, a copy 15188 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15189 # obtained by writing to the Free Software Foundation, Inc., 15190 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15191 15192 15193 # The names of the tagged configurations supported by this script. 15194 available_tags="" 15195 15196 # ### BEGIN LIBTOOL CONFIG 15197 15198 # Which release of libtool.m4 was used? 15199 macro_version=$macro_version 15200 macro_revision=$macro_revision 15201 15202 # Whether or not to build shared libraries. 15203 build_libtool_libs=$enable_shared 15204 15205 # Whether or not to build static libraries. 15206 build_old_libs=$enable_static 15207 15208 # What type of objects to build. 15209 pic_mode=$pic_mode 15210 15211 # Whether or not to optimize for fast installation. 15212 fast_install=$enable_fast_install 15213 15214 # Shell to use when invoking shell scripts. 15215 SHELL=$lt_SHELL 15216 15217 # An echo program that protects backslashes. 15218 ECHO=$lt_ECHO 15219 15220 # The host system. 15221 host_alias=$host_alias 15222 host=$host 15223 host_os=$host_os 15224 15225 # The build system. 15226 build_alias=$build_alias 15227 build=$build 15228 build_os=$build_os 15229 15230 # A sed program that does not truncate output. 15231 SED=$lt_SED 15232 15233 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 15234 Xsed="\$SED -e 1s/^X//" 15235 15236 # A grep program that handles long lines. 15237 GREP=$lt_GREP 15238 15239 # An ERE matcher. 15240 EGREP=$lt_EGREP 15241 15242 # A literal string matcher. 15243 FGREP=$lt_FGREP 15244 15245 # A BSD- or MS-compatible name lister. 15246 NM=$lt_NM 15247 15248 # Whether we need soft or hard links. 15249 LN_S=$lt_LN_S 15250 15251 # What is the maximum length of a command? 15252 max_cmd_len=$max_cmd_len 15253 15254 # Object file suffix (normally "o"). 15255 objext=$ac_objext 15256 15257 # Executable file suffix (normally ""). 15258 exeext=$exeext 15259 15260 # whether the shell understands "unset". 15261 lt_unset=$lt_unset 15262 15263 # turn spaces into newlines. 15264 SP2NL=$lt_lt_SP2NL 15265 15266 # turn newlines into spaces. 15267 NL2SP=$lt_lt_NL2SP 15268 15269 # An object symbol dumper. 15270 OBJDUMP=$lt_OBJDUMP 15271 15272 # Method to check whether dependent libraries are shared objects. 15273 deplibs_check_method=$lt_deplibs_check_method 15274 15275 # Command to use when deplibs_check_method == "file_magic". 15276 file_magic_cmd=$lt_file_magic_cmd 15277 15278 # The archiver. 15279 AR=$lt_AR 15280 AR_FLAGS=$lt_AR_FLAGS 15281 15282 # A symbol stripping program. 15283 STRIP=$lt_STRIP 15284 15285 # Commands used to install an old-style archive. 15286 RANLIB=$lt_RANLIB 15287 old_postinstall_cmds=$lt_old_postinstall_cmds 15288 old_postuninstall_cmds=$lt_old_postuninstall_cmds 15289 15290 # Whether to use a lock for old archive extraction. 15291 lock_old_archive_extraction=$lock_old_archive_extraction 15292 15293 # A C compiler. 15294 LTCC=$lt_CC 15295 15296 # LTCC compiler flags. 15297 LTCFLAGS=$lt_CFLAGS 15298 15299 # Take the output of nm and produce a listing of raw symbols and C names. 15300 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15301 15302 # Transform the output of nm in a proper C declaration. 15303 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15304 15305 # Transform the output of nm in a C name address pair. 15306 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15307 15308 # Transform the output of nm in a C name address pair when lib prefix is needed. 15309 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15310 15311 # The name of the directory that contains temporary libtool files. 15312 objdir=$objdir 15313 15314 # Used to examine libraries when file_magic_cmd begins with "file". 15315 MAGIC_CMD=$MAGIC_CMD 15316 15317 # Must we lock files when doing compilation? 15318 need_locks=$lt_need_locks 15319 15320 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15321 DSYMUTIL=$lt_DSYMUTIL 15322 15323 # Tool to change global to local symbols on Mac OS X. 15324 NMEDIT=$lt_NMEDIT 15325 15326 # Tool to manipulate fat objects and archives on Mac OS X. 15327 LIPO=$lt_LIPO 15328 15329 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 15330 OTOOL=$lt_OTOOL 15331 15332 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15333 OTOOL64=$lt_OTOOL64 15334 15335 # Old archive suffix (normally "a"). 15336 libext=$libext 15337 15338 # Shared library suffix (normally ".so"). 15339 shrext_cmds=$lt_shrext_cmds 15340 15341 # The commands to extract the exported symbol list from a shared archive. 15342 extract_expsyms_cmds=$lt_extract_expsyms_cmds 15343 15344 # Variables whose values should be saved in libtool wrapper scripts and 15345 # restored at link time. 15346 variables_saved_for_relink=$lt_variables_saved_for_relink 15347 15348 # Do we need the "lib" prefix for modules? 15349 need_lib_prefix=$need_lib_prefix 15350 15351 # Do we need a version for libraries? 15352 need_version=$need_version 15353 15354 # Library versioning type. 15355 version_type=$version_type 15356 15357 # Shared library runtime path variable. 15358 runpath_var=$runpath_var 15359 15360 # Shared library path variable. 15361 shlibpath_var=$shlibpath_var 15362 15363 # Is shlibpath searched before the hard-coded library search path? 15364 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15365 15366 # Format of library name prefix. 15367 libname_spec=$lt_libname_spec 15368 15369 # List of archive names. First name is the real one, the rest are links. 15370 # The last name is the one that the linker finds with -lNAME 15371 library_names_spec=$lt_library_names_spec 15372 15373 # The coded name of the library, if different from the real name. 15374 soname_spec=$lt_soname_spec 15375 15376 # Permission mode override for installation of shared libraries. 15377 install_override_mode=$lt_install_override_mode 15378 15379 # Command to use after installation of a shared archive. 15380 postinstall_cmds=$lt_postinstall_cmds 15381 15382 # Command to use after uninstallation of a shared archive. 15383 postuninstall_cmds=$lt_postuninstall_cmds 15384 15385 # Commands used to finish a libtool library installation in a directory. 15386 finish_cmds=$lt_finish_cmds 15387 15388 # As "finish_cmds", except a single script fragment to be evaled but 15389 # not shown. 15390 finish_eval=$lt_finish_eval 15391 15392 # Whether we should hardcode library paths into libraries. 15393 hardcode_into_libs=$hardcode_into_libs 15394 15395 # Compile-time system search path for libraries. 15396 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15397 15398 # Run-time system search path for libraries. 15399 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15400 15401 # Whether dlopen is supported. 15402 dlopen_support=$enable_dlopen 15403 15404 # Whether dlopen of programs is supported. 15405 dlopen_self=$enable_dlopen_self 15406 15407 # Whether dlopen of statically linked programs is supported. 15408 dlopen_self_static=$enable_dlopen_self_static 15409 15410 # Commands to strip libraries. 15411 old_striplib=$lt_old_striplib 15412 striplib=$lt_striplib 15413 15414 15415 # The linker used to build libraries. 15416 LD=$lt_LD 15417 15418 # How to create reloadable object files. 15419 reload_flag=$lt_reload_flag 15420 reload_cmds=$lt_reload_cmds 15421 15422 # Commands used to build an old-style archive. 15423 old_archive_cmds=$lt_old_archive_cmds 15424 15425 # A language specific compiler. 15426 CC=$lt_compiler 15427 15428 # Is the compiler the GNU compiler? 15429 with_gcc=$GCC 15430 15431 # Compiler flag to turn off builtin functions. 15432 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15433 15434 # How to pass a linker flag through the compiler. 15435 wl=$lt_lt_prog_compiler_wl 15436 15437 # Additional compiler flags for building library objects. 15438 pic_flag=$lt_lt_prog_compiler_pic 15439 15440 # Compiler flag to prevent dynamic linking. 15441 link_static_flag=$lt_lt_prog_compiler_static 15442 15443 # Does compiler simultaneously support -c and -o options? 15444 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15445 15446 # Whether or not to add -lc for building shared libraries. 15447 build_libtool_need_lc=$archive_cmds_need_lc 15448 15449 # Whether or not to disallow shared libs when runtime libs are static. 15450 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15451 15452 # Compiler flag to allow reflexive dlopens. 15453 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15454 15455 # Compiler flag to generate shared objects directly from archives. 15456 whole_archive_flag_spec=$lt_whole_archive_flag_spec 15457 15458 # Whether the compiler copes with passing no objects directly. 15459 compiler_needs_object=$lt_compiler_needs_object 15460 15461 # Create an old-style archive from a shared archive. 15462 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15463 15464 # Create a temporary old-style archive to link instead of a shared archive. 15465 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15466 15467 # Commands used to build a shared archive. 15468 archive_cmds=$lt_archive_cmds 15469 archive_expsym_cmds=$lt_archive_expsym_cmds 15470 15471 # Commands used to build a loadable module if different from building 15472 # a shared archive. 15473 module_cmds=$lt_module_cmds 15474 module_expsym_cmds=$lt_module_expsym_cmds 15475 15476 # Whether we are building with GNU ld or not. 15477 with_gnu_ld=$lt_with_gnu_ld 15478 15479 # Flag that allows shared libraries with undefined symbols to be built. 15480 allow_undefined_flag=$lt_allow_undefined_flag 15481 15482 # Flag that enforces no undefined symbols. 15483 no_undefined_flag=$lt_no_undefined_flag 15484 15485 # Flag to hardcode \$libdir into a binary during linking. 15486 # This must work even if \$libdir does not exist 15487 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15488 15489 # If ld is used when linking, flag to hardcode \$libdir into a binary 15490 # during linking. This must work even if \$libdir does not exist. 15491 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15492 15493 # Whether we need a single "-rpath" flag with a separated argument. 15494 hardcode_libdir_separator=$lt_hardcode_libdir_separator 15495 15496 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15497 # DIR into the resulting binary. 15498 hardcode_direct=$hardcode_direct 15499 15500 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15501 # DIR into the resulting binary and the resulting library dependency is 15502 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15503 # library is relocated. 15504 hardcode_direct_absolute=$hardcode_direct_absolute 15505 15506 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15507 # into the resulting binary. 15508 hardcode_minus_L=$hardcode_minus_L 15509 15510 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15511 # into the resulting binary. 15512 hardcode_shlibpath_var=$hardcode_shlibpath_var 15513 15514 # Set to "yes" if building a shared library automatically hardcodes DIR 15515 # into the library and all subsequent libraries and executables linked 15516 # against it. 15517 hardcode_automatic=$hardcode_automatic 15518 15519 # Set to yes if linker adds runtime paths of dependent libraries 15520 # to runtime path list. 15521 inherit_rpath=$inherit_rpath 15522 15523 # Whether libtool must link a program against all its dependency libraries. 15524 link_all_deplibs=$link_all_deplibs 15525 15526 # Fix the shell variable \$srcfile for the compiler. 15527 fix_srcfile_path=$lt_fix_srcfile_path 15528 15529 # Set to "yes" if exported symbols are required. 15530 always_export_symbols=$always_export_symbols 15531 15532 # The commands to list exported symbols. 15533 export_symbols_cmds=$lt_export_symbols_cmds 15534 15535 # Symbols that should not be listed in the preloaded symbols. 15536 exclude_expsyms=$lt_exclude_expsyms 15537 15538 # Symbols that must always be exported. 15539 include_expsyms=$lt_include_expsyms 15540 15541 # Commands necessary for linking programs (against libraries) with templates. 15542 prelink_cmds=$lt_prelink_cmds 15543 15544 # Specify filename containing input files. 15545 file_list_spec=$lt_file_list_spec 15546 15547 # How to hardcode a shared library path into an executable. 15548 hardcode_action=$hardcode_action 15549 15550 # ### END LIBTOOL CONFIG 15551 15552 _LT_EOF 15553 15554 case $host_os in 15555 aix3*) 15556 cat <<\_LT_EOF >> "$cfgfile" 15557 # AIX sometimes has problems with the GCC collect2 program. For some 15558 # reason, if we set the COLLECT_NAMES environment variable, the problems 15559 # vanish in a puff of smoke. 15560 if test "X${COLLECT_NAMES+set}" != Xset; then 15561 COLLECT_NAMES= 15562 export COLLECT_NAMES 15563 fi 15564 _LT_EOF 15565 ;; 15566 esac 15567 15568 15569 ltmain="$ac_aux_dir/ltmain.sh" 15570 15571 15572 # We use sed instead of cat because bash on DJGPP gets confused if 15573 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15574 # text mode, it properly converts lines to CR/LF. This bash problem 15575 # is reportedly fixed, but why not run on old versions too? 15576 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15577 || (rm -f "$cfgfile"; exit 1) 15578 15579 case $xsi_shell in 15580 yes) 15581 cat << \_LT_EOF >> "$cfgfile" 15582 15583 # func_dirname file append nondir_replacement 15584 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 15585 # otherwise set result to NONDIR_REPLACEMENT. 15586 func_dirname () 15587 { 15588 case ${1} in 15589 */*) func_dirname_result="${1%/*}${2}" ;; 15590 * ) func_dirname_result="${3}" ;; 15591 esac 15592 } 15593 15594 # func_basename file 15595 func_basename () 15596 { 15597 func_basename_result="${1##*/}" 15598 } 15599 15600 # func_dirname_and_basename file append nondir_replacement 15601 # perform func_basename and func_dirname in a single function 15602 # call: 15603 # dirname: Compute the dirname of FILE. If nonempty, 15604 # add APPEND to the result, otherwise set result 15605 # to NONDIR_REPLACEMENT. 15606 # value returned in "$func_dirname_result" 15607 # basename: Compute filename of FILE. 15608 # value retuned in "$func_basename_result" 15609 # Implementation must be kept synchronized with func_dirname 15610 # and func_basename. For efficiency, we do not delegate to 15611 # those functions but instead duplicate the functionality here. 15612 func_dirname_and_basename () 15613 { 15614 case ${1} in 15615 */*) func_dirname_result="${1%/*}${2}" ;; 15616 * ) func_dirname_result="${3}" ;; 15617 esac 15618 func_basename_result="${1##*/}" 15619 } 15620 15621 # func_stripname prefix suffix name 15622 # strip PREFIX and SUFFIX off of NAME. 15623 # PREFIX and SUFFIX must not contain globbing or regex special 15624 # characters, hashes, percent signs, but SUFFIX may contain a leading 15625 # dot (in which case that matches only a dot). 15626 func_stripname () 15627 { 15628 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15629 # positional parameters, so assign one to ordinary parameter first. 15630 func_stripname_result=${3} 15631 func_stripname_result=${func_stripname_result#"${1}"} 15632 func_stripname_result=${func_stripname_result%"${2}"} 15633 } 15634 15635 # func_opt_split 15636 func_opt_split () 15637 { 15638 func_opt_split_opt=${1%%=*} 15639 func_opt_split_arg=${1#*=} 15640 } 15641 15642 # func_lo2o object 15643 func_lo2o () 15644 { 15645 case ${1} in 15646 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15647 *) func_lo2o_result=${1} ;; 15648 esac 15649 } 15650 15651 # func_xform libobj-or-source 15652 func_xform () 15653 { 15654 func_xform_result=${1%.*}.lo 15655 } 15656 15657 # func_arith arithmetic-term... 15658 func_arith () 15659 { 15660 func_arith_result=$(( $* )) 15661 } 15662 15663 # func_len string 15664 # STRING may not start with a hyphen. 15665 func_len () 15666 { 15667 func_len_result=${#1} 15668 } 15669 15670 _LT_EOF 15671 ;; 15672 *) # Bourne compatible functions. 15673 cat << \_LT_EOF >> "$cfgfile" 15674 15675 # func_dirname file append nondir_replacement 15676 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 15677 # otherwise set result to NONDIR_REPLACEMENT. 15678 func_dirname () 15679 { 15680 # Extract subdirectory from the argument. 15681 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 15682 if test "X$func_dirname_result" = "X${1}"; then 15683 func_dirname_result="${3}" 15684 else 15685 func_dirname_result="$func_dirname_result${2}" 15686 fi 15687 } 15688 15689 # func_basename file 15690 func_basename () 15691 { 15692 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 15693 } 15694 15695 15696 # func_stripname prefix suffix name 15697 # strip PREFIX and SUFFIX off of NAME. 15698 # PREFIX and SUFFIX must not contain globbing or regex special 15699 # characters, hashes, percent signs, but SUFFIX may contain a leading 15700 # dot (in which case that matches only a dot). 15701 # func_strip_suffix prefix name 15702 func_stripname () 15703 { 15704 case ${2} in 15705 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 15706 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 15707 esac 15708 } 15709 15710 # sed scripts: 15711 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15712 my_sed_long_arg='1s/^-[^=]*=//' 15713 15714 # func_opt_split 15715 func_opt_split () 15716 { 15717 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 15718 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 15719 } 15720 15721 # func_lo2o object 15722 func_lo2o () 15723 { 15724 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 15725 } 15726 15727 # func_xform libobj-or-source 15728 func_xform () 15729 { 15730 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 15731 } 15732 15733 # func_arith arithmetic-term... 15734 func_arith () 15735 { 15736 func_arith_result=`expr "$@"` 15737 } 15738 15739 # func_len string 15740 # STRING may not start with a hyphen. 15741 func_len () 15742 { 15743 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15744 } 15745 15746 _LT_EOF 15747 esac 15748 15749 case $lt_shell_append in 15750 yes) 15751 cat << \_LT_EOF >> "$cfgfile" 15752 15753 # func_append var value 15754 # Append VALUE to the end of shell variable VAR. 15755 func_append () 15756 { 15757 eval "$1+=\$2" 15758 } 15759 _LT_EOF 15760 ;; 15761 *) 15762 cat << \_LT_EOF >> "$cfgfile" 15763 15764 # func_append var value 15765 # Append VALUE to the end of shell variable VAR. 15766 func_append () 15767 { 15768 eval "$1=\$$1\$2" 15769 } 15770 15771 _LT_EOF 15772 ;; 15773 esac 15774 15775 15776 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15777 || (rm -f "$cfgfile"; exit 1) 15778 15779 mv -f "$cfgfile" "$ofile" || 15780 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15781 chmod +x "$ofile" 15782 15783 ;; 15784 15785 esac 15786 done # for ac_tag 15787 15788 15789 as_fn_exit 0 15790 _ACEOF 15791 ac_clean_files=$ac_clean_files_save 15792 15793 test $ac_write_fail = 0 || 15794 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15795 15796 15797 # configure is writing to config.log, and then calls config.status. 15798 # config.status does its own redirection, appending to config.log. 15799 # Unfortunately, on DOS this fails, as config.log is still kept open 15800 # by configure, so config.status won't be able to write to it; its 15801 # output is simply discarded. So we exec the FD to /dev/null, 15802 # effectively closing config.log, so it can be properly (re)opened and 15803 # appended to by config.status. When coming back to configure, we 15804 # need to make the FD available again. 15805 if test "$no_create" != yes; then 15806 ac_cs_success=: 15807 ac_config_status_args= 15808 test "$silent" = yes && 15809 ac_config_status_args="$ac_config_status_args --quiet" 15810 exec 5>/dev/null 15811 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15812 exec 5>>config.log 15813 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15814 # would make configure fail if this is the last instruction. 15815 $ac_cs_success || as_fn_exit 1 15816 fi 15817 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15819 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15820 fi 15821 15822