1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for bfd 2.45.50. 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 as_me=bfd_$as_me # XXX don't overwrite our caller's configure.lineno 478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 479 sed -n ' 480 p 481 /[$]LINENO/= 482 ' <$as_myself | 483 sed ' 484 s/[$]LINENO.*/&-/ 485 t lineno 486 b 487 :lineno 488 N 489 :loop 490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 491 t loop 492 s/-\n.*// 493 ' >$as_me.lineno && 494 chmod +x "$as_me.lineno" || 495 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 496 497 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 498 # already done that, so ensure we don't try to do so again and fall 499 # in an infinite loop. This has already happened in practice. 500 _as_can_reexec=no; export _as_can_reexec 501 # Don't try to exec as it changes $[0], causing all sort of problems 502 # (the dirname of $[0] is not the place where we might find the 503 # original and so on. Autoconf is especially sensitive to this). 504 . "./$as_me.lineno" 505 # Exit status is that of the last command. 506 exit 507 } 508 509 ECHO_C= ECHO_N= ECHO_T= 510 case `echo -n x` in #((((( 511 -n*) 512 case `echo 'xy\c'` in 513 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 514 xy) ECHO_C='\c';; 515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 516 ECHO_T=' ';; 517 esac;; 518 *) 519 ECHO_N='-n';; 520 esac 521 522 rm -f conf$$ conf$$.exe conf$$.file 523 if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525 else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528 fi 529 if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 535 # In both cases, we have to default to `cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543 else 544 as_ln_s='cp -pR' 545 fi 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547 rmdir conf$$.dir 2>/dev/null 548 549 if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551 else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554 fi 555 556 as_test_x='test -x' 557 as_executable_p=as_fn_executable_p 558 559 # Sed expression to map a string onto a valid CPP name. 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 561 562 # Sed expression to map a string onto a valid variable name. 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 564 565 SHELL=${CONFIG_SHELL-/bin/sh} 566 567 568 test -n "$DJDIR" || exec 7<&0 </dev/null 569 exec 6>&1 570 571 # Name of the host. 572 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 573 # so uname gets run too. 574 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 575 576 # 577 # Initializations. 578 # 579 ac_default_prefix=/usr/local 580 ac_clean_files= 581 ac_config_libobj_dir=. 582 LIBOBJS= 583 cross_compiling=no 584 subdirs= 585 MFLAGS= 586 MAKEFLAGS= 587 588 # Identity of this package. 589 PACKAGE_NAME='bfd' 590 PACKAGE_TARNAME='bfd' 591 PACKAGE_VERSION='2.45.50' 592 PACKAGE_STRING='bfd 2.45.50' 593 PACKAGE_BUGREPORT='' 594 PACKAGE_URL='' 595 596 ac_unique_file="libbfd.c" 597 # Factoring default headers for most tests. 598 ac_includes_default="\ 599 #include <stdio.h> 600 #ifdef HAVE_SYS_TYPES_H 601 # include <sys/types.h> 602 #endif 603 #ifdef HAVE_SYS_STAT_H 604 # include <sys/stat.h> 605 #endif 606 #ifdef STDC_HEADERS 607 # include <stdlib.h> 608 # include <stddef.h> 609 #else 610 # ifdef HAVE_STDLIB_H 611 # include <stdlib.h> 612 # endif 613 #endif 614 #ifdef HAVE_STRING_H 615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 616 # include <memory.h> 617 # endif 618 # include <string.h> 619 #endif 620 #ifdef HAVE_STRINGS_H 621 # include <strings.h> 622 #endif 623 #ifdef HAVE_INTTYPES_H 624 # include <inttypes.h> 625 #endif 626 #ifdef HAVE_STDINT_H 627 # include <stdint.h> 628 #endif 629 #ifdef HAVE_UNISTD_H 630 # include <unistd.h> 631 #endif" 632 633 gt_needs= 634 ac_header_list= 635 ac_subst_vars='am__EXEEXT_FALSE 636 am__EXEEXT_TRUE 637 LTLIBOBJS 638 LIBOBJS 639 bfd_ufile_ptr 640 bfd_file_ptr 641 lt_cv_dlopen_libs 642 supports_plugins 643 COREFLAG 644 COREFILE 645 havevecs 646 tdefaults 647 bfd_default_target_size 648 bfd_machines 649 bfd_backends 650 all_backends 651 bfd64_libs 652 wordsize 653 TDEFINES 654 SHARED_LIBADD 655 SHARED_LDFLAGS 656 LIBM 657 ZSTD_LIBS 658 ZSTD_CFLAGS 659 PKG_CONFIG_LIBDIR 660 PKG_CONFIG_PATH 661 PKG_CONFIG 662 zlibinc 663 zlibdir 664 EXEEXT_FOR_BUILD 665 CC_FOR_BUILD 666 HDEFINES 667 CATOBJEXT 668 GENCAT 669 INSTOBJEXT 670 DATADIRNAME 671 CATALOGS 672 INCINTL 673 LIBINTL_DEP 674 POSUB 675 LTLIBINTL 676 LIBINTL 677 INTLLIBS 678 LTLIBICONV 679 LIBICONV 680 INTL_MACOSX_LIBS 681 MSGMERGE 682 XGETTEXT 683 GMSGFMT 684 MSGFMT 685 USE_NLS 686 MKINSTALLDIRS 687 bfdincludedir 688 bfdlibdir 689 target_noncanonical 690 host_noncanonical 691 INSTALL_LIBBFD_FALSE 692 INSTALL_LIBBFD_TRUE 693 GENINSRC_NEVER_FALSE 694 GENINSRC_NEVER_TRUE 695 MAINT 696 MAINTAINER_MODE_FALSE 697 MAINTAINER_MODE_TRUE 698 WARN_WRITE_STRINGS 699 NO_WERROR 700 WARN_CFLAGS_FOR_BUILD 701 WARN_CFLAGS 702 REPORT_BUGS_TEXI 703 REPORT_BUGS_TO 704 PKGVERSION 705 DEBUGDIR 706 PLUGINS_FALSE 707 PLUGINS_TRUE 708 LARGEFILE_CPPFLAGS 709 OTOOL64 710 OTOOL 711 LIPO 712 NMEDIT 713 DSYMUTIL 714 OBJDUMP 715 LN_S 716 NM 717 ac_ct_DUMPBIN 718 DUMPBIN 719 LD 720 FGREP 721 SED 722 LIBTOOL 723 EGREP 724 GREP 725 CPP 726 am__fastdepCC_FALSE 727 am__fastdepCC_TRUE 728 CCDEPMODE 729 am__nodep 730 AMDEPBACKSLASH 731 AMDEP_FALSE 732 AMDEP_TRUE 733 am__quote 734 am__include 735 DEPDIR 736 OBJEXT 737 EXEEXT 738 ac_ct_CC 739 CPPFLAGS 740 LDFLAGS 741 CFLAGS 742 CC 743 RANLIB 744 AR 745 AM_BACKSLASH 746 AM_DEFAULT_VERBOSITY 747 AM_DEFAULT_V 748 AM_V 749 am__untar 750 am__tar 751 AMTAR 752 am__leading_dot 753 SET_MAKE 754 AWK 755 mkdir_p 756 MKDIR_P 757 INSTALL_STRIP_PROGRAM 758 STRIP 759 install_sh 760 MAKEINFO 761 AUTOHEADER 762 AUTOMAKE 763 AUTOCONF 764 ACLOCAL 765 VERSION 766 PACKAGE 767 CYGPATH_W 768 am__isrc 769 INSTALL_DATA 770 INSTALL_SCRIPT 771 INSTALL_PROGRAM 772 target_os 773 target_vendor 774 target_cpu 775 target 776 host_os 777 host_vendor 778 host_cpu 779 host 780 build_os 781 build_vendor 782 build_cpu 783 build 784 target_alias 785 host_alias 786 build_alias 787 LIBS 788 ECHO_T 789 ECHO_N 790 ECHO_C 791 DEFS 792 mandir 793 localedir 794 libdir 795 psdir 796 pdfdir 797 dvidir 798 htmldir 799 infodir 800 docdir 801 oldincludedir 802 includedir 803 localstatedir 804 sharedstatedir 805 sysconfdir 806 datadir 807 datarootdir 808 libexecdir 809 sbindir 810 bindir 811 program_transform_name 812 prefix 813 exec_prefix 814 PACKAGE_URL 815 PACKAGE_BUGREPORT 816 PACKAGE_STRING 817 PACKAGE_VERSION 818 PACKAGE_TARNAME 819 PACKAGE_NAME 820 PATH_SEPARATOR 821 SHELL' 822 ac_subst_files='' 823 ac_user_opts=' 824 enable_option_checking 825 enable_silent_rules 826 enable_shared 827 enable_dependency_tracking 828 enable_static 829 with_pic 830 enable_fast_install 831 with_gnu_ld 832 enable_libtool_lock 833 enable_plugins 834 enable_largefile 835 enable_checking 836 enable_64_bit_bfd 837 enable_targets 838 enable_64_bit_archive 839 with_mmap 840 enable_secureplt 841 enable_separate_code 842 enable_leading_mingw64_underscores 843 with_separate_debug_dir 844 with_pkgversion 845 with_bugurl 846 enable_werror 847 enable_build_warnings 848 enable_maintainer_mode 849 enable_install_libbfd 850 enable_nls 851 enable_rpath 852 with_libiconv_prefix 853 with_libiconv_type 854 with_libintl_prefix 855 with_libintl_type 856 with_system_zlib 857 with_zstd 858 ' 859 ac_precious_vars='build_alias 860 host_alias 861 target_alias 862 CC 863 CFLAGS 864 LDFLAGS 865 LIBS 866 CPPFLAGS 867 CPP 868 PKG_CONFIG 869 PKG_CONFIG_PATH 870 PKG_CONFIG_LIBDIR 871 ZSTD_CFLAGS 872 ZSTD_LIBS' 873 874 875 # Initialize some variables set by options. 876 ac_init_help= 877 ac_init_version=false 878 ac_unrecognized_opts= 879 ac_unrecognized_sep= 880 # The variables have the same names as the options, with 881 # dashes changed to underlines. 882 cache_file=/dev/null 883 exec_prefix=NONE 884 no_create= 885 no_recursion= 886 prefix=NONE 887 program_prefix=NONE 888 program_suffix=NONE 889 program_transform_name=s,x,x, 890 silent= 891 site= 892 srcdir= 893 verbose= 894 x_includes=NONE 895 x_libraries=NONE 896 897 # Installation directory options. 898 # These are left unexpanded so users can "make install exec_prefix=/foo" 899 # and all the variables that are supposed to be based on exec_prefix 900 # by default will actually change. 901 # Use braces instead of parens because sh, perl, etc. also accept them. 902 # (The list follows the same order as the GNU Coding Standards.) 903 bindir='${exec_prefix}/bin' 904 sbindir='${exec_prefix}/sbin' 905 libexecdir='${exec_prefix}/libexec' 906 datarootdir='${prefix}/share' 907 datadir='${datarootdir}' 908 sysconfdir='${prefix}/etc' 909 sharedstatedir='${prefix}/com' 910 localstatedir='${prefix}/var' 911 includedir='${prefix}/include' 912 oldincludedir='/usr/include' 913 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 914 infodir='${datarootdir}/info' 915 htmldir='${docdir}' 916 dvidir='${docdir}' 917 pdfdir='${docdir}' 918 psdir='${docdir}' 919 libdir='${exec_prefix}/lib' 920 localedir='${datarootdir}/locale' 921 mandir='${datarootdir}/man' 922 923 ac_prev= 924 ac_dashdash= 925 for ac_option 926 do 927 # If the previous option needs an argument, assign it. 928 if test -n "$ac_prev"; then 929 eval $ac_prev=\$ac_option 930 ac_prev= 931 continue 932 fi 933 934 case $ac_option in 935 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 936 *=) ac_optarg= ;; 937 *) ac_optarg=yes ;; 938 esac 939 940 # Accept the important Cygnus configure options, so we can diagnose typos. 941 942 case $ac_dashdash$ac_option in 943 --) 944 ac_dashdash=yes ;; 945 946 -bindir | --bindir | --bindi | --bind | --bin | --bi) 947 ac_prev=bindir ;; 948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 949 bindir=$ac_optarg ;; 950 951 -build | --build | --buil | --bui | --bu) 952 ac_prev=build_alias ;; 953 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 954 build_alias=$ac_optarg ;; 955 956 -cache-file | --cache-file | --cache-fil | --cache-fi \ 957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 958 ac_prev=cache_file ;; 959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 961 cache_file=$ac_optarg ;; 962 963 --config-cache | -C) 964 cache_file=config.cache ;; 965 966 -datadir | --datadir | --datadi | --datad) 967 ac_prev=datadir ;; 968 -datadir=* | --datadir=* | --datadi=* | --datad=*) 969 datadir=$ac_optarg ;; 970 971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 972 | --dataroo | --dataro | --datar) 973 ac_prev=datarootdir ;; 974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 976 datarootdir=$ac_optarg ;; 977 978 -disable-* | --disable-*) 979 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 980 # Reject names that are not valid shell variable names. 981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 982 as_fn_error $? "invalid feature name: $ac_useropt" 983 ac_useropt_orig=$ac_useropt 984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 985 case $ac_user_opts in 986 *" 987 "enable_$ac_useropt" 988 "*) ;; 989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 990 ac_unrecognized_sep=', ';; 991 esac 992 eval enable_$ac_useropt=no ;; 993 994 -docdir | --docdir | --docdi | --doc | --do) 995 ac_prev=docdir ;; 996 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 997 docdir=$ac_optarg ;; 998 999 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1000 ac_prev=dvidir ;; 1001 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1002 dvidir=$ac_optarg ;; 1003 1004 -enable-* | --enable-*) 1005 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1006 # Reject names that are not valid shell variable names. 1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1008 as_fn_error $? "invalid feature name: $ac_useropt" 1009 ac_useropt_orig=$ac_useropt 1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1011 case $ac_user_opts in 1012 *" 1013 "enable_$ac_useropt" 1014 "*) ;; 1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1016 ac_unrecognized_sep=', ';; 1017 esac 1018 eval enable_$ac_useropt=\$ac_optarg ;; 1019 1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1022 | --exec | --exe | --ex) 1023 ac_prev=exec_prefix ;; 1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1026 | --exec=* | --exe=* | --ex=*) 1027 exec_prefix=$ac_optarg ;; 1028 1029 -gas | --gas | --ga | --g) 1030 # Obsolete; use --with-gas. 1031 with_gas=yes ;; 1032 1033 -help | --help | --hel | --he | -h) 1034 ac_init_help=long ;; 1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1036 ac_init_help=recursive ;; 1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1038 ac_init_help=short ;; 1039 1040 -host | --host | --hos | --ho) 1041 ac_prev=host_alias ;; 1042 -host=* | --host=* | --hos=* | --ho=*) 1043 host_alias=$ac_optarg ;; 1044 1045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1046 ac_prev=htmldir ;; 1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1048 | --ht=*) 1049 htmldir=$ac_optarg ;; 1050 1051 -includedir | --includedir | --includedi | --included | --include \ 1052 | --includ | --inclu | --incl | --inc) 1053 ac_prev=includedir ;; 1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1055 | --includ=* | --inclu=* | --incl=* | --inc=*) 1056 includedir=$ac_optarg ;; 1057 1058 -infodir | --infodir | --infodi | --infod | --info | --inf) 1059 ac_prev=infodir ;; 1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1061 infodir=$ac_optarg ;; 1062 1063 -libdir | --libdir | --libdi | --libd) 1064 ac_prev=libdir ;; 1065 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1066 libdir=$ac_optarg ;; 1067 1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1069 | --libexe | --libex | --libe) 1070 ac_prev=libexecdir ;; 1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1072 | --libexe=* | --libex=* | --libe=*) 1073 libexecdir=$ac_optarg ;; 1074 1075 -localedir | --localedir | --localedi | --localed | --locale) 1076 ac_prev=localedir ;; 1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1078 localedir=$ac_optarg ;; 1079 1080 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1081 | --localstate | --localstat | --localsta | --localst | --locals) 1082 ac_prev=localstatedir ;; 1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1085 localstatedir=$ac_optarg ;; 1086 1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1088 ac_prev=mandir ;; 1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1090 mandir=$ac_optarg ;; 1091 1092 -nfp | --nfp | --nf) 1093 # Obsolete; use --without-fp. 1094 with_fp=no ;; 1095 1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1097 | --no-cr | --no-c | -n) 1098 no_create=yes ;; 1099 1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1102 no_recursion=yes ;; 1103 1104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1106 | --oldin | --oldi | --old | --ol | --o) 1107 ac_prev=oldincludedir ;; 1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1111 oldincludedir=$ac_optarg ;; 1112 1113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1114 ac_prev=prefix ;; 1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1116 prefix=$ac_optarg ;; 1117 1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1119 | --program-pre | --program-pr | --program-p) 1120 ac_prev=program_prefix ;; 1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1123 program_prefix=$ac_optarg ;; 1124 1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1126 | --program-suf | --program-su | --program-s) 1127 ac_prev=program_suffix ;; 1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1130 program_suffix=$ac_optarg ;; 1131 1132 -program-transform-name | --program-transform-name \ 1133 | --program-transform-nam | --program-transform-na \ 1134 | --program-transform-n | --program-transform- \ 1135 | --program-transform | --program-transfor \ 1136 | --program-transfo | --program-transf \ 1137 | --program-trans | --program-tran \ 1138 | --progr-tra | --program-tr | --program-t) 1139 ac_prev=program_transform_name ;; 1140 -program-transform-name=* | --program-transform-name=* \ 1141 | --program-transform-nam=* | --program-transform-na=* \ 1142 | --program-transform-n=* | --program-transform-=* \ 1143 | --program-transform=* | --program-transfor=* \ 1144 | --program-transfo=* | --program-transf=* \ 1145 | --program-trans=* | --program-tran=* \ 1146 | --progr-tra=* | --program-tr=* | --program-t=*) 1147 program_transform_name=$ac_optarg ;; 1148 1149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1150 ac_prev=pdfdir ;; 1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1152 pdfdir=$ac_optarg ;; 1153 1154 -psdir | --psdir | --psdi | --psd | --ps) 1155 ac_prev=psdir ;; 1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1157 psdir=$ac_optarg ;; 1158 1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1160 | -silent | --silent | --silen | --sile | --sil) 1161 silent=yes ;; 1162 1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1164 ac_prev=sbindir ;; 1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1166 | --sbi=* | --sb=*) 1167 sbindir=$ac_optarg ;; 1168 1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1171 | --sharedst | --shareds | --shared | --share | --shar \ 1172 | --sha | --sh) 1173 ac_prev=sharedstatedir ;; 1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1177 | --sha=* | --sh=*) 1178 sharedstatedir=$ac_optarg ;; 1179 1180 -site | --site | --sit) 1181 ac_prev=site ;; 1182 -site=* | --site=* | --sit=*) 1183 site=$ac_optarg ;; 1184 1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1186 ac_prev=srcdir ;; 1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1188 srcdir=$ac_optarg ;; 1189 1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1191 | --syscon | --sysco | --sysc | --sys | --sy) 1192 ac_prev=sysconfdir ;; 1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1195 sysconfdir=$ac_optarg ;; 1196 1197 -target | --target | --targe | --targ | --tar | --ta | --t) 1198 ac_prev=target_alias ;; 1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1200 target_alias=$ac_optarg ;; 1201 1202 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1203 verbose=yes ;; 1204 1205 -version | --version | --versio | --versi | --vers | -V) 1206 ac_init_version=: ;; 1207 1208 -with-* | --with-*) 1209 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1210 # Reject names that are not valid shell variable names. 1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1212 as_fn_error $? "invalid package name: $ac_useropt" 1213 ac_useropt_orig=$ac_useropt 1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1215 case $ac_user_opts in 1216 *" 1217 "with_$ac_useropt" 1218 "*) ;; 1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1220 ac_unrecognized_sep=', ';; 1221 esac 1222 eval with_$ac_useropt=\$ac_optarg ;; 1223 1224 -without-* | --without-*) 1225 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1226 # Reject names that are not valid shell variable names. 1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1228 as_fn_error $? "invalid package name: $ac_useropt" 1229 ac_useropt_orig=$ac_useropt 1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1231 case $ac_user_opts in 1232 *" 1233 "with_$ac_useropt" 1234 "*) ;; 1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1236 ac_unrecognized_sep=', ';; 1237 esac 1238 eval with_$ac_useropt=no ;; 1239 1240 --x) 1241 # Obsolete; use --with-x. 1242 with_x=yes ;; 1243 1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1245 | --x-incl | --x-inc | --x-in | --x-i) 1246 ac_prev=x_includes ;; 1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1249 x_includes=$ac_optarg ;; 1250 1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1253 ac_prev=x_libraries ;; 1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1256 x_libraries=$ac_optarg ;; 1257 1258 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1259 Try \`$0 --help' for more information" 1260 ;; 1261 1262 *=*) 1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1264 # Reject names that are not valid shell variable names. 1265 case $ac_envvar in #( 1266 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1267 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1268 esac 1269 eval $ac_envvar=\$ac_optarg 1270 export $ac_envvar ;; 1271 1272 *) 1273 # FIXME: should be removed in autoconf 3.0. 1274 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1276 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1277 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1278 ;; 1279 1280 esac 1281 done 1282 1283 if test -n "$ac_prev"; then 1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1285 as_fn_error $? "missing argument to $ac_option" 1286 fi 1287 1288 if test -n "$ac_unrecognized_opts"; then 1289 case $enable_option_checking in 1290 no) ;; 1291 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1292 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1293 esac 1294 fi 1295 1296 # Check all directory arguments for consistency. 1297 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1298 datadir sysconfdir sharedstatedir localstatedir includedir \ 1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1300 libdir localedir mandir 1301 do 1302 eval ac_val=\$$ac_var 1303 # Remove trailing slashes. 1304 case $ac_val in 1305 */ ) 1306 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1307 eval $ac_var=\$ac_val;; 1308 esac 1309 # Be sure to have absolute directory names. 1310 case $ac_val in 1311 [\\/$]* | ?:[\\/]* ) continue;; 1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1313 esac 1314 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1315 done 1316 1317 # There might be people who depend on the old broken behavior: `$host' 1318 # used to hold the argument of --host etc. 1319 # FIXME: To remove some day. 1320 build=$build_alias 1321 host=$host_alias 1322 target=$target_alias 1323 1324 # FIXME: To remove some day. 1325 if test "x$host_alias" != x; then 1326 if test "x$build_alias" = x; then 1327 cross_compiling=maybe 1328 elif test "x$build_alias" != "x$host_alias"; then 1329 cross_compiling=yes 1330 fi 1331 fi 1332 1333 ac_tool_prefix= 1334 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1335 1336 test "$silent" = yes && exec 6>/dev/null 1337 1338 1339 ac_pwd=`pwd` && test -n "$ac_pwd" && 1340 ac_ls_di=`ls -di .` && 1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1342 as_fn_error $? "working directory cannot be determined" 1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1344 as_fn_error $? "pwd does not report name of working directory" 1345 1346 1347 # Find the source files, if location was not specified. 1348 if test -z "$srcdir"; then 1349 ac_srcdir_defaulted=yes 1350 # Try the directory containing this script, then the parent directory. 1351 ac_confdir=`$as_dirname -- "$as_myself" || 1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1353 X"$as_myself" : 'X\(//\)[^/]' \| \ 1354 X"$as_myself" : 'X\(//\)$' \| \ 1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1356 $as_echo X"$as_myself" | 1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1358 s//\1/ 1359 q 1360 } 1361 /^X\(\/\/\)[^/].*/{ 1362 s//\1/ 1363 q 1364 } 1365 /^X\(\/\/\)$/{ 1366 s//\1/ 1367 q 1368 } 1369 /^X\(\/\).*/{ 1370 s//\1/ 1371 q 1372 } 1373 s/.*/./; q'` 1374 srcdir=$ac_confdir 1375 if test ! -r "$srcdir/$ac_unique_file"; then 1376 srcdir=.. 1377 fi 1378 else 1379 ac_srcdir_defaulted=no 1380 fi 1381 if test ! -r "$srcdir/$ac_unique_file"; then 1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1383 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1384 fi 1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1386 ac_abs_confdir=`( 1387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1388 pwd)` 1389 # When building in place, set srcdir=. 1390 if test "$ac_abs_confdir" = "$ac_pwd"; then 1391 srcdir=. 1392 fi 1393 # Remove unnecessary trailing slashes from srcdir. 1394 # Double slashes in file names in object file debugging info 1395 # mess up M-x gdb in Emacs. 1396 case $srcdir in 1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1398 esac 1399 for ac_var in $ac_precious_vars; do 1400 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1401 eval ac_env_${ac_var}_value=\$${ac_var} 1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1403 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1404 done 1405 1406 # 1407 # Report the --help message. 1408 # 1409 if test "$ac_init_help" = "long"; then 1410 # Omit some internal or obsolete options to make the list less imposing. 1411 # This message is too long to be a string in the A/UX 3.1 sh. 1412 cat <<_ACEOF 1413 \`configure' configures bfd 2.45.50 to adapt to many kinds of systems. 1414 1415 Usage: $0 [OPTION]... [VAR=VALUE]... 1416 1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1418 VAR=VALUE. See below for descriptions of some of the useful variables. 1419 1420 Defaults for the options are specified in brackets. 1421 1422 Configuration: 1423 -h, --help display this help and exit 1424 --help=short display options specific to this package 1425 --help=recursive display the short help of all the included packages 1426 -V, --version display version information and exit 1427 -q, --quiet, --silent do not print \`checking ...' messages 1428 --cache-file=FILE cache test results in FILE [disabled] 1429 -C, --config-cache alias for \`--cache-file=config.cache' 1430 -n, --no-create do not create output files 1431 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1432 1433 Installation directories: 1434 --prefix=PREFIX install architecture-independent files in PREFIX 1435 [$ac_default_prefix] 1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1437 [PREFIX] 1438 1439 By default, \`make install' will install all the files in 1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1442 for instance \`--prefix=\$HOME'. 1443 1444 For better control, use the options below. 1445 1446 Fine tuning of the installation directories: 1447 --bindir=DIR user executables [EPREFIX/bin] 1448 --sbindir=DIR system admin executables [EPREFIX/sbin] 1449 --libexecdir=DIR program executables [EPREFIX/libexec] 1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1453 --libdir=DIR object code libraries [EPREFIX/lib] 1454 --includedir=DIR C header files [PREFIX/include] 1455 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1458 --infodir=DIR info documentation [DATAROOTDIR/info] 1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1460 --mandir=DIR man documentation [DATAROOTDIR/man] 1461 --docdir=DIR documentation root [DATAROOTDIR/doc/bfd] 1462 --htmldir=DIR html documentation [DOCDIR] 1463 --dvidir=DIR dvi documentation [DOCDIR] 1464 --pdfdir=DIR pdf documentation [DOCDIR] 1465 --psdir=DIR ps documentation [DOCDIR] 1466 _ACEOF 1467 1468 cat <<\_ACEOF 1469 1470 Program names: 1471 --program-prefix=PREFIX prepend PREFIX to installed program names 1472 --program-suffix=SUFFIX append SUFFIX to installed program names 1473 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1474 1475 System types: 1476 --build=BUILD configure for building on BUILD [guessed] 1477 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1478 --target=TARGET configure for building compilers for TARGET [HOST] 1479 _ACEOF 1480 fi 1481 1482 if test -n "$ac_init_help"; then 1483 case $ac_init_help in 1484 short | recursive ) echo "Configuration of bfd 2.45.50:";; 1485 esac 1486 cat <<\_ACEOF 1487 1488 Optional Features: 1489 --disable-option-checking ignore unrecognized --enable/--with options 1490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1492 --enable-silent-rules less verbose build output (undo: "make V=1") 1493 --disable-silent-rules verbose build output (undo: "make V=0") 1494 --enable-shared[=PKGS] build shared libraries [default=no] 1495 --enable-dependency-tracking 1496 do not reject slow dependency extractors 1497 --disable-dependency-tracking 1498 speeds up one-time build 1499 --enable-static[=PKGS] build static libraries [default=yes] 1500 --enable-fast-install[=PKGS] 1501 optimize for fast installation [default=yes] 1502 --disable-libtool-lock avoid locking (might break parallel builds) 1503 --enable-plugins Enable support for plugins 1504 --disable-largefile omit support for large files 1505 --enable-checking enable run-time checks 1506 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) 1507 --enable-targets alternative target configurations 1508 --enable-64-bit-archive force 64-bit archives 1509 --enable-secureplt Default to creating read-only plt entries 1510 --enable-separate-code enable -z separate-code in ELF linker by default 1511 --enable-leading-mingw64-underscores 1512 Enable leading underscores on 64 bit mingw targets 1513 --enable-werror treat compile warnings as errors 1514 --enable-build-warnings enable build-time compiler warnings 1515 --enable-maintainer-mode 1516 enable make rules and dependencies not useful (and 1517 sometimes confusing) to the casual installer 1518 --enable-install-libbfd controls installation of libbfd and related headers 1519 --disable-nls do not use Native Language Support 1520 --disable-rpath do not hardcode runtime library paths 1521 1522 Optional Packages: 1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1525 --with-pic try to use only PIC/non-PIC objects [default=use 1526 both] 1527 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1528 --with-mmap try using mmap for BFD input files if available 1529 --with-separate-debug-dir=DIR 1530 Look for global separate debug info in DIR 1531 [[default=LIBDIR/debug]] 1532 --with-pkgversion=PKG Use PKG in the version string in place of "GNU 1533 Binutils" 1534 --with-bugurl=URL Direct users to URL to report a bug 1535 --with-gnu-ld assume the C compiler uses GNU ld default=no 1536 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1537 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1538 --with-libiconv-type=TYPE type of library to search for (auto/static/shared) 1539 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1540 --without-libintl-prefix don't search for libintl in includedir and libdir 1541 --with-libintl-type=TYPE type of library to search for (auto/static/shared) 1542 --with-system-zlib use installed libz 1543 --with-zstd support zstd compressed debug sections 1544 (default=auto) 1545 1546 Some influential environment variables: 1547 CC C compiler command 1548 CFLAGS C compiler flags 1549 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1550 nonstandard directory <lib dir> 1551 LIBS libraries to pass to the linker, e.g. -l<library> 1552 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1553 you have headers in a nonstandard directory <include dir> 1554 CPP C preprocessor 1555 PKG_CONFIG path to pkg-config utility 1556 PKG_CONFIG_PATH 1557 directories to add to pkg-config's search path 1558 PKG_CONFIG_LIBDIR 1559 path overriding pkg-config's built-in search path 1560 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config 1561 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config 1562 1563 Use these variables to override the choices made by `configure' or to help 1564 it to find libraries and programs with nonstandard names/locations. 1565 1566 Report bugs to the package provider. 1567 _ACEOF 1568 ac_status=$? 1569 fi 1570 1571 if test "$ac_init_help" = "recursive"; then 1572 # If there are subdirs, report their specific --help. 1573 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1574 test -d "$ac_dir" || 1575 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1576 continue 1577 ac_builddir=. 1578 1579 case "$ac_dir" in 1580 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1581 *) 1582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1583 # A ".." for each directory in $ac_dir_suffix. 1584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1585 case $ac_top_builddir_sub in 1586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1588 esac ;; 1589 esac 1590 ac_abs_top_builddir=$ac_pwd 1591 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1592 # for backward compatibility: 1593 ac_top_builddir=$ac_top_build_prefix 1594 1595 case $srcdir in 1596 .) # We are building in place. 1597 ac_srcdir=. 1598 ac_top_srcdir=$ac_top_builddir_sub 1599 ac_abs_top_srcdir=$ac_pwd ;; 1600 [\\/]* | ?:[\\/]* ) # Absolute name. 1601 ac_srcdir=$srcdir$ac_dir_suffix; 1602 ac_top_srcdir=$srcdir 1603 ac_abs_top_srcdir=$srcdir ;; 1604 *) # Relative name. 1605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1606 ac_top_srcdir=$ac_top_build_prefix$srcdir 1607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1608 esac 1609 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1610 1611 cd "$ac_dir" || { ac_status=$?; continue; } 1612 # Check for guested configure. 1613 if test -f "$ac_srcdir/configure.gnu"; then 1614 echo && 1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1616 elif test -f "$ac_srcdir/configure"; then 1617 echo && 1618 $SHELL "$ac_srcdir/configure" --help=recursive 1619 else 1620 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1621 fi || ac_status=$? 1622 cd "$ac_pwd" || { ac_status=$?; break; } 1623 done 1624 fi 1625 1626 test -n "$ac_init_help" && exit $ac_status 1627 if $ac_init_version; then 1628 cat <<\_ACEOF 1629 bfd configure 2.45.50 1630 generated by GNU Autoconf 2.69 1631 1632 Copyright (C) 2012 Free Software Foundation, Inc. 1633 This configure script is free software; the Free Software Foundation 1634 gives unlimited permission to copy, distribute and modify it. 1635 _ACEOF 1636 exit 1637 fi 1638 1639 ## ------------------------ ## 1640 ## Autoconf initialization. ## 1641 ## ------------------------ ## 1642 1643 # ac_fn_c_try_compile LINENO 1644 # -------------------------- 1645 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1646 ac_fn_c_try_compile () 1647 { 1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1649 rm -f conftest.$ac_objext 1650 if { { ac_try="$ac_compile" 1651 case "(($ac_try" in 1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1653 *) ac_try_echo=$ac_try;; 1654 esac 1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1656 $as_echo "$ac_try_echo"; } >&5 1657 (eval "$ac_compile") 2>conftest.err 1658 ac_status=$? 1659 if test -s conftest.err; then 1660 grep -v '^ *+' conftest.err >conftest.er1 1661 cat conftest.er1 >&5 1662 mv -f conftest.er1 conftest.err 1663 fi 1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1665 test $ac_status = 0; } && { 1666 test -z "$ac_c_werror_flag" || 1667 test ! -s conftest.err 1668 } && test -s conftest.$ac_objext; then : 1669 ac_retval=0 1670 else 1671 $as_echo "$as_me: failed program was:" >&5 1672 sed 's/^/| /' conftest.$ac_ext >&5 1673 1674 ac_retval=1 1675 fi 1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1677 as_fn_set_status $ac_retval 1678 1679 } # ac_fn_c_try_compile 1680 1681 # ac_fn_c_try_cpp LINENO 1682 # ---------------------- 1683 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1684 ac_fn_c_try_cpp () 1685 { 1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1687 if { { ac_try="$ac_cpp conftest.$ac_ext" 1688 case "(($ac_try" in 1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1690 *) ac_try_echo=$ac_try;; 1691 esac 1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1693 $as_echo "$ac_try_echo"; } >&5 1694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1695 ac_status=$? 1696 if test -s conftest.err; then 1697 grep -v '^ *+' conftest.err >conftest.er1 1698 cat conftest.er1 >&5 1699 mv -f conftest.er1 conftest.err 1700 fi 1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1702 test $ac_status = 0; } > conftest.i && { 1703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1704 test ! -s conftest.err 1705 }; then : 1706 ac_retval=0 1707 else 1708 $as_echo "$as_me: failed program was:" >&5 1709 sed 's/^/| /' conftest.$ac_ext >&5 1710 1711 ac_retval=1 1712 fi 1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1714 as_fn_set_status $ac_retval 1715 1716 } # ac_fn_c_try_cpp 1717 1718 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1719 # ------------------------------------------------------- 1720 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1721 # the include files in INCLUDES and setting the cache variable VAR 1722 # accordingly. 1723 ac_fn_c_check_header_mongrel () 1724 { 1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1726 if eval \${$3+:} false; then : 1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1728 $as_echo_n "checking for $2... " >&6; } 1729 if eval \${$3+:} false; then : 1730 $as_echo_n "(cached) " >&6 1731 fi 1732 eval ac_res=\$$3 1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1734 $as_echo "$ac_res" >&6; } 1735 else 1736 # Is the header compilable? 1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1738 $as_echo_n "checking $2 usability... " >&6; } 1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1740 /* end confdefs.h. */ 1741 $4 1742 #include <$2> 1743 _ACEOF 1744 if ac_fn_c_try_compile "$LINENO"; then : 1745 ac_header_compiler=yes 1746 else 1747 ac_header_compiler=no 1748 fi 1749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1751 $as_echo "$ac_header_compiler" >&6; } 1752 1753 # Is the header present? 1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1755 $as_echo_n "checking $2 presence... " >&6; } 1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1757 /* end confdefs.h. */ 1758 #include <$2> 1759 _ACEOF 1760 if ac_fn_c_try_cpp "$LINENO"; then : 1761 ac_header_preproc=yes 1762 else 1763 ac_header_preproc=no 1764 fi 1765 rm -f conftest.err conftest.i conftest.$ac_ext 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1767 $as_echo "$ac_header_preproc" >&6; } 1768 1769 # So? What about this header? 1770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1771 yes:no: ) 1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1773 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1775 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1776 ;; 1777 no:yes:* ) 1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1779 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1781 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1783 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1785 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1787 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1788 ;; 1789 esac 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1791 $as_echo_n "checking for $2... " >&6; } 1792 if eval \${$3+:} false; then : 1793 $as_echo_n "(cached) " >&6 1794 else 1795 eval "$3=\$ac_header_compiler" 1796 fi 1797 eval ac_res=\$$3 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1799 $as_echo "$ac_res" >&6; } 1800 fi 1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1802 1803 } # ac_fn_c_check_header_mongrel 1804 1805 # ac_fn_c_try_run LINENO 1806 # ---------------------- 1807 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1808 # that executables *can* be run. 1809 ac_fn_c_try_run () 1810 { 1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1812 if { { ac_try="$ac_link" 1813 case "(($ac_try" in 1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1815 *) ac_try_echo=$ac_try;; 1816 esac 1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1818 $as_echo "$ac_try_echo"; } >&5 1819 (eval "$ac_link") 2>&5 1820 ac_status=$? 1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1822 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1823 { { case "(($ac_try" in 1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1825 *) ac_try_echo=$ac_try;; 1826 esac 1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1828 $as_echo "$ac_try_echo"; } >&5 1829 (eval "$ac_try") 2>&5 1830 ac_status=$? 1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1832 test $ac_status = 0; }; }; then : 1833 ac_retval=0 1834 else 1835 $as_echo "$as_me: program exited with status $ac_status" >&5 1836 $as_echo "$as_me: failed program was:" >&5 1837 sed 's/^/| /' conftest.$ac_ext >&5 1838 1839 ac_retval=$ac_status 1840 fi 1841 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1843 as_fn_set_status $ac_retval 1844 1845 } # ac_fn_c_try_run 1846 1847 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1848 # ------------------------------------------------------- 1849 # Tests whether HEADER exists and can be compiled using the include files in 1850 # INCLUDES, setting the cache variable VAR accordingly. 1851 ac_fn_c_check_header_compile () 1852 { 1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1855 $as_echo_n "checking for $2... " >&6; } 1856 if eval \${$3+:} false; then : 1857 $as_echo_n "(cached) " >&6 1858 else 1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1860 /* end confdefs.h. */ 1861 $4 1862 #include <$2> 1863 _ACEOF 1864 if ac_fn_c_try_compile "$LINENO"; then : 1865 eval "$3=yes" 1866 else 1867 eval "$3=no" 1868 fi 1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1870 fi 1871 eval ac_res=\$$3 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1873 $as_echo "$ac_res" >&6; } 1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1875 1876 } # ac_fn_c_check_header_compile 1877 1878 # ac_fn_c_try_link LINENO 1879 # ----------------------- 1880 # Try to link conftest.$ac_ext, and return whether this succeeded. 1881 ac_fn_c_try_link () 1882 { 1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1884 rm -f conftest.$ac_objext conftest$ac_exeext 1885 if { { ac_try="$ac_link" 1886 case "(($ac_try" in 1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1888 *) ac_try_echo=$ac_try;; 1889 esac 1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1891 $as_echo "$ac_try_echo"; } >&5 1892 (eval "$ac_link") 2>conftest.err 1893 ac_status=$? 1894 if test -s conftest.err; then 1895 grep -v '^ *+' conftest.err >conftest.er1 1896 cat conftest.er1 >&5 1897 mv -f conftest.er1 conftest.err 1898 fi 1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1900 test $ac_status = 0; } && { 1901 test -z "$ac_c_werror_flag" || 1902 test ! -s conftest.err 1903 } && test -s conftest$ac_exeext && { 1904 test "$cross_compiling" = yes || 1905 test -x conftest$ac_exeext 1906 }; then : 1907 ac_retval=0 1908 else 1909 $as_echo "$as_me: failed program was:" >&5 1910 sed 's/^/| /' conftest.$ac_ext >&5 1911 1912 ac_retval=1 1913 fi 1914 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1915 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1916 # interfere with the next link command; also delete a directory that is 1917 # left behind by Apple's compiler. We do this before executing the actions. 1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1920 as_fn_set_status $ac_retval 1921 1922 } # ac_fn_c_try_link 1923 1924 # ac_fn_c_check_func LINENO FUNC VAR 1925 # ---------------------------------- 1926 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1927 ac_fn_c_check_func () 1928 { 1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1931 $as_echo_n "checking for $2... " >&6; } 1932 if eval \${$3+:} false; then : 1933 $as_echo_n "(cached) " >&6 1934 else 1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1936 /* end confdefs.h. */ 1937 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1938 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1939 #define $2 innocuous_$2 1940 1941 /* System header to define __stub macros and hopefully few prototypes, 1942 which can conflict with char $2 (); below. 1943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1944 <limits.h> exists even on freestanding compilers. */ 1945 1946 #ifdef __STDC__ 1947 # include <limits.h> 1948 #else 1949 # include <assert.h> 1950 #endif 1951 1952 #undef $2 1953 1954 /* Override any GCC internal prototype to avoid an error. 1955 Use char because int might match the return type of a GCC 1956 builtin and then its argument prototype would still apply. */ 1957 #ifdef __cplusplus 1958 extern "C" 1959 #endif 1960 char $2 (); 1961 /* The GNU C library defines this for functions which it implements 1962 to always fail with ENOSYS. Some functions are actually named 1963 something starting with __ and the normal name is an alias. */ 1964 #if defined __stub_$2 || defined __stub___$2 1965 choke me 1966 #endif 1967 1968 int 1969 main () 1970 { 1971 return $2 (); 1972 ; 1973 return 0; 1974 } 1975 _ACEOF 1976 if ac_fn_c_try_link "$LINENO"; then : 1977 eval "$3=yes" 1978 else 1979 eval "$3=no" 1980 fi 1981 rm -f core conftest.err conftest.$ac_objext \ 1982 conftest$ac_exeext conftest.$ac_ext 1983 fi 1984 eval ac_res=\$$3 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1986 $as_echo "$ac_res" >&6; } 1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1988 1989 } # ac_fn_c_check_func 1990 1991 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1992 # -------------------------------------------- 1993 # Tries to find the compile-time value of EXPR in a program that includes 1994 # INCLUDES, setting VAR accordingly. Returns whether the value could be 1995 # computed 1996 ac_fn_c_compute_int () 1997 { 1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1999 if test "$cross_compiling" = yes; then 2000 # Depending upon the size, compute the lo and hi bounds. 2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2002 /* end confdefs.h. */ 2003 $4 2004 int 2005 main () 2006 { 2007 static int test_array [1 - 2 * !(($2) >= 0)]; 2008 test_array [0] = 0; 2009 return test_array [0]; 2010 2011 ; 2012 return 0; 2013 } 2014 _ACEOF 2015 if ac_fn_c_try_compile "$LINENO"; then : 2016 ac_lo=0 ac_mid=0 2017 while :; do 2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2019 /* end confdefs.h. */ 2020 $4 2021 int 2022 main () 2023 { 2024 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2025 test_array [0] = 0; 2026 return test_array [0]; 2027 2028 ; 2029 return 0; 2030 } 2031 _ACEOF 2032 if ac_fn_c_try_compile "$LINENO"; then : 2033 ac_hi=$ac_mid; break 2034 else 2035 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2036 if test $ac_lo -le $ac_mid; then 2037 ac_lo= ac_hi= 2038 break 2039 fi 2040 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2041 fi 2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2043 done 2044 else 2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2046 /* end confdefs.h. */ 2047 $4 2048 int 2049 main () 2050 { 2051 static int test_array [1 - 2 * !(($2) < 0)]; 2052 test_array [0] = 0; 2053 return test_array [0]; 2054 2055 ; 2056 return 0; 2057 } 2058 _ACEOF 2059 if ac_fn_c_try_compile "$LINENO"; then : 2060 ac_hi=-1 ac_mid=-1 2061 while :; do 2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2063 /* end confdefs.h. */ 2064 $4 2065 int 2066 main () 2067 { 2068 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2069 test_array [0] = 0; 2070 return test_array [0]; 2071 2072 ; 2073 return 0; 2074 } 2075 _ACEOF 2076 if ac_fn_c_try_compile "$LINENO"; then : 2077 ac_lo=$ac_mid; break 2078 else 2079 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2080 if test $ac_mid -le $ac_hi; then 2081 ac_lo= ac_hi= 2082 break 2083 fi 2084 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2085 fi 2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2087 done 2088 else 2089 ac_lo= ac_hi= 2090 fi 2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2092 fi 2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2094 # Binary search between lo and hi bounds. 2095 while test "x$ac_lo" != "x$ac_hi"; do 2096 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2098 /* end confdefs.h. */ 2099 $4 2100 int 2101 main () 2102 { 2103 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2104 test_array [0] = 0; 2105 return test_array [0]; 2106 2107 ; 2108 return 0; 2109 } 2110 _ACEOF 2111 if ac_fn_c_try_compile "$LINENO"; then : 2112 ac_hi=$ac_mid 2113 else 2114 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2115 fi 2116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2117 done 2118 case $ac_lo in #(( 2119 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2120 '') ac_retval=1 ;; 2121 esac 2122 else 2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2124 /* end confdefs.h. */ 2125 $4 2126 static long int longval () { return $2; } 2127 static unsigned long int ulongval () { return $2; } 2128 #include <stdio.h> 2129 #include <stdlib.h> 2130 int 2131 main () 2132 { 2133 2134 FILE *f = fopen ("conftest.val", "w"); 2135 if (! f) 2136 return 1; 2137 if (($2) < 0) 2138 { 2139 long int i = longval (); 2140 if (i != ($2)) 2141 return 1; 2142 fprintf (f, "%ld", i); 2143 } 2144 else 2145 { 2146 unsigned long int i = ulongval (); 2147 if (i != ($2)) 2148 return 1; 2149 fprintf (f, "%lu", i); 2150 } 2151 /* Do not output a trailing newline, as this causes \r\n confusion 2152 on some platforms. */ 2153 return ferror (f) || fclose (f) != 0; 2154 2155 ; 2156 return 0; 2157 } 2158 _ACEOF 2159 if ac_fn_c_try_run "$LINENO"; then : 2160 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2161 else 2162 ac_retval=1 2163 fi 2164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2165 conftest.$ac_objext conftest.beam conftest.$ac_ext 2166 rm -f conftest.val 2167 2168 fi 2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2170 as_fn_set_status $ac_retval 2171 2172 } # ac_fn_c_compute_int 2173 2174 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2175 # --------------------------------------------- 2176 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2177 # accordingly. 2178 ac_fn_c_check_decl () 2179 { 2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2181 as_decl_name=`echo $2|sed 's/ *(.*//'` 2182 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2184 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2185 if eval \${$3+:} false; then : 2186 $as_echo_n "(cached) " >&6 2187 else 2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2189 /* end confdefs.h. */ 2190 $4 2191 int 2192 main () 2193 { 2194 #ifndef $as_decl_name 2195 #ifdef __cplusplus 2196 (void) $as_decl_use; 2197 #else 2198 (void) $as_decl_name; 2199 #endif 2200 #endif 2201 2202 ; 2203 return 0; 2204 } 2205 _ACEOF 2206 if ac_fn_c_try_compile "$LINENO"; then : 2207 eval "$3=yes" 2208 else 2209 eval "$3=no" 2210 fi 2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2212 fi 2213 eval ac_res=\$$3 2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2215 $as_echo "$ac_res" >&6; } 2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2217 2218 } # ac_fn_c_check_decl 2219 cat >config.log <<_ACEOF 2220 This file contains any messages produced by compilers while 2221 running configure, to aid debugging if configure makes a mistake. 2222 2223 It was created by bfd $as_me 2.45.50, which was 2224 generated by GNU Autoconf 2.69. Invocation command line was 2225 2226 $ $0 $@ 2227 2228 _ACEOF 2229 exec 5>>config.log 2230 { 2231 cat <<_ASUNAME 2232 ## --------- ## 2233 ## Platform. ## 2234 ## --------- ## 2235 2236 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2237 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2238 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2239 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2240 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2241 2242 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2243 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2244 2245 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2246 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2247 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2248 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2249 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2250 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2251 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2252 2253 _ASUNAME 2254 2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2256 for as_dir in $PATH 2257 do 2258 IFS=$as_save_IFS 2259 test -z "$as_dir" && as_dir=. 2260 $as_echo "PATH: $as_dir" 2261 done 2262 IFS=$as_save_IFS 2263 2264 } >&5 2265 2266 cat >&5 <<_ACEOF 2267 2268 2269 ## ----------- ## 2270 ## Core tests. ## 2271 ## ----------- ## 2272 2273 _ACEOF 2274 2275 2276 # Keep a trace of the command line. 2277 # Strip out --no-create and --no-recursion so they do not pile up. 2278 # Strip out --silent because we don't want to record it for future runs. 2279 # Also quote any args containing shell meta-characters. 2280 # Make two passes to allow for proper duplicate-argument suppression. 2281 ac_configure_args= 2282 ac_configure_args0= 2283 ac_configure_args1= 2284 ac_must_keep_next=false 2285 for ac_pass in 1 2 2286 do 2287 for ac_arg 2288 do 2289 case $ac_arg in 2290 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2292 | -silent | --silent | --silen | --sile | --sil) 2293 continue ;; 2294 *\'*) 2295 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2296 esac 2297 case $ac_pass in 2298 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2299 2) 2300 as_fn_append ac_configure_args1 " '$ac_arg'" 2301 if test $ac_must_keep_next = true; then 2302 ac_must_keep_next=false # Got value, back to normal. 2303 else 2304 case $ac_arg in 2305 *=* | --config-cache | -C | -disable-* | --disable-* \ 2306 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2307 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2308 | -with-* | --with-* | -without-* | --without-* | --x) 2309 case "$ac_configure_args0 " in 2310 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2311 esac 2312 ;; 2313 -* ) ac_must_keep_next=true ;; 2314 esac 2315 fi 2316 as_fn_append ac_configure_args " '$ac_arg'" 2317 ;; 2318 esac 2319 done 2320 done 2321 { ac_configure_args0=; unset ac_configure_args0;} 2322 { ac_configure_args1=; unset ac_configure_args1;} 2323 2324 # When interrupted or exit'd, cleanup temporary files, and complete 2325 # config.log. We remove comments because anyway the quotes in there 2326 # would cause problems or look ugly. 2327 # WARNING: Use '\'' to represent an apostrophe within the trap. 2328 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2329 trap 'exit_status=$? 2330 # Save into config.log some information that might help in debugging. 2331 { 2332 echo 2333 2334 $as_echo "## ---------------- ## 2335 ## Cache variables. ## 2336 ## ---------------- ##" 2337 echo 2338 # The following way of writing the cache mishandles newlines in values, 2339 ( 2340 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2341 eval ac_val=\$$ac_var 2342 case $ac_val in #( 2343 *${as_nl}*) 2344 case $ac_var in #( 2345 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2346 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2347 esac 2348 case $ac_var in #( 2349 _ | IFS | as_nl) ;; #( 2350 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2351 *) { eval $ac_var=; unset $ac_var;} ;; 2352 esac ;; 2353 esac 2354 done 2355 (set) 2>&1 | 2356 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2357 *${as_nl}ac_space=\ *) 2358 sed -n \ 2359 "s/'\''/'\''\\\\'\'''\''/g; 2360 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2361 ;; #( 2362 *) 2363 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2364 ;; 2365 esac | 2366 sort 2367 ) 2368 echo 2369 2370 $as_echo "## ----------------- ## 2371 ## Output variables. ## 2372 ## ----------------- ##" 2373 echo 2374 for ac_var in $ac_subst_vars 2375 do 2376 eval ac_val=\$$ac_var 2377 case $ac_val in 2378 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2379 esac 2380 $as_echo "$ac_var='\''$ac_val'\''" 2381 done | sort 2382 echo 2383 2384 if test -n "$ac_subst_files"; then 2385 $as_echo "## ------------------- ## 2386 ## File substitutions. ## 2387 ## ------------------- ##" 2388 echo 2389 for ac_var in $ac_subst_files 2390 do 2391 eval ac_val=\$$ac_var 2392 case $ac_val in 2393 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2394 esac 2395 $as_echo "$ac_var='\''$ac_val'\''" 2396 done | sort 2397 echo 2398 fi 2399 2400 if test -s confdefs.h; then 2401 $as_echo "## ----------- ## 2402 ## confdefs.h. ## 2403 ## ----------- ##" 2404 echo 2405 cat confdefs.h 2406 echo 2407 fi 2408 test "$ac_signal" != 0 && 2409 $as_echo "$as_me: caught signal $ac_signal" 2410 $as_echo "$as_me: exit $exit_status" 2411 } >&5 2412 rm -f core *.core core.conftest.* && 2413 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2414 exit $exit_status 2415 ' 0 2416 for ac_signal in 1 2 13 15; do 2417 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2418 done 2419 ac_signal=0 2420 2421 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2422 rm -f -r conftest* confdefs.h 2423 2424 $as_echo "/* confdefs.h */" > confdefs.h 2425 2426 # Predefined preprocessor variables. 2427 2428 cat >>confdefs.h <<_ACEOF 2429 #define PACKAGE_NAME "$PACKAGE_NAME" 2430 _ACEOF 2431 2432 cat >>confdefs.h <<_ACEOF 2433 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2434 _ACEOF 2435 2436 cat >>confdefs.h <<_ACEOF 2437 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2438 _ACEOF 2439 2440 cat >>confdefs.h <<_ACEOF 2441 #define PACKAGE_STRING "$PACKAGE_STRING" 2442 _ACEOF 2443 2444 cat >>confdefs.h <<_ACEOF 2445 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2446 _ACEOF 2447 2448 cat >>confdefs.h <<_ACEOF 2449 #define PACKAGE_URL "$PACKAGE_URL" 2450 _ACEOF 2451 2452 2453 # Let the site file select an alternate cache file if it wants to. 2454 # Prefer an explicitly selected file to automatically selected ones. 2455 ac_site_file1=NONE 2456 ac_site_file2=NONE 2457 if test -n "$CONFIG_SITE"; then 2458 # We do not want a PATH search for config.site. 2459 case $CONFIG_SITE in #(( 2460 -*) ac_site_file1=./$CONFIG_SITE;; 2461 */*) ac_site_file1=$CONFIG_SITE;; 2462 *) ac_site_file1=./$CONFIG_SITE;; 2463 esac 2464 elif test "x$prefix" != xNONE; then 2465 ac_site_file1=$prefix/share/config.site 2466 ac_site_file2=$prefix/etc/config.site 2467 else 2468 ac_site_file1=$ac_default_prefix/share/config.site 2469 ac_site_file2=$ac_default_prefix/etc/config.site 2470 fi 2471 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2472 do 2473 test "x$ac_site_file" = xNONE && continue 2474 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2476 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2477 sed 's/^/| /' "$ac_site_file" >&5 2478 . "$ac_site_file" \ 2479 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2481 as_fn_error $? "failed to load site script $ac_site_file 2482 See \`config.log' for more details" "$LINENO" 5; } 2483 fi 2484 done 2485 2486 if test -r "$cache_file"; then 2487 # Some versions of bash will fail to source /dev/null (special files 2488 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2489 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2490 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2491 $as_echo "$as_me: loading cache $cache_file" >&6;} 2492 case $cache_file in 2493 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2494 *) . "./$cache_file";; 2495 esac 2496 fi 2497 else 2498 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2499 $as_echo "$as_me: creating cache $cache_file" >&6;} 2500 >$cache_file 2501 fi 2502 2503 gt_needs="$gt_needs " 2504 as_fn_append ac_header_list " stdlib.h" 2505 as_fn_append ac_header_list " unistd.h" 2506 as_fn_append ac_header_list " sys/param.h" 2507 # Check that the precious variables saved in the cache have kept the same 2508 # value. 2509 ac_cache_corrupted=false 2510 for ac_var in $ac_precious_vars; do 2511 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2512 eval ac_new_set=\$ac_env_${ac_var}_set 2513 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2514 eval ac_new_val=\$ac_env_${ac_var}_value 2515 case $ac_old_set,$ac_new_set in 2516 set,) 2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2518 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2519 ac_cache_corrupted=: ;; 2520 ,set) 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2522 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2523 ac_cache_corrupted=: ;; 2524 ,);; 2525 *) 2526 if test "x$ac_old_val" != "x$ac_new_val"; then 2527 # differences in whitespace do not lead to failure. 2528 ac_old_val_w=`echo x $ac_old_val` 2529 ac_new_val_w=`echo x $ac_new_val` 2530 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2532 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2533 ac_cache_corrupted=: 2534 else 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2536 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2537 eval $ac_var=\$ac_old_val 2538 fi 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2540 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2541 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2542 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2543 fi;; 2544 esac 2545 # Pass precious variables to config.status. 2546 if test "$ac_new_set" = set; then 2547 case $ac_new_val in 2548 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2549 *) ac_arg=$ac_var=$ac_new_val ;; 2550 esac 2551 case " $ac_configure_args " in 2552 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2553 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2554 esac 2555 fi 2556 done 2557 if $ac_cache_corrupted; then 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2561 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2562 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2563 fi 2564 ## -------------------- ## 2565 ## Main body of script. ## 2566 ## -------------------- ## 2567 2568 ac_ext=c 2569 ac_cpp='$CPP $CPPFLAGS' 2570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2572 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2573 2574 2575 2576 2577 2578 2579 2580 ac_aux_dir= 2581 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2582 if test -f "$ac_dir/install-sh"; then 2583 ac_aux_dir=$ac_dir 2584 ac_install_sh="$ac_aux_dir/install-sh -c" 2585 break 2586 elif test -f "$ac_dir/install.sh"; then 2587 ac_aux_dir=$ac_dir 2588 ac_install_sh="$ac_aux_dir/install.sh -c" 2589 break 2590 elif test -f "$ac_dir/shtool"; then 2591 ac_aux_dir=$ac_dir 2592 ac_install_sh="$ac_aux_dir/shtool install -c" 2593 break 2594 fi 2595 done 2596 if test -z "$ac_aux_dir"; then 2597 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2598 fi 2599 2600 # These three variables are undocumented and unsupported, 2601 # and are intended to be withdrawn in a future Autoconf release. 2602 # They can cause serious problems if a builder's source tree is in a directory 2603 # whose full name contains unusual characters. 2604 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2605 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2606 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2607 2608 2609 # Make sure we can run config.sub. 2610 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2611 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2612 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2614 $as_echo_n "checking build system type... " >&6; } 2615 if ${ac_cv_build+:} false; then : 2616 $as_echo_n "(cached) " >&6 2617 else 2618 ac_build_alias=$build_alias 2619 test "x$ac_build_alias" = x && 2620 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2621 test "x$ac_build_alias" = x && 2622 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2623 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2624 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2625 2626 fi 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2628 $as_echo "$ac_cv_build" >&6; } 2629 case $ac_cv_build in 2630 *-*-*) ;; 2631 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2632 esac 2633 build=$ac_cv_build 2634 ac_save_IFS=$IFS; IFS='-' 2635 set x $ac_cv_build 2636 shift 2637 build_cpu=$1 2638 build_vendor=$2 2639 shift; shift 2640 # Remember, the first character of IFS is used to create $*, 2641 # except with old shells: 2642 build_os=$* 2643 IFS=$ac_save_IFS 2644 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2645 2646 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2648 $as_echo_n "checking host system type... " >&6; } 2649 if ${ac_cv_host+:} false; then : 2650 $as_echo_n "(cached) " >&6 2651 else 2652 if test "x$host_alias" = x; then 2653 ac_cv_host=$ac_cv_build 2654 else 2655 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2656 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2657 fi 2658 2659 fi 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2661 $as_echo "$ac_cv_host" >&6; } 2662 case $ac_cv_host in 2663 *-*-*) ;; 2664 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2665 esac 2666 host=$ac_cv_host 2667 ac_save_IFS=$IFS; IFS='-' 2668 set x $ac_cv_host 2669 shift 2670 host_cpu=$1 2671 host_vendor=$2 2672 shift; shift 2673 # Remember, the first character of IFS is used to create $*, 2674 # except with old shells: 2675 host_os=$* 2676 IFS=$ac_save_IFS 2677 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2678 2679 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2681 $as_echo_n "checking target system type... " >&6; } 2682 if ${ac_cv_target+:} false; then : 2683 $as_echo_n "(cached) " >&6 2684 else 2685 if test "x$target_alias" = x; then 2686 ac_cv_target=$ac_cv_host 2687 else 2688 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2689 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2690 fi 2691 2692 fi 2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2694 $as_echo "$ac_cv_target" >&6; } 2695 case $ac_cv_target in 2696 *-*-*) ;; 2697 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2698 esac 2699 target=$ac_cv_target 2700 ac_save_IFS=$IFS; IFS='-' 2701 set x $ac_cv_target 2702 shift 2703 target_cpu=$1 2704 target_vendor=$2 2705 shift; shift 2706 # Remember, the first character of IFS is used to create $*, 2707 # except with old shells: 2708 target_os=$* 2709 IFS=$ac_save_IFS 2710 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2711 2712 2713 # The aliases save the names the user supplied, while $host etc. 2714 # will get canonicalized. 2715 test -n "$target_alias" && 2716 test "$program_prefix$program_suffix$program_transform_name" = \ 2717 NONENONEs,x,x, && 2718 program_prefix=${target_alias}- 2719 2720 am__api_version='1.15' 2721 2722 # Find a good install program. We prefer a C program (faster), 2723 # so one script is as good as another. But avoid the broken or 2724 # incompatible versions: 2725 # SysV /etc/install, /usr/sbin/install 2726 # SunOS /usr/etc/install 2727 # IRIX /sbin/install 2728 # AIX /bin/install 2729 # AmigaOS /C/install, which installs bootblocks on floppy discs 2730 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2731 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2732 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2733 # OS/2's system install, which has a completely different semantic 2734 # ./install, which can be erroneously created by make from ./install.sh. 2735 # Reject install programs that cannot install multiple files. 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2737 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2738 if test -z "$INSTALL"; then 2739 if ${ac_cv_path_install+:} false; then : 2740 $as_echo_n "(cached) " >&6 2741 else 2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2743 for as_dir in $PATH 2744 do 2745 IFS=$as_save_IFS 2746 test -z "$as_dir" && as_dir=. 2747 # Account for people who put trailing slashes in PATH elements. 2748 case $as_dir/ in #(( 2749 ./ | .// | /[cC]/* | \ 2750 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2751 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2752 /usr/ucb/* ) ;; 2753 *) 2754 # OSF1 and SCO ODT 3.0 have their own names for install. 2755 # Don't use installbsd from OSF since it installs stuff as root 2756 # by default. 2757 for ac_prog in ginstall scoinst install; do 2758 for ac_exec_ext in '' $ac_executable_extensions; do 2759 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2760 if test $ac_prog = install && 2761 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2762 # AIX install. It has an incompatible calling convention. 2763 : 2764 elif test $ac_prog = install && 2765 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2766 # program-specific install script used by HP pwplus--don't use. 2767 : 2768 else 2769 rm -rf conftest.one conftest.two conftest.dir 2770 echo one > conftest.one 2771 echo two > conftest.two 2772 mkdir conftest.dir 2773 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2774 test -s conftest.one && test -s conftest.two && 2775 test -s conftest.dir/conftest.one && 2776 test -s conftest.dir/conftest.two 2777 then 2778 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2779 break 3 2780 fi 2781 fi 2782 fi 2783 done 2784 done 2785 ;; 2786 esac 2787 2788 done 2789 IFS=$as_save_IFS 2790 2791 rm -rf conftest.one conftest.two conftest.dir 2792 2793 fi 2794 if test "${ac_cv_path_install+set}" = set; then 2795 INSTALL=$ac_cv_path_install 2796 else 2797 # As a last resort, use the slow shell script. Don't cache a 2798 # value for INSTALL within a source directory, because that will 2799 # break other packages using the cache if that directory is 2800 # removed, or if the value is a relative name. 2801 INSTALL=$ac_install_sh 2802 fi 2803 fi 2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2805 $as_echo "$INSTALL" >&6; } 2806 2807 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2808 # It thinks the first close brace ends the variable substitution. 2809 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2810 2811 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2812 2813 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2814 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2816 $as_echo_n "checking whether build environment is sane... " >&6; } 2817 # Reject unsafe characters in $srcdir or the absolute working directory 2818 # name. Accept space and tab only in the latter. 2819 am_lf=' 2820 ' 2821 case `pwd` in 2822 *[\\\"\#\$\&\'\`$am_lf]*) 2823 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2824 esac 2825 case $srcdir in 2826 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2827 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2828 esac 2829 2830 # Do 'set' in a subshell so we don't clobber the current shell's 2831 # arguments. Must try -L first in case configure is actually a 2832 # symlink; some systems play weird games with the mod time of symlinks 2833 # (eg FreeBSD returns the mod time of the symlink's containing 2834 # directory). 2835 if ( 2836 am_has_slept=no 2837 for am_try in 1 2; do 2838 echo "timestamp, slept: $am_has_slept" > conftest.file 2839 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2840 if test "$*" = "X"; then 2841 # -L didn't work. 2842 set X `ls -t "$srcdir/configure" conftest.file` 2843 fi 2844 if test "$*" != "X $srcdir/configure conftest.file" \ 2845 && test "$*" != "X conftest.file $srcdir/configure"; then 2846 2847 # If neither matched, then we have a broken ls. This can happen 2848 # if, for instance, CONFIG_SHELL is bash and it inherits a 2849 # broken ls alias from the environment. This has actually 2850 # happened. Such a system could not be considered "sane". 2851 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2852 alias in your environment" "$LINENO" 5 2853 fi 2854 if test "$2" = conftest.file || test $am_try -eq 2; then 2855 break 2856 fi 2857 # Just in case. 2858 sleep 1 2859 am_has_slept=yes 2860 done 2861 test "$2" = conftest.file 2862 ) 2863 then 2864 # Ok. 2865 : 2866 else 2867 as_fn_error $? "newly created file is older than distributed files! 2868 Check your system clock" "$LINENO" 5 2869 fi 2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2871 $as_echo "yes" >&6; } 2872 # If we didn't sleep, we still need to ensure time stamps of config.status and 2873 # generated files are strictly newer. 2874 am_sleep_pid= 2875 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2876 ( sleep 1 ) & 2877 am_sleep_pid=$! 2878 fi 2879 2880 rm -f conftest.file 2881 2882 test "$program_prefix" != NONE && 2883 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2884 # Use a double $ so make ignores it. 2885 test "$program_suffix" != NONE && 2886 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2887 # Double any \ or $. 2888 # By default was `s,x,x', remove it if useless. 2889 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2890 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2891 2892 # Expand $ac_aux_dir to an absolute path. 2893 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2894 2895 if test x"${MISSING+set}" != xset; then 2896 case $am_aux_dir in 2897 *\ * | *\ *) 2898 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2899 *) 2900 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2901 esac 2902 fi 2903 # Use eval to expand $SHELL 2904 if eval "$MISSING --is-lightweight"; then 2905 am_missing_run="$MISSING " 2906 else 2907 am_missing_run= 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2909 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2910 fi 2911 2912 if test x"${install_sh+set}" != xset; then 2913 case $am_aux_dir in 2914 *\ * | *\ *) 2915 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2916 *) 2917 install_sh="\${SHELL} $am_aux_dir/install-sh" 2918 esac 2919 fi 2920 2921 # Installed binaries are usually stripped using 'strip' when the user 2922 # run "make install-strip". However 'strip' might not be the right 2923 # tool to use in cross-compilation environments, therefore Automake 2924 # will honor the 'STRIP' environment variable to overrule this program. 2925 if test "$cross_compiling" != no; then 2926 if test -n "$ac_tool_prefix"; then 2927 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2928 set dummy ${ac_tool_prefix}strip; ac_word=$2 2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2930 $as_echo_n "checking for $ac_word... " >&6; } 2931 if ${ac_cv_prog_STRIP+:} false; then : 2932 $as_echo_n "(cached) " >&6 2933 else 2934 if test -n "$STRIP"; then 2935 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2936 else 2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2938 for as_dir in $PATH 2939 do 2940 IFS=$as_save_IFS 2941 test -z "$as_dir" && as_dir=. 2942 for ac_exec_ext in '' $ac_executable_extensions; do 2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2944 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2946 break 2 2947 fi 2948 done 2949 done 2950 IFS=$as_save_IFS 2951 2952 fi 2953 fi 2954 STRIP=$ac_cv_prog_STRIP 2955 if test -n "$STRIP"; then 2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2957 $as_echo "$STRIP" >&6; } 2958 else 2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2960 $as_echo "no" >&6; } 2961 fi 2962 2963 2964 fi 2965 if test -z "$ac_cv_prog_STRIP"; then 2966 ac_ct_STRIP=$STRIP 2967 # Extract the first word of "strip", so it can be a program name with args. 2968 set dummy strip; ac_word=$2 2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2970 $as_echo_n "checking for $ac_word... " >&6; } 2971 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2972 $as_echo_n "(cached) " >&6 2973 else 2974 if test -n "$ac_ct_STRIP"; then 2975 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2976 else 2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2978 for as_dir in $PATH 2979 do 2980 IFS=$as_save_IFS 2981 test -z "$as_dir" && as_dir=. 2982 for ac_exec_ext in '' $ac_executable_extensions; do 2983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2984 ac_cv_prog_ac_ct_STRIP="strip" 2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2986 break 2 2987 fi 2988 done 2989 done 2990 IFS=$as_save_IFS 2991 2992 fi 2993 fi 2994 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2995 if test -n "$ac_ct_STRIP"; then 2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2997 $as_echo "$ac_ct_STRIP" >&6; } 2998 else 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3000 $as_echo "no" >&6; } 3001 fi 3002 3003 if test "x$ac_ct_STRIP" = x; then 3004 STRIP=":" 3005 else 3006 case $cross_compiling:$ac_tool_warned in 3007 yes:) 3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3010 ac_tool_warned=yes ;; 3011 esac 3012 STRIP=$ac_ct_STRIP 3013 fi 3014 else 3015 STRIP="$ac_cv_prog_STRIP" 3016 fi 3017 3018 fi 3019 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3020 3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3022 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3023 if test -z "$MKDIR_P"; then 3024 if ${ac_cv_path_mkdir+:} false; then : 3025 $as_echo_n "(cached) " >&6 3026 else 3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3028 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3029 do 3030 IFS=$as_save_IFS 3031 test -z "$as_dir" && as_dir=. 3032 for ac_prog in mkdir gmkdir; do 3033 for ac_exec_ext in '' $ac_executable_extensions; do 3034 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3035 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3036 'mkdir (GNU coreutils) '* | \ 3037 'mkdir (coreutils) '* | \ 3038 'mkdir (fileutils) '4.1*) 3039 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3040 break 3;; 3041 esac 3042 done 3043 done 3044 done 3045 IFS=$as_save_IFS 3046 3047 fi 3048 3049 test -d ./--version && rmdir ./--version 3050 if test "${ac_cv_path_mkdir+set}" = set; then 3051 MKDIR_P="$ac_cv_path_mkdir -p" 3052 else 3053 # As a last resort, use the slow shell script. Don't cache a 3054 # value for MKDIR_P within a source directory, because that will 3055 # break other packages using the cache if that directory is 3056 # removed, or if the value is a relative name. 3057 MKDIR_P="$ac_install_sh -d" 3058 fi 3059 fi 3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3061 $as_echo "$MKDIR_P" >&6; } 3062 3063 for ac_prog in gawk mawk nawk awk 3064 do 3065 # Extract the first word of "$ac_prog", so it can be a program name with args. 3066 set dummy $ac_prog; ac_word=$2 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3068 $as_echo_n "checking for $ac_word... " >&6; } 3069 if ${ac_cv_prog_AWK+:} false; then : 3070 $as_echo_n "(cached) " >&6 3071 else 3072 if test -n "$AWK"; then 3073 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3074 else 3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3076 for as_dir in $PATH 3077 do 3078 IFS=$as_save_IFS 3079 test -z "$as_dir" && as_dir=. 3080 for ac_exec_ext in '' $ac_executable_extensions; do 3081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3082 ac_cv_prog_AWK="$ac_prog" 3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3084 break 2 3085 fi 3086 done 3087 done 3088 IFS=$as_save_IFS 3089 3090 fi 3091 fi 3092 AWK=$ac_cv_prog_AWK 3093 if test -n "$AWK"; then 3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3095 $as_echo "$AWK" >&6; } 3096 else 3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3098 $as_echo "no" >&6; } 3099 fi 3100 3101 3102 test -n "$AWK" && break 3103 done 3104 3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3106 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3107 set x ${MAKE-make} 3108 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3109 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3110 $as_echo_n "(cached) " >&6 3111 else 3112 cat >conftest.make <<\_ACEOF 3113 SHELL = /bin/sh 3114 all: 3115 @echo '@@@%%%=$(MAKE)=@@@%%%' 3116 _ACEOF 3117 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3118 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3119 *@@@%%%=?*=@@@%%%*) 3120 eval ac_cv_prog_make_${ac_make}_set=yes;; 3121 *) 3122 eval ac_cv_prog_make_${ac_make}_set=no;; 3123 esac 3124 rm -f conftest.make 3125 fi 3126 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3128 $as_echo "yes" >&6; } 3129 SET_MAKE= 3130 else 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3132 $as_echo "no" >&6; } 3133 SET_MAKE="MAKE=${MAKE-make}" 3134 fi 3135 3136 rm -rf .tst 2>/dev/null 3137 mkdir .tst 2>/dev/null 3138 if test -d .tst; then 3139 am__leading_dot=. 3140 else 3141 am__leading_dot=_ 3142 fi 3143 rmdir .tst 2>/dev/null 3144 3145 # Check whether --enable-silent-rules was given. 3146 if test "${enable_silent_rules+set}" = set; then : 3147 enableval=$enable_silent_rules; 3148 fi 3149 3150 case $enable_silent_rules in # ((( 3151 yes) AM_DEFAULT_VERBOSITY=0;; 3152 no) AM_DEFAULT_VERBOSITY=1;; 3153 *) AM_DEFAULT_VERBOSITY=1;; 3154 esac 3155 am_make=${MAKE-make} 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3157 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3158 if ${am_cv_make_support_nested_variables+:} false; then : 3159 $as_echo_n "(cached) " >&6 3160 else 3161 if $as_echo 'TRUE=$(BAR$(V)) 3162 BAR0=false 3163 BAR1=true 3164 V=1 3165 am__doit: 3166 @$(TRUE) 3167 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3168 am_cv_make_support_nested_variables=yes 3169 else 3170 am_cv_make_support_nested_variables=no 3171 fi 3172 fi 3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3174 $as_echo "$am_cv_make_support_nested_variables" >&6; } 3175 if test $am_cv_make_support_nested_variables = yes; then 3176 AM_V='$(V)' 3177 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3178 else 3179 AM_V=$AM_DEFAULT_VERBOSITY 3180 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3181 fi 3182 AM_BACKSLASH='\' 3183 3184 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3185 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3186 # is not polluted with repeated "-I." 3187 am__isrc=' -I$(srcdir)' 3188 # test to see if srcdir already configured 3189 if test -f $srcdir/config.status; then 3190 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3191 fi 3192 fi 3193 3194 # test whether we have cygpath 3195 if test -z "$CYGPATH_W"; then 3196 if (cygpath --version) >/dev/null 2>/dev/null; then 3197 CYGPATH_W='cygpath -w' 3198 else 3199 CYGPATH_W=echo 3200 fi 3201 fi 3202 3203 3204 # Define the identity of the package. 3205 PACKAGE='bfd' 3206 VERSION='2.45.50' 3207 3208 3209 cat >>confdefs.h <<_ACEOF 3210 #define PACKAGE "$PACKAGE" 3211 _ACEOF 3212 3213 3214 cat >>confdefs.h <<_ACEOF 3215 #define VERSION "$VERSION" 3216 _ACEOF 3217 3218 # Some tools Automake needs. 3219 3220 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3221 3222 3223 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3224 3225 3226 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3227 3228 3229 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3230 3231 3232 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3233 3234 # For better backward compatibility. To be removed once Automake 1.9.x 3235 # dies out for good. For more background, see: 3236 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3237 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3238 mkdir_p='$(MKDIR_P)' 3239 3240 # We need awk for the "check" target (and possibly the TAP driver). The 3241 # system "awk" is bad on some platforms. 3242 # Always define AMTAR for backward compatibility. Yes, it's still used 3243 # in the wild :-( We should find a proper way to deprecate it ... 3244 AMTAR='$${TAR-tar}' 3245 3246 3247 # We'll loop over all known methods to create a tar archive until one works. 3248 _am_tools='gnutar pax cpio none' 3249 3250 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3251 3252 3253 3254 3255 3256 3257 # POSIX will say in a future version that running "rm -f" with no argument 3258 # is OK; and we want to be able to make that assumption in our Makefile 3259 # recipes. So use an aggressive probe to check that the usage we want is 3260 # actually supported "in the wild" to an acceptable degree. 3261 # See automake bug#10828. 3262 # To make any issue more visible, cause the running configure to be aborted 3263 # by default if the 'rm' program in use doesn't match our expectations; the 3264 # user can still override this though. 3265 if rm -f && rm -fr && rm -rf; then : OK; else 3266 cat >&2 <<'END' 3267 Oops! 3268 3269 Your 'rm' program seems unable to run without file operands specified 3270 on the command line, even when the '-f' option is present. This is contrary 3271 to the behaviour of most rm programs out there, and not conforming with 3272 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3273 3274 Please tell bug-automake@gnu.org about your system, including the value 3275 of your $PATH and any error possibly output before this message. This 3276 can help us improve future automake versions. 3277 3278 END 3279 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3280 echo 'Configuration will proceed anyway, since you have set the' >&2 3281 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3282 echo >&2 3283 else 3284 cat >&2 <<'END' 3285 Aborting the configuration process, to ensure you take notice of the issue. 3286 3287 You can download and install GNU coreutils to get an 'rm' implementation 3288 that behaves properly: <http://www.gnu.org/software/coreutils/>. 3289 3290 If you want to complete the configuration process using your problematic 3291 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3292 to "yes", and re-run configure. 3293 3294 END 3295 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3296 fi 3297 fi 3298 3299 # Check whether --enable-silent-rules was given. 3300 if test "${enable_silent_rules+set}" = set; then : 3301 enableval=$enable_silent_rules; 3302 fi 3303 3304 case $enable_silent_rules in # ((( 3305 yes) AM_DEFAULT_VERBOSITY=0;; 3306 no) AM_DEFAULT_VERBOSITY=1;; 3307 *) AM_DEFAULT_VERBOSITY=0;; 3308 esac 3309 am_make=${MAKE-make} 3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3311 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3312 if ${am_cv_make_support_nested_variables+:} false; then : 3313 $as_echo_n "(cached) " >&6 3314 else 3315 if $as_echo 'TRUE=$(BAR$(V)) 3316 BAR0=false 3317 BAR1=true 3318 V=1 3319 am__doit: 3320 @$(TRUE) 3321 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3322 am_cv_make_support_nested_variables=yes 3323 else 3324 am_cv_make_support_nested_variables=no 3325 fi 3326 fi 3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3328 $as_echo "$am_cv_make_support_nested_variables" >&6; } 3329 if test $am_cv_make_support_nested_variables = yes; then 3330 AM_V='$(V)' 3331 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3332 else 3333 AM_V=$AM_DEFAULT_VERBOSITY 3334 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3335 fi 3336 AM_BACKSLASH='\' 3337 3338 3339 if test -n "$ac_tool_prefix"; then 3340 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 3341 set dummy ${ac_tool_prefix}ar; ac_word=$2 3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3343 $as_echo_n "checking for $ac_word... " >&6; } 3344 if ${ac_cv_prog_AR+:} false; then : 3345 $as_echo_n "(cached) " >&6 3346 else 3347 if test -n "$AR"; then 3348 ac_cv_prog_AR="$AR" # Let the user override the test. 3349 else 3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3351 for as_dir in $PATH 3352 do 3353 IFS=$as_save_IFS 3354 test -z "$as_dir" && as_dir=. 3355 for ac_exec_ext in '' $ac_executable_extensions; do 3356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3357 ac_cv_prog_AR="${ac_tool_prefix}ar" 3358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3359 break 2 3360 fi 3361 done 3362 done 3363 IFS=$as_save_IFS 3364 3365 fi 3366 fi 3367 AR=$ac_cv_prog_AR 3368 if test -n "$AR"; then 3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 3370 $as_echo "$AR" >&6; } 3371 else 3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3373 $as_echo "no" >&6; } 3374 fi 3375 3376 3377 fi 3378 if test -z "$ac_cv_prog_AR"; then 3379 ac_ct_AR=$AR 3380 # Extract the first word of "ar", so it can be a program name with args. 3381 set dummy ar; ac_word=$2 3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3383 $as_echo_n "checking for $ac_word... " >&6; } 3384 if ${ac_cv_prog_ac_ct_AR+:} false; then : 3385 $as_echo_n "(cached) " >&6 3386 else 3387 if test -n "$ac_ct_AR"; then 3388 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 3389 else 3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3391 for as_dir in $PATH 3392 do 3393 IFS=$as_save_IFS 3394 test -z "$as_dir" && as_dir=. 3395 for ac_exec_ext in '' $ac_executable_extensions; do 3396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3397 ac_cv_prog_ac_ct_AR="ar" 3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3399 break 2 3400 fi 3401 done 3402 done 3403 IFS=$as_save_IFS 3404 3405 fi 3406 fi 3407 ac_ct_AR=$ac_cv_prog_ac_ct_AR 3408 if test -n "$ac_ct_AR"; then 3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 3410 $as_echo "$ac_ct_AR" >&6; } 3411 else 3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3413 $as_echo "no" >&6; } 3414 fi 3415 3416 if test "x$ac_ct_AR" = x; then 3417 AR="" 3418 else 3419 case $cross_compiling:$ac_tool_warned in 3420 yes:) 3421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3423 ac_tool_warned=yes ;; 3424 esac 3425 AR=$ac_ct_AR 3426 fi 3427 else 3428 AR="$ac_cv_prog_AR" 3429 fi 3430 3431 if test -n "$ac_tool_prefix"; then 3432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3435 $as_echo_n "checking for $ac_word... " >&6; } 3436 if ${ac_cv_prog_RANLIB+:} false; then : 3437 $as_echo_n "(cached) " >&6 3438 else 3439 if test -n "$RANLIB"; then 3440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3441 else 3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3443 for as_dir in $PATH 3444 do 3445 IFS=$as_save_IFS 3446 test -z "$as_dir" && as_dir=. 3447 for ac_exec_ext in '' $ac_executable_extensions; do 3448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3449 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3451 break 2 3452 fi 3453 done 3454 done 3455 IFS=$as_save_IFS 3456 3457 fi 3458 fi 3459 RANLIB=$ac_cv_prog_RANLIB 3460 if test -n "$RANLIB"; then 3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3462 $as_echo "$RANLIB" >&6; } 3463 else 3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3465 $as_echo "no" >&6; } 3466 fi 3467 3468 3469 fi 3470 if test -z "$ac_cv_prog_RANLIB"; then 3471 ac_ct_RANLIB=$RANLIB 3472 # Extract the first word of "ranlib", so it can be a program name with args. 3473 set dummy ranlib; ac_word=$2 3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3475 $as_echo_n "checking for $ac_word... " >&6; } 3476 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 3477 $as_echo_n "(cached) " >&6 3478 else 3479 if test -n "$ac_ct_RANLIB"; then 3480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3481 else 3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3483 for as_dir in $PATH 3484 do 3485 IFS=$as_save_IFS 3486 test -z "$as_dir" && as_dir=. 3487 for ac_exec_ext in '' $ac_executable_extensions; do 3488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3489 ac_cv_prog_ac_ct_RANLIB="ranlib" 3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3491 break 2 3492 fi 3493 done 3494 done 3495 IFS=$as_save_IFS 3496 3497 fi 3498 fi 3499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3500 if test -n "$ac_ct_RANLIB"; then 3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 3502 $as_echo "$ac_ct_RANLIB" >&6; } 3503 else 3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3505 $as_echo "no" >&6; } 3506 fi 3507 3508 if test "x$ac_ct_RANLIB" = x; then 3509 RANLIB=":" 3510 else 3511 case $cross_compiling:$ac_tool_warned in 3512 yes:) 3513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3515 ac_tool_warned=yes ;; 3516 esac 3517 RANLIB=$ac_ct_RANLIB 3518 fi 3519 else 3520 RANLIB="$ac_cv_prog_RANLIB" 3521 fi 3522 3523 3524 # Check whether --enable-shared was given. 3525 if test "${enable_shared+set}" = set; then : 3526 enableval=$enable_shared; p=${PACKAGE-default} 3527 case $enableval in 3528 yes) enable_shared=yes ;; 3529 no) enable_shared=no ;; 3530 *) 3531 enable_shared=no 3532 # Look at the argument we got. We use all the common list separators. 3533 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3534 for pkg in $enableval; do 3535 IFS="$lt_save_ifs" 3536 if test "X$pkg" = "X$p"; then 3537 enable_shared=yes 3538 fi 3539 done 3540 IFS="$lt_save_ifs" 3541 ;; 3542 esac 3543 else 3544 enable_shared=no 3545 fi 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 ac_ext=c 3557 ac_cpp='$CPP $CPPFLAGS' 3558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3560 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3561 if test -n "$ac_tool_prefix"; then 3562 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3563 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3565 $as_echo_n "checking for $ac_word... " >&6; } 3566 if ${ac_cv_prog_CC+:} false; then : 3567 $as_echo_n "(cached) " >&6 3568 else 3569 if test -n "$CC"; then 3570 ac_cv_prog_CC="$CC" # Let the user override the test. 3571 else 3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3573 for as_dir in $PATH 3574 do 3575 IFS=$as_save_IFS 3576 test -z "$as_dir" && as_dir=. 3577 for ac_exec_ext in '' $ac_executable_extensions; do 3578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3579 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3581 break 2 3582 fi 3583 done 3584 done 3585 IFS=$as_save_IFS 3586 3587 fi 3588 fi 3589 CC=$ac_cv_prog_CC 3590 if test -n "$CC"; then 3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3592 $as_echo "$CC" >&6; } 3593 else 3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3595 $as_echo "no" >&6; } 3596 fi 3597 3598 3599 fi 3600 if test -z "$ac_cv_prog_CC"; then 3601 ac_ct_CC=$CC 3602 # Extract the first word of "gcc", so it can be a program name with args. 3603 set dummy gcc; ac_word=$2 3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3605 $as_echo_n "checking for $ac_word... " >&6; } 3606 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3607 $as_echo_n "(cached) " >&6 3608 else 3609 if test -n "$ac_ct_CC"; then 3610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3611 else 3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3613 for as_dir in $PATH 3614 do 3615 IFS=$as_save_IFS 3616 test -z "$as_dir" && as_dir=. 3617 for ac_exec_ext in '' $ac_executable_extensions; do 3618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3619 ac_cv_prog_ac_ct_CC="gcc" 3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3621 break 2 3622 fi 3623 done 3624 done 3625 IFS=$as_save_IFS 3626 3627 fi 3628 fi 3629 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3630 if test -n "$ac_ct_CC"; then 3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3632 $as_echo "$ac_ct_CC" >&6; } 3633 else 3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3635 $as_echo "no" >&6; } 3636 fi 3637 3638 if test "x$ac_ct_CC" = x; then 3639 CC="" 3640 else 3641 case $cross_compiling:$ac_tool_warned in 3642 yes:) 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3645 ac_tool_warned=yes ;; 3646 esac 3647 CC=$ac_ct_CC 3648 fi 3649 else 3650 CC="$ac_cv_prog_CC" 3651 fi 3652 3653 if test -z "$CC"; then 3654 if test -n "$ac_tool_prefix"; then 3655 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3656 set dummy ${ac_tool_prefix}cc; ac_word=$2 3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3658 $as_echo_n "checking for $ac_word... " >&6; } 3659 if ${ac_cv_prog_CC+:} false; then : 3660 $as_echo_n "(cached) " >&6 3661 else 3662 if test -n "$CC"; then 3663 ac_cv_prog_CC="$CC" # Let the user override the test. 3664 else 3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3666 for as_dir in $PATH 3667 do 3668 IFS=$as_save_IFS 3669 test -z "$as_dir" && as_dir=. 3670 for ac_exec_ext in '' $ac_executable_extensions; do 3671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3672 ac_cv_prog_CC="${ac_tool_prefix}cc" 3673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3674 break 2 3675 fi 3676 done 3677 done 3678 IFS=$as_save_IFS 3679 3680 fi 3681 fi 3682 CC=$ac_cv_prog_CC 3683 if test -n "$CC"; then 3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3685 $as_echo "$CC" >&6; } 3686 else 3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3688 $as_echo "no" >&6; } 3689 fi 3690 3691 3692 fi 3693 fi 3694 if test -z "$CC"; then 3695 # Extract the first word of "cc", so it can be a program name with args. 3696 set dummy cc; ac_word=$2 3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3698 $as_echo_n "checking for $ac_word... " >&6; } 3699 if ${ac_cv_prog_CC+:} false; then : 3700 $as_echo_n "(cached) " >&6 3701 else 3702 if test -n "$CC"; then 3703 ac_cv_prog_CC="$CC" # Let the user override the test. 3704 else 3705 ac_prog_rejected=no 3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3707 for as_dir in $PATH 3708 do 3709 IFS=$as_save_IFS 3710 test -z "$as_dir" && as_dir=. 3711 for ac_exec_ext in '' $ac_executable_extensions; do 3712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3713 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3714 ac_prog_rejected=yes 3715 continue 3716 fi 3717 ac_cv_prog_CC="cc" 3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3719 break 2 3720 fi 3721 done 3722 done 3723 IFS=$as_save_IFS 3724 3725 if test $ac_prog_rejected = yes; then 3726 # We found a bogon in the path, so make sure we never use it. 3727 set dummy $ac_cv_prog_CC 3728 shift 3729 if test $# != 0; then 3730 # We chose a different compiler from the bogus one. 3731 # However, it has the same basename, so the bogon will be chosen 3732 # first if we set CC to just the basename; use the full file name. 3733 shift 3734 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3735 fi 3736 fi 3737 fi 3738 fi 3739 CC=$ac_cv_prog_CC 3740 if test -n "$CC"; then 3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3742 $as_echo "$CC" >&6; } 3743 else 3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3745 $as_echo "no" >&6; } 3746 fi 3747 3748 3749 fi 3750 if test -z "$CC"; then 3751 if test -n "$ac_tool_prefix"; then 3752 for ac_prog in cl.exe 3753 do 3754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3757 $as_echo_n "checking for $ac_word... " >&6; } 3758 if ${ac_cv_prog_CC+:} false; then : 3759 $as_echo_n "(cached) " >&6 3760 else 3761 if test -n "$CC"; then 3762 ac_cv_prog_CC="$CC" # Let the user override the test. 3763 else 3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3765 for as_dir in $PATH 3766 do 3767 IFS=$as_save_IFS 3768 test -z "$as_dir" && as_dir=. 3769 for ac_exec_ext in '' $ac_executable_extensions; do 3770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3771 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3773 break 2 3774 fi 3775 done 3776 done 3777 IFS=$as_save_IFS 3778 3779 fi 3780 fi 3781 CC=$ac_cv_prog_CC 3782 if test -n "$CC"; then 3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3784 $as_echo "$CC" >&6; } 3785 else 3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3787 $as_echo "no" >&6; } 3788 fi 3789 3790 3791 test -n "$CC" && break 3792 done 3793 fi 3794 if test -z "$CC"; then 3795 ac_ct_CC=$CC 3796 for ac_prog in cl.exe 3797 do 3798 # Extract the first word of "$ac_prog", so it can be a program name with args. 3799 set dummy $ac_prog; ac_word=$2 3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3801 $as_echo_n "checking for $ac_word... " >&6; } 3802 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3803 $as_echo_n "(cached) " >&6 3804 else 3805 if test -n "$ac_ct_CC"; then 3806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3807 else 3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3809 for as_dir in $PATH 3810 do 3811 IFS=$as_save_IFS 3812 test -z "$as_dir" && as_dir=. 3813 for ac_exec_ext in '' $ac_executable_extensions; do 3814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3815 ac_cv_prog_ac_ct_CC="$ac_prog" 3816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3817 break 2 3818 fi 3819 done 3820 done 3821 IFS=$as_save_IFS 3822 3823 fi 3824 fi 3825 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3826 if test -n "$ac_ct_CC"; then 3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3828 $as_echo "$ac_ct_CC" >&6; } 3829 else 3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3831 $as_echo "no" >&6; } 3832 fi 3833 3834 3835 test -n "$ac_ct_CC" && break 3836 done 3837 3838 if test "x$ac_ct_CC" = x; then 3839 CC="" 3840 else 3841 case $cross_compiling:$ac_tool_warned in 3842 yes:) 3843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3845 ac_tool_warned=yes ;; 3846 esac 3847 CC=$ac_ct_CC 3848 fi 3849 fi 3850 3851 fi 3852 3853 3854 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3856 as_fn_error $? "no acceptable C compiler found in \$PATH 3857 See \`config.log' for more details" "$LINENO" 5; } 3858 3859 # Provide some information about the compiler. 3860 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3861 set X $ac_compile 3862 ac_compiler=$2 3863 for ac_option in --version -v -V -qversion; do 3864 { { ac_try="$ac_compiler $ac_option >&5" 3865 case "(($ac_try" in 3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3867 *) ac_try_echo=$ac_try;; 3868 esac 3869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3870 $as_echo "$ac_try_echo"; } >&5 3871 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3872 ac_status=$? 3873 if test -s conftest.err; then 3874 sed '10a\ 3875 ... rest of stderr output deleted ... 3876 10q' conftest.err >conftest.er1 3877 cat conftest.er1 >&5 3878 fi 3879 rm -f conftest.er1 conftest.err 3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3881 test $ac_status = 0; } 3882 done 3883 3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3885 /* end confdefs.h. */ 3886 3887 int 3888 main () 3889 { 3890 3891 ; 3892 return 0; 3893 } 3894 _ACEOF 3895 ac_clean_files_save=$ac_clean_files 3896 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3897 # Try to create an executable without -o first, disregard a.out. 3898 # It will help us diagnose broken compilers, and finding out an intuition 3899 # of exeext. 3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3901 $as_echo_n "checking whether the C compiler works... " >&6; } 3902 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3903 3904 # The possible output files: 3905 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3906 3907 ac_rmfiles= 3908 for ac_file in $ac_files 3909 do 3910 case $ac_file in 3911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3912 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3913 esac 3914 done 3915 rm -f $ac_rmfiles 3916 3917 if { { ac_try="$ac_link_default" 3918 case "(($ac_try" in 3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3920 *) ac_try_echo=$ac_try;; 3921 esac 3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3923 $as_echo "$ac_try_echo"; } >&5 3924 (eval "$ac_link_default") 2>&5 3925 ac_status=$? 3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3927 test $ac_status = 0; }; then : 3928 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3929 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3930 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3931 # so that the user can short-circuit this test for compilers unknown to 3932 # Autoconf. 3933 for ac_file in $ac_files '' 3934 do 3935 test -f "$ac_file" || continue 3936 case $ac_file in 3937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3938 ;; 3939 [ab].out ) 3940 # We found the default executable, but exeext='' is most 3941 # certainly right. 3942 break;; 3943 *.* ) 3944 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3945 then :; else 3946 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3947 fi 3948 # We set ac_cv_exeext here because the later test for it is not 3949 # safe: cross compilers may not add the suffix if given an `-o' 3950 # argument, so we may need to know it at that point already. 3951 # Even if this section looks crufty: it has the advantage of 3952 # actually working. 3953 break;; 3954 * ) 3955 break;; 3956 esac 3957 done 3958 test "$ac_cv_exeext" = no && ac_cv_exeext= 3959 3960 else 3961 ac_file='' 3962 fi 3963 if test -z "$ac_file"; then : 3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3965 $as_echo "no" >&6; } 3966 $as_echo "$as_me: failed program was:" >&5 3967 sed 's/^/| /' conftest.$ac_ext >&5 3968 3969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3971 as_fn_error 77 "C compiler cannot create executables 3972 See \`config.log' for more details" "$LINENO" 5; } 3973 else 3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3975 $as_echo "yes" >&6; } 3976 fi 3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3978 $as_echo_n "checking for C compiler default output file name... " >&6; } 3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3980 $as_echo "$ac_file" >&6; } 3981 ac_exeext=$ac_cv_exeext 3982 3983 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3984 ac_clean_files=$ac_clean_files_save 3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3986 $as_echo_n "checking for suffix of executables... " >&6; } 3987 if { { ac_try="$ac_link" 3988 case "(($ac_try" in 3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3990 *) ac_try_echo=$ac_try;; 3991 esac 3992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3993 $as_echo "$ac_try_echo"; } >&5 3994 (eval "$ac_link") 2>&5 3995 ac_status=$? 3996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3997 test $ac_status = 0; }; then : 3998 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3999 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4000 # work properly (i.e., refer to `conftest.exe'), while it won't with 4001 # `rm'. 4002 for ac_file in conftest.exe conftest conftest.*; do 4003 test -f "$ac_file" || continue 4004 case $ac_file in 4005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4006 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4007 break;; 4008 * ) break;; 4009 esac 4010 done 4011 else 4012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4014 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4015 See \`config.log' for more details" "$LINENO" 5; } 4016 fi 4017 rm -f conftest conftest$ac_cv_exeext 4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4019 $as_echo "$ac_cv_exeext" >&6; } 4020 4021 rm -f conftest.$ac_ext 4022 EXEEXT=$ac_cv_exeext 4023 ac_exeext=$EXEEXT 4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4025 /* end confdefs.h. */ 4026 #include <stdio.h> 4027 int 4028 main () 4029 { 4030 FILE *f = fopen ("conftest.out", "w"); 4031 return ferror (f) || fclose (f) != 0; 4032 4033 ; 4034 return 0; 4035 } 4036 _ACEOF 4037 ac_clean_files="$ac_clean_files conftest.out" 4038 # Check that the compiler produces executables we can run. If not, either 4039 # the compiler is broken, or we cross compile. 4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4041 $as_echo_n "checking whether we are cross compiling... " >&6; } 4042 if test "$cross_compiling" != yes; then 4043 { { ac_try="$ac_link" 4044 case "(($ac_try" in 4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4046 *) ac_try_echo=$ac_try;; 4047 esac 4048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4049 $as_echo "$ac_try_echo"; } >&5 4050 (eval "$ac_link") 2>&5 4051 ac_status=$? 4052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4053 test $ac_status = 0; } 4054 if { ac_try='./conftest$ac_cv_exeext' 4055 { { case "(($ac_try" in 4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4057 *) ac_try_echo=$ac_try;; 4058 esac 4059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4060 $as_echo "$ac_try_echo"; } >&5 4061 (eval "$ac_try") 2>&5 4062 ac_status=$? 4063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4064 test $ac_status = 0; }; }; then 4065 cross_compiling=no 4066 else 4067 if test "$cross_compiling" = maybe; then 4068 cross_compiling=yes 4069 else 4070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4072 as_fn_error $? "cannot run C compiled programs. 4073 If you meant to cross compile, use \`--host'. 4074 See \`config.log' for more details" "$LINENO" 5; } 4075 fi 4076 fi 4077 fi 4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4079 $as_echo "$cross_compiling" >&6; } 4080 4081 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4082 ac_clean_files=$ac_clean_files_save 4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4084 $as_echo_n "checking for suffix of object files... " >&6; } 4085 if ${ac_cv_objext+:} false; then : 4086 $as_echo_n "(cached) " >&6 4087 else 4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4089 /* end confdefs.h. */ 4090 4091 int 4092 main () 4093 { 4094 4095 ; 4096 return 0; 4097 } 4098 _ACEOF 4099 rm -f conftest.o conftest.obj 4100 if { { ac_try="$ac_compile" 4101 case "(($ac_try" in 4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4103 *) ac_try_echo=$ac_try;; 4104 esac 4105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4106 $as_echo "$ac_try_echo"; } >&5 4107 (eval "$ac_compile") 2>&5 4108 ac_status=$? 4109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4110 test $ac_status = 0; }; then : 4111 for ac_file in conftest.o conftest.obj conftest.*; do 4112 test -f "$ac_file" || continue; 4113 case $ac_file in 4114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4115 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4116 break;; 4117 esac 4118 done 4119 else 4120 $as_echo "$as_me: failed program was:" >&5 4121 sed 's/^/| /' conftest.$ac_ext >&5 4122 4123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4125 as_fn_error $? "cannot compute suffix of object files: cannot compile 4126 See \`config.log' for more details" "$LINENO" 5; } 4127 fi 4128 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4129 fi 4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4131 $as_echo "$ac_cv_objext" >&6; } 4132 OBJEXT=$ac_cv_objext 4133 ac_objext=$OBJEXT 4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4135 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4136 if ${ac_cv_c_compiler_gnu+:} false; then : 4137 $as_echo_n "(cached) " >&6 4138 else 4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4140 /* end confdefs.h. */ 4141 4142 int 4143 main () 4144 { 4145 #ifndef __GNUC__ 4146 choke me 4147 #endif 4148 4149 ; 4150 return 0; 4151 } 4152 _ACEOF 4153 if ac_fn_c_try_compile "$LINENO"; then : 4154 ac_compiler_gnu=yes 4155 else 4156 ac_compiler_gnu=no 4157 fi 4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4159 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4160 4161 fi 4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4163 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 4164 if test $ac_compiler_gnu = yes; then 4165 GCC=yes 4166 else 4167 GCC= 4168 fi 4169 ac_test_CFLAGS=${CFLAGS+set} 4170 ac_save_CFLAGS=$CFLAGS 4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4172 $as_echo_n "checking whether $CC accepts -g... " >&6; } 4173 if ${ac_cv_prog_cc_g+:} false; then : 4174 $as_echo_n "(cached) " >&6 4175 else 4176 ac_save_c_werror_flag=$ac_c_werror_flag 4177 ac_c_werror_flag=yes 4178 ac_cv_prog_cc_g=no 4179 CFLAGS="-g" 4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4181 /* end confdefs.h. */ 4182 4183 int 4184 main () 4185 { 4186 4187 ; 4188 return 0; 4189 } 4190 _ACEOF 4191 if ac_fn_c_try_compile "$LINENO"; then : 4192 ac_cv_prog_cc_g=yes 4193 else 4194 CFLAGS="" 4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4196 /* end confdefs.h. */ 4197 4198 int 4199 main () 4200 { 4201 4202 ; 4203 return 0; 4204 } 4205 _ACEOF 4206 if ac_fn_c_try_compile "$LINENO"; then : 4207 4208 else 4209 ac_c_werror_flag=$ac_save_c_werror_flag 4210 CFLAGS="-g" 4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4212 /* end confdefs.h. */ 4213 4214 int 4215 main () 4216 { 4217 4218 ; 4219 return 0; 4220 } 4221 _ACEOF 4222 if ac_fn_c_try_compile "$LINENO"; then : 4223 ac_cv_prog_cc_g=yes 4224 fi 4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4226 fi 4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4228 fi 4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4230 ac_c_werror_flag=$ac_save_c_werror_flag 4231 fi 4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4233 $as_echo "$ac_cv_prog_cc_g" >&6; } 4234 if test "$ac_test_CFLAGS" = set; then 4235 CFLAGS=$ac_save_CFLAGS 4236 elif test $ac_cv_prog_cc_g = yes; then 4237 if test "$GCC" = yes; then 4238 CFLAGS="-g -O2" 4239 else 4240 CFLAGS="-g" 4241 fi 4242 else 4243 if test "$GCC" = yes; then 4244 CFLAGS="-O2" 4245 else 4246 CFLAGS= 4247 fi 4248 fi 4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4250 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4251 if ${ac_cv_prog_cc_c89+:} false; then : 4252 $as_echo_n "(cached) " >&6 4253 else 4254 ac_cv_prog_cc_c89=no 4255 ac_save_CC=$CC 4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4257 /* end confdefs.h. */ 4258 #include <stdarg.h> 4259 #include <stdio.h> 4260 struct stat; 4261 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4262 struct buf { int x; }; 4263 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4264 static char *e (p, i) 4265 char **p; 4266 int i; 4267 { 4268 return p[i]; 4269 } 4270 static char *f (char * (*g) (char **, int), char **p, ...) 4271 { 4272 char *s; 4273 va_list v; 4274 va_start (v,p); 4275 s = g (p, va_arg (v,int)); 4276 va_end (v); 4277 return s; 4278 } 4279 4280 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4281 function prototypes and stuff, but not '\xHH' hex character constants. 4282 These don't provoke an error unfortunately, instead are silently treated 4283 as 'x'. The following induces an error, until -std is added to get 4284 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4285 array size at least. It's necessary to write '\x00'==0 to get something 4286 that's true only with -std. */ 4287 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4288 4289 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4290 inside strings and character constants. */ 4291 #define FOO(x) 'x' 4292 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4293 4294 int test (int i, double x); 4295 struct s1 {int (*f) (int a);}; 4296 struct s2 {int (*f) (double a);}; 4297 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4298 int argc; 4299 char **argv; 4300 int 4301 main () 4302 { 4303 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4304 ; 4305 return 0; 4306 } 4307 _ACEOF 4308 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4309 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4310 do 4311 CC="$ac_save_CC $ac_arg" 4312 if ac_fn_c_try_compile "$LINENO"; then : 4313 ac_cv_prog_cc_c89=$ac_arg 4314 fi 4315 rm -f core conftest.err conftest.$ac_objext 4316 test "x$ac_cv_prog_cc_c89" != "xno" && break 4317 done 4318 rm -f conftest.$ac_ext 4319 CC=$ac_save_CC 4320 4321 fi 4322 # AC_CACHE_VAL 4323 case "x$ac_cv_prog_cc_c89" in 4324 x) 4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4326 $as_echo "none needed" >&6; } ;; 4327 xno) 4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4329 $as_echo "unsupported" >&6; } ;; 4330 *) 4331 CC="$CC $ac_cv_prog_cc_c89" 4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4333 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4334 esac 4335 if test "x$ac_cv_prog_cc_c89" != xno; then : 4336 4337 fi 4338 4339 ac_ext=c 4340 ac_cpp='$CPP $CPPFLAGS' 4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4343 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4344 4345 ac_ext=c 4346 ac_cpp='$CPP $CPPFLAGS' 4347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4349 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4351 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4352 if ${am_cv_prog_cc_c_o+:} false; then : 4353 $as_echo_n "(cached) " >&6 4354 else 4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4356 /* end confdefs.h. */ 4357 4358 int 4359 main () 4360 { 4361 4362 ; 4363 return 0; 4364 } 4365 _ACEOF 4366 # Make sure it works both with $CC and with simple cc. 4367 # Following AC_PROG_CC_C_O, we do the test twice because some 4368 # compilers refuse to overwrite an existing .o file with -o, 4369 # though they will create one. 4370 am_cv_prog_cc_c_o=yes 4371 for am_i in 1 2; do 4372 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4373 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4374 ac_status=$? 4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4376 (exit $ac_status); } \ 4377 && test -f conftest2.$ac_objext; then 4378 : OK 4379 else 4380 am_cv_prog_cc_c_o=no 4381 break 4382 fi 4383 done 4384 rm -f core conftest* 4385 unset am_i 4386 fi 4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4388 $as_echo "$am_cv_prog_cc_c_o" >&6; } 4389 if test "$am_cv_prog_cc_c_o" != yes; then 4390 # Losing compiler, so override with the script. 4391 # FIXME: It is wrong to rewrite CC. 4392 # But if we don't then we get into trouble of one sort or another. 4393 # A longer-term fix would be to have automake use am__CC in this case, 4394 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4395 CC="$am_aux_dir/compile $CC" 4396 fi 4397 ac_ext=c 4398 ac_cpp='$CPP $CPPFLAGS' 4399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4401 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4402 4403 DEPDIR="${am__leading_dot}deps" 4404 4405 ac_config_commands="$ac_config_commands depfiles" 4406 4407 4408 am_make=${MAKE-make} 4409 cat > confinc << 'END' 4410 am__doit: 4411 @echo this is the am__doit target 4412 .PHONY: am__doit 4413 END 4414 # If we don't find an include directive, just comment out the code. 4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4416 $as_echo_n "checking for style of include used by $am_make... " >&6; } 4417 am__include="#" 4418 am__quote= 4419 _am_result=none 4420 # First try GNU make style include. 4421 echo "include confinc" > confmf 4422 # Ignore all kinds of additional output from 'make'. 4423 case `$am_make -s -f confmf 2> /dev/null` in #( 4424 *the\ am__doit\ target*) 4425 am__include=include 4426 am__quote= 4427 _am_result=GNU 4428 ;; 4429 esac 4430 # Now try BSD make style include. 4431 if test "$am__include" = "#"; then 4432 echo '.include "confinc"' > confmf 4433 case `$am_make -s -f confmf 2> /dev/null` in #( 4434 *the\ am__doit\ target*) 4435 am__include=.include 4436 am__quote="\"" 4437 _am_result=BSD 4438 ;; 4439 esac 4440 fi 4441 4442 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4444 $as_echo "$_am_result" >&6; } 4445 rm -f confinc confmf 4446 4447 # Check whether --enable-dependency-tracking was given. 4448 if test "${enable_dependency_tracking+set}" = set; then : 4449 enableval=$enable_dependency_tracking; 4450 fi 4451 4452 if test "x$enable_dependency_tracking" != xno; then 4453 am_depcomp="$ac_aux_dir/depcomp" 4454 AMDEPBACKSLASH='\' 4455 am__nodep='_no' 4456 fi 4457 if test "x$enable_dependency_tracking" != xno; then 4458 AMDEP_TRUE= 4459 AMDEP_FALSE='#' 4460 else 4461 AMDEP_TRUE='#' 4462 AMDEP_FALSE= 4463 fi 4464 4465 4466 4467 depcc="$CC" am_compiler_list= 4468 4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4470 $as_echo_n "checking dependency style of $depcc... " >&6; } 4471 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4472 $as_echo_n "(cached) " >&6 4473 else 4474 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4475 # We make a subdir and do the tests there. Otherwise we can end up 4476 # making bogus files that we don't know about and never remove. For 4477 # instance it was reported that on HP-UX the gcc test will end up 4478 # making a dummy file named 'D' -- because '-MD' means "put the output 4479 # in D". 4480 rm -rf conftest.dir 4481 mkdir conftest.dir 4482 # Copy depcomp to subdir because otherwise we won't find it if we're 4483 # using a relative directory. 4484 cp "$am_depcomp" conftest.dir 4485 cd conftest.dir 4486 # We will build objects and dependencies in a subdirectory because 4487 # it helps to detect inapplicable dependency modes. For instance 4488 # both Tru64's cc and ICC support -MD to output dependencies as a 4489 # side effect of compilation, but ICC will put the dependencies in 4490 # the current directory while Tru64 will put them in the object 4491 # directory. 4492 mkdir sub 4493 4494 am_cv_CC_dependencies_compiler_type=none 4495 if test "$am_compiler_list" = ""; then 4496 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4497 fi 4498 am__universal=false 4499 case " $depcc " in #( 4500 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4501 esac 4502 4503 for depmode in $am_compiler_list; do 4504 # Setup a source with many dependencies, because some compilers 4505 # like to wrap large dependency lists on column 80 (with \), and 4506 # we should not choose a depcomp mode which is confused by this. 4507 # 4508 # We need to recreate these files for each test, as the compiler may 4509 # overwrite some of them when testing with obscure command lines. 4510 # This happens at least with the AIX C compiler. 4511 : > sub/conftest.c 4512 for i in 1 2 3 4 5 6; do 4513 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4514 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4515 # Solaris 10 /bin/sh. 4516 echo '/* dummy */' > sub/conftst$i.h 4517 done 4518 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4519 4520 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4521 # mode. It turns out that the SunPro C++ compiler does not properly 4522 # handle '-M -o', and we need to detect this. Also, some Intel 4523 # versions had trouble with output in subdirs. 4524 am__obj=sub/conftest.${OBJEXT-o} 4525 am__minus_obj="-o $am__obj" 4526 case $depmode in 4527 gcc) 4528 # This depmode causes a compiler race in universal mode. 4529 test "$am__universal" = false || continue 4530 ;; 4531 nosideeffect) 4532 # After this tag, mechanisms are not by side-effect, so they'll 4533 # only be used when explicitly requested. 4534 if test "x$enable_dependency_tracking" = xyes; then 4535 continue 4536 else 4537 break 4538 fi 4539 ;; 4540 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4541 # This compiler won't grok '-c -o', but also, the minuso test has 4542 # not run yet. These depmodes are late enough in the game, and 4543 # so weak that their functioning should not be impacted. 4544 am__obj=conftest.${OBJEXT-o} 4545 am__minus_obj= 4546 ;; 4547 none) break ;; 4548 esac 4549 if depmode=$depmode \ 4550 source=sub/conftest.c object=$am__obj \ 4551 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4552 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4553 >/dev/null 2>conftest.err && 4554 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4555 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4556 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4557 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4558 # icc doesn't choke on unknown options, it will just issue warnings 4559 # or remarks (even with -Werror). So we grep stderr for any message 4560 # that says an option was ignored or not supported. 4561 # When given -MP, icc 7.0 and 7.1 complain thusly: 4562 # icc: Command line warning: ignoring option '-M'; no argument required 4563 # The diagnosis changed in icc 8.0: 4564 # icc: Command line remark: option '-MP' not supported 4565 if (grep 'ignoring option' conftest.err || 4566 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4567 am_cv_CC_dependencies_compiler_type=$depmode 4568 break 4569 fi 4570 fi 4571 done 4572 4573 cd .. 4574 rm -rf conftest.dir 4575 else 4576 am_cv_CC_dependencies_compiler_type=none 4577 fi 4578 4579 fi 4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4581 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4582 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4583 4584 if 4585 test "x$enable_dependency_tracking" != xno \ 4586 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4587 am__fastdepCC_TRUE= 4588 am__fastdepCC_FALSE='#' 4589 else 4590 am__fastdepCC_TRUE='#' 4591 am__fastdepCC_FALSE= 4592 fi 4593 4594 4595 4596 ac_ext=c 4597 ac_cpp='$CPP $CPPFLAGS' 4598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4600 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4602 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4603 # On Suns, sometimes $CPP names a directory. 4604 if test -n "$CPP" && test -d "$CPP"; then 4605 CPP= 4606 fi 4607 if test -z "$CPP"; then 4608 if ${ac_cv_prog_CPP+:} false; then : 4609 $as_echo_n "(cached) " >&6 4610 else 4611 # Double quotes because CPP needs to be expanded 4612 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4613 do 4614 ac_preproc_ok=false 4615 for ac_c_preproc_warn_flag in '' yes 4616 do 4617 # Use a header file that comes with gcc, so configuring glibc 4618 # with a fresh cross-compiler works. 4619 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4620 # <limits.h> exists even on freestanding compilers. 4621 # On the NeXT, cc -E runs the code through the compiler's parser, 4622 # not just through cpp. "Syntax error" is here to catch this case. 4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4624 /* end confdefs.h. */ 4625 #ifdef __STDC__ 4626 # include <limits.h> 4627 #else 4628 # include <assert.h> 4629 #endif 4630 Syntax error 4631 _ACEOF 4632 if ac_fn_c_try_cpp "$LINENO"; then : 4633 4634 else 4635 # Broken: fails on valid input. 4636 continue 4637 fi 4638 rm -f conftest.err conftest.i conftest.$ac_ext 4639 4640 # OK, works on sane cases. Now check whether nonexistent headers 4641 # can be detected and how. 4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4643 /* end confdefs.h. */ 4644 #include <ac_nonexistent.h> 4645 _ACEOF 4646 if ac_fn_c_try_cpp "$LINENO"; then : 4647 # Broken: success on invalid input. 4648 continue 4649 else 4650 # Passes both tests. 4651 ac_preproc_ok=: 4652 break 4653 fi 4654 rm -f conftest.err conftest.i conftest.$ac_ext 4655 4656 done 4657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4658 rm -f conftest.i conftest.err conftest.$ac_ext 4659 if $ac_preproc_ok; then : 4660 break 4661 fi 4662 4663 done 4664 ac_cv_prog_CPP=$CPP 4665 4666 fi 4667 CPP=$ac_cv_prog_CPP 4668 else 4669 ac_cv_prog_CPP=$CPP 4670 fi 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4672 $as_echo "$CPP" >&6; } 4673 ac_preproc_ok=false 4674 for ac_c_preproc_warn_flag in '' yes 4675 do 4676 # Use a header file that comes with gcc, so configuring glibc 4677 # with a fresh cross-compiler works. 4678 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4679 # <limits.h> exists even on freestanding compilers. 4680 # On the NeXT, cc -E runs the code through the compiler's parser, 4681 # not just through cpp. "Syntax error" is here to catch this case. 4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4683 /* end confdefs.h. */ 4684 #ifdef __STDC__ 4685 # include <limits.h> 4686 #else 4687 # include <assert.h> 4688 #endif 4689 Syntax error 4690 _ACEOF 4691 if ac_fn_c_try_cpp "$LINENO"; then : 4692 4693 else 4694 # Broken: fails on valid input. 4695 continue 4696 fi 4697 rm -f conftest.err conftest.i conftest.$ac_ext 4698 4699 # OK, works on sane cases. Now check whether nonexistent headers 4700 # can be detected and how. 4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4702 /* end confdefs.h. */ 4703 #include <ac_nonexistent.h> 4704 _ACEOF 4705 if ac_fn_c_try_cpp "$LINENO"; then : 4706 # Broken: success on invalid input. 4707 continue 4708 else 4709 # Passes both tests. 4710 ac_preproc_ok=: 4711 break 4712 fi 4713 rm -f conftest.err conftest.i conftest.$ac_ext 4714 4715 done 4716 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4717 rm -f conftest.i conftest.err conftest.$ac_ext 4718 if $ac_preproc_ok; then : 4719 4720 else 4721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4723 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4724 See \`config.log' for more details" "$LINENO" 5; } 4725 fi 4726 4727 ac_ext=c 4728 ac_cpp='$CPP $CPPFLAGS' 4729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4731 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4732 4733 4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4735 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4736 if ${ac_cv_path_GREP+:} false; then : 4737 $as_echo_n "(cached) " >&6 4738 else 4739 if test -z "$GREP"; then 4740 ac_path_GREP_found=false 4741 # Loop through the user's path and test for each of PROGNAME-LIST 4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4743 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4744 do 4745 IFS=$as_save_IFS 4746 test -z "$as_dir" && as_dir=. 4747 for ac_prog in grep ggrep; do 4748 for ac_exec_ext in '' $ac_executable_extensions; do 4749 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4750 as_fn_executable_p "$ac_path_GREP" || continue 4751 # Check for GNU ac_path_GREP and select it if it is found. 4752 # Check for GNU $ac_path_GREP 4753 case `"$ac_path_GREP" --version 2>&1` in 4754 *GNU*) 4755 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4756 *) 4757 ac_count=0 4758 $as_echo_n 0123456789 >"conftest.in" 4759 while : 4760 do 4761 cat "conftest.in" "conftest.in" >"conftest.tmp" 4762 mv "conftest.tmp" "conftest.in" 4763 cp "conftest.in" "conftest.nl" 4764 $as_echo 'GREP' >> "conftest.nl" 4765 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4767 as_fn_arith $ac_count + 1 && ac_count=$as_val 4768 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4769 # Best one so far, save it but keep looking for a better one 4770 ac_cv_path_GREP="$ac_path_GREP" 4771 ac_path_GREP_max=$ac_count 4772 fi 4773 # 10*(2^10) chars as input seems more than enough 4774 test $ac_count -gt 10 && break 4775 done 4776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4777 esac 4778 4779 $ac_path_GREP_found && break 3 4780 done 4781 done 4782 done 4783 IFS=$as_save_IFS 4784 if test -z "$ac_cv_path_GREP"; then 4785 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4786 fi 4787 else 4788 ac_cv_path_GREP=$GREP 4789 fi 4790 4791 fi 4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4793 $as_echo "$ac_cv_path_GREP" >&6; } 4794 GREP="$ac_cv_path_GREP" 4795 4796 4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4798 $as_echo_n "checking for egrep... " >&6; } 4799 if ${ac_cv_path_EGREP+:} false; then : 4800 $as_echo_n "(cached) " >&6 4801 else 4802 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4803 then ac_cv_path_EGREP="$GREP -E" 4804 else 4805 if test -z "$EGREP"; then 4806 ac_path_EGREP_found=false 4807 # Loop through the user's path and test for each of PROGNAME-LIST 4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4809 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4810 do 4811 IFS=$as_save_IFS 4812 test -z "$as_dir" && as_dir=. 4813 for ac_prog in egrep; do 4814 for ac_exec_ext in '' $ac_executable_extensions; do 4815 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4816 as_fn_executable_p "$ac_path_EGREP" || continue 4817 # Check for GNU ac_path_EGREP and select it if it is found. 4818 # Check for GNU $ac_path_EGREP 4819 case `"$ac_path_EGREP" --version 2>&1` in 4820 *GNU*) 4821 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4822 *) 4823 ac_count=0 4824 $as_echo_n 0123456789 >"conftest.in" 4825 while : 4826 do 4827 cat "conftest.in" "conftest.in" >"conftest.tmp" 4828 mv "conftest.tmp" "conftest.in" 4829 cp "conftest.in" "conftest.nl" 4830 $as_echo 'EGREP' >> "conftest.nl" 4831 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4832 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4833 as_fn_arith $ac_count + 1 && ac_count=$as_val 4834 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4835 # Best one so far, save it but keep looking for a better one 4836 ac_cv_path_EGREP="$ac_path_EGREP" 4837 ac_path_EGREP_max=$ac_count 4838 fi 4839 # 10*(2^10) chars as input seems more than enough 4840 test $ac_count -gt 10 && break 4841 done 4842 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4843 esac 4844 4845 $ac_path_EGREP_found && break 3 4846 done 4847 done 4848 done 4849 IFS=$as_save_IFS 4850 if test -z "$ac_cv_path_EGREP"; then 4851 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4852 fi 4853 else 4854 ac_cv_path_EGREP=$EGREP 4855 fi 4856 4857 fi 4858 fi 4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4860 $as_echo "$ac_cv_path_EGREP" >&6; } 4861 EGREP="$ac_cv_path_EGREP" 4862 4863 4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4865 $as_echo_n "checking for ANSI C header files... " >&6; } 4866 if ${ac_cv_header_stdc+:} false; then : 4867 $as_echo_n "(cached) " >&6 4868 else 4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4870 /* end confdefs.h. */ 4871 #include <stdlib.h> 4872 #include <stdarg.h> 4873 #include <string.h> 4874 #include <float.h> 4875 4876 int 4877 main () 4878 { 4879 4880 ; 4881 return 0; 4882 } 4883 _ACEOF 4884 if ac_fn_c_try_compile "$LINENO"; then : 4885 ac_cv_header_stdc=yes 4886 else 4887 ac_cv_header_stdc=no 4888 fi 4889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4890 4891 if test $ac_cv_header_stdc = yes; then 4892 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4894 /* end confdefs.h. */ 4895 #include <string.h> 4896 4897 _ACEOF 4898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4899 $EGREP "memchr" >/dev/null 2>&1; then : 4900 4901 else 4902 ac_cv_header_stdc=no 4903 fi 4904 rm -f conftest* 4905 4906 fi 4907 4908 if test $ac_cv_header_stdc = yes; then 4909 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4911 /* end confdefs.h. */ 4912 #include <stdlib.h> 4913 4914 _ACEOF 4915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4916 $EGREP "free" >/dev/null 2>&1; then : 4917 4918 else 4919 ac_cv_header_stdc=no 4920 fi 4921 rm -f conftest* 4922 4923 fi 4924 4925 if test $ac_cv_header_stdc = yes; then 4926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4927 if test "$cross_compiling" = yes; then : 4928 : 4929 else 4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4931 /* end confdefs.h. */ 4932 #include <ctype.h> 4933 #include <stdlib.h> 4934 #if ((' ' & 0x0FF) == 0x020) 4935 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4936 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4937 #else 4938 # define ISLOWER(c) \ 4939 (('a' <= (c) && (c) <= 'i') \ 4940 || ('j' <= (c) && (c) <= 'r') \ 4941 || ('s' <= (c) && (c) <= 'z')) 4942 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4943 #endif 4944 4945 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4946 int 4947 main () 4948 { 4949 int i; 4950 for (i = 0; i < 256; i++) 4951 if (XOR (islower (i), ISLOWER (i)) 4952 || toupper (i) != TOUPPER (i)) 4953 return 2; 4954 return 0; 4955 } 4956 _ACEOF 4957 if ac_fn_c_try_run "$LINENO"; then : 4958 4959 else 4960 ac_cv_header_stdc=no 4961 fi 4962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4963 conftest.$ac_objext conftest.beam conftest.$ac_ext 4964 fi 4965 4966 fi 4967 fi 4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4969 $as_echo "$ac_cv_header_stdc" >&6; } 4970 if test $ac_cv_header_stdc = yes; then 4971 4972 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4973 4974 fi 4975 4976 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4977 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4978 inttypes.h stdint.h unistd.h 4979 do : 4980 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4981 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4982 " 4983 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4984 cat >>confdefs.h <<_ACEOF 4985 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4986 _ACEOF 4987 4988 fi 4989 4990 done 4991 4992 4993 4994 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4995 if test "x$ac_cv_header_minix_config_h" = xyes; then : 4996 MINIX=yes 4997 else 4998 MINIX= 4999 fi 5000 5001 5002 if test "$MINIX" = yes; then 5003 5004 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5005 5006 5007 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5008 5009 5010 $as_echo "#define _MINIX 1" >>confdefs.h 5011 5012 fi 5013 5014 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5016 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5017 if ${ac_cv_safe_to_define___extensions__+:} false; then : 5018 $as_echo_n "(cached) " >&6 5019 else 5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5021 /* end confdefs.h. */ 5022 5023 # define __EXTENSIONS__ 1 5024 $ac_includes_default 5025 int 5026 main () 5027 { 5028 5029 ; 5030 return 0; 5031 } 5032 _ACEOF 5033 if ac_fn_c_try_compile "$LINENO"; then : 5034 ac_cv_safe_to_define___extensions__=yes 5035 else 5036 ac_cv_safe_to_define___extensions__=no 5037 fi 5038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5039 fi 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5041 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5042 test $ac_cv_safe_to_define___extensions__ = yes && 5043 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5044 5045 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5046 5047 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5048 5049 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5050 5051 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5052 5053 5054 5055 case `pwd` in 5056 *\ * | *\ *) 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5058 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5059 esac 5060 5061 5062 5063 macro_version='2.2.7a' 5064 macro_revision='1.3134' 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 ltmain="$ac_aux_dir/ltmain.sh" 5079 5080 # Backslashify metacharacters that are still active within 5081 # double-quoted strings. 5082 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5083 5084 # Same as above, but do not quote variable references. 5085 double_quote_subst='s/\(["`\\]\)/\\\1/g' 5086 5087 # Sed substitution to delay expansion of an escaped shell variable in a 5088 # double_quote_subst'ed string. 5089 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5090 5091 # Sed substitution to delay expansion of an escaped single quote. 5092 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5093 5094 # Sed substitution to avoid accidental globbing in evaled expressions 5095 no_glob_subst='s/\*/\\\*/g' 5096 5097 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5098 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5099 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5100 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5102 $as_echo_n "checking how to print strings... " >&6; } 5103 # Test print first, because it will be a builtin if present. 5104 if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 5105 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5106 ECHO='print -r --' 5107 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5108 ECHO='printf %s\n' 5109 else 5110 # Use this function as a fallback that always works. 5111 func_fallback_echo () 5112 { 5113 eval 'cat <<_LTECHO_EOF 5114 $1 5115 _LTECHO_EOF' 5116 } 5117 ECHO='func_fallback_echo' 5118 fi 5119 5120 # func_echo_all arg... 5121 # Invoke $ECHO with all args, space-separated. 5122 func_echo_all () 5123 { 5124 $ECHO "" 5125 } 5126 5127 case "$ECHO" in 5128 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5129 $as_echo "printf" >&6; } ;; 5130 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5131 $as_echo "print -r" >&6; } ;; 5132 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5133 $as_echo "cat" >&6; } ;; 5134 esac 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5150 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 5151 if ${ac_cv_path_SED+:} false; then : 5152 $as_echo_n "(cached) " >&6 5153 else 5154 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5155 for ac_i in 1 2 3 4 5 6 7; do 5156 ac_script="$ac_script$as_nl$ac_script" 5157 done 5158 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5159 { ac_script=; unset ac_script;} 5160 if test -z "$SED"; then 5161 ac_path_SED_found=false 5162 # Loop through the user's path and test for each of PROGNAME-LIST 5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5164 for as_dir in $PATH 5165 do 5166 IFS=$as_save_IFS 5167 test -z "$as_dir" && as_dir=. 5168 for ac_prog in sed gsed; do 5169 for ac_exec_ext in '' $ac_executable_extensions; do 5170 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5171 as_fn_executable_p "$ac_path_SED" || continue 5172 # Check for GNU ac_path_SED and select it if it is found. 5173 # Check for GNU $ac_path_SED 5174 case `"$ac_path_SED" --version 2>&1` in 5175 *GNU*) 5176 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5177 *) 5178 ac_count=0 5179 $as_echo_n 0123456789 >"conftest.in" 5180 while : 5181 do 5182 cat "conftest.in" "conftest.in" >"conftest.tmp" 5183 mv "conftest.tmp" "conftest.in" 5184 cp "conftest.in" "conftest.nl" 5185 $as_echo '' >> "conftest.nl" 5186 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5188 as_fn_arith $ac_count + 1 && ac_count=$as_val 5189 if test $ac_count -gt ${ac_path_SED_max-0}; then 5190 # Best one so far, save it but keep looking for a better one 5191 ac_cv_path_SED="$ac_path_SED" 5192 ac_path_SED_max=$ac_count 5193 fi 5194 # 10*(2^10) chars as input seems more than enough 5195 test $ac_count -gt 10 && break 5196 done 5197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5198 esac 5199 5200 $ac_path_SED_found && break 3 5201 done 5202 done 5203 done 5204 IFS=$as_save_IFS 5205 if test -z "$ac_cv_path_SED"; then 5206 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5207 fi 5208 else 5209 ac_cv_path_SED=$SED 5210 fi 5211 5212 fi 5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5214 $as_echo "$ac_cv_path_SED" >&6; } 5215 SED="$ac_cv_path_SED" 5216 rm -f conftest.sed 5217 5218 test -z "$SED" && SED=sed 5219 Xsed="$SED -e 1s/^X//" 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5232 $as_echo_n "checking for fgrep... " >&6; } 5233 if ${ac_cv_path_FGREP+:} false; then : 5234 $as_echo_n "(cached) " >&6 5235 else 5236 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5237 then ac_cv_path_FGREP="$GREP -F" 5238 else 5239 if test -z "$FGREP"; then 5240 ac_path_FGREP_found=false 5241 # Loop through the user's path and test for each of PROGNAME-LIST 5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5244 do 5245 IFS=$as_save_IFS 5246 test -z "$as_dir" && as_dir=. 5247 for ac_prog in fgrep; do 5248 for ac_exec_ext in '' $ac_executable_extensions; do 5249 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5250 as_fn_executable_p "$ac_path_FGREP" || continue 5251 # Check for GNU ac_path_FGREP and select it if it is found. 5252 # Check for GNU $ac_path_FGREP 5253 case `"$ac_path_FGREP" --version 2>&1` in 5254 *GNU*) 5255 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5256 *) 5257 ac_count=0 5258 $as_echo_n 0123456789 >"conftest.in" 5259 while : 5260 do 5261 cat "conftest.in" "conftest.in" >"conftest.tmp" 5262 mv "conftest.tmp" "conftest.in" 5263 cp "conftest.in" "conftest.nl" 5264 $as_echo 'FGREP' >> "conftest.nl" 5265 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5267 as_fn_arith $ac_count + 1 && ac_count=$as_val 5268 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5269 # Best one so far, save it but keep looking for a better one 5270 ac_cv_path_FGREP="$ac_path_FGREP" 5271 ac_path_FGREP_max=$ac_count 5272 fi 5273 # 10*(2^10) chars as input seems more than enough 5274 test $ac_count -gt 10 && break 5275 done 5276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5277 esac 5278 5279 $ac_path_FGREP_found && break 3 5280 done 5281 done 5282 done 5283 IFS=$as_save_IFS 5284 if test -z "$ac_cv_path_FGREP"; then 5285 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5286 fi 5287 else 5288 ac_cv_path_FGREP=$FGREP 5289 fi 5290 5291 fi 5292 fi 5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5294 $as_echo "$ac_cv_path_FGREP" >&6; } 5295 FGREP="$ac_cv_path_FGREP" 5296 5297 5298 test -z "$GREP" && GREP=grep 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 # Check whether --with-gnu-ld was given. 5319 if test "${with_gnu_ld+set}" = set; then : 5320 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5321 else 5322 with_gnu_ld=no 5323 fi 5324 5325 ac_prog=ld 5326 if test "$GCC" = yes; then 5327 # Check if gcc -print-prog-name=ld gives a path. 5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5329 $as_echo_n "checking for ld used by $CC... " >&6; } 5330 case $host in 5331 *-*-mingw*) 5332 # gcc leaves a trailing carriage return which upsets mingw 5333 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5334 *) 5335 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5336 esac 5337 case $ac_prog in 5338 # Accept absolute paths. 5339 [\\/]* | ?:[\\/]*) 5340 re_direlt='/[^/][^/]*/\.\./' 5341 # Canonicalize the pathname of ld 5342 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5343 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5344 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5345 done 5346 test -z "$LD" && LD="$ac_prog" 5347 ;; 5348 "") 5349 # If it fails, then pretend we aren't using GCC. 5350 ac_prog=ld 5351 ;; 5352 *) 5353 # If it is relative, then search for the first ld in PATH. 5354 with_gnu_ld=unknown 5355 ;; 5356 esac 5357 elif test "$with_gnu_ld" = yes; then 5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5359 $as_echo_n "checking for GNU ld... " >&6; } 5360 else 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5362 $as_echo_n "checking for non-GNU ld... " >&6; } 5363 fi 5364 if ${lt_cv_path_LD+:} false; then : 5365 $as_echo_n "(cached) " >&6 5366 else 5367 if test -z "$LD"; then 5368 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5369 for ac_dir in $PATH; do 5370 IFS="$lt_save_ifs" 5371 test -z "$ac_dir" && ac_dir=. 5372 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5373 lt_cv_path_LD="$ac_dir/$ac_prog" 5374 # Check to see if the program is GNU ld. I'd rather use --version, 5375 # but apparently some variants of GNU ld only accept -v. 5376 # Break only if it was the GNU/non-GNU ld that we prefer. 5377 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5378 *GNU* | *'with BFD'*) 5379 test "$with_gnu_ld" != no && break 5380 ;; 5381 *) 5382 test "$with_gnu_ld" != yes && break 5383 ;; 5384 esac 5385 fi 5386 done 5387 IFS="$lt_save_ifs" 5388 else 5389 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5390 fi 5391 fi 5392 5393 LD="$lt_cv_path_LD" 5394 if test -n "$LD"; then 5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5396 $as_echo "$LD" >&6; } 5397 else 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5399 $as_echo "no" >&6; } 5400 fi 5401 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5403 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5404 if ${lt_cv_prog_gnu_ld+:} false; then : 5405 $as_echo_n "(cached) " >&6 5406 else 5407 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5408 case `$LD -v 2>&1 </dev/null` in 5409 *GNU* | *'with BFD'*) 5410 lt_cv_prog_gnu_ld=yes 5411 ;; 5412 *) 5413 lt_cv_prog_gnu_ld=no 5414 ;; 5415 esac 5416 fi 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5418 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 5419 with_gnu_ld=$lt_cv_prog_gnu_ld 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5430 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5431 if ${lt_cv_path_NM+:} false; then : 5432 $as_echo_n "(cached) " >&6 5433 else 5434 if test -n "$NM"; then 5435 # Let the user override the nm to test. 5436 lt_nm_to_check="$NM" 5437 else 5438 lt_nm_to_check="${ac_tool_prefix}nm" 5439 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5440 lt_nm_to_check="$lt_nm_to_check nm" 5441 fi 5442 fi 5443 for lt_tmp_nm in "$lt_nm_to_check"; do 5444 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5445 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5446 IFS="$lt_save_ifs" 5447 test -z "$ac_dir" && ac_dir=. 5448 # Strip out any user-provided options from the nm to test twice, 5449 # the first time to test to see if nm (rather than its options) has 5450 # an explicit path, the second time to yield a file which can be 5451 # nm'ed itself. 5452 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" 5453 case "$tmp_nm_path" in 5454 */*|*\\*) tmp_nm="$lt_tmp_nm";; 5455 *) tmp_nm="$ac_dir/$lt_tmp_nm";; 5456 esac 5457 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" 5458 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then 5459 # Check to see if the nm accepts a BSD-compat flag. 5460 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5461 # nm: unknown option "B" ignored 5462 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 5463 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" 5464 break 5465 ;; 5466 *) 5467 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 5468 *$tmp_nm*) 5469 lt_cv_path_NM="$tmp_nm -p" 5470 break 5471 ;; 5472 *) 5473 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5474 continue # so that we can try to find one that supports BSD flags 5475 ;; 5476 esac 5477 ;; 5478 esac 5479 fi 5480 done 5481 IFS="$lt_save_ifs" 5482 done 5483 : ${lt_cv_path_NM=no} 5484 fi 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5486 $as_echo "$lt_cv_path_NM" >&6; } 5487 if test "$lt_cv_path_NM" != "no"; then 5488 NM="$lt_cv_path_NM" 5489 else 5490 # Didn't find any BSD compatible name lister, look for dumpbin. 5491 if test -n "$DUMPBIN"; then : 5492 # Let the user override the test. 5493 else 5494 if test -n "$ac_tool_prefix"; then 5495 for ac_prog in dumpbin "link -dump" 5496 do 5497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5498 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5500 $as_echo_n "checking for $ac_word... " >&6; } 5501 if ${ac_cv_prog_DUMPBIN+:} false; then : 5502 $as_echo_n "(cached) " >&6 5503 else 5504 if test -n "$DUMPBIN"; then 5505 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5506 else 5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5508 for as_dir in $PATH 5509 do 5510 IFS=$as_save_IFS 5511 test -z "$as_dir" && as_dir=. 5512 for ac_exec_ext in '' $ac_executable_extensions; do 5513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5514 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5516 break 2 5517 fi 5518 done 5519 done 5520 IFS=$as_save_IFS 5521 5522 fi 5523 fi 5524 DUMPBIN=$ac_cv_prog_DUMPBIN 5525 if test -n "$DUMPBIN"; then 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5527 $as_echo "$DUMPBIN" >&6; } 5528 else 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5530 $as_echo "no" >&6; } 5531 fi 5532 5533 5534 test -n "$DUMPBIN" && break 5535 done 5536 fi 5537 if test -z "$DUMPBIN"; then 5538 ac_ct_DUMPBIN=$DUMPBIN 5539 for ac_prog in dumpbin "link -dump" 5540 do 5541 # Extract the first word of "$ac_prog", so it can be a program name with args. 5542 set dummy $ac_prog; ac_word=$2 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5544 $as_echo_n "checking for $ac_word... " >&6; } 5545 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5546 $as_echo_n "(cached) " >&6 5547 else 5548 if test -n "$ac_ct_DUMPBIN"; then 5549 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5550 else 5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5552 for as_dir in $PATH 5553 do 5554 IFS=$as_save_IFS 5555 test -z "$as_dir" && as_dir=. 5556 for ac_exec_ext in '' $ac_executable_extensions; do 5557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5558 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5560 break 2 5561 fi 5562 done 5563 done 5564 IFS=$as_save_IFS 5565 5566 fi 5567 fi 5568 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5569 if test -n "$ac_ct_DUMPBIN"; then 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5571 $as_echo "$ac_ct_DUMPBIN" >&6; } 5572 else 5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5574 $as_echo "no" >&6; } 5575 fi 5576 5577 5578 test -n "$ac_ct_DUMPBIN" && break 5579 done 5580 5581 if test "x$ac_ct_DUMPBIN" = x; then 5582 DUMPBIN=":" 5583 else 5584 case $cross_compiling:$ac_tool_warned in 5585 yes:) 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5588 ac_tool_warned=yes ;; 5589 esac 5590 DUMPBIN=$ac_ct_DUMPBIN 5591 fi 5592 fi 5593 5594 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5595 *COFF*) 5596 DUMPBIN="$DUMPBIN -symbols" 5597 ;; 5598 *) 5599 DUMPBIN=: 5600 ;; 5601 esac 5602 fi 5603 5604 if test "$DUMPBIN" != ":"; then 5605 NM="$DUMPBIN" 5606 fi 5607 fi 5608 test -z "$NM" && NM=nm 5609 5610 5611 5612 5613 5614 5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5616 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 5617 if ${lt_cv_nm_interface+:} false; then : 5618 $as_echo_n "(cached) " >&6 5619 else 5620 lt_cv_nm_interface="BSD nm" 5621 echo "int some_variable = 0;" > conftest.$ac_ext 5622 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5623 (eval "$ac_compile" 2>conftest.err) 5624 cat conftest.err >&5 5625 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5626 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5627 cat conftest.err >&5 5628 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5629 cat conftest.out >&5 5630 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5631 lt_cv_nm_interface="MS dumpbin" 5632 fi 5633 rm -f conftest* 5634 fi 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5636 $as_echo "$lt_cv_nm_interface" >&6; } 5637 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5639 $as_echo_n "checking whether ln -s works... " >&6; } 5640 LN_S=$as_ln_s 5641 if test "$LN_S" = "ln -s"; then 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5643 $as_echo "yes" >&6; } 5644 else 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5646 $as_echo "no, using $LN_S" >&6; } 5647 fi 5648 5649 # find the maximum length of command line arguments 5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5651 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 5652 if ${lt_cv_sys_max_cmd_len+:} false; then : 5653 $as_echo_n "(cached) " >&6 5654 else 5655 i=0 5656 teststring="ABCD" 5657 5658 case $build_os in 5659 msdosdjgpp*) 5660 # On DJGPP, this test can blow up pretty badly due to problems in libc 5661 # (any single argument exceeding 2000 bytes causes a buffer overrun 5662 # during glob expansion). Even if it were fixed, the result of this 5663 # check would be larger than it should be. 5664 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5665 ;; 5666 5667 gnu*) 5668 # Under GNU Hurd, this test is not required because there is 5669 # no limit to the length of command line arguments. 5670 # Libtool will interpret -1 as no limit whatsoever 5671 lt_cv_sys_max_cmd_len=-1; 5672 ;; 5673 5674 cygwin* | mingw* | cegcc*) 5675 # On Win9x/ME, this test blows up -- it succeeds, but takes 5676 # about 5 minutes as the teststring grows exponentially. 5677 # Worse, since 9x/ME are not pre-emptively multitasking, 5678 # you end up with a "frozen" computer, even though with patience 5679 # the test eventually succeeds (with a max line length of 256k). 5680 # Instead, let's just punt: use the minimum linelength reported by 5681 # all of the supported platforms: 8192 (on NT/2K/XP). 5682 lt_cv_sys_max_cmd_len=8192; 5683 ;; 5684 5685 mint*) 5686 # On MiNT this can take a long time and run out of memory. 5687 lt_cv_sys_max_cmd_len=8192; 5688 ;; 5689 5690 amigaos*) 5691 # On AmigaOS with pdksh, this test takes hours, literally. 5692 # So we just punt and use a minimum line length of 8192. 5693 lt_cv_sys_max_cmd_len=8192; 5694 ;; 5695 5696 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5697 # This has been around since 386BSD, at least. Likely further. 5698 if test -x /sbin/sysctl; then 5699 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5700 elif test -x /usr/sbin/sysctl; then 5701 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5702 else 5703 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5704 fi 5705 # And add a safety zone 5706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5707 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5708 ;; 5709 5710 interix*) 5711 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5712 lt_cv_sys_max_cmd_len=196608 5713 ;; 5714 5715 osf*) 5716 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5717 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5718 # nice to cause kernel panics so lets avoid the loop below. 5719 # First set a reasonable default. 5720 lt_cv_sys_max_cmd_len=16384 5721 # 5722 if test -x /sbin/sysconfig; then 5723 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5724 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5725 esac 5726 fi 5727 ;; 5728 sco3.2v5*) 5729 lt_cv_sys_max_cmd_len=102400 5730 ;; 5731 sysv5* | sco5v6* | sysv4.2uw2*) 5732 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5733 if test -n "$kargmax"; then 5734 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5735 else 5736 lt_cv_sys_max_cmd_len=32768 5737 fi 5738 ;; 5739 *) 5740 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5741 if test -n "$lt_cv_sys_max_cmd_len"; then 5742 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5743 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5744 else 5745 # Make teststring a little bigger before we do anything with it. 5746 # a 1K string should be a reasonable start. 5747 for i in 1 2 3 4 5 6 7 8 ; do 5748 teststring=$teststring$teststring 5749 done 5750 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5751 # If test is not a shell built-in, we'll probably end up computing a 5752 # maximum length that is only half of the actual maximum length, but 5753 # we can't tell. 5754 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5755 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5756 test $i != 17 # 1/2 MB should be enough 5757 do 5758 i=`expr $i + 1` 5759 teststring=$teststring$teststring 5760 done 5761 # Only check the string length outside the loop. 5762 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5763 teststring= 5764 # Add a significant safety factor because C++ compilers can tack on 5765 # massive amounts of additional arguments before passing them to the 5766 # linker. It appears as though 1/2 is a usable value. 5767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5768 fi 5769 ;; 5770 esac 5771 5772 fi 5773 5774 if test -n $lt_cv_sys_max_cmd_len ; then 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5776 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5777 else 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5779 $as_echo "none" >&6; } 5780 fi 5781 max_cmd_len=$lt_cv_sys_max_cmd_len 5782 5783 5784 5785 5786 5787 5788 : ${CP="cp -f"} 5789 : ${MV="mv -f"} 5790 : ${RM="rm -f"} 5791 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5793 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5794 # Try some XSI features 5795 xsi_shell=no 5796 ( _lt_dummy="a/b/c" 5797 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5798 = c,a/b,, \ 5799 && eval 'test $(( 1 + 1 )) -eq 2 \ 5800 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5801 && xsi_shell=yes 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5803 $as_echo "$xsi_shell" >&6; } 5804 5805 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5807 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5808 lt_shell_append=no 5809 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5810 >/dev/null 2>&1 \ 5811 && lt_shell_append=yes 5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5813 $as_echo "$lt_shell_append" >&6; } 5814 5815 5816 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5817 lt_unset=unset 5818 else 5819 lt_unset=false 5820 fi 5821 5822 5823 5824 5825 5826 # test EBCDIC or ASCII 5827 case `echo X|tr X '\101'` in 5828 A) # ASCII based system 5829 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5830 lt_SP2NL='tr \040 \012' 5831 lt_NL2SP='tr \015\012 \040\040' 5832 ;; 5833 *) # EBCDIC based system 5834 lt_SP2NL='tr \100 \n' 5835 lt_NL2SP='tr \r\n \100\100' 5836 ;; 5837 esac 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5848 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5849 if ${lt_cv_ld_reload_flag+:} false; then : 5850 $as_echo_n "(cached) " >&6 5851 else 5852 lt_cv_ld_reload_flag='-r' 5853 fi 5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5855 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5856 reload_flag=$lt_cv_ld_reload_flag 5857 case $reload_flag in 5858 "" | " "*) ;; 5859 *) reload_flag=" $reload_flag" ;; 5860 esac 5861 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5862 case $host_os in 5863 darwin*) 5864 if test "$GCC" = yes; then 5865 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5866 else 5867 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5868 fi 5869 ;; 5870 esac 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 if test -n "$ac_tool_prefix"; then 5881 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5882 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5884 $as_echo_n "checking for $ac_word... " >&6; } 5885 if ${ac_cv_prog_OBJDUMP+:} false; then : 5886 $as_echo_n "(cached) " >&6 5887 else 5888 if test -n "$OBJDUMP"; then 5889 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5890 else 5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5892 for as_dir in $PATH 5893 do 5894 IFS=$as_save_IFS 5895 test -z "$as_dir" && as_dir=. 5896 for ac_exec_ext in '' $ac_executable_extensions; do 5897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5898 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5900 break 2 5901 fi 5902 done 5903 done 5904 IFS=$as_save_IFS 5905 5906 fi 5907 fi 5908 OBJDUMP=$ac_cv_prog_OBJDUMP 5909 if test -n "$OBJDUMP"; then 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5911 $as_echo "$OBJDUMP" >&6; } 5912 else 5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5914 $as_echo "no" >&6; } 5915 fi 5916 5917 5918 fi 5919 if test -z "$ac_cv_prog_OBJDUMP"; then 5920 ac_ct_OBJDUMP=$OBJDUMP 5921 # Extract the first word of "objdump", so it can be a program name with args. 5922 set dummy objdump; ac_word=$2 5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5924 $as_echo_n "checking for $ac_word... " >&6; } 5925 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5926 $as_echo_n "(cached) " >&6 5927 else 5928 if test -n "$ac_ct_OBJDUMP"; then 5929 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5930 else 5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5932 for as_dir in $PATH 5933 do 5934 IFS=$as_save_IFS 5935 test -z "$as_dir" && as_dir=. 5936 for ac_exec_ext in '' $ac_executable_extensions; do 5937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5938 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5940 break 2 5941 fi 5942 done 5943 done 5944 IFS=$as_save_IFS 5945 5946 fi 5947 fi 5948 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5949 if test -n "$ac_ct_OBJDUMP"; then 5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5951 $as_echo "$ac_ct_OBJDUMP" >&6; } 5952 else 5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5954 $as_echo "no" >&6; } 5955 fi 5956 5957 if test "x$ac_ct_OBJDUMP" = x; then 5958 OBJDUMP="false" 5959 else 5960 case $cross_compiling:$ac_tool_warned in 5961 yes:) 5962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5964 ac_tool_warned=yes ;; 5965 esac 5966 OBJDUMP=$ac_ct_OBJDUMP 5967 fi 5968 else 5969 OBJDUMP="$ac_cv_prog_OBJDUMP" 5970 fi 5971 5972 test -z "$OBJDUMP" && OBJDUMP=objdump 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5983 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5984 if ${lt_cv_deplibs_check_method+:} false; then : 5985 $as_echo_n "(cached) " >&6 5986 else 5987 lt_cv_file_magic_cmd='$MAGIC_CMD' 5988 lt_cv_file_magic_test_file= 5989 lt_cv_deplibs_check_method='unknown' 5990 # Need to set the preceding variable on all platforms that support 5991 # interlibrary dependencies. 5992 # 'none' -- dependencies not supported. 5993 # `unknown' -- same as none, but documents that we really don't know. 5994 # 'pass_all' -- all dependencies passed with no checks. 5995 # 'test_compile' -- check by making test program. 5996 # 'file_magic [[regex]]' -- check by looking for files in library path 5997 # which responds to the $file_magic_cmd with a given extended regex. 5998 # If you have `file' or equivalent on your system and you're not sure 5999 # whether `pass_all' will *always* work, you probably want this one. 6000 6001 case $host_os in 6002 aix[4-9]*) 6003 lt_cv_deplibs_check_method=pass_all 6004 ;; 6005 6006 beos*) 6007 lt_cv_deplibs_check_method=pass_all 6008 ;; 6009 6010 bsdi[45]*) 6011 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6012 lt_cv_file_magic_cmd='/usr/bin/file -L' 6013 lt_cv_file_magic_test_file=/shlib/libc.so 6014 ;; 6015 6016 cygwin*) 6017 # func_win32_libid is a shell function defined in ltmain.sh 6018 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6019 lt_cv_file_magic_cmd='func_win32_libid' 6020 ;; 6021 6022 mingw* | pw32*) 6023 # Base MSYS/MinGW do not provide the 'file' command needed by 6024 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6025 # unless we find 'file', for example because we are cross-compiling. 6026 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6027 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6028 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6029 lt_cv_file_magic_cmd='func_win32_libid' 6030 else 6031 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6032 lt_cv_file_magic_cmd='$OBJDUMP -f' 6033 fi 6034 ;; 6035 6036 cegcc*) 6037 # use the weaker test based on 'objdump'. See mingw*. 6038 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6039 lt_cv_file_magic_cmd='$OBJDUMP -f' 6040 ;; 6041 6042 darwin* | rhapsody*) 6043 lt_cv_deplibs_check_method=pass_all 6044 ;; 6045 6046 freebsd* | dragonfly*) 6047 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6048 case $host_cpu in 6049 i*86 ) 6050 # Not sure whether the presence of OpenBSD here was a mistake. 6051 # Let's accept both of them until this is cleared up. 6052 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6053 lt_cv_file_magic_cmd=/usr/bin/file 6054 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6055 ;; 6056 esac 6057 else 6058 lt_cv_deplibs_check_method=pass_all 6059 fi 6060 ;; 6061 6062 gnu*) 6063 lt_cv_deplibs_check_method=pass_all 6064 ;; 6065 6066 haiku*) 6067 lt_cv_deplibs_check_method=pass_all 6068 ;; 6069 6070 hpux10.20* | hpux11*) 6071 lt_cv_file_magic_cmd=/usr/bin/file 6072 case $host_cpu in 6073 ia64*) 6074 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6075 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6076 ;; 6077 hppa*64*) 6078 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]' 6079 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6080 ;; 6081 *) 6082 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6083 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6084 ;; 6085 esac 6086 ;; 6087 6088 interix[3-9]*) 6089 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6091 ;; 6092 6093 irix5* | irix6* | nonstopux*) 6094 case $LD in 6095 *-32|*"-32 ") libmagic=32-bit;; 6096 *-n32|*"-n32 ") libmagic=N32;; 6097 *-64|*"-64 ") libmagic=64-bit;; 6098 *) libmagic=never-match;; 6099 esac 6100 lt_cv_deplibs_check_method=pass_all 6101 ;; 6102 6103 # This must be Linux ELF. 6104 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 6105 lt_cv_deplibs_check_method=pass_all 6106 ;; 6107 6108 netbsd*) 6109 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6110 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6111 else 6112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6113 fi 6114 ;; 6115 6116 newos6*) 6117 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6118 lt_cv_file_magic_cmd=/usr/bin/file 6119 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6120 ;; 6121 6122 *nto* | *qnx*) 6123 lt_cv_deplibs_check_method=pass_all 6124 ;; 6125 6126 openbsd*) 6127 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6129 else 6130 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6131 fi 6132 ;; 6133 6134 osf3* | osf4* | osf5*) 6135 lt_cv_deplibs_check_method=pass_all 6136 ;; 6137 6138 rdos*) 6139 lt_cv_deplibs_check_method=pass_all 6140 ;; 6141 6142 solaris*) 6143 lt_cv_deplibs_check_method=pass_all 6144 ;; 6145 6146 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6147 lt_cv_deplibs_check_method=pass_all 6148 ;; 6149 6150 sysv4 | sysv4.3*) 6151 case $host_vendor in 6152 motorola) 6153 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]' 6154 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6155 ;; 6156 ncr) 6157 lt_cv_deplibs_check_method=pass_all 6158 ;; 6159 sequent) 6160 lt_cv_file_magic_cmd='/bin/file' 6161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6162 ;; 6163 sni) 6164 lt_cv_file_magic_cmd='/bin/file' 6165 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6166 lt_cv_file_magic_test_file=/lib/libc.so 6167 ;; 6168 siemens) 6169 lt_cv_deplibs_check_method=pass_all 6170 ;; 6171 pc) 6172 lt_cv_deplibs_check_method=pass_all 6173 ;; 6174 esac 6175 ;; 6176 6177 tpf*) 6178 lt_cv_deplibs_check_method=pass_all 6179 ;; 6180 vxworks*) 6181 # Assume VxWorks cross toolchains are built on Linux, possibly 6182 # as canadian for Windows hosts. 6183 lt_cv_deplibs_check_method=pass_all 6184 ;; 6185 esac 6186 6187 fi 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6189 $as_echo "$lt_cv_deplibs_check_method" >&6; } 6190 file_magic_cmd=$lt_cv_file_magic_cmd 6191 deplibs_check_method=$lt_cv_deplibs_check_method 6192 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 plugin_option= 6206 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" 6207 for plugin in $plugin_names; do 6208 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` 6209 if test x$plugin_so = x$plugin; then 6210 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` 6211 fi 6212 if test x$plugin_so != x$plugin; then 6213 plugin_option="--plugin $plugin_so" 6214 break 6215 fi 6216 done 6217 6218 if test -n "$ac_tool_prefix"; then 6219 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6220 set dummy ${ac_tool_prefix}ar; ac_word=$2 6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6222 $as_echo_n "checking for $ac_word... " >&6; } 6223 if ${ac_cv_prog_AR+:} false; then : 6224 $as_echo_n "(cached) " >&6 6225 else 6226 if test -n "$AR"; then 6227 ac_cv_prog_AR="$AR" # Let the user override the test. 6228 else 6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6230 for as_dir in $PATH 6231 do 6232 IFS=$as_save_IFS 6233 test -z "$as_dir" && as_dir=. 6234 for ac_exec_ext in '' $ac_executable_extensions; do 6235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6236 ac_cv_prog_AR="${ac_tool_prefix}ar" 6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6238 break 2 6239 fi 6240 done 6241 done 6242 IFS=$as_save_IFS 6243 6244 fi 6245 fi 6246 AR=$ac_cv_prog_AR 6247 if test -n "$AR"; then 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6249 $as_echo "$AR" >&6; } 6250 else 6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6252 $as_echo "no" >&6; } 6253 fi 6254 6255 6256 fi 6257 if test -z "$ac_cv_prog_AR"; then 6258 ac_ct_AR=$AR 6259 # Extract the first word of "ar", so it can be a program name with args. 6260 set dummy ar; ac_word=$2 6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6262 $as_echo_n "checking for $ac_word... " >&6; } 6263 if ${ac_cv_prog_ac_ct_AR+:} false; then : 6264 $as_echo_n "(cached) " >&6 6265 else 6266 if test -n "$ac_ct_AR"; then 6267 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6268 else 6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6270 for as_dir in $PATH 6271 do 6272 IFS=$as_save_IFS 6273 test -z "$as_dir" && as_dir=. 6274 for ac_exec_ext in '' $ac_executable_extensions; do 6275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6276 ac_cv_prog_ac_ct_AR="ar" 6277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6278 break 2 6279 fi 6280 done 6281 done 6282 IFS=$as_save_IFS 6283 6284 fi 6285 fi 6286 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6287 if test -n "$ac_ct_AR"; then 6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6289 $as_echo "$ac_ct_AR" >&6; } 6290 else 6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6292 $as_echo "no" >&6; } 6293 fi 6294 6295 if test "x$ac_ct_AR" = x; then 6296 AR="false" 6297 else 6298 case $cross_compiling:$ac_tool_warned in 6299 yes:) 6300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6302 ac_tool_warned=yes ;; 6303 esac 6304 AR=$ac_ct_AR 6305 fi 6306 else 6307 AR="$ac_cv_prog_AR" 6308 fi 6309 6310 test -z "$AR" && AR=ar 6311 if test -n "$plugin_option"; then 6312 if $AR --help 2>&1 | grep -q "\--plugin"; then 6313 touch conftest.c 6314 $AR $plugin_option rc conftest.a conftest.c 6315 if test "$?" != 0; then 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 6317 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} 6318 else 6319 AR="$AR $plugin_option" 6320 fi 6321 rm -f conftest.* 6322 fi 6323 fi 6324 test -z "$AR_FLAGS" && AR_FLAGS=cru 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 if test -n "$ac_tool_prefix"; then 6337 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6338 set dummy ${ac_tool_prefix}strip; ac_word=$2 6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6340 $as_echo_n "checking for $ac_word... " >&6; } 6341 if ${ac_cv_prog_STRIP+:} false; then : 6342 $as_echo_n "(cached) " >&6 6343 else 6344 if test -n "$STRIP"; then 6345 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6346 else 6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6348 for as_dir in $PATH 6349 do 6350 IFS=$as_save_IFS 6351 test -z "$as_dir" && as_dir=. 6352 for ac_exec_ext in '' $ac_executable_extensions; do 6353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6354 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6356 break 2 6357 fi 6358 done 6359 done 6360 IFS=$as_save_IFS 6361 6362 fi 6363 fi 6364 STRIP=$ac_cv_prog_STRIP 6365 if test -n "$STRIP"; then 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6367 $as_echo "$STRIP" >&6; } 6368 else 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6370 $as_echo "no" >&6; } 6371 fi 6372 6373 6374 fi 6375 if test -z "$ac_cv_prog_STRIP"; then 6376 ac_ct_STRIP=$STRIP 6377 # Extract the first word of "strip", so it can be a program name with args. 6378 set dummy strip; ac_word=$2 6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6380 $as_echo_n "checking for $ac_word... " >&6; } 6381 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6382 $as_echo_n "(cached) " >&6 6383 else 6384 if test -n "$ac_ct_STRIP"; then 6385 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6386 else 6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6388 for as_dir in $PATH 6389 do 6390 IFS=$as_save_IFS 6391 test -z "$as_dir" && as_dir=. 6392 for ac_exec_ext in '' $ac_executable_extensions; do 6393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6394 ac_cv_prog_ac_ct_STRIP="strip" 6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6396 break 2 6397 fi 6398 done 6399 done 6400 IFS=$as_save_IFS 6401 6402 fi 6403 fi 6404 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6405 if test -n "$ac_ct_STRIP"; then 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6407 $as_echo "$ac_ct_STRIP" >&6; } 6408 else 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6410 $as_echo "no" >&6; } 6411 fi 6412 6413 if test "x$ac_ct_STRIP" = x; then 6414 STRIP=":" 6415 else 6416 case $cross_compiling:$ac_tool_warned in 6417 yes:) 6418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6420 ac_tool_warned=yes ;; 6421 esac 6422 STRIP=$ac_ct_STRIP 6423 fi 6424 else 6425 STRIP="$ac_cv_prog_STRIP" 6426 fi 6427 6428 test -z "$STRIP" && STRIP=: 6429 6430 6431 6432 6433 6434 6435 if test -n "$ac_tool_prefix"; then 6436 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6437 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6439 $as_echo_n "checking for $ac_word... " >&6; } 6440 if ${ac_cv_prog_RANLIB+:} false; then : 6441 $as_echo_n "(cached) " >&6 6442 else 6443 if test -n "$RANLIB"; then 6444 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6445 else 6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6447 for as_dir in $PATH 6448 do 6449 IFS=$as_save_IFS 6450 test -z "$as_dir" && as_dir=. 6451 for ac_exec_ext in '' $ac_executable_extensions; do 6452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6453 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6455 break 2 6456 fi 6457 done 6458 done 6459 IFS=$as_save_IFS 6460 6461 fi 6462 fi 6463 RANLIB=$ac_cv_prog_RANLIB 6464 if test -n "$RANLIB"; then 6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6466 $as_echo "$RANLIB" >&6; } 6467 else 6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6469 $as_echo "no" >&6; } 6470 fi 6471 6472 6473 fi 6474 if test -z "$ac_cv_prog_RANLIB"; then 6475 ac_ct_RANLIB=$RANLIB 6476 # Extract the first word of "ranlib", so it can be a program name with args. 6477 set dummy ranlib; ac_word=$2 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6479 $as_echo_n "checking for $ac_word... " >&6; } 6480 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6481 $as_echo_n "(cached) " >&6 6482 else 6483 if test -n "$ac_ct_RANLIB"; then 6484 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6485 else 6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6487 for as_dir in $PATH 6488 do 6489 IFS=$as_save_IFS 6490 test -z "$as_dir" && as_dir=. 6491 for ac_exec_ext in '' $ac_executable_extensions; do 6492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6493 ac_cv_prog_ac_ct_RANLIB="ranlib" 6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6495 break 2 6496 fi 6497 done 6498 done 6499 IFS=$as_save_IFS 6500 6501 fi 6502 fi 6503 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6504 if test -n "$ac_ct_RANLIB"; then 6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6506 $as_echo "$ac_ct_RANLIB" >&6; } 6507 else 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6509 $as_echo "no" >&6; } 6510 fi 6511 6512 if test "x$ac_ct_RANLIB" = x; then 6513 RANLIB=":" 6514 else 6515 case $cross_compiling:$ac_tool_warned in 6516 yes:) 6517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6519 ac_tool_warned=yes ;; 6520 esac 6521 RANLIB=$ac_ct_RANLIB 6522 fi 6523 else 6524 RANLIB="$ac_cv_prog_RANLIB" 6525 fi 6526 6527 test -z "$RANLIB" && RANLIB=: 6528 if test -n "$plugin_option" && test "$RANLIB" != ":"; then 6529 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then 6530 RANLIB="$RANLIB $plugin_option" 6531 fi 6532 fi 6533 6534 6535 6536 6537 6538 6539 # Determine commands to create old-style static archives. 6540 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6541 old_postinstall_cmds='chmod 644 $oldlib' 6542 old_postuninstall_cmds= 6543 6544 if test -n "$RANLIB"; then 6545 case $host_os in 6546 openbsd*) 6547 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6548 ;; 6549 *) 6550 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6551 ;; 6552 esac 6553 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6554 fi 6555 6556 case $host_os in 6557 darwin*) 6558 lock_old_archive_extraction=yes ;; 6559 *) 6560 lock_old_archive_extraction=no ;; 6561 esac 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 # If no C compiler was specified, use CC. 6602 LTCC=${LTCC-"$CC"} 6603 6604 # If no C compiler flags were specified, use CFLAGS. 6605 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6606 6607 # Allow CC to be a program name with arguments. 6608 compiler=$CC 6609 6610 6611 # Check for command to grab the raw symbol name followed by C symbol from nm. 6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6613 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6614 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6615 $as_echo_n "(cached) " >&6 6616 else 6617 6618 # These are sane defaults that work on at least a few old systems. 6619 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6620 6621 # Character class describing NM global symbol codes. 6622 symcode='[BCDEGRST]' 6623 6624 # Regexp to match symbols that can be accessed directly from C. 6625 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6626 6627 # Define system-specific variables. 6628 case $host_os in 6629 aix*) 6630 symcode='[BCDT]' 6631 ;; 6632 cygwin* | mingw* | pw32* | cegcc*) 6633 symcode='[ABCDGISTW]' 6634 ;; 6635 hpux*) 6636 if test "$host_cpu" = ia64; then 6637 symcode='[ABCDEGRST]' 6638 fi 6639 ;; 6640 irix* | nonstopux*) 6641 symcode='[BCDEGRST]' 6642 ;; 6643 osf*) 6644 symcode='[BCDEGQRST]' 6645 ;; 6646 solaris*) 6647 symcode='[BCDRT]' 6648 ;; 6649 sco3.2v5*) 6650 symcode='[DT]' 6651 ;; 6652 sysv4.2uw2*) 6653 symcode='[DT]' 6654 ;; 6655 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6656 symcode='[ABDT]' 6657 ;; 6658 sysv4) 6659 symcode='[DFNSTU]' 6660 ;; 6661 esac 6662 6663 # If we're using GNU nm, then use its standard symbol codes. 6664 case `$NM -V 2>&1` in 6665 *GNU* | *'with BFD'*) 6666 symcode='[ABCDGIRSTW]' ;; 6667 esac 6668 6669 # Transform an extracted symbol line into a proper C declaration. 6670 # Some systems (esp. on ia64) link data and code symbols differently, 6671 # so use this general approach. 6672 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6673 6674 # Transform an extracted symbol line into symbol name and symbol address 6675 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6676 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'" 6677 6678 # Handle CRLF in mingw tool chain 6679 opt_cr= 6680 case $build_os in 6681 mingw*) 6682 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6683 ;; 6684 esac 6685 6686 # Try without a prefix underscore, then with it. 6687 for ac_symprfx in "" "_"; do 6688 6689 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6690 symxfrm="\\1 $ac_symprfx\\2 \\2" 6691 6692 # Write the raw and C identifiers. 6693 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6694 # Fake it for dumpbin and say T for any non-static function 6695 # and D for any global variable. 6696 # Also find C++ and __fastcall symbols from MSVC++, 6697 # which start with @ or ?. 6698 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6699 " {last_section=section; section=\$ 3};"\ 6700 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6701 " \$ 0!~/External *\|/{next};"\ 6702 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6703 " {if(hide[section]) next};"\ 6704 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6705 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6706 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6707 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6708 " ' prfx=^$ac_symprfx" 6709 else 6710 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6711 fi 6712 6713 # Check to see that the pipe works correctly. 6714 pipe_works=no 6715 6716 rm -f conftest* 6717 cat > conftest.$ac_ext <<_LT_EOF 6718 #ifdef __cplusplus 6719 extern "C" { 6720 #endif 6721 char nm_test_var; 6722 void nm_test_func(void); 6723 void nm_test_func(void){} 6724 #ifdef __cplusplus 6725 } 6726 #endif 6727 int main(){nm_test_var='a';nm_test_func();return(0);} 6728 _LT_EOF 6729 6730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6731 (eval $ac_compile) 2>&5 6732 ac_status=$? 6733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6734 test $ac_status = 0; }; then 6735 # Now try to grab the symbols. 6736 nlist=conftest.nm 6737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6738 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6739 ac_status=$? 6740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6741 test $ac_status = 0; } && test -s "$nlist"; then 6742 # Try sorting and uniquifying the output. 6743 if sort "$nlist" | uniq > "$nlist"T; then 6744 mv -f "$nlist"T "$nlist" 6745 else 6746 rm -f "$nlist"T 6747 fi 6748 6749 # Make sure that we snagged all the symbols we need. 6750 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6751 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6752 cat <<_LT_EOF > conftest.$ac_ext 6753 #ifdef __cplusplus 6754 extern "C" { 6755 #endif 6756 6757 _LT_EOF 6758 # Now generate the symbol file. 6759 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6760 6761 cat <<_LT_EOF >> conftest.$ac_ext 6762 6763 /* The mapping between symbol names and symbols. */ 6764 const struct { 6765 const char *name; 6766 void *address; 6767 } 6768 lt__PROGRAM__LTX_preloaded_symbols[] = 6769 { 6770 { "@PROGRAM@", (void *) 0 }, 6771 _LT_EOF 6772 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6773 cat <<\_LT_EOF >> conftest.$ac_ext 6774 {0, (void *) 0} 6775 }; 6776 6777 /* This works around a problem in FreeBSD linker */ 6778 #ifdef FREEBSD_WORKAROUND 6779 static const void *lt_preloaded_setup() { 6780 return lt__PROGRAM__LTX_preloaded_symbols; 6781 } 6782 #endif 6783 6784 #ifdef __cplusplus 6785 } 6786 #endif 6787 _LT_EOF 6788 # Now try linking the two files. 6789 mv conftest.$ac_objext conftstm.$ac_objext 6790 lt_save_LIBS="$LIBS" 6791 lt_save_CFLAGS="$CFLAGS" 6792 LIBS="conftstm.$ac_objext" 6793 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6795 (eval $ac_link) 2>&5 6796 ac_status=$? 6797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6798 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6799 pipe_works=yes 6800 fi 6801 LIBS="$lt_save_LIBS" 6802 CFLAGS="$lt_save_CFLAGS" 6803 else 6804 echo "cannot find nm_test_func in $nlist" >&5 6805 fi 6806 else 6807 echo "cannot find nm_test_var in $nlist" >&5 6808 fi 6809 else 6810 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6811 fi 6812 else 6813 echo "$progname: failed program was:" >&5 6814 cat conftest.$ac_ext >&5 6815 fi 6816 rm -rf conftest* conftst* 6817 6818 # Do not use the global_symbol_pipe unless it works. 6819 if test "$pipe_works" = yes; then 6820 break 6821 else 6822 lt_cv_sys_global_symbol_pipe= 6823 fi 6824 done 6825 6826 fi 6827 6828 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6829 lt_cv_sys_global_symbol_to_cdecl= 6830 fi 6831 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6833 $as_echo "failed" >&6; } 6834 else 6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6836 $as_echo "ok" >&6; } 6837 fi 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 # Check whether --enable-libtool-lock was given. 6861 if test "${enable_libtool_lock+set}" = set; then : 6862 enableval=$enable_libtool_lock; 6863 fi 6864 6865 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6866 6867 # Some flags need to be propagated to the compiler or linker for good 6868 # libtool support. 6869 case $host in 6870 ia64-*-hpux*) 6871 # Find out which ABI we are using. 6872 echo 'int i;' > conftest.$ac_ext 6873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6874 (eval $ac_compile) 2>&5 6875 ac_status=$? 6876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6877 test $ac_status = 0; }; then 6878 case `/usr/bin/file conftest.$ac_objext` in 6879 *ELF-32*) 6880 HPUX_IA64_MODE="32" 6881 ;; 6882 *ELF-64*) 6883 HPUX_IA64_MODE="64" 6884 ;; 6885 esac 6886 fi 6887 rm -rf conftest* 6888 ;; 6889 *-*-irix6*) 6890 # Find out which ABI we are using. 6891 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6893 (eval $ac_compile) 2>&5 6894 ac_status=$? 6895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6896 test $ac_status = 0; }; then 6897 if test "$lt_cv_prog_gnu_ld" = yes; then 6898 case `/usr/bin/file conftest.$ac_objext` in 6899 *32-bit*) 6900 LD="${LD-ld} -melf32bsmip" 6901 ;; 6902 *N32*) 6903 LD="${LD-ld} -melf32bmipn32" 6904 ;; 6905 *64-bit*) 6906 LD="${LD-ld} -melf64bmip" 6907 ;; 6908 esac 6909 else 6910 case `/usr/bin/file conftest.$ac_objext` in 6911 *32-bit*) 6912 LD="${LD-ld} -32" 6913 ;; 6914 *N32*) 6915 LD="${LD-ld} -n32" 6916 ;; 6917 *64-bit*) 6918 LD="${LD-ld} -64" 6919 ;; 6920 esac 6921 fi 6922 fi 6923 rm -rf conftest* 6924 ;; 6925 6926 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6927 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6928 # Find out which ABI we are using. 6929 echo 'int i;' > conftest.$ac_ext 6930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6931 (eval $ac_compile) 2>&5 6932 ac_status=$? 6933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6934 test $ac_status = 0; }; then 6935 case `/usr/bin/file conftest.o` in 6936 *32-bit*) 6937 case $host in 6938 x86_64-*kfreebsd*-gnu) 6939 LD="${LD-ld} -m elf_i386_fbsd" 6940 ;; 6941 x86_64-*linux*) 6942 case `/usr/bin/file conftest.o` in 6943 *x86-64*) 6944 LD="${LD-ld} -m elf32_x86_64" 6945 ;; 6946 *) 6947 LD="${LD-ld} -m elf_i386" 6948 ;; 6949 esac 6950 ;; 6951 powerpc64le-*linux*) 6952 LD="${LD-ld} -m elf32lppclinux" 6953 ;; 6954 powerpc64-*linux*) 6955 LD="${LD-ld} -m elf32ppclinux" 6956 ;; 6957 s390x-*linux*) 6958 LD="${LD-ld} -m elf_s390" 6959 ;; 6960 sparc64-*linux*) 6961 LD="${LD-ld} -m elf32_sparc" 6962 ;; 6963 esac 6964 ;; 6965 *64-bit*) 6966 case $host in 6967 x86_64-*kfreebsd*-gnu) 6968 LD="${LD-ld} -m elf_x86_64_fbsd" 6969 ;; 6970 x86_64-*linux*) 6971 LD="${LD-ld} -m elf_x86_64" 6972 ;; 6973 powerpcle-*linux*) 6974 LD="${LD-ld} -m elf64lppc" 6975 ;; 6976 powerpc-*linux*) 6977 LD="${LD-ld} -m elf64ppc" 6978 ;; 6979 s390*-*linux*|s390*-*tpf*) 6980 LD="${LD-ld} -m elf64_s390" 6981 ;; 6982 sparc*-*linux*) 6983 LD="${LD-ld} -m elf64_sparc" 6984 ;; 6985 esac 6986 ;; 6987 esac 6988 fi 6989 rm -rf conftest* 6990 ;; 6991 6992 *-*-sco3.2v5*) 6993 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6994 SAVE_CFLAGS="$CFLAGS" 6995 CFLAGS="$CFLAGS -belf" 6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6997 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6998 if ${lt_cv_cc_needs_belf+:} false; then : 6999 $as_echo_n "(cached) " >&6 7000 else 7001 ac_ext=c 7002 ac_cpp='$CPP $CPPFLAGS' 7003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7005 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7006 7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7008 /* end confdefs.h. */ 7009 7010 int 7011 main () 7012 { 7013 7014 ; 7015 return 0; 7016 } 7017 _ACEOF 7018 if ac_fn_c_try_link "$LINENO"; then : 7019 lt_cv_cc_needs_belf=yes 7020 else 7021 lt_cv_cc_needs_belf=no 7022 fi 7023 rm -f core conftest.err conftest.$ac_objext \ 7024 conftest$ac_exeext conftest.$ac_ext 7025 ac_ext=c 7026 ac_cpp='$CPP $CPPFLAGS' 7027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7029 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7030 7031 fi 7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7033 $as_echo "$lt_cv_cc_needs_belf" >&6; } 7034 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7035 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7036 CFLAGS="$SAVE_CFLAGS" 7037 fi 7038 ;; 7039 sparc*-*solaris*) 7040 # Find out which ABI we are using. 7041 echo 'int i;' > conftest.$ac_ext 7042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7043 (eval $ac_compile) 2>&5 7044 ac_status=$? 7045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7046 test $ac_status = 0; }; then 7047 case `/usr/bin/file conftest.o` in 7048 *64-bit*) 7049 case $lt_cv_prog_gnu_ld in 7050 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7051 *) 7052 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7053 LD="${LD-ld} -64" 7054 fi 7055 ;; 7056 esac 7057 ;; 7058 esac 7059 fi 7060 rm -rf conftest* 7061 ;; 7062 esac 7063 7064 need_locks="$enable_libtool_lock" 7065 7066 7067 case $host_os in 7068 rhapsody* | darwin*) 7069 if test -n "$ac_tool_prefix"; then 7070 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7071 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7073 $as_echo_n "checking for $ac_word... " >&6; } 7074 if ${ac_cv_prog_DSYMUTIL+:} false; then : 7075 $as_echo_n "(cached) " >&6 7076 else 7077 if test -n "$DSYMUTIL"; then 7078 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7079 else 7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7081 for as_dir in $PATH 7082 do 7083 IFS=$as_save_IFS 7084 test -z "$as_dir" && as_dir=. 7085 for ac_exec_ext in '' $ac_executable_extensions; do 7086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7087 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7089 break 2 7090 fi 7091 done 7092 done 7093 IFS=$as_save_IFS 7094 7095 fi 7096 fi 7097 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7098 if test -n "$DSYMUTIL"; then 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7100 $as_echo "$DSYMUTIL" >&6; } 7101 else 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7103 $as_echo "no" >&6; } 7104 fi 7105 7106 7107 fi 7108 if test -z "$ac_cv_prog_DSYMUTIL"; then 7109 ac_ct_DSYMUTIL=$DSYMUTIL 7110 # Extract the first word of "dsymutil", so it can be a program name with args. 7111 set dummy dsymutil; ac_word=$2 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7113 $as_echo_n "checking for $ac_word... " >&6; } 7114 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7115 $as_echo_n "(cached) " >&6 7116 else 7117 if test -n "$ac_ct_DSYMUTIL"; then 7118 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7119 else 7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7121 for as_dir in $PATH 7122 do 7123 IFS=$as_save_IFS 7124 test -z "$as_dir" && as_dir=. 7125 for ac_exec_ext in '' $ac_executable_extensions; do 7126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7127 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7129 break 2 7130 fi 7131 done 7132 done 7133 IFS=$as_save_IFS 7134 7135 fi 7136 fi 7137 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7138 if test -n "$ac_ct_DSYMUTIL"; then 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7140 $as_echo "$ac_ct_DSYMUTIL" >&6; } 7141 else 7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7143 $as_echo "no" >&6; } 7144 fi 7145 7146 if test "x$ac_ct_DSYMUTIL" = x; then 7147 DSYMUTIL=":" 7148 else 7149 case $cross_compiling:$ac_tool_warned in 7150 yes:) 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7153 ac_tool_warned=yes ;; 7154 esac 7155 DSYMUTIL=$ac_ct_DSYMUTIL 7156 fi 7157 else 7158 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7159 fi 7160 7161 if test -n "$ac_tool_prefix"; then 7162 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7163 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7165 $as_echo_n "checking for $ac_word... " >&6; } 7166 if ${ac_cv_prog_NMEDIT+:} false; then : 7167 $as_echo_n "(cached) " >&6 7168 else 7169 if test -n "$NMEDIT"; then 7170 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7171 else 7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7173 for as_dir in $PATH 7174 do 7175 IFS=$as_save_IFS 7176 test -z "$as_dir" && as_dir=. 7177 for ac_exec_ext in '' $ac_executable_extensions; do 7178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7179 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7181 break 2 7182 fi 7183 done 7184 done 7185 IFS=$as_save_IFS 7186 7187 fi 7188 fi 7189 NMEDIT=$ac_cv_prog_NMEDIT 7190 if test -n "$NMEDIT"; then 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7192 $as_echo "$NMEDIT" >&6; } 7193 else 7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7195 $as_echo "no" >&6; } 7196 fi 7197 7198 7199 fi 7200 if test -z "$ac_cv_prog_NMEDIT"; then 7201 ac_ct_NMEDIT=$NMEDIT 7202 # Extract the first word of "nmedit", so it can be a program name with args. 7203 set dummy nmedit; ac_word=$2 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7205 $as_echo_n "checking for $ac_word... " >&6; } 7206 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7207 $as_echo_n "(cached) " >&6 7208 else 7209 if test -n "$ac_ct_NMEDIT"; then 7210 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7211 else 7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7213 for as_dir in $PATH 7214 do 7215 IFS=$as_save_IFS 7216 test -z "$as_dir" && as_dir=. 7217 for ac_exec_ext in '' $ac_executable_extensions; do 7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7219 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7221 break 2 7222 fi 7223 done 7224 done 7225 IFS=$as_save_IFS 7226 7227 fi 7228 fi 7229 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7230 if test -n "$ac_ct_NMEDIT"; then 7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7232 $as_echo "$ac_ct_NMEDIT" >&6; } 7233 else 7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7235 $as_echo "no" >&6; } 7236 fi 7237 7238 if test "x$ac_ct_NMEDIT" = x; then 7239 NMEDIT=":" 7240 else 7241 case $cross_compiling:$ac_tool_warned in 7242 yes:) 7243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7245 ac_tool_warned=yes ;; 7246 esac 7247 NMEDIT=$ac_ct_NMEDIT 7248 fi 7249 else 7250 NMEDIT="$ac_cv_prog_NMEDIT" 7251 fi 7252 7253 if test -n "$ac_tool_prefix"; then 7254 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7255 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7257 $as_echo_n "checking for $ac_word... " >&6; } 7258 if ${ac_cv_prog_LIPO+:} false; then : 7259 $as_echo_n "(cached) " >&6 7260 else 7261 if test -n "$LIPO"; then 7262 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7263 else 7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7265 for as_dir in $PATH 7266 do 7267 IFS=$as_save_IFS 7268 test -z "$as_dir" && as_dir=. 7269 for ac_exec_ext in '' $ac_executable_extensions; do 7270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7271 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7273 break 2 7274 fi 7275 done 7276 done 7277 IFS=$as_save_IFS 7278 7279 fi 7280 fi 7281 LIPO=$ac_cv_prog_LIPO 7282 if test -n "$LIPO"; then 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7284 $as_echo "$LIPO" >&6; } 7285 else 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7287 $as_echo "no" >&6; } 7288 fi 7289 7290 7291 fi 7292 if test -z "$ac_cv_prog_LIPO"; then 7293 ac_ct_LIPO=$LIPO 7294 # Extract the first word of "lipo", so it can be a program name with args. 7295 set dummy lipo; ac_word=$2 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7297 $as_echo_n "checking for $ac_word... " >&6; } 7298 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7299 $as_echo_n "(cached) " >&6 7300 else 7301 if test -n "$ac_ct_LIPO"; then 7302 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7303 else 7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7305 for as_dir in $PATH 7306 do 7307 IFS=$as_save_IFS 7308 test -z "$as_dir" && as_dir=. 7309 for ac_exec_ext in '' $ac_executable_extensions; do 7310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7311 ac_cv_prog_ac_ct_LIPO="lipo" 7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7313 break 2 7314 fi 7315 done 7316 done 7317 IFS=$as_save_IFS 7318 7319 fi 7320 fi 7321 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7322 if test -n "$ac_ct_LIPO"; then 7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7324 $as_echo "$ac_ct_LIPO" >&6; } 7325 else 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7327 $as_echo "no" >&6; } 7328 fi 7329 7330 if test "x$ac_ct_LIPO" = x; then 7331 LIPO=":" 7332 else 7333 case $cross_compiling:$ac_tool_warned in 7334 yes:) 7335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7337 ac_tool_warned=yes ;; 7338 esac 7339 LIPO=$ac_ct_LIPO 7340 fi 7341 else 7342 LIPO="$ac_cv_prog_LIPO" 7343 fi 7344 7345 if test -n "$ac_tool_prefix"; then 7346 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7347 set dummy ${ac_tool_prefix}otool; ac_word=$2 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7349 $as_echo_n "checking for $ac_word... " >&6; } 7350 if ${ac_cv_prog_OTOOL+:} false; then : 7351 $as_echo_n "(cached) " >&6 7352 else 7353 if test -n "$OTOOL"; then 7354 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7355 else 7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7357 for as_dir in $PATH 7358 do 7359 IFS=$as_save_IFS 7360 test -z "$as_dir" && as_dir=. 7361 for ac_exec_ext in '' $ac_executable_extensions; do 7362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7363 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7365 break 2 7366 fi 7367 done 7368 done 7369 IFS=$as_save_IFS 7370 7371 fi 7372 fi 7373 OTOOL=$ac_cv_prog_OTOOL 7374 if test -n "$OTOOL"; then 7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7376 $as_echo "$OTOOL" >&6; } 7377 else 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7379 $as_echo "no" >&6; } 7380 fi 7381 7382 7383 fi 7384 if test -z "$ac_cv_prog_OTOOL"; then 7385 ac_ct_OTOOL=$OTOOL 7386 # Extract the first word of "otool", so it can be a program name with args. 7387 set dummy otool; ac_word=$2 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7389 $as_echo_n "checking for $ac_word... " >&6; } 7390 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7391 $as_echo_n "(cached) " >&6 7392 else 7393 if test -n "$ac_ct_OTOOL"; then 7394 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7395 else 7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7397 for as_dir in $PATH 7398 do 7399 IFS=$as_save_IFS 7400 test -z "$as_dir" && as_dir=. 7401 for ac_exec_ext in '' $ac_executable_extensions; do 7402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7403 ac_cv_prog_ac_ct_OTOOL="otool" 7404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7405 break 2 7406 fi 7407 done 7408 done 7409 IFS=$as_save_IFS 7410 7411 fi 7412 fi 7413 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7414 if test -n "$ac_ct_OTOOL"; then 7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7416 $as_echo "$ac_ct_OTOOL" >&6; } 7417 else 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7419 $as_echo "no" >&6; } 7420 fi 7421 7422 if test "x$ac_ct_OTOOL" = x; then 7423 OTOOL=":" 7424 else 7425 case $cross_compiling:$ac_tool_warned in 7426 yes:) 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7429 ac_tool_warned=yes ;; 7430 esac 7431 OTOOL=$ac_ct_OTOOL 7432 fi 7433 else 7434 OTOOL="$ac_cv_prog_OTOOL" 7435 fi 7436 7437 if test -n "$ac_tool_prefix"; then 7438 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7439 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7441 $as_echo_n "checking for $ac_word... " >&6; } 7442 if ${ac_cv_prog_OTOOL64+:} false; then : 7443 $as_echo_n "(cached) " >&6 7444 else 7445 if test -n "$OTOOL64"; then 7446 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7447 else 7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7449 for as_dir in $PATH 7450 do 7451 IFS=$as_save_IFS 7452 test -z "$as_dir" && as_dir=. 7453 for ac_exec_ext in '' $ac_executable_extensions; do 7454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7455 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7457 break 2 7458 fi 7459 done 7460 done 7461 IFS=$as_save_IFS 7462 7463 fi 7464 fi 7465 OTOOL64=$ac_cv_prog_OTOOL64 7466 if test -n "$OTOOL64"; then 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7468 $as_echo "$OTOOL64" >&6; } 7469 else 7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7471 $as_echo "no" >&6; } 7472 fi 7473 7474 7475 fi 7476 if test -z "$ac_cv_prog_OTOOL64"; then 7477 ac_ct_OTOOL64=$OTOOL64 7478 # Extract the first word of "otool64", so it can be a program name with args. 7479 set dummy otool64; ac_word=$2 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7481 $as_echo_n "checking for $ac_word... " >&6; } 7482 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7483 $as_echo_n "(cached) " >&6 7484 else 7485 if test -n "$ac_ct_OTOOL64"; then 7486 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7487 else 7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7489 for as_dir in $PATH 7490 do 7491 IFS=$as_save_IFS 7492 test -z "$as_dir" && as_dir=. 7493 for ac_exec_ext in '' $ac_executable_extensions; do 7494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7495 ac_cv_prog_ac_ct_OTOOL64="otool64" 7496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7497 break 2 7498 fi 7499 done 7500 done 7501 IFS=$as_save_IFS 7502 7503 fi 7504 fi 7505 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7506 if test -n "$ac_ct_OTOOL64"; then 7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7508 $as_echo "$ac_ct_OTOOL64" >&6; } 7509 else 7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7511 $as_echo "no" >&6; } 7512 fi 7513 7514 if test "x$ac_ct_OTOOL64" = x; then 7515 OTOOL64=":" 7516 else 7517 case $cross_compiling:$ac_tool_warned in 7518 yes:) 7519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7521 ac_tool_warned=yes ;; 7522 esac 7523 OTOOL64=$ac_ct_OTOOL64 7524 fi 7525 else 7526 OTOOL64="$ac_cv_prog_OTOOL64" 7527 fi 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7556 $as_echo_n "checking for -single_module linker flag... " >&6; } 7557 if ${lt_cv_apple_cc_single_mod+:} false; then : 7558 $as_echo_n "(cached) " >&6 7559 else 7560 lt_cv_apple_cc_single_mod=no 7561 if test -z "${LT_MULTI_MODULE}"; then 7562 # By default we will add the -single_module flag. You can override 7563 # by either setting the environment variable LT_MULTI_MODULE 7564 # non-empty at configure time, or by adding -multi_module to the 7565 # link flags. 7566 rm -rf libconftest.dylib* 7567 echo "int foo(void){return 1;}" > conftest.c 7568 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7569 -dynamiclib -Wl,-single_module conftest.c" >&5 7570 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7571 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7572 _lt_result=$? 7573 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7574 lt_cv_apple_cc_single_mod=yes 7575 else 7576 cat conftest.err >&5 7577 fi 7578 rm -rf libconftest.dylib* 7579 rm -f conftest.* 7580 fi 7581 fi 7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7583 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7585 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7586 if ${lt_cv_ld_exported_symbols_list+:} false; then : 7587 $as_echo_n "(cached) " >&6 7588 else 7589 lt_cv_ld_exported_symbols_list=no 7590 save_LDFLAGS=$LDFLAGS 7591 echo "_main" > conftest.sym 7592 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7594 /* end confdefs.h. */ 7595 7596 int 7597 main () 7598 { 7599 7600 ; 7601 return 0; 7602 } 7603 _ACEOF 7604 if ac_fn_c_try_link "$LINENO"; then : 7605 lt_cv_ld_exported_symbols_list=yes 7606 else 7607 lt_cv_ld_exported_symbols_list=no 7608 fi 7609 rm -f core conftest.err conftest.$ac_objext \ 7610 conftest$ac_exeext conftest.$ac_ext 7611 LDFLAGS="$save_LDFLAGS" 7612 7613 fi 7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7615 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7617 $as_echo_n "checking for -force_load linker flag... " >&6; } 7618 if ${lt_cv_ld_force_load+:} false; then : 7619 $as_echo_n "(cached) " >&6 7620 else 7621 lt_cv_ld_force_load=no 7622 cat > conftest.c << _LT_EOF 7623 int forced_loaded() { return 2;} 7624 _LT_EOF 7625 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7626 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7627 echo "$AR cru libconftest.a conftest.o" >&5 7628 $AR cru libconftest.a conftest.o 2>&5 7629 cat > conftest.c << _LT_EOF 7630 int main() { return 0;} 7631 _LT_EOF 7632 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7633 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7634 _lt_result=$? 7635 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7636 lt_cv_ld_force_load=yes 7637 else 7638 cat conftest.err >&5 7639 fi 7640 rm -f conftest.err libconftest.a conftest conftest.c 7641 rm -rf conftest.dSYM 7642 7643 fi 7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7645 $as_echo "$lt_cv_ld_force_load" >&6; } 7646 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to 7647 # build without first building modern cctools / linker. 7648 case $host_cpu-$host_os in 7649 *-rhapsody* | *-darwin1.[012]) 7650 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7651 *-darwin1.*) 7652 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7653 *-darwin*) 7654 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the 7655 # deployment target is forced to an earlier version. 7656 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in 7657 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) 7658 ;; 7659 10.[012][,.]*) 7660 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7661 ;; 7662 *) 7663 ;; 7664 esac 7665 ;; 7666 esac 7667 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7668 _lt_dar_single_mod='$single_module' 7669 fi 7670 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7671 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7672 else 7673 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7674 fi 7675 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7676 _lt_dsymutil='~$DSYMUTIL $lib || :' 7677 else 7678 _lt_dsymutil= 7679 fi 7680 ;; 7681 esac 7682 7683 for ac_header in dlfcn.h 7684 do : 7685 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7686 " 7687 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7688 cat >>confdefs.h <<_ACEOF 7689 #define HAVE_DLFCN_H 1 7690 _ACEOF 7691 7692 fi 7693 7694 done 7695 7696 7697 7698 7699 7700 # Set options 7701 enable_dlopen=yes 7702 7703 7704 7705 7706 enable_win32_dll=no 7707 7708 7709 7710 # Check whether --enable-static was given. 7711 if test "${enable_static+set}" = set; then : 7712 enableval=$enable_static; p=${PACKAGE-default} 7713 case $enableval in 7714 yes) enable_static=yes ;; 7715 no) enable_static=no ;; 7716 *) 7717 enable_static=no 7718 # Look at the argument we got. We use all the common list separators. 7719 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7720 for pkg in $enableval; do 7721 IFS="$lt_save_ifs" 7722 if test "X$pkg" = "X$p"; then 7723 enable_static=yes 7724 fi 7725 done 7726 IFS="$lt_save_ifs" 7727 ;; 7728 esac 7729 else 7730 enable_static=yes 7731 fi 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 # Check whether --with-pic was given. 7743 if test "${with_pic+set}" = set; then : 7744 withval=$with_pic; pic_mode="$withval" 7745 else 7746 pic_mode=default 7747 fi 7748 7749 7750 test -z "$pic_mode" && pic_mode=default 7751 7752 7753 7754 7755 7756 7757 7758 # Check whether --enable-fast-install was given. 7759 if test "${enable_fast_install+set}" = set; then : 7760 enableval=$enable_fast_install; p=${PACKAGE-default} 7761 case $enableval in 7762 yes) enable_fast_install=yes ;; 7763 no) enable_fast_install=no ;; 7764 *) 7765 enable_fast_install=no 7766 # Look at the argument we got. We use all the common list separators. 7767 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7768 for pkg in $enableval; do 7769 IFS="$lt_save_ifs" 7770 if test "X$pkg" = "X$p"; then 7771 enable_fast_install=yes 7772 fi 7773 done 7774 IFS="$lt_save_ifs" 7775 ;; 7776 esac 7777 else 7778 enable_fast_install=yes 7779 fi 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 # This can be used to rebuild libtool when needed 7792 LIBTOOL_DEPS="$ltmain" 7793 7794 # Always use our own libtool. 7795 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 test -z "$LN_S" && LN_S="ln -s" 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 if test -n "${ZSH_VERSION+set}" ; then 7838 setopt NO_GLOB_SUBST 7839 fi 7840 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7842 $as_echo_n "checking for objdir... " >&6; } 7843 if ${lt_cv_objdir+:} false; then : 7844 $as_echo_n "(cached) " >&6 7845 else 7846 rm -f .libs 2>/dev/null 7847 mkdir .libs 2>/dev/null 7848 if test -d .libs; then 7849 lt_cv_objdir=.libs 7850 else 7851 # MS-DOS does not allow filenames that begin with a dot. 7852 lt_cv_objdir=_libs 7853 fi 7854 rmdir .libs 2>/dev/null 7855 fi 7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7857 $as_echo "$lt_cv_objdir" >&6; } 7858 objdir=$lt_cv_objdir 7859 7860 7861 7862 7863 7864 cat >>confdefs.h <<_ACEOF 7865 #define LT_OBJDIR "$lt_cv_objdir/" 7866 _ACEOF 7867 7868 7869 7870 7871 case $host_os in 7872 aix3*) 7873 # AIX sometimes has problems with the GCC collect2 program. For some 7874 # reason, if we set the COLLECT_NAMES environment variable, the problems 7875 # vanish in a puff of smoke. 7876 if test "X${COLLECT_NAMES+set}" != Xset; then 7877 COLLECT_NAMES= 7878 export COLLECT_NAMES 7879 fi 7880 ;; 7881 esac 7882 7883 # Global variables: 7884 ofile=libtool 7885 can_build_shared=yes 7886 7887 # All known linkers require a `.a' archive for static linking (except MSVC, 7888 # which needs '.lib'). 7889 libext=a 7890 7891 with_gnu_ld="$lt_cv_prog_gnu_ld" 7892 7893 old_CC="$CC" 7894 old_CFLAGS="$CFLAGS" 7895 7896 # Set sane defaults for various variables 7897 test -z "$CC" && CC=cc 7898 test -z "$LTCC" && LTCC=$CC 7899 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7900 test -z "$LD" && LD=ld 7901 test -z "$ac_objext" && ac_objext=o 7902 7903 for cc_temp in $compiler""; do 7904 case $cc_temp in 7905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7907 \-*) ;; 7908 *) break;; 7909 esac 7910 done 7911 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7912 7913 7914 # Only perform the check for file, if the check method requires it 7915 test -z "$MAGIC_CMD" && MAGIC_CMD=file 7916 case $deplibs_check_method in 7917 file_magic*) 7918 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7920 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7921 if ${lt_cv_path_MAGIC_CMD+:} false; then : 7922 $as_echo_n "(cached) " >&6 7923 else 7924 case $MAGIC_CMD in 7925 [\\/*] | ?:[\\/]*) 7926 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7927 ;; 7928 *) 7929 lt_save_MAGIC_CMD="$MAGIC_CMD" 7930 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7931 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7932 for ac_dir in $ac_dummy; do 7933 IFS="$lt_save_ifs" 7934 test -z "$ac_dir" && ac_dir=. 7935 if test -f $ac_dir/${ac_tool_prefix}file; then 7936 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7937 if test -n "$file_magic_test_file"; then 7938 case $deplibs_check_method in 7939 "file_magic "*) 7940 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7941 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7942 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7943 $EGREP "$file_magic_regex" > /dev/null; then 7944 : 7945 else 7946 cat <<_LT_EOF 1>&2 7947 7948 *** Warning: the command libtool uses to detect shared libraries, 7949 *** $file_magic_cmd, produces output that libtool cannot recognize. 7950 *** The result is that libtool may fail to recognize shared libraries 7951 *** as such. This will affect the creation of libtool libraries that 7952 *** depend on shared libraries, but programs linked with such libtool 7953 *** libraries will work regardless of this problem. Nevertheless, you 7954 *** may want to report the problem to your system manager and/or to 7955 *** bug-libtool@gnu.org 7956 7957 _LT_EOF 7958 fi ;; 7959 esac 7960 fi 7961 break 7962 fi 7963 done 7964 IFS="$lt_save_ifs" 7965 MAGIC_CMD="$lt_save_MAGIC_CMD" 7966 ;; 7967 esac 7968 fi 7969 7970 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7971 if test -n "$MAGIC_CMD"; then 7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7973 $as_echo "$MAGIC_CMD" >&6; } 7974 else 7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7976 $as_echo "no" >&6; } 7977 fi 7978 7979 7980 7981 7982 7983 if test -z "$lt_cv_path_MAGIC_CMD"; then 7984 if test -n "$ac_tool_prefix"; then 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7986 $as_echo_n "checking for file... " >&6; } 7987 if ${lt_cv_path_MAGIC_CMD+:} false; then : 7988 $as_echo_n "(cached) " >&6 7989 else 7990 case $MAGIC_CMD in 7991 [\\/*] | ?:[\\/]*) 7992 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7993 ;; 7994 *) 7995 lt_save_MAGIC_CMD="$MAGIC_CMD" 7996 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7997 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7998 for ac_dir in $ac_dummy; do 7999 IFS="$lt_save_ifs" 8000 test -z "$ac_dir" && ac_dir=. 8001 if test -f $ac_dir/file; then 8002 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8003 if test -n "$file_magic_test_file"; then 8004 case $deplibs_check_method in 8005 "file_magic "*) 8006 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8007 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8008 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8009 $EGREP "$file_magic_regex" > /dev/null; then 8010 : 8011 else 8012 cat <<_LT_EOF 1>&2 8013 8014 *** Warning: the command libtool uses to detect shared libraries, 8015 *** $file_magic_cmd, produces output that libtool cannot recognize. 8016 *** The result is that libtool may fail to recognize shared libraries 8017 *** as such. This will affect the creation of libtool libraries that 8018 *** depend on shared libraries, but programs linked with such libtool 8019 *** libraries will work regardless of this problem. Nevertheless, you 8020 *** may want to report the problem to your system manager and/or to 8021 *** bug-libtool@gnu.org 8022 8023 _LT_EOF 8024 fi ;; 8025 esac 8026 fi 8027 break 8028 fi 8029 done 8030 IFS="$lt_save_ifs" 8031 MAGIC_CMD="$lt_save_MAGIC_CMD" 8032 ;; 8033 esac 8034 fi 8035 8036 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8037 if test -n "$MAGIC_CMD"; then 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8039 $as_echo "$MAGIC_CMD" >&6; } 8040 else 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8042 $as_echo "no" >&6; } 8043 fi 8044 8045 8046 else 8047 MAGIC_CMD=: 8048 fi 8049 fi 8050 8051 fi 8052 ;; 8053 esac 8054 8055 # Use C for the default configuration in the libtool script 8056 8057 lt_save_CC="$CC" 8058 ac_ext=c 8059 ac_cpp='$CPP $CPPFLAGS' 8060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8062 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8063 8064 8065 # Source file extension for C test sources. 8066 ac_ext=c 8067 8068 # Object file extension for compiled C test sources. 8069 objext=o 8070 objext=$objext 8071 8072 # Code to be used in simple compile tests 8073 lt_simple_compile_test_code="int some_variable = 0;" 8074 8075 # Code to be used in simple link tests 8076 lt_simple_link_test_code='int main(){return(0);}' 8077 8078 8079 8080 8081 8082 8083 8084 # If no C compiler was specified, use CC. 8085 LTCC=${LTCC-"$CC"} 8086 8087 # If no C compiler flags were specified, use CFLAGS. 8088 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8089 8090 # Allow CC to be a program name with arguments. 8091 compiler=$CC 8092 8093 # Save the default compiler, since it gets overwritten when the other 8094 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8095 compiler_DEFAULT=$CC 8096 8097 # save warnings/boilerplate of simple test code 8098 ac_outfile=conftest.$ac_objext 8099 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8100 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8101 _lt_compiler_boilerplate=`cat conftest.err` 8102 $RM conftest* 8103 8104 ac_outfile=conftest.$ac_objext 8105 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8106 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8107 _lt_linker_boilerplate=`cat conftest.err` 8108 $RM -r conftest* 8109 8110 8111 ## CAVEAT EMPTOR: 8112 ## There is no encapsulation within the following macros, do not change 8113 ## the running order or otherwise move them around unless you know exactly 8114 ## what you are doing... 8115 if test -n "$compiler"; then 8116 8117 lt_prog_compiler_no_builtin_flag= 8118 8119 if test "$GCC" = yes; then 8120 case $cc_basename in 8121 nvcc*) 8122 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8123 *) 8124 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8125 esac 8126 8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8128 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8129 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8130 $as_echo_n "(cached) " >&6 8131 else 8132 lt_cv_prog_compiler_rtti_exceptions=no 8133 ac_outfile=conftest.$ac_objext 8134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8135 lt_compiler_flag="-fno-rtti -fno-exceptions" 8136 # Insert the option either (1) after the last *FLAGS variable, or 8137 # (2) before a word containing "conftest.", or (3) at the end. 8138 # Note that $ac_compile itself does not contain backslashes and begins 8139 # with a dollar sign (not a hyphen), so the echo should work correctly. 8140 # The option is referenced via a variable to avoid confusing sed. 8141 lt_compile=`echo "$ac_compile" | $SED \ 8142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8144 -e 's:$: $lt_compiler_flag:'` 8145 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8146 (eval "$lt_compile" 2>conftest.err) 8147 ac_status=$? 8148 cat conftest.err >&5 8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8150 if (exit $ac_status) && test -s "$ac_outfile"; then 8151 # The compiler can only warn and ignore the option if not recognized 8152 # So say no if there are warnings other than the usual output. 8153 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8154 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8155 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8156 lt_cv_prog_compiler_rtti_exceptions=yes 8157 fi 8158 fi 8159 $RM conftest* 8160 8161 fi 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8163 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8164 8165 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8166 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8167 else 8168 : 8169 fi 8170 8171 fi 8172 8173 8174 8175 8176 8177 8178 lt_prog_compiler_wl= 8179 lt_prog_compiler_pic= 8180 lt_prog_compiler_static= 8181 8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8183 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8184 8185 if test "$GCC" = yes; then 8186 lt_prog_compiler_wl='-Wl,' 8187 lt_prog_compiler_static='-static' 8188 8189 case $host_os in 8190 aix*) 8191 # All AIX code is PIC. 8192 if test "$host_cpu" = ia64; then 8193 # AIX 5 now supports IA64 processor 8194 lt_prog_compiler_static='-Bstatic' 8195 fi 8196 lt_prog_compiler_pic='-fPIC' 8197 ;; 8198 8199 amigaos*) 8200 case $host_cpu in 8201 powerpc) 8202 # see comment about AmigaOS4 .so support 8203 lt_prog_compiler_pic='-fPIC' 8204 ;; 8205 m68k) 8206 # FIXME: we need at least 68020 code to build shared libraries, but 8207 # adding the `-m68020' flag to GCC prevents building anything better, 8208 # like `-m68040'. 8209 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8210 ;; 8211 esac 8212 ;; 8213 8214 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8215 # PIC is the default for these OSes. 8216 ;; 8217 8218 mingw* | cygwin* | pw32* | os2* | cegcc*) 8219 # This hack is so that the source file can tell whether it is being 8220 # built for inclusion in a dll (and should export symbols for example). 8221 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8222 # (--disable-auto-import) libraries 8223 lt_prog_compiler_pic='-DDLL_EXPORT' 8224 ;; 8225 8226 darwin* | rhapsody*) 8227 # PIC is the default on this platform 8228 # Common symbols not allowed in MH_DYLIB files 8229 lt_prog_compiler_pic='-fno-common' 8230 ;; 8231 8232 haiku*) 8233 # PIC is the default for Haiku. 8234 # The "-static" flag exists, but is broken. 8235 lt_prog_compiler_static= 8236 ;; 8237 8238 hpux*) 8239 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8240 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8241 # sets the default TLS model and affects inlining. 8242 case $host_cpu in 8243 hppa*64*) 8244 # +Z the default 8245 ;; 8246 *) 8247 lt_prog_compiler_pic='-fPIC' 8248 ;; 8249 esac 8250 ;; 8251 8252 interix[3-9]*) 8253 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8254 # Instead, we relocate shared libraries at runtime. 8255 ;; 8256 8257 msdosdjgpp*) 8258 # Just because we use GCC doesn't mean we suddenly get shared libraries 8259 # on systems that don't support them. 8260 lt_prog_compiler_can_build_shared=no 8261 enable_shared=no 8262 ;; 8263 8264 *nto* | *qnx*) 8265 # QNX uses GNU C++, but need to define -shared option too, otherwise 8266 # it will coredump. 8267 lt_prog_compiler_pic='-fPIC -shared' 8268 ;; 8269 8270 sysv4*MP*) 8271 if test -d /usr/nec; then 8272 lt_prog_compiler_pic=-Kconform_pic 8273 fi 8274 ;; 8275 8276 *) 8277 lt_prog_compiler_pic='-fPIC' 8278 ;; 8279 esac 8280 8281 case $cc_basename in 8282 nvcc*) # Cuda Compiler Driver 2.2 8283 lt_prog_compiler_wl='-Xlinker ' 8284 lt_prog_compiler_pic='-Xcompiler -fPIC' 8285 ;; 8286 esac 8287 else 8288 # PORTME Check for flag to pass linker flags through the system compiler. 8289 case $host_os in 8290 aix*) 8291 lt_prog_compiler_wl='-Wl,' 8292 if test "$host_cpu" = ia64; then 8293 # AIX 5 now supports IA64 processor 8294 lt_prog_compiler_static='-Bstatic' 8295 else 8296 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8297 fi 8298 ;; 8299 8300 mingw* | cygwin* | pw32* | os2* | cegcc*) 8301 # This hack is so that the source file can tell whether it is being 8302 # built for inclusion in a dll (and should export symbols for example). 8303 lt_prog_compiler_pic='-DDLL_EXPORT' 8304 ;; 8305 8306 hpux9* | hpux10* | hpux11*) 8307 lt_prog_compiler_wl='-Wl,' 8308 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8309 # not for PA HP-UX. 8310 case $host_cpu in 8311 hppa*64*|ia64*) 8312 # +Z the default 8313 ;; 8314 *) 8315 lt_prog_compiler_pic='+Z' 8316 ;; 8317 esac 8318 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8319 lt_prog_compiler_static='${wl}-a ${wl}archive' 8320 ;; 8321 8322 irix5* | irix6* | nonstopux*) 8323 lt_prog_compiler_wl='-Wl,' 8324 # PIC (with -KPIC) is the default. 8325 lt_prog_compiler_static='-non_shared' 8326 ;; 8327 8328 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8329 case $cc_basename in 8330 # old Intel for x86_64 which still supported -KPIC. 8331 ecc*) 8332 lt_prog_compiler_wl='-Wl,' 8333 lt_prog_compiler_pic='-KPIC' 8334 lt_prog_compiler_static='-static' 8335 ;; 8336 # icc used to be incompatible with GCC. 8337 # ICC 10 doesn't accept -KPIC any more. 8338 icc* | ifort*) 8339 lt_prog_compiler_wl='-Wl,' 8340 lt_prog_compiler_pic='-fPIC' 8341 lt_prog_compiler_static='-static' 8342 ;; 8343 # Lahey Fortran 8.1. 8344 lf95*) 8345 lt_prog_compiler_wl='-Wl,' 8346 lt_prog_compiler_pic='--shared' 8347 lt_prog_compiler_static='--static' 8348 ;; 8349 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8350 # Portland Group compilers (*not* the Pentium gcc compiler, 8351 # which looks to be a dead project) 8352 lt_prog_compiler_wl='-Wl,' 8353 lt_prog_compiler_pic='-fpic' 8354 lt_prog_compiler_static='-Bstatic' 8355 ;; 8356 ccc*) 8357 lt_prog_compiler_wl='-Wl,' 8358 # All Alpha code is PIC. 8359 lt_prog_compiler_static='-non_shared' 8360 ;; 8361 xl* | bgxl* | bgf* | mpixl*) 8362 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8363 lt_prog_compiler_wl='-Wl,' 8364 lt_prog_compiler_pic='-qpic' 8365 lt_prog_compiler_static='-qstaticlink' 8366 ;; 8367 *) 8368 case `$CC -V 2>&1 | sed 5q` in 8369 *Sun\ F* | *Sun*Fortran*) 8370 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8371 lt_prog_compiler_pic='-KPIC' 8372 lt_prog_compiler_static='-Bstatic' 8373 lt_prog_compiler_wl='' 8374 ;; 8375 *Sun\ C*) 8376 # Sun C 5.9 8377 lt_prog_compiler_pic='-KPIC' 8378 lt_prog_compiler_static='-Bstatic' 8379 lt_prog_compiler_wl='-Wl,' 8380 ;; 8381 esac 8382 ;; 8383 esac 8384 ;; 8385 8386 newsos6) 8387 lt_prog_compiler_pic='-KPIC' 8388 lt_prog_compiler_static='-Bstatic' 8389 ;; 8390 8391 *nto* | *qnx*) 8392 # QNX uses GNU C++, but need to define -shared option too, otherwise 8393 # it will coredump. 8394 lt_prog_compiler_pic='-fPIC -shared' 8395 ;; 8396 8397 osf3* | osf4* | osf5*) 8398 lt_prog_compiler_wl='-Wl,' 8399 # All OSF/1 code is PIC. 8400 lt_prog_compiler_static='-non_shared' 8401 ;; 8402 8403 rdos*) 8404 lt_prog_compiler_static='-non_shared' 8405 ;; 8406 8407 solaris*) 8408 lt_prog_compiler_pic='-KPIC' 8409 lt_prog_compiler_static='-Bstatic' 8410 case $cc_basename in 8411 f77* | f90* | f95*) 8412 lt_prog_compiler_wl='-Qoption ld ';; 8413 *) 8414 lt_prog_compiler_wl='-Wl,';; 8415 esac 8416 ;; 8417 8418 sunos4*) 8419 lt_prog_compiler_wl='-Qoption ld ' 8420 lt_prog_compiler_pic='-PIC' 8421 lt_prog_compiler_static='-Bstatic' 8422 ;; 8423 8424 sysv4 | sysv4.2uw2* | sysv4.3*) 8425 lt_prog_compiler_wl='-Wl,' 8426 lt_prog_compiler_pic='-KPIC' 8427 lt_prog_compiler_static='-Bstatic' 8428 ;; 8429 8430 sysv4*MP*) 8431 if test -d /usr/nec ;then 8432 lt_prog_compiler_pic='-Kconform_pic' 8433 lt_prog_compiler_static='-Bstatic' 8434 fi 8435 ;; 8436 8437 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8438 lt_prog_compiler_wl='-Wl,' 8439 lt_prog_compiler_pic='-KPIC' 8440 lt_prog_compiler_static='-Bstatic' 8441 ;; 8442 8443 unicos*) 8444 lt_prog_compiler_wl='-Wl,' 8445 lt_prog_compiler_can_build_shared=no 8446 ;; 8447 8448 uts4*) 8449 lt_prog_compiler_pic='-pic' 8450 lt_prog_compiler_static='-Bstatic' 8451 ;; 8452 8453 *) 8454 lt_prog_compiler_can_build_shared=no 8455 ;; 8456 esac 8457 fi 8458 8459 case $host_os in 8460 # For platforms which do not support PIC, -DPIC is meaningless: 8461 *djgpp*) 8462 lt_prog_compiler_pic= 8463 ;; 8464 *) 8465 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8466 ;; 8467 esac 8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8469 $as_echo "$lt_prog_compiler_pic" >&6; } 8470 8471 8472 8473 8474 8475 8476 # 8477 # Check to make sure the PIC flag actually works. 8478 # 8479 if test -n "$lt_prog_compiler_pic"; then 8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8481 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8482 if ${lt_cv_prog_compiler_pic_works+:} false; then : 8483 $as_echo_n "(cached) " >&6 8484 else 8485 lt_cv_prog_compiler_pic_works=no 8486 ac_outfile=conftest.$ac_objext 8487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8488 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8489 # Insert the option either (1) after the last *FLAGS variable, or 8490 # (2) before a word containing "conftest.", or (3) at the end. 8491 # Note that $ac_compile itself does not contain backslashes and begins 8492 # with a dollar sign (not a hyphen), so the echo should work correctly. 8493 # The option is referenced via a variable to avoid confusing sed. 8494 lt_compile=`echo "$ac_compile" | $SED \ 8495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8497 -e 's:$: $lt_compiler_flag:'` 8498 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8499 (eval "$lt_compile" 2>conftest.err) 8500 ac_status=$? 8501 cat conftest.err >&5 8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8503 if (exit $ac_status) && test -s "$ac_outfile"; then 8504 # The compiler can only warn and ignore the option if not recognized 8505 # So say no if there are warnings other than the usual output. 8506 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8508 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8509 lt_cv_prog_compiler_pic_works=yes 8510 fi 8511 fi 8512 $RM conftest* 8513 8514 fi 8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8516 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8517 8518 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8519 case $lt_prog_compiler_pic in 8520 "" | " "*) ;; 8521 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8522 esac 8523 else 8524 lt_prog_compiler_pic= 8525 lt_prog_compiler_can_build_shared=no 8526 fi 8527 8528 fi 8529 8530 8531 8532 8533 8534 8535 # 8536 # Check to make sure the static flag actually works. 8537 # 8538 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8540 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8541 if ${lt_cv_prog_compiler_static_works+:} false; then : 8542 $as_echo_n "(cached) " >&6 8543 else 8544 lt_cv_prog_compiler_static_works=no 8545 save_LDFLAGS="$LDFLAGS" 8546 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8547 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8548 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8549 # The linker can only warn and ignore the option if not recognized 8550 # So say no if there are warnings 8551 if test -s conftest.err; then 8552 # Append any errors to the config.log. 8553 cat conftest.err 1>&5 8554 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8556 if diff conftest.exp conftest.er2 >/dev/null; then 8557 lt_cv_prog_compiler_static_works=yes 8558 fi 8559 else 8560 lt_cv_prog_compiler_static_works=yes 8561 fi 8562 fi 8563 $RM -r conftest* 8564 LDFLAGS="$save_LDFLAGS" 8565 8566 fi 8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8568 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8569 8570 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8571 : 8572 else 8573 lt_prog_compiler_static= 8574 fi 8575 8576 8577 8578 8579 8580 8581 8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8583 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8584 if ${lt_cv_prog_compiler_c_o+:} false; then : 8585 $as_echo_n "(cached) " >&6 8586 else 8587 lt_cv_prog_compiler_c_o=no 8588 $RM -r conftest 2>/dev/null 8589 mkdir conftest 8590 cd conftest 8591 mkdir out 8592 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8593 8594 lt_compiler_flag="-o out/conftest2.$ac_objext" 8595 # Insert the option either (1) after the last *FLAGS variable, or 8596 # (2) before a word containing "conftest.", or (3) at the end. 8597 # Note that $ac_compile itself does not contain backslashes and begins 8598 # with a dollar sign (not a hyphen), so the echo should work correctly. 8599 lt_compile=`echo "$ac_compile" | $SED \ 8600 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8601 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8602 -e 's:$: $lt_compiler_flag:'` 8603 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8604 (eval "$lt_compile" 2>out/conftest.err) 8605 ac_status=$? 8606 cat out/conftest.err >&5 8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8608 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8609 then 8610 # The compiler can only warn and ignore the option if not recognized 8611 # So say no if there are warnings 8612 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8613 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8614 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8615 lt_cv_prog_compiler_c_o=yes 8616 fi 8617 fi 8618 chmod u+w . 2>&5 8619 $RM conftest* 8620 # SGI C++ compiler will create directory out/ii_files/ for 8621 # template instantiation 8622 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8623 $RM out/* && rmdir out 8624 cd .. 8625 $RM -r conftest 8626 $RM conftest* 8627 8628 fi 8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8630 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8631 8632 8633 8634 8635 8636 8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8638 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8639 if ${lt_cv_prog_compiler_c_o+:} false; then : 8640 $as_echo_n "(cached) " >&6 8641 else 8642 lt_cv_prog_compiler_c_o=no 8643 $RM -r conftest 2>/dev/null 8644 mkdir conftest 8645 cd conftest 8646 mkdir out 8647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8648 8649 lt_compiler_flag="-o out/conftest2.$ac_objext" 8650 # Insert the option either (1) after the last *FLAGS variable, or 8651 # (2) before a word containing "conftest.", or (3) at the end. 8652 # Note that $ac_compile itself does not contain backslashes and begins 8653 # with a dollar sign (not a hyphen), so the echo should work correctly. 8654 lt_compile=`echo "$ac_compile" | $SED \ 8655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8657 -e 's:$: $lt_compiler_flag:'` 8658 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8659 (eval "$lt_compile" 2>out/conftest.err) 8660 ac_status=$? 8661 cat out/conftest.err >&5 8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8663 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8664 then 8665 # The compiler can only warn and ignore the option if not recognized 8666 # So say no if there are warnings 8667 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8668 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8669 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8670 lt_cv_prog_compiler_c_o=yes 8671 fi 8672 fi 8673 chmod u+w . 2>&5 8674 $RM conftest* 8675 # SGI C++ compiler will create directory out/ii_files/ for 8676 # template instantiation 8677 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8678 $RM out/* && rmdir out 8679 cd .. 8680 $RM -r conftest 8681 $RM conftest* 8682 8683 fi 8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8685 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8686 8687 8688 8689 8690 hard_links="nottested" 8691 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8692 # do not overwrite the value of need_locks provided by the user 8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8694 $as_echo_n "checking if we can lock with hard links... " >&6; } 8695 hard_links=yes 8696 $RM conftest* 8697 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8698 touch conftest.a 8699 ln conftest.a conftest.b 2>&5 || hard_links=no 8700 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8702 $as_echo "$hard_links" >&6; } 8703 if test "$hard_links" = no; then 8704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8705 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8706 need_locks=warn 8707 fi 8708 else 8709 need_locks=no 8710 fi 8711 8712 8713 8714 8715 8716 8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8718 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8719 8720 runpath_var= 8721 allow_undefined_flag= 8722 always_export_symbols=no 8723 archive_cmds= 8724 archive_expsym_cmds= 8725 compiler_needs_object=no 8726 enable_shared_with_static_runtimes=no 8727 export_dynamic_flag_spec= 8728 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8729 hardcode_automatic=no 8730 hardcode_direct=no 8731 hardcode_direct_absolute=no 8732 hardcode_libdir_flag_spec= 8733 hardcode_libdir_flag_spec_ld= 8734 hardcode_libdir_separator= 8735 hardcode_minus_L=no 8736 hardcode_shlibpath_var=unsupported 8737 inherit_rpath=no 8738 link_all_deplibs=unknown 8739 module_cmds= 8740 module_expsym_cmds= 8741 old_archive_from_new_cmds= 8742 old_archive_from_expsyms_cmds= 8743 thread_safe_flag_spec= 8744 whole_archive_flag_spec= 8745 # include_expsyms should be a list of space-separated symbols to be *always* 8746 # included in the symbol list 8747 include_expsyms= 8748 # exclude_expsyms can be an extended regexp of symbols to exclude 8749 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8750 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8751 # as well as any symbol that contains `d'. 8752 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8753 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8754 # platforms (ab)use it in PIC code, but their linkers get confused if 8755 # the symbol is explicitly referenced. Since portable code cannot 8756 # rely on this symbol name, it's probably fine to never include it in 8757 # preloaded symbol tables. 8758 # Exclude shared library initialization/finalization symbols. 8759 extract_expsyms_cmds= 8760 8761 case $host_os in 8762 cygwin* | mingw* | pw32* | cegcc*) 8763 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8764 # When not using gcc, we currently assume that we are using 8765 # Microsoft Visual C++. 8766 if test "$GCC" != yes; then 8767 with_gnu_ld=no 8768 fi 8769 ;; 8770 interix*) 8771 # we just hope/assume this is gcc and not c89 (= MSVC++) 8772 with_gnu_ld=yes 8773 ;; 8774 openbsd*) 8775 with_gnu_ld=no 8776 ;; 8777 esac 8778 8779 ld_shlibs=yes 8780 8781 # On some targets, GNU ld is compatible enough with the native linker 8782 # that we're better off using the native interface for both. 8783 lt_use_gnu_ld_interface=no 8784 if test "$with_gnu_ld" = yes; then 8785 case $host_os in 8786 aix*) 8787 # The AIX port of GNU ld has always aspired to compatibility 8788 # with the native linker. However, as the warning in the GNU ld 8789 # block says, versions before 2.19.5* couldn't really create working 8790 # shared libraries, regardless of the interface used. 8791 case `$LD -v 2>&1` in 8792 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8793 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8794 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8795 *) 8796 lt_use_gnu_ld_interface=yes 8797 ;; 8798 esac 8799 ;; 8800 *) 8801 lt_use_gnu_ld_interface=yes 8802 ;; 8803 esac 8804 fi 8805 8806 if test "$lt_use_gnu_ld_interface" = yes; then 8807 # If archive_cmds runs LD, not CC, wlarc should be empty 8808 wlarc='${wl}' 8809 8810 # Set some defaults for GNU ld with shared library support. These 8811 # are reset later if shared libraries are not supported. Putting them 8812 # here allows them to be overridden if necessary. 8813 runpath_var=LD_RUN_PATH 8814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8815 export_dynamic_flag_spec='${wl}--export-dynamic' 8816 # ancient GNU ld didn't support --whole-archive et. al. 8817 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8818 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8819 else 8820 whole_archive_flag_spec= 8821 fi 8822 supports_anon_versioning=no 8823 case `$LD -v 2>&1` in 8824 *GNU\ gold*) supports_anon_versioning=yes ;; 8825 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8826 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8827 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8828 *\ 2.11.*) ;; # other 2.11 versions 8829 *) supports_anon_versioning=yes ;; 8830 esac 8831 8832 # See if GNU ld supports shared libraries. 8833 case $host_os in 8834 aix[3-9]*) 8835 # On AIX/PPC, the GNU linker is very broken 8836 if test "$host_cpu" != ia64; then 8837 ld_shlibs=no 8838 cat <<_LT_EOF 1>&2 8839 8840 *** Warning: the GNU linker, at least up to release 2.19, is reported 8841 *** to be unable to reliably create shared libraries on AIX. 8842 *** Therefore, libtool is disabling shared libraries support. If you 8843 *** really care for shared libraries, you may want to install binutils 8844 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8845 *** You will then need to restart the configuration process. 8846 8847 _LT_EOF 8848 fi 8849 ;; 8850 8851 amigaos*) 8852 case $host_cpu in 8853 powerpc) 8854 # see comment about AmigaOS4 .so support 8855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8856 archive_expsym_cmds='' 8857 ;; 8858 m68k) 8859 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)' 8860 hardcode_libdir_flag_spec='-L$libdir' 8861 hardcode_minus_L=yes 8862 ;; 8863 esac 8864 ;; 8865 8866 beos*) 8867 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8868 allow_undefined_flag=unsupported 8869 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 8870 # support --undefined. This deserves some investigation. FIXME 8871 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8872 else 8873 ld_shlibs=no 8874 fi 8875 ;; 8876 8877 cygwin* | mingw* | pw32* | cegcc*) 8878 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8879 # as there is no search path for DLLs. 8880 hardcode_libdir_flag_spec='-L$libdir' 8881 export_dynamic_flag_spec='${wl}--export-all-symbols' 8882 allow_undefined_flag=unsupported 8883 always_export_symbols=no 8884 enable_shared_with_static_runtimes=yes 8885 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8886 8887 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8889 # If the export-symbols file already is a .def file (1st line 8890 # is EXPORTS), use it as is; otherwise, prepend... 8891 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8892 cp $export_symbols $output_objdir/$soname.def; 8893 else 8894 echo EXPORTS > $output_objdir/$soname.def; 8895 cat $export_symbols >> $output_objdir/$soname.def; 8896 fi~ 8897 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8898 else 8899 ld_shlibs=no 8900 fi 8901 ;; 8902 8903 haiku*) 8904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8905 link_all_deplibs=yes 8906 ;; 8907 8908 interix[3-9]*) 8909 hardcode_direct=no 8910 hardcode_shlibpath_var=no 8911 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8912 export_dynamic_flag_spec='${wl}-E' 8913 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8914 # Instead, shared libraries are loaded at an image base (0x10000000 by 8915 # default) and relocated if they conflict, which is a slow very memory 8916 # consuming and fragmenting process. To avoid this, we pick a random, 8917 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8918 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8919 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8920 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' 8921 ;; 8922 8923 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 8924 tmp_diet=no 8925 if test "$host_os" = linux-dietlibc; then 8926 case $cc_basename in 8927 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8928 esac 8929 fi 8930 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8931 && test "$tmp_diet" = no 8932 then 8933 tmp_addflag=' $pic_flag' 8934 tmp_sharedflag='-shared' 8935 case $cc_basename,$host_cpu in 8936 pgcc*) # Portland Group C compiler 8937 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' 8938 tmp_addflag=' $pic_flag' 8939 ;; 8940 pgf77* | pgf90* | pgf95* | pgfortran*) 8941 # Portland Group f77 and f90 compilers 8942 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' 8943 tmp_addflag=' $pic_flag -Mnomain' ;; 8944 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8945 tmp_addflag=' -i_dynamic' ;; 8946 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8947 tmp_addflag=' -i_dynamic -nofor_main' ;; 8948 ifc* | ifort*) # Intel Fortran compiler 8949 tmp_addflag=' -nofor_main' ;; 8950 lf95*) # Lahey Fortran 8.1 8951 whole_archive_flag_spec= 8952 tmp_sharedflag='--shared' ;; 8953 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8954 tmp_sharedflag='-qmkshrobj' 8955 tmp_addflag= ;; 8956 nvcc*) # Cuda Compiler Driver 2.2 8957 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' 8958 compiler_needs_object=yes 8959 ;; 8960 esac 8961 case `$CC -V 2>&1 | sed 5q` in 8962 *Sun\ C*) # Sun C 5.9 8963 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' 8964 compiler_needs_object=yes 8965 tmp_sharedflag='-G' ;; 8966 *Sun\ F*) # Sun Fortran 8.3 8967 tmp_sharedflag='-G' ;; 8968 esac 8969 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8970 8971 if test "x$supports_anon_versioning" = xyes; then 8972 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8973 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8974 echo "local: *; };" >> $output_objdir/$libname.ver~ 8975 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8976 fi 8977 8978 case $cc_basename in 8979 xlf* | bgf* | bgxlf* | mpixlf*) 8980 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8981 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8982 hardcode_libdir_flag_spec= 8983 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8984 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8985 if test "x$supports_anon_versioning" = xyes; then 8986 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8987 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8988 echo "local: *; };" >> $output_objdir/$libname.ver~ 8989 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8990 fi 8991 ;; 8992 esac 8993 else 8994 ld_shlibs=no 8995 fi 8996 ;; 8997 8998 netbsd*) 8999 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9000 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9001 wlarc= 9002 else 9003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9004 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9005 fi 9006 ;; 9007 9008 solaris*) 9009 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9010 ld_shlibs=no 9011 cat <<_LT_EOF 1>&2 9012 9013 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9014 *** create shared libraries on Solaris systems. Therefore, libtool 9015 *** is disabling shared libraries support. We urge you to upgrade GNU 9016 *** binutils to release 2.9.1 or newer. Another option is to modify 9017 *** your PATH or compiler configuration so that the native linker is 9018 *** used, and then restart. 9019 9020 _LT_EOF 9021 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9023 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9024 else 9025 ld_shlibs=no 9026 fi 9027 ;; 9028 9029 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9030 case `$LD -v 2>&1` in 9031 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9032 ld_shlibs=no 9033 cat <<_LT_EOF 1>&2 9034 9035 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9036 *** reliably create shared libraries on SCO systems. Therefore, libtool 9037 *** is disabling shared libraries support. We urge you to upgrade GNU 9038 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9039 *** your PATH or compiler configuration so that the native linker is 9040 *** used, and then restart. 9041 9042 _LT_EOF 9043 ;; 9044 *) 9045 # For security reasons, it is highly recommended that you always 9046 # use absolute paths for naming shared libraries, and exclude the 9047 # DT_RUNPATH tag from executables and libraries. But doing so 9048 # requires that you compile everything twice, which is a pain. 9049 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9050 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9052 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9053 else 9054 ld_shlibs=no 9055 fi 9056 ;; 9057 esac 9058 ;; 9059 9060 sunos4*) 9061 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9062 wlarc= 9063 hardcode_direct=yes 9064 hardcode_shlibpath_var=no 9065 ;; 9066 9067 *) 9068 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9070 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9071 else 9072 ld_shlibs=no 9073 fi 9074 ;; 9075 esac 9076 9077 if test "$ld_shlibs" = no; then 9078 runpath_var= 9079 hardcode_libdir_flag_spec= 9080 export_dynamic_flag_spec= 9081 whole_archive_flag_spec= 9082 fi 9083 else 9084 # PORTME fill in a description of your system's linker (not GNU ld) 9085 case $host_os in 9086 aix3*) 9087 allow_undefined_flag=unsupported 9088 always_export_symbols=yes 9089 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' 9090 # Note: this linker hardcodes the directories in LIBPATH if there 9091 # are no directories specified by -L. 9092 hardcode_minus_L=yes 9093 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9094 # Neither direct hardcoding nor static linking is supported with a 9095 # broken collect2. 9096 hardcode_direct=unsupported 9097 fi 9098 ;; 9099 9100 aix[4-9]*) 9101 if test "$host_cpu" = ia64; then 9102 # On IA64, the linker does run time linking by default, so we don't 9103 # have to do anything special. 9104 aix_use_runtimelinking=no 9105 exp_sym_flag='-Bexport' 9106 no_entry_flag="" 9107 else 9108 # If we're using GNU nm, then we don't want the "-C" option. 9109 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9110 # Also, AIX nm treats weak defined symbols like other global 9111 # defined symbols, whereas GNU nm marks them as "W". 9112 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9113 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' 9114 else 9115 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' 9116 fi 9117 aix_use_runtimelinking=no 9118 9119 # Test if we are trying to use run time linking or normal 9120 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9121 # need to do runtime linking. 9122 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9123 for ld_flag in $LDFLAGS; do 9124 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9125 aix_use_runtimelinking=yes 9126 break 9127 fi 9128 done 9129 ;; 9130 esac 9131 9132 exp_sym_flag='-bexport' 9133 no_entry_flag='-bnoentry' 9134 fi 9135 9136 # When large executables or shared objects are built, AIX ld can 9137 # have problems creating the table of contents. If linking a library 9138 # or program results in "error TOC overflow" add -mminimal-toc to 9139 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9140 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9141 9142 archive_cmds='' 9143 hardcode_direct=yes 9144 hardcode_direct_absolute=yes 9145 hardcode_libdir_separator=':' 9146 link_all_deplibs=yes 9147 file_list_spec='${wl}-f,' 9148 9149 if test "$GCC" = yes; then 9150 case $host_os in aix4.[012]|aix4.[012].*) 9151 # We only want to do this on AIX 4.2 and lower, the check 9152 # below for broken collect2 doesn't work under 4.3+ 9153 collect2name=`${CC} -print-prog-name=collect2` 9154 if test -f "$collect2name" && 9155 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9156 then 9157 # We have reworked collect2 9158 : 9159 else 9160 # We have old collect2 9161 hardcode_direct=unsupported 9162 # It fails to find uninstalled libraries when the uninstalled 9163 # path is not listed in the libpath. Setting hardcode_minus_L 9164 # to unsupported forces relinking 9165 hardcode_minus_L=yes 9166 hardcode_libdir_flag_spec='-L$libdir' 9167 hardcode_libdir_separator= 9168 fi 9169 ;; 9170 esac 9171 shared_flag='-shared' 9172 if test "$aix_use_runtimelinking" = yes; then 9173 shared_flag="$shared_flag "'${wl}-G' 9174 fi 9175 else 9176 # not using gcc 9177 if test "$host_cpu" = ia64; then 9178 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9179 # chokes on -Wl,-G. The following line is correct: 9180 shared_flag='-G' 9181 else 9182 if test "$aix_use_runtimelinking" = yes; then 9183 shared_flag='${wl}-G' 9184 else 9185 shared_flag='${wl}-bM:SRE' 9186 fi 9187 fi 9188 fi 9189 9190 export_dynamic_flag_spec='${wl}-bexpall' 9191 # It seems that -bexpall does not export symbols beginning with 9192 # underscore (_), so it is better to generate a list of symbols to export. 9193 always_export_symbols=yes 9194 if test "$aix_use_runtimelinking" = yes; then 9195 # Warning - without using the other runtime loading flags (-brtl), 9196 # -berok will link without error, but may produce a broken library. 9197 allow_undefined_flag='-berok' 9198 # Determine the default libpath from the value encoded in an 9199 # empty executable. 9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9201 /* end confdefs.h. */ 9202 9203 int 9204 main () 9205 { 9206 9207 ; 9208 return 0; 9209 } 9210 _ACEOF 9211 if ac_fn_c_try_link "$LINENO"; then : 9212 9213 lt_aix_libpath_sed=' 9214 /Import File Strings/,/^$/ { 9215 /^0/ { 9216 s/^0 *\(.*\)$/\1/ 9217 p 9218 } 9219 }' 9220 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9221 # Check for a 64-bit object if we didn't find anything. 9222 if test -z "$aix_libpath"; then 9223 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9224 fi 9225 fi 9226 rm -f core conftest.err conftest.$ac_objext \ 9227 conftest$ac_exeext conftest.$ac_ext 9228 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9229 9230 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9231 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" 9232 else 9233 if test "$host_cpu" = ia64; then 9234 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9235 allow_undefined_flag="-z nodefs" 9236 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" 9237 else 9238 # Determine the default libpath from the value encoded in an 9239 # empty executable. 9240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9241 /* end confdefs.h. */ 9242 9243 int 9244 main () 9245 { 9246 9247 ; 9248 return 0; 9249 } 9250 _ACEOF 9251 if ac_fn_c_try_link "$LINENO"; then : 9252 9253 lt_aix_libpath_sed=' 9254 /Import File Strings/,/^$/ { 9255 /^0/ { 9256 s/^0 *\(.*\)$/\1/ 9257 p 9258 } 9259 }' 9260 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9261 # Check for a 64-bit object if we didn't find anything. 9262 if test -z "$aix_libpath"; then 9263 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9264 fi 9265 fi 9266 rm -f core conftest.err conftest.$ac_objext \ 9267 conftest$ac_exeext conftest.$ac_ext 9268 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9269 9270 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9271 # Warning - without using the other run time loading flags, 9272 # -berok will link without error, but may produce a broken library. 9273 no_undefined_flag=' ${wl}-bernotok' 9274 allow_undefined_flag=' ${wl}-berok' 9275 if test "$with_gnu_ld" = yes; then 9276 # We only use this code for GNU lds that support --whole-archive. 9277 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9278 else 9279 # Exported symbols can be pulled into shared objects from archives 9280 whole_archive_flag_spec='$convenience' 9281 fi 9282 archive_cmds_need_lc=yes 9283 # This is similar to how AIX traditionally builds its shared libraries. 9284 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' 9285 fi 9286 fi 9287 ;; 9288 9289 amigaos*) 9290 case $host_cpu in 9291 powerpc) 9292 # see comment about AmigaOS4 .so support 9293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9294 archive_expsym_cmds='' 9295 ;; 9296 m68k) 9297 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)' 9298 hardcode_libdir_flag_spec='-L$libdir' 9299 hardcode_minus_L=yes 9300 ;; 9301 esac 9302 ;; 9303 9304 bsdi[45]*) 9305 export_dynamic_flag_spec=-rdynamic 9306 ;; 9307 9308 cygwin* | mingw* | pw32* | cegcc*) 9309 # When not using gcc, we currently assume that we are using 9310 # Microsoft Visual C++. 9311 # hardcode_libdir_flag_spec is actually meaningless, as there is 9312 # no search path for DLLs. 9313 hardcode_libdir_flag_spec=' ' 9314 allow_undefined_flag=unsupported 9315 # Tell ltmain to make .lib files, not .a files. 9316 libext=lib 9317 # Tell ltmain to make .dll files, not .so files. 9318 shrext_cmds=".dll" 9319 # FIXME: Setting linknames here is a bad hack. 9320 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9321 # The linker will automatically build a .lib file if we build a DLL. 9322 old_archive_from_new_cmds='true' 9323 # FIXME: Should let the user specify the lib program. 9324 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9325 fix_srcfile_path='`cygpath -w "$srcfile"`' 9326 enable_shared_with_static_runtimes=yes 9327 ;; 9328 9329 darwin* | rhapsody*) 9330 9331 9332 archive_cmds_need_lc=no 9333 hardcode_direct=no 9334 hardcode_automatic=yes 9335 hardcode_shlibpath_var=unsupported 9336 if test "$lt_cv_ld_force_load" = "yes"; then 9337 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\"`' 9338 else 9339 whole_archive_flag_spec='' 9340 fi 9341 link_all_deplibs=yes 9342 allow_undefined_flag="$_lt_dar_allow_undefined" 9343 case $cc_basename in 9344 ifort*) _lt_dar_can_shared=yes ;; 9345 *) _lt_dar_can_shared=$GCC ;; 9346 esac 9347 if test "$_lt_dar_can_shared" = "yes"; then 9348 output_verbose_link_cmd=func_echo_all 9349 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9350 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9351 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 9352 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}" 9353 9354 else 9355 ld_shlibs=no 9356 fi 9357 9358 ;; 9359 9360 dgux*) 9361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9362 hardcode_libdir_flag_spec='-L$libdir' 9363 hardcode_shlibpath_var=no 9364 ;; 9365 9366 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9367 # support. Future versions do this automatically, but an explicit c++rt0.o 9368 # does not break anything, and helps significantly (at the cost of a little 9369 # extra space). 9370 freebsd2.2*) 9371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9372 hardcode_libdir_flag_spec='-R$libdir' 9373 hardcode_direct=yes 9374 hardcode_shlibpath_var=no 9375 ;; 9376 9377 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9378 freebsd2.*) 9379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9380 hardcode_direct=yes 9381 hardcode_minus_L=yes 9382 hardcode_shlibpath_var=no 9383 ;; 9384 9385 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9386 freebsd* | dragonfly*) 9387 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9388 hardcode_libdir_flag_spec='-R$libdir' 9389 hardcode_direct=yes 9390 hardcode_shlibpath_var=no 9391 ;; 9392 9393 hpux9*) 9394 if test "$GCC" = yes; then 9395 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' 9396 else 9397 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' 9398 fi 9399 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9400 hardcode_libdir_separator=: 9401 hardcode_direct=yes 9402 9403 # hardcode_minus_L: Not really in the search PATH, 9404 # but as the default location of the library. 9405 hardcode_minus_L=yes 9406 export_dynamic_flag_spec='${wl}-E' 9407 ;; 9408 9409 hpux10*) 9410 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9411 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9412 else 9413 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9414 fi 9415 if test "$with_gnu_ld" = no; then 9416 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9417 hardcode_libdir_flag_spec_ld='+b $libdir' 9418 hardcode_libdir_separator=: 9419 hardcode_direct=yes 9420 hardcode_direct_absolute=yes 9421 export_dynamic_flag_spec='${wl}-E' 9422 # hardcode_minus_L: Not really in the search PATH, 9423 # but as the default location of the library. 9424 hardcode_minus_L=yes 9425 fi 9426 ;; 9427 9428 hpux11*) 9429 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9430 case $host_cpu in 9431 hppa*64*) 9432 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9433 ;; 9434 ia64*) 9435 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9436 ;; 9437 *) 9438 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9439 ;; 9440 esac 9441 else 9442 case $host_cpu in 9443 hppa*64*) 9444 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9445 ;; 9446 ia64*) 9447 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9448 ;; 9449 *) 9450 9451 # Older versions of the 11.00 compiler do not understand -b yet 9452 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9454 $as_echo_n "checking if $CC understands -b... " >&6; } 9455 if ${lt_cv_prog_compiler__b+:} false; then : 9456 $as_echo_n "(cached) " >&6 9457 else 9458 lt_cv_prog_compiler__b=no 9459 save_LDFLAGS="$LDFLAGS" 9460 LDFLAGS="$LDFLAGS -b" 9461 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9462 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9463 # The linker can only warn and ignore the option if not recognized 9464 # So say no if there are warnings 9465 if test -s conftest.err; then 9466 # Append any errors to the config.log. 9467 cat conftest.err 1>&5 9468 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9470 if diff conftest.exp conftest.er2 >/dev/null; then 9471 lt_cv_prog_compiler__b=yes 9472 fi 9473 else 9474 lt_cv_prog_compiler__b=yes 9475 fi 9476 fi 9477 $RM -r conftest* 9478 LDFLAGS="$save_LDFLAGS" 9479 9480 fi 9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9482 $as_echo "$lt_cv_prog_compiler__b" >&6; } 9483 9484 if test x"$lt_cv_prog_compiler__b" = xyes; then 9485 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9486 else 9487 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9488 fi 9489 9490 ;; 9491 esac 9492 fi 9493 if test "$with_gnu_ld" = no; then 9494 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9495 hardcode_libdir_separator=: 9496 9497 case $host_cpu in 9498 hppa*64*|ia64*) 9499 hardcode_direct=no 9500 hardcode_shlibpath_var=no 9501 ;; 9502 *) 9503 hardcode_direct=yes 9504 hardcode_direct_absolute=yes 9505 export_dynamic_flag_spec='${wl}-E' 9506 9507 # hardcode_minus_L: Not really in the search PATH, 9508 # but as the default location of the library. 9509 hardcode_minus_L=yes 9510 ;; 9511 esac 9512 fi 9513 ;; 9514 9515 irix5* | irix6* | nonstopux*) 9516 if test "$GCC" = yes; then 9517 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' 9518 # Try to use the -exported_symbol ld option, if it does not 9519 # work, assume that -exports_file does not work either and 9520 # implicitly export all symbols. 9521 save_LDFLAGS="$LDFLAGS" 9522 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9524 /* end confdefs.h. */ 9525 int foo(void) {} 9526 _ACEOF 9527 if ac_fn_c_try_link "$LINENO"; then : 9528 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' 9529 9530 fi 9531 rm -f core conftest.err conftest.$ac_objext \ 9532 conftest$ac_exeext conftest.$ac_ext 9533 LDFLAGS="$save_LDFLAGS" 9534 else 9535 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' 9536 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' 9537 fi 9538 archive_cmds_need_lc='no' 9539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9540 hardcode_libdir_separator=: 9541 inherit_rpath=yes 9542 link_all_deplibs=yes 9543 ;; 9544 9545 netbsd*) 9546 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9548 else 9549 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9550 fi 9551 hardcode_libdir_flag_spec='-R$libdir' 9552 hardcode_direct=yes 9553 hardcode_shlibpath_var=no 9554 ;; 9555 9556 newsos6) 9557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9558 hardcode_direct=yes 9559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9560 hardcode_libdir_separator=: 9561 hardcode_shlibpath_var=no 9562 ;; 9563 9564 *nto* | *qnx*) 9565 ;; 9566 9567 openbsd*) 9568 if test -f /usr/libexec/ld.so; then 9569 hardcode_direct=yes 9570 hardcode_shlibpath_var=no 9571 hardcode_direct_absolute=yes 9572 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9573 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9574 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9575 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9576 export_dynamic_flag_spec='${wl}-E' 9577 else 9578 case $host_os in 9579 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9580 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9581 hardcode_libdir_flag_spec='-R$libdir' 9582 ;; 9583 *) 9584 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9585 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9586 ;; 9587 esac 9588 fi 9589 else 9590 ld_shlibs=no 9591 fi 9592 ;; 9593 9594 os2*) 9595 hardcode_libdir_flag_spec='-L$libdir' 9596 hardcode_minus_L=yes 9597 allow_undefined_flag=unsupported 9598 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' 9599 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9600 ;; 9601 9602 osf3*) 9603 if test "$GCC" = yes; then 9604 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9605 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' 9606 else 9607 allow_undefined_flag=' -expect_unresolved \*' 9608 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' 9609 fi 9610 archive_cmds_need_lc='no' 9611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9612 hardcode_libdir_separator=: 9613 ;; 9614 9615 osf4* | osf5*) # as osf3* with the addition of -msym flag 9616 if test "$GCC" = yes; then 9617 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9618 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' 9619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9620 else 9621 allow_undefined_flag=' -expect_unresolved \*' 9622 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' 9623 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~ 9624 $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' 9625 9626 # Both c and cxx compiler support -rpath directly 9627 hardcode_libdir_flag_spec='-rpath $libdir' 9628 fi 9629 archive_cmds_need_lc='no' 9630 hardcode_libdir_separator=: 9631 ;; 9632 9633 solaris*) 9634 no_undefined_flag=' -z defs' 9635 if test "$GCC" = yes; then 9636 wlarc='${wl}' 9637 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9638 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9639 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9640 else 9641 case `$CC -V 2>&1` in 9642 *"Compilers 5.0"*) 9643 wlarc='' 9644 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9645 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9646 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9647 ;; 9648 *) 9649 wlarc='${wl}' 9650 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9651 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9652 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9653 ;; 9654 esac 9655 fi 9656 hardcode_libdir_flag_spec='-R$libdir' 9657 hardcode_shlibpath_var=no 9658 case $host_os in 9659 solaris2.[0-5] | solaris2.[0-5].*) ;; 9660 *) 9661 # The compiler driver will combine and reorder linker options, 9662 # but understands `-z linker_flag'. GCC discards it without `$wl', 9663 # but is careful enough not to reorder. 9664 # Supported since Solaris 2.6 (maybe 2.5.1?) 9665 if test "$GCC" = yes; then 9666 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9667 else 9668 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9669 fi 9670 ;; 9671 esac 9672 link_all_deplibs=yes 9673 ;; 9674 9675 sunos4*) 9676 if test "x$host_vendor" = xsequent; then 9677 # Use $CC to link under sequent, because it throws in some extra .o 9678 # files that make .init and .fini sections work. 9679 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9680 else 9681 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9682 fi 9683 hardcode_libdir_flag_spec='-L$libdir' 9684 hardcode_direct=yes 9685 hardcode_minus_L=yes 9686 hardcode_shlibpath_var=no 9687 ;; 9688 9689 sysv4) 9690 case $host_vendor in 9691 sni) 9692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9693 hardcode_direct=yes # is this really true??? 9694 ;; 9695 siemens) 9696 ## LD is ld it makes a PLAMLIB 9697 ## CC just makes a GrossModule. 9698 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9699 reload_cmds='$CC -r -o $output$reload_objs' 9700 hardcode_direct=no 9701 ;; 9702 motorola) 9703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9704 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9705 ;; 9706 esac 9707 runpath_var='LD_RUN_PATH' 9708 hardcode_shlibpath_var=no 9709 ;; 9710 9711 sysv4.3*) 9712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9713 hardcode_shlibpath_var=no 9714 export_dynamic_flag_spec='-Bexport' 9715 ;; 9716 9717 sysv4*MP*) 9718 if test -d /usr/nec; then 9719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9720 hardcode_shlibpath_var=no 9721 runpath_var=LD_RUN_PATH 9722 hardcode_runpath_var=yes 9723 ld_shlibs=yes 9724 fi 9725 ;; 9726 9727 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9728 no_undefined_flag='${wl}-z,text' 9729 archive_cmds_need_lc=no 9730 hardcode_shlibpath_var=no 9731 runpath_var='LD_RUN_PATH' 9732 9733 if test "$GCC" = yes; then 9734 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9735 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9736 else 9737 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9738 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9739 fi 9740 ;; 9741 9742 sysv5* | sco3.2v5* | sco5v6*) 9743 # Note: We can NOT use -z defs as we might desire, because we do not 9744 # link with -lc, and that would cause any symbols used from libc to 9745 # always be unresolved, which means just about no library would 9746 # ever link correctly. If we're not using GNU ld we use -z text 9747 # though, which does catch some bad symbols but isn't as heavy-handed 9748 # as -z defs. 9749 no_undefined_flag='${wl}-z,text' 9750 allow_undefined_flag='${wl}-z,nodefs' 9751 archive_cmds_need_lc=no 9752 hardcode_shlibpath_var=no 9753 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9754 hardcode_libdir_separator=':' 9755 link_all_deplibs=yes 9756 export_dynamic_flag_spec='${wl}-Bexport' 9757 runpath_var='LD_RUN_PATH' 9758 9759 if test "$GCC" = yes; then 9760 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9761 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9762 else 9763 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9764 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9765 fi 9766 ;; 9767 9768 uts4*) 9769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9770 hardcode_libdir_flag_spec='-L$libdir' 9771 hardcode_shlibpath_var=no 9772 ;; 9773 9774 *) 9775 ld_shlibs=no 9776 ;; 9777 esac 9778 9779 if test x$host_vendor = xsni; then 9780 case $host in 9781 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9782 export_dynamic_flag_spec='${wl}-Blargedynsym' 9783 ;; 9784 esac 9785 fi 9786 fi 9787 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9789 $as_echo "$ld_shlibs" >&6; } 9790 test "$ld_shlibs" = no && can_build_shared=no 9791 9792 with_gnu_ld=$with_gnu_ld 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 # 9809 # Do we need to explicitly link libc? 9810 # 9811 case "x$archive_cmds_need_lc" in 9812 x|xyes) 9813 # Assume -lc should be added 9814 archive_cmds_need_lc=yes 9815 9816 if test "$enable_shared" = yes && test "$GCC" = yes; then 9817 case $archive_cmds in 9818 *'~'*) 9819 # FIXME: we may have to deal with multi-command sequences. 9820 ;; 9821 '$CC '*) 9822 # Test whether the compiler implicitly links with -lc since on some 9823 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9824 # to ld, don't add -lc before -lgcc. 9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9826 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9827 if ${lt_cv_archive_cmds_need_lc+:} false; then : 9828 $as_echo_n "(cached) " >&6 9829 else 9830 $RM conftest* 9831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9832 9833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9834 (eval $ac_compile) 2>&5 9835 ac_status=$? 9836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9837 test $ac_status = 0; } 2>conftest.err; then 9838 soname=conftest 9839 lib=conftest 9840 libobjs=conftest.$ac_objext 9841 deplibs= 9842 wl=$lt_prog_compiler_wl 9843 pic_flag=$lt_prog_compiler_pic 9844 compiler_flags=-v 9845 linker_flags=-v 9846 verstring= 9847 output_objdir=. 9848 libname=conftest 9849 lt_save_allow_undefined_flag=$allow_undefined_flag 9850 allow_undefined_flag= 9851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9852 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9853 ac_status=$? 9854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9855 test $ac_status = 0; } 9856 then 9857 lt_cv_archive_cmds_need_lc=no 9858 else 9859 lt_cv_archive_cmds_need_lc=yes 9860 fi 9861 allow_undefined_flag=$lt_save_allow_undefined_flag 9862 else 9863 cat conftest.err 1>&5 9864 fi 9865 $RM conftest* 9866 9867 fi 9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9869 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9870 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9871 ;; 9872 esac 9873 fi 9874 ;; 9875 esac 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10034 $as_echo_n "checking dynamic linker characteristics... " >&6; } 10035 10036 if test "$GCC" = yes; then 10037 case $host_os in 10038 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10039 *) lt_awk_arg="/^libraries:/" ;; 10040 esac 10041 case $host_os in 10042 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10043 *) lt_sed_strip_eq="s,=/,/,g" ;; 10044 esac 10045 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10046 case $lt_search_path_spec in 10047 *\;*) 10048 # if the path contains ";" then we assume it to be the separator 10049 # otherwise default to the standard path separator (i.e. ":") - it is 10050 # assumed that no part of a normal pathname contains ";" but that should 10051 # okay in the real world where ";" in dirpaths is itself problematic. 10052 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10053 ;; 10054 *) 10055 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10056 ;; 10057 esac 10058 # Ok, now we have the path, separated by spaces, we can step through it 10059 # and add multilib dir if necessary. 10060 lt_tmp_lt_search_path_spec= 10061 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10062 for lt_sys_path in $lt_search_path_spec; do 10063 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10064 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10065 else 10066 test -d "$lt_sys_path" && \ 10067 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10068 fi 10069 done 10070 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10071 BEGIN {RS=" "; FS="/|\n";} { 10072 lt_foo=""; 10073 lt_count=0; 10074 for (lt_i = NF; lt_i > 0; lt_i--) { 10075 if ($lt_i != "" && $lt_i != ".") { 10076 if ($lt_i == "..") { 10077 lt_count++; 10078 } else { 10079 if (lt_count == 0) { 10080 lt_foo="/" $lt_i lt_foo; 10081 } else { 10082 lt_count--; 10083 } 10084 } 10085 } 10086 } 10087 if (lt_foo != "") { lt_freq[lt_foo]++; } 10088 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10089 }'` 10090 # AWK program above erroneously prepends '/' to C:/dos/paths 10091 # for these hosts. 10092 case $host_os in 10093 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10094 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10095 esac 10096 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10097 else 10098 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10099 fi 10100 library_names_spec= 10101 libname_spec='lib$name' 10102 soname_spec= 10103 shrext_cmds=".so" 10104 postinstall_cmds= 10105 postuninstall_cmds= 10106 finish_cmds= 10107 finish_eval= 10108 shlibpath_var= 10109 shlibpath_overrides_runpath=unknown 10110 version_type=none 10111 dynamic_linker="$host_os ld.so" 10112 sys_lib_dlsearch_path_spec="/lib /usr/lib" 10113 need_lib_prefix=unknown 10114 hardcode_into_libs=no 10115 10116 # when you set need_version to no, make sure it does not cause -set_version 10117 # flags to be left without arguments 10118 need_version=unknown 10119 10120 case $host_os in 10121 aix3*) 10122 version_type=linux 10123 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10124 shlibpath_var=LIBPATH 10125 10126 # AIX 3 has no versioning support, so we append a major version to the name. 10127 soname_spec='${libname}${release}${shared_ext}$major' 10128 ;; 10129 10130 aix[4-9]*) 10131 version_type=linux 10132 need_lib_prefix=no 10133 need_version=no 10134 hardcode_into_libs=yes 10135 if test "$host_cpu" = ia64; then 10136 # AIX 5 supports IA64 10137 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10138 shlibpath_var=LD_LIBRARY_PATH 10139 else 10140 # With GCC up to 2.95.x, collect2 would create an import file 10141 # for dependence libraries. The import file would start with 10142 # the line `#! .'. This would cause the generated library to 10143 # depend on `.', always an invalid library. This was fixed in 10144 # development snapshots of GCC prior to 3.0. 10145 case $host_os in 10146 aix4 | aix4.[01] | aix4.[01].*) 10147 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10148 echo ' yes ' 10149 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10150 : 10151 else 10152 can_build_shared=no 10153 fi 10154 ;; 10155 esac 10156 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10157 # soname into executable. Probably we can add versioning support to 10158 # collect2, so additional links can be useful in future. 10159 if test "$aix_use_runtimelinking" = yes; then 10160 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10161 # instead of lib<name>.a to let people know that these are not 10162 # typical AIX shared libraries. 10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10164 else 10165 # We preserve .a as extension for shared libraries through AIX4.2 10166 # and later when we are not doing run time linking. 10167 library_names_spec='${libname}${release}.a $libname.a' 10168 soname_spec='${libname}${release}${shared_ext}$major' 10169 fi 10170 shlibpath_var=LIBPATH 10171 fi 10172 ;; 10173 10174 amigaos*) 10175 case $host_cpu in 10176 powerpc) 10177 # Since July 2007 AmigaOS4 officially supports .so libraries. 10178 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10180 ;; 10181 m68k) 10182 library_names_spec='$libname.ixlibrary $libname.a' 10183 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10184 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' 10185 ;; 10186 esac 10187 ;; 10188 10189 beos*) 10190 library_names_spec='${libname}${shared_ext}' 10191 dynamic_linker="$host_os ld.so" 10192 shlibpath_var=LIBRARY_PATH 10193 ;; 10194 10195 bsdi[45]*) 10196 version_type=linux 10197 need_version=no 10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10199 soname_spec='${libname}${release}${shared_ext}$major' 10200 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10201 shlibpath_var=LD_LIBRARY_PATH 10202 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10203 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10204 # the default ld.so.conf also contains /usr/contrib/lib and 10205 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10206 # libtool to hard-code these into programs 10207 ;; 10208 10209 cygwin* | mingw* | pw32* | cegcc*) 10210 version_type=windows 10211 shrext_cmds=".dll" 10212 need_version=no 10213 need_lib_prefix=no 10214 10215 case $GCC,$host_os in 10216 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10217 library_names_spec='$libname.dll.a' 10218 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10219 postinstall_cmds='base_file=`basename \${file}`~ 10220 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10221 dldir=$destdir/`dirname \$dlpath`~ 10222 test -d \$dldir || mkdir -p \$dldir~ 10223 $install_prog $dir/$dlname \$dldir/$dlname~ 10224 chmod a+x \$dldir/$dlname~ 10225 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10226 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10227 fi' 10228 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10229 dlpath=$dir/\$dldll~ 10230 $RM \$dlpath' 10231 shlibpath_overrides_runpath=yes 10232 10233 case $host_os in 10234 cygwin*) 10235 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10236 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10237 10238 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10239 ;; 10240 mingw* | cegcc*) 10241 # MinGW DLLs use traditional 'lib' prefix 10242 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10243 ;; 10244 pw32*) 10245 # pw32 DLLs use 'pw' prefix rather than 'lib' 10246 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10247 ;; 10248 esac 10249 ;; 10250 10251 *) 10252 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10253 ;; 10254 esac 10255 dynamic_linker='Win32 ld.exe' 10256 # FIXME: first we should search . and the directory the executable is in 10257 shlibpath_var=PATH 10258 ;; 10259 10260 darwin* | rhapsody*) 10261 dynamic_linker="$host_os dyld" 10262 version_type=darwin 10263 need_lib_prefix=no 10264 need_version=no 10265 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10266 soname_spec='${libname}${release}${major}$shared_ext' 10267 shlibpath_overrides_runpath=yes 10268 shlibpath_var=DYLD_LIBRARY_PATH 10269 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10270 10271 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10272 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10273 ;; 10274 10275 dgux*) 10276 version_type=linux 10277 need_lib_prefix=no 10278 need_version=no 10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10280 soname_spec='${libname}${release}${shared_ext}$major' 10281 shlibpath_var=LD_LIBRARY_PATH 10282 ;; 10283 10284 freebsd* | dragonfly*) 10285 # DragonFly does not have aout. When/if they implement a new 10286 # versioning mechanism, adjust this. 10287 if test -x /usr/bin/objformat; then 10288 objformat=`/usr/bin/objformat` 10289 else 10290 case $host_os in 10291 freebsd[23].*) objformat=aout ;; 10292 *) objformat=elf ;; 10293 esac 10294 fi 10295 version_type=freebsd-$objformat 10296 case $version_type in 10297 freebsd-elf*) 10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10299 need_version=no 10300 need_lib_prefix=no 10301 ;; 10302 freebsd-*) 10303 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10304 need_version=yes 10305 ;; 10306 esac 10307 shlibpath_var=LD_LIBRARY_PATH 10308 case $host_os in 10309 freebsd2.*) 10310 shlibpath_overrides_runpath=yes 10311 ;; 10312 freebsd3.[01]* | freebsdelf3.[01]*) 10313 shlibpath_overrides_runpath=yes 10314 hardcode_into_libs=yes 10315 ;; 10316 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10317 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10318 shlibpath_overrides_runpath=no 10319 hardcode_into_libs=yes 10320 ;; 10321 *) # from 4.6 on, and DragonFly 10322 shlibpath_overrides_runpath=yes 10323 hardcode_into_libs=yes 10324 ;; 10325 esac 10326 ;; 10327 10328 haiku*) 10329 version_type=linux 10330 need_lib_prefix=no 10331 need_version=no 10332 dynamic_linker="$host_os runtime_loader" 10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10334 soname_spec='${libname}${release}${shared_ext}$major' 10335 shlibpath_var=LIBRARY_PATH 10336 shlibpath_overrides_runpath=yes 10337 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10338 hardcode_into_libs=yes 10339 ;; 10340 10341 hpux9* | hpux10* | hpux11*) 10342 # Give a soname corresponding to the major version so that dld.sl refuses to 10343 # link against other versions. 10344 version_type=sunos 10345 need_lib_prefix=no 10346 need_version=no 10347 case $host_cpu in 10348 ia64*) 10349 shrext_cmds='.so' 10350 hardcode_into_libs=yes 10351 dynamic_linker="$host_os dld.so" 10352 shlibpath_var=LD_LIBRARY_PATH 10353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10355 soname_spec='${libname}${release}${shared_ext}$major' 10356 if test "X$HPUX_IA64_MODE" = X32; then 10357 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10358 else 10359 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10360 fi 10361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10362 ;; 10363 hppa*64*) 10364 shrext_cmds='.sl' 10365 hardcode_into_libs=yes 10366 dynamic_linker="$host_os dld.sl" 10367 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10370 soname_spec='${libname}${release}${shared_ext}$major' 10371 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10373 ;; 10374 *) 10375 shrext_cmds='.sl' 10376 dynamic_linker="$host_os dld.sl" 10377 shlibpath_var=SHLIB_PATH 10378 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10380 soname_spec='${libname}${release}${shared_ext}$major' 10381 ;; 10382 esac 10383 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10384 postinstall_cmds='chmod 555 $lib' 10385 # or fails outright, so override atomically: 10386 install_override_mode=555 10387 ;; 10388 10389 interix[3-9]*) 10390 version_type=linux 10391 need_lib_prefix=no 10392 need_version=no 10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10394 soname_spec='${libname}${release}${shared_ext}$major' 10395 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10396 shlibpath_var=LD_LIBRARY_PATH 10397 shlibpath_overrides_runpath=no 10398 hardcode_into_libs=yes 10399 ;; 10400 10401 irix5* | irix6* | nonstopux*) 10402 case $host_os in 10403 nonstopux*) version_type=nonstopux ;; 10404 *) 10405 if test "$lt_cv_prog_gnu_ld" = yes; then 10406 version_type=linux 10407 else 10408 version_type=irix 10409 fi ;; 10410 esac 10411 need_lib_prefix=no 10412 need_version=no 10413 soname_spec='${libname}${release}${shared_ext}$major' 10414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10415 case $host_os in 10416 irix5* | nonstopux*) 10417 libsuff= shlibsuff= 10418 ;; 10419 *) 10420 case $LD in # libtool.m4 will add one of these switches to LD 10421 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10422 libsuff= shlibsuff= libmagic=32-bit;; 10423 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10424 libsuff=32 shlibsuff=N32 libmagic=N32;; 10425 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10426 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10427 *) libsuff= shlibsuff= libmagic=never-match;; 10428 esac 10429 ;; 10430 esac 10431 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10432 shlibpath_overrides_runpath=no 10433 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10434 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10435 hardcode_into_libs=yes 10436 ;; 10437 10438 # No shared lib support for Linux oldld, aout, or coff. 10439 linux*oldld* | linux*aout* | linux*coff*) 10440 dynamic_linker=no 10441 ;; 10442 10443 # This must be Linux ELF. 10444 10445 # uclinux* changes (here and below) have been submitted to the libtool 10446 # project, but have not yet been accepted: they are GCC-local changes 10447 # for the time being. (See 10448 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 10449 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) 10450 version_type=linux 10451 need_lib_prefix=no 10452 need_version=no 10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10454 soname_spec='${libname}${release}${shared_ext}$major' 10455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10456 shlibpath_var=LD_LIBRARY_PATH 10457 shlibpath_overrides_runpath=no 10458 10459 # Some binutils ld are patched to set DT_RUNPATH 10460 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10461 $as_echo_n "(cached) " >&6 10462 else 10463 lt_cv_shlibpath_overrides_runpath=no 10464 save_LDFLAGS=$LDFLAGS 10465 save_libdir=$libdir 10466 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10467 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10469 /* end confdefs.h. */ 10470 10471 int 10472 main () 10473 { 10474 10475 ; 10476 return 0; 10477 } 10478 _ACEOF 10479 if ac_fn_c_try_link "$LINENO"; then : 10480 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10481 lt_cv_shlibpath_overrides_runpath=yes 10482 fi 10483 fi 10484 rm -f core conftest.err conftest.$ac_objext \ 10485 conftest$ac_exeext conftest.$ac_ext 10486 LDFLAGS=$save_LDFLAGS 10487 libdir=$save_libdir 10488 10489 fi 10490 10491 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10492 10493 # This implies no fast_install, which is unacceptable. 10494 # Some rework will be needed to allow for fast_install 10495 # before this can be enabled. 10496 hardcode_into_libs=yes 10497 10498 # Append ld.so.conf contents to the search path 10499 if test -f /etc/ld.so.conf; then 10500 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' ' '` 10501 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10502 fi 10503 10504 # We used to test for /lib/ld.so.1 and disable shared libraries on 10505 # powerpc, because MkLinux only supported shared libraries with the 10506 # GNU dynamic linker. Since this was broken with cross compilers, 10507 # most powerpc-linux boxes support dynamic linking these days and 10508 # people can always --disable-shared, the test was removed, and we 10509 # assume the GNU/Linux dynamic linker is in use. 10510 dynamic_linker='GNU/Linux ld.so' 10511 ;; 10512 10513 netbsd*) 10514 version_type=sunos 10515 need_lib_prefix=no 10516 need_version=no 10517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10520 dynamic_linker='NetBSD (a.out) ld.so' 10521 else 10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10523 soname_spec='${libname}${release}${shared_ext}$major' 10524 dynamic_linker='NetBSD ld.elf_so' 10525 fi 10526 shlibpath_var=LD_LIBRARY_PATH 10527 shlibpath_overrides_runpath=yes 10528 hardcode_into_libs=yes 10529 ;; 10530 10531 newsos6) 10532 version_type=linux 10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10534 shlibpath_var=LD_LIBRARY_PATH 10535 shlibpath_overrides_runpath=yes 10536 ;; 10537 10538 *nto* | *qnx*) 10539 version_type=qnx 10540 need_lib_prefix=no 10541 need_version=no 10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10543 soname_spec='${libname}${release}${shared_ext}$major' 10544 shlibpath_var=LD_LIBRARY_PATH 10545 shlibpath_overrides_runpath=no 10546 hardcode_into_libs=yes 10547 dynamic_linker='ldqnx.so' 10548 ;; 10549 10550 openbsd*) 10551 version_type=sunos 10552 sys_lib_dlsearch_path_spec="/usr/lib" 10553 need_lib_prefix=no 10554 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10555 case $host_os in 10556 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10557 *) need_version=no ;; 10558 esac 10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10560 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10561 shlibpath_var=LD_LIBRARY_PATH 10562 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10563 case $host_os in 10564 openbsd2.[89] | openbsd2.[89].*) 10565 shlibpath_overrides_runpath=no 10566 ;; 10567 *) 10568 shlibpath_overrides_runpath=yes 10569 ;; 10570 esac 10571 else 10572 shlibpath_overrides_runpath=yes 10573 fi 10574 ;; 10575 10576 os2*) 10577 libname_spec='$name' 10578 shrext_cmds=".dll" 10579 need_lib_prefix=no 10580 library_names_spec='$libname${shared_ext} $libname.a' 10581 dynamic_linker='OS/2 ld.exe' 10582 shlibpath_var=LIBPATH 10583 ;; 10584 10585 osf3* | osf4* | osf5*) 10586 version_type=osf 10587 need_lib_prefix=no 10588 need_version=no 10589 soname_spec='${libname}${release}${shared_ext}$major' 10590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10591 shlibpath_var=LD_LIBRARY_PATH 10592 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10593 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10594 ;; 10595 10596 rdos*) 10597 dynamic_linker=no 10598 ;; 10599 10600 solaris*) 10601 version_type=linux 10602 need_lib_prefix=no 10603 need_version=no 10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10605 soname_spec='${libname}${release}${shared_ext}$major' 10606 shlibpath_var=LD_LIBRARY_PATH 10607 shlibpath_overrides_runpath=yes 10608 hardcode_into_libs=yes 10609 # ldd complains unless libraries are executable 10610 postinstall_cmds='chmod +x $lib' 10611 ;; 10612 10613 sunos4*) 10614 version_type=sunos 10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10616 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10617 shlibpath_var=LD_LIBRARY_PATH 10618 shlibpath_overrides_runpath=yes 10619 if test "$with_gnu_ld" = yes; then 10620 need_lib_prefix=no 10621 fi 10622 need_version=yes 10623 ;; 10624 10625 sysv4 | sysv4.3*) 10626 version_type=linux 10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10628 soname_spec='${libname}${release}${shared_ext}$major' 10629 shlibpath_var=LD_LIBRARY_PATH 10630 case $host_vendor in 10631 sni) 10632 shlibpath_overrides_runpath=no 10633 need_lib_prefix=no 10634 runpath_var=LD_RUN_PATH 10635 ;; 10636 siemens) 10637 need_lib_prefix=no 10638 ;; 10639 motorola) 10640 need_lib_prefix=no 10641 need_version=no 10642 shlibpath_overrides_runpath=no 10643 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10644 ;; 10645 esac 10646 ;; 10647 10648 sysv4*MP*) 10649 if test -d /usr/nec ;then 10650 version_type=linux 10651 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10652 soname_spec='$libname${shared_ext}.$major' 10653 shlibpath_var=LD_LIBRARY_PATH 10654 fi 10655 ;; 10656 10657 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10658 version_type=freebsd-elf 10659 need_lib_prefix=no 10660 need_version=no 10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10662 soname_spec='${libname}${release}${shared_ext}$major' 10663 shlibpath_var=LD_LIBRARY_PATH 10664 shlibpath_overrides_runpath=yes 10665 hardcode_into_libs=yes 10666 if test "$with_gnu_ld" = yes; then 10667 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10668 else 10669 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10670 case $host_os in 10671 sco3.2v5*) 10672 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10673 ;; 10674 esac 10675 fi 10676 sys_lib_dlsearch_path_spec='/usr/lib' 10677 ;; 10678 10679 tpf*) 10680 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10681 version_type=linux 10682 need_lib_prefix=no 10683 need_version=no 10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10685 shlibpath_var=LD_LIBRARY_PATH 10686 shlibpath_overrides_runpath=no 10687 hardcode_into_libs=yes 10688 ;; 10689 10690 uts4*) 10691 version_type=linux 10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10693 soname_spec='${libname}${release}${shared_ext}$major' 10694 shlibpath_var=LD_LIBRARY_PATH 10695 ;; 10696 10697 # Shared libraries for VwWorks, >= 7 only at this stage 10698 # and (fpic) still incompatible with "large" code models 10699 # in a few configurations. Only for RTP mode in any case, 10700 # and upon explicit request at configure time. 10701 vxworks7*) 10702 dynamic_linker=no 10703 case ${with_multisubdir}-${enable_shared} in 10704 *large*) 10705 ;; 10706 *mrtp*-yes) 10707 version_type=linux 10708 need_lib_prefix=no 10709 need_version=no 10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10711 soname_spec='${libname}${release}${shared_ext}$major' 10712 dynamic_linker="$host_os module_loader" 10713 ;; 10714 esac 10715 ;; 10716 *) 10717 dynamic_linker=no 10718 ;; 10719 esac 10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10721 $as_echo "$dynamic_linker" >&6; } 10722 test "$dynamic_linker" = no && can_build_shared=no 10723 10724 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10725 if test "$GCC" = yes; then 10726 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10727 fi 10728 10729 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10730 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10731 fi 10732 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10733 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10734 fi 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10828 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10829 hardcode_action= 10830 if test -n "$hardcode_libdir_flag_spec" || 10831 test -n "$runpath_var" || 10832 test "X$hardcode_automatic" = "Xyes" ; then 10833 10834 # We can hardcode non-existent directories. 10835 if test "$hardcode_direct" != no && 10836 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10837 # have to relink, otherwise we might link with an installed library 10838 # when we should be linking with a yet-to-be-installed one 10839 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10840 test "$hardcode_minus_L" != no; then 10841 # Linking always hardcodes the temporary library directory. 10842 hardcode_action=relink 10843 else 10844 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10845 hardcode_action=immediate 10846 fi 10847 else 10848 # We cannot hardcode anything, or else we can only hardcode existing 10849 # directories. 10850 hardcode_action=unsupported 10851 fi 10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10853 $as_echo "$hardcode_action" >&6; } 10854 10855 if test "$hardcode_action" = relink || 10856 test "$inherit_rpath" = yes; then 10857 # Fast installation is not supported 10858 enable_fast_install=no 10859 elif test "$shlibpath_overrides_runpath" = yes || 10860 test "$enable_shared" = no; then 10861 # Fast installation is not necessary 10862 enable_fast_install=needless 10863 fi 10864 10865 10866 10867 10868 10869 10870 if test "x$enable_dlopen" != xyes; then 10871 enable_dlopen=unknown 10872 enable_dlopen_self=unknown 10873 enable_dlopen_self_static=unknown 10874 else 10875 lt_cv_dlopen=no 10876 lt_cv_dlopen_libs= 10877 10878 case $host_os in 10879 beos*) 10880 lt_cv_dlopen="load_add_on" 10881 lt_cv_dlopen_libs= 10882 lt_cv_dlopen_self=yes 10883 ;; 10884 10885 mingw* | pw32* | cegcc*) 10886 lt_cv_dlopen="LoadLibrary" 10887 lt_cv_dlopen_libs= 10888 ;; 10889 10890 cygwin*) 10891 lt_cv_dlopen="dlopen" 10892 lt_cv_dlopen_libs= 10893 ;; 10894 10895 darwin*) 10896 # if libdl is installed we need to link against it 10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10898 $as_echo_n "checking for dlopen in -ldl... " >&6; } 10899 if ${ac_cv_lib_dl_dlopen+:} false; then : 10900 $as_echo_n "(cached) " >&6 10901 else 10902 ac_check_lib_save_LIBS=$LIBS 10903 LIBS="-ldl $LIBS" 10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10905 /* end confdefs.h. */ 10906 10907 /* Override any GCC internal prototype to avoid an error. 10908 Use char because int might match the return type of a GCC 10909 builtin and then its argument prototype would still apply. */ 10910 #ifdef __cplusplus 10911 extern "C" 10912 #endif 10913 char dlopen (); 10914 int 10915 main () 10916 { 10917 return dlopen (); 10918 ; 10919 return 0; 10920 } 10921 _ACEOF 10922 if ac_fn_c_try_link "$LINENO"; then : 10923 ac_cv_lib_dl_dlopen=yes 10924 else 10925 ac_cv_lib_dl_dlopen=no 10926 fi 10927 rm -f core conftest.err conftest.$ac_objext \ 10928 conftest$ac_exeext conftest.$ac_ext 10929 LIBS=$ac_check_lib_save_LIBS 10930 fi 10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10932 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10933 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10934 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10935 else 10936 10937 lt_cv_dlopen="dyld" 10938 lt_cv_dlopen_libs= 10939 lt_cv_dlopen_self=yes 10940 10941 fi 10942 10943 ;; 10944 10945 *) 10946 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10947 if test "x$ac_cv_func_shl_load" = xyes; then : 10948 lt_cv_dlopen="shl_load" 10949 else 10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10951 $as_echo_n "checking for shl_load in -ldld... " >&6; } 10952 if ${ac_cv_lib_dld_shl_load+:} false; then : 10953 $as_echo_n "(cached) " >&6 10954 else 10955 ac_check_lib_save_LIBS=$LIBS 10956 LIBS="-ldld $LIBS" 10957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10958 /* end confdefs.h. */ 10959 10960 /* Override any GCC internal prototype to avoid an error. 10961 Use char because int might match the return type of a GCC 10962 builtin and then its argument prototype would still apply. */ 10963 #ifdef __cplusplus 10964 extern "C" 10965 #endif 10966 char shl_load (); 10967 int 10968 main () 10969 { 10970 return shl_load (); 10971 ; 10972 return 0; 10973 } 10974 _ACEOF 10975 if ac_fn_c_try_link "$LINENO"; then : 10976 ac_cv_lib_dld_shl_load=yes 10977 else 10978 ac_cv_lib_dld_shl_load=no 10979 fi 10980 rm -f core conftest.err conftest.$ac_objext \ 10981 conftest$ac_exeext conftest.$ac_ext 10982 LIBS=$ac_check_lib_save_LIBS 10983 fi 10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10985 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10986 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10987 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10988 else 10989 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10990 if test "x$ac_cv_func_dlopen" = xyes; then : 10991 lt_cv_dlopen="dlopen" 10992 else 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10994 $as_echo_n "checking for dlopen in -ldl... " >&6; } 10995 if ${ac_cv_lib_dl_dlopen+:} false; then : 10996 $as_echo_n "(cached) " >&6 10997 else 10998 ac_check_lib_save_LIBS=$LIBS 10999 LIBS="-ldl $LIBS" 11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11001 /* end confdefs.h. */ 11002 11003 /* Override any GCC internal prototype to avoid an error. 11004 Use char because int might match the return type of a GCC 11005 builtin and then its argument prototype would still apply. */ 11006 #ifdef __cplusplus 11007 extern "C" 11008 #endif 11009 char dlopen (); 11010 int 11011 main () 11012 { 11013 return dlopen (); 11014 ; 11015 return 0; 11016 } 11017 _ACEOF 11018 if ac_fn_c_try_link "$LINENO"; then : 11019 ac_cv_lib_dl_dlopen=yes 11020 else 11021 ac_cv_lib_dl_dlopen=no 11022 fi 11023 rm -f core conftest.err conftest.$ac_objext \ 11024 conftest$ac_exeext conftest.$ac_ext 11025 LIBS=$ac_check_lib_save_LIBS 11026 fi 11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11028 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11029 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11031 else 11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11033 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 11034 if ${ac_cv_lib_svld_dlopen+:} false; then : 11035 $as_echo_n "(cached) " >&6 11036 else 11037 ac_check_lib_save_LIBS=$LIBS 11038 LIBS="-lsvld $LIBS" 11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11040 /* end confdefs.h. */ 11041 11042 /* Override any GCC internal prototype to avoid an error. 11043 Use char because int might match the return type of a GCC 11044 builtin and then its argument prototype would still apply. */ 11045 #ifdef __cplusplus 11046 extern "C" 11047 #endif 11048 char dlopen (); 11049 int 11050 main () 11051 { 11052 return dlopen (); 11053 ; 11054 return 0; 11055 } 11056 _ACEOF 11057 if ac_fn_c_try_link "$LINENO"; then : 11058 ac_cv_lib_svld_dlopen=yes 11059 else 11060 ac_cv_lib_svld_dlopen=no 11061 fi 11062 rm -f core conftest.err conftest.$ac_objext \ 11063 conftest$ac_exeext conftest.$ac_ext 11064 LIBS=$ac_check_lib_save_LIBS 11065 fi 11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11067 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11068 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11069 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11070 else 11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11072 $as_echo_n "checking for dld_link in -ldld... " >&6; } 11073 if ${ac_cv_lib_dld_dld_link+:} false; then : 11074 $as_echo_n "(cached) " >&6 11075 else 11076 ac_check_lib_save_LIBS=$LIBS 11077 LIBS="-ldld $LIBS" 11078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11079 /* end confdefs.h. */ 11080 11081 /* Override any GCC internal prototype to avoid an error. 11082 Use char because int might match the return type of a GCC 11083 builtin and then its argument prototype would still apply. */ 11084 #ifdef __cplusplus 11085 extern "C" 11086 #endif 11087 char dld_link (); 11088 int 11089 main () 11090 { 11091 return dld_link (); 11092 ; 11093 return 0; 11094 } 11095 _ACEOF 11096 if ac_fn_c_try_link "$LINENO"; then : 11097 ac_cv_lib_dld_dld_link=yes 11098 else 11099 ac_cv_lib_dld_dld_link=no 11100 fi 11101 rm -f core conftest.err conftest.$ac_objext \ 11102 conftest$ac_exeext conftest.$ac_ext 11103 LIBS=$ac_check_lib_save_LIBS 11104 fi 11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11106 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11107 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11108 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11109 fi 11110 11111 11112 fi 11113 11114 11115 fi 11116 11117 11118 fi 11119 11120 11121 fi 11122 11123 11124 fi 11125 11126 ;; 11127 esac 11128 11129 if test "x$lt_cv_dlopen" != xno; then 11130 enable_dlopen=yes 11131 else 11132 enable_dlopen=no 11133 fi 11134 11135 case $lt_cv_dlopen in 11136 dlopen) 11137 save_CPPFLAGS="$CPPFLAGS" 11138 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11139 11140 save_LDFLAGS="$LDFLAGS" 11141 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11142 11143 save_LIBS="$LIBS" 11144 LIBS="$lt_cv_dlopen_libs $LIBS" 11145 11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11147 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 11148 if ${lt_cv_dlopen_self+:} false; then : 11149 $as_echo_n "(cached) " >&6 11150 else 11151 if test "$cross_compiling" = yes; then : 11152 lt_cv_dlopen_self=cross 11153 else 11154 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11155 lt_status=$lt_dlunknown 11156 cat > conftest.$ac_ext <<_LT_EOF 11157 #line 11156 "configure" 11158 #include "confdefs.h" 11159 11160 #if HAVE_DLFCN_H 11161 #include <dlfcn.h> 11162 #endif 11163 11164 #include <stdio.h> 11165 11166 #ifdef RTLD_GLOBAL 11167 # define LT_DLGLOBAL RTLD_GLOBAL 11168 #else 11169 # ifdef DL_GLOBAL 11170 # define LT_DLGLOBAL DL_GLOBAL 11171 # else 11172 # define LT_DLGLOBAL 0 11173 # endif 11174 #endif 11175 11176 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11177 find out it does not work in some platform. */ 11178 #ifndef LT_DLLAZY_OR_NOW 11179 # ifdef RTLD_LAZY 11180 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11181 # else 11182 # ifdef DL_LAZY 11183 # define LT_DLLAZY_OR_NOW DL_LAZY 11184 # else 11185 # ifdef RTLD_NOW 11186 # define LT_DLLAZY_OR_NOW RTLD_NOW 11187 # else 11188 # ifdef DL_NOW 11189 # define LT_DLLAZY_OR_NOW DL_NOW 11190 # else 11191 # define LT_DLLAZY_OR_NOW 0 11192 # endif 11193 # endif 11194 # endif 11195 # endif 11196 #endif 11197 11198 /* When -fvisbility=hidden is used, assume the code has been annotated 11199 correspondingly for the symbols needed. */ 11200 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11201 void fnord () __attribute__((visibility("default"))); 11202 #endif 11203 11204 void fnord () { int i=42; } 11205 int main () 11206 { 11207 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11208 int status = $lt_dlunknown; 11209 11210 if (self) 11211 { 11212 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11213 else 11214 { 11215 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11216 else puts (dlerror ()); 11217 } 11218 /* dlclose (self); */ 11219 } 11220 else 11221 puts (dlerror ()); 11222 11223 return status; 11224 } 11225 _LT_EOF 11226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11227 (eval $ac_link) 2>&5 11228 ac_status=$? 11229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11230 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11231 (./conftest; exit; ) >&5 2>/dev/null 11232 lt_status=$? 11233 case x$lt_status in 11234 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11235 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11236 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11237 esac 11238 else : 11239 # compilation failed 11240 lt_cv_dlopen_self=no 11241 fi 11242 fi 11243 rm -fr conftest* 11244 11245 11246 fi 11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11248 $as_echo "$lt_cv_dlopen_self" >&6; } 11249 11250 if test "x$lt_cv_dlopen_self" = xyes; then 11251 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11253 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11254 if ${lt_cv_dlopen_self_static+:} false; then : 11255 $as_echo_n "(cached) " >&6 11256 else 11257 if test "$cross_compiling" = yes; then : 11258 lt_cv_dlopen_self_static=cross 11259 else 11260 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11261 lt_status=$lt_dlunknown 11262 cat > conftest.$ac_ext <<_LT_EOF 11263 #line 11262 "configure" 11264 #include "confdefs.h" 11265 11266 #if HAVE_DLFCN_H 11267 #include <dlfcn.h> 11268 #endif 11269 11270 #include <stdio.h> 11271 11272 #ifdef RTLD_GLOBAL 11273 # define LT_DLGLOBAL RTLD_GLOBAL 11274 #else 11275 # ifdef DL_GLOBAL 11276 # define LT_DLGLOBAL DL_GLOBAL 11277 # else 11278 # define LT_DLGLOBAL 0 11279 # endif 11280 #endif 11281 11282 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11283 find out it does not work in some platform. */ 11284 #ifndef LT_DLLAZY_OR_NOW 11285 # ifdef RTLD_LAZY 11286 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11287 # else 11288 # ifdef DL_LAZY 11289 # define LT_DLLAZY_OR_NOW DL_LAZY 11290 # else 11291 # ifdef RTLD_NOW 11292 # define LT_DLLAZY_OR_NOW RTLD_NOW 11293 # else 11294 # ifdef DL_NOW 11295 # define LT_DLLAZY_OR_NOW DL_NOW 11296 # else 11297 # define LT_DLLAZY_OR_NOW 0 11298 # endif 11299 # endif 11300 # endif 11301 # endif 11302 #endif 11303 11304 /* When -fvisbility=hidden is used, assume the code has been annotated 11305 correspondingly for the symbols needed. */ 11306 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11307 void fnord () __attribute__((visibility("default"))); 11308 #endif 11309 11310 void fnord () { int i=42; } 11311 int main () 11312 { 11313 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11314 int status = $lt_dlunknown; 11315 11316 if (self) 11317 { 11318 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11319 else 11320 { 11321 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11322 else puts (dlerror ()); 11323 } 11324 /* dlclose (self); */ 11325 } 11326 else 11327 puts (dlerror ()); 11328 11329 return status; 11330 } 11331 _LT_EOF 11332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11333 (eval $ac_link) 2>&5 11334 ac_status=$? 11335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11336 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11337 (./conftest; exit; ) >&5 2>/dev/null 11338 lt_status=$? 11339 case x$lt_status in 11340 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11341 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11342 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11343 esac 11344 else : 11345 # compilation failed 11346 lt_cv_dlopen_self_static=no 11347 fi 11348 fi 11349 rm -fr conftest* 11350 11351 11352 fi 11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11354 $as_echo "$lt_cv_dlopen_self_static" >&6; } 11355 fi 11356 11357 CPPFLAGS="$save_CPPFLAGS" 11358 LDFLAGS="$save_LDFLAGS" 11359 LIBS="$save_LIBS" 11360 ;; 11361 esac 11362 11363 case $lt_cv_dlopen_self in 11364 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11365 *) enable_dlopen_self=unknown ;; 11366 esac 11367 11368 case $lt_cv_dlopen_self_static in 11369 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11370 *) enable_dlopen_self_static=unknown ;; 11371 esac 11372 fi 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 striplib= 11391 old_striplib= 11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11393 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 11394 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11395 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11396 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11398 $as_echo "yes" >&6; } 11399 else 11400 # FIXME - insert some real tests, host_os isn't really good enough 11401 case $host_os in 11402 darwin*) 11403 if test -n "$STRIP" ; then 11404 striplib="$STRIP -x" 11405 old_striplib="$STRIP -S" 11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11407 $as_echo "yes" >&6; } 11408 else 11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11410 $as_echo "no" >&6; } 11411 fi 11412 ;; 11413 *) 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11415 $as_echo "no" >&6; } 11416 ;; 11417 esac 11418 fi 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 # Report which library types will actually be built 11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11433 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11435 $as_echo "$can_build_shared" >&6; } 11436 11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11438 $as_echo_n "checking whether to build shared libraries... " >&6; } 11439 test "$can_build_shared" = "no" && enable_shared=no 11440 11441 # On AIX, shared libraries and static libraries use the same namespace, and 11442 # are all built from PIC. 11443 case $host_os in 11444 aix3*) 11445 test "$enable_shared" = yes && enable_static=no 11446 if test -n "$RANLIB"; then 11447 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11448 postinstall_cmds='$RANLIB $lib' 11449 fi 11450 ;; 11451 11452 aix[4-9]*) 11453 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11454 test "$enable_shared" = yes && enable_static=no 11455 fi 11456 ;; 11457 esac 11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11459 $as_echo "$enable_shared" >&6; } 11460 11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11462 $as_echo_n "checking whether to build static libraries... " >&6; } 11463 # Make sure either enable_shared or enable_static is yes. 11464 test "$enable_shared" = yes || enable_static=yes 11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11466 $as_echo "$enable_static" >&6; } 11467 11468 11469 11470 11471 fi 11472 ac_ext=c 11473 ac_cpp='$CPP $CPPFLAGS' 11474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11476 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11477 11478 CC="$lt_save_CC" 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 ac_config_commands="$ac_config_commands libtool" 11493 11494 11495 11496 11497 # Only expand once: 11498 11499 11500 11501 # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE. 11502 11503 # The tests for host and target for $enable_largefile require 11504 # canonical names. 11505 11506 11507 11508 # As the $enable_largefile decision depends on --enable-plugins we must set it 11509 # even in directories otherwise not depending on the $plugins option. 11510 11511 11512 maybe_plugins=no 11513 for ac_header in dlfcn.h 11514 do : 11515 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 11516 " 11517 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 11518 cat >>confdefs.h <<_ACEOF 11519 #define HAVE_DLFCN_H 1 11520 _ACEOF 11521 maybe_plugins=yes 11522 fi 11523 11524 done 11525 11526 for ac_header in windows.h 11527 do : 11528 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 11529 " 11530 if test "x$ac_cv_header_windows_h" = xyes; then : 11531 cat >>confdefs.h <<_ACEOF 11532 #define HAVE_WINDOWS_H 1 11533 _ACEOF 11534 maybe_plugins=yes 11535 fi 11536 11537 done 11538 11539 11540 # Check whether --enable-plugins was given. 11541 if test "${enable_plugins+set}" = set; then : 11542 enableval=$enable_plugins; case "${enableval}" in 11543 no) plugins=no ;; 11544 *) plugins=yes 11545 if test "$maybe_plugins" != "yes" ; then 11546 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 11547 fi ;; 11548 esac 11549 else 11550 plugins=$maybe_plugins 11551 11552 fi 11553 11554 if test "$plugins" = "yes"; then 11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 11556 $as_echo_n "checking for library containing dlsym... " >&6; } 11557 if ${ac_cv_search_dlsym+:} false; then : 11558 $as_echo_n "(cached) " >&6 11559 else 11560 ac_func_search_save_LIBS=$LIBS 11561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11562 /* end confdefs.h. */ 11563 11564 /* Override any GCC internal prototype to avoid an error. 11565 Use char because int might match the return type of a GCC 11566 builtin and then its argument prototype would still apply. */ 11567 #ifdef __cplusplus 11568 extern "C" 11569 #endif 11570 char dlsym (); 11571 int 11572 main () 11573 { 11574 return dlsym (); 11575 ; 11576 return 0; 11577 } 11578 _ACEOF 11579 for ac_lib in '' dl; do 11580 if test -z "$ac_lib"; then 11581 ac_res="none required" 11582 else 11583 ac_res=-l$ac_lib 11584 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11585 fi 11586 if ac_fn_c_try_link "$LINENO"; then : 11587 ac_cv_search_dlsym=$ac_res 11588 fi 11589 rm -f core conftest.err conftest.$ac_objext \ 11590 conftest$ac_exeext 11591 if ${ac_cv_search_dlsym+:} false; then : 11592 break 11593 fi 11594 done 11595 if ${ac_cv_search_dlsym+:} false; then : 11596 11597 else 11598 ac_cv_search_dlsym=no 11599 fi 11600 rm conftest.$ac_ext 11601 LIBS=$ac_func_search_save_LIBS 11602 fi 11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 11604 $as_echo "$ac_cv_search_dlsym" >&6; } 11605 ac_res=$ac_cv_search_dlsym 11606 if test "$ac_res" != no; then : 11607 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11608 11609 fi 11610 11611 fi 11612 11613 11614 case "${host}" in 11615 sparc-*-solaris*|i?86-*-solaris*) 11616 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support 11617 # were mutually exclusive until Solaris 11.3. Without procfs support, 11618 # the bfd/ elf module cannot provide certain routines such as 11619 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user 11620 # explicitly requested large-file support through the 11621 # --enable-largefile switch, disable large-file support in favor of 11622 # procfs support. 11623 # 11624 # Check if <sys/procfs.h> is incompatible with large-file support. 11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11626 /* end confdefs.h. */ 11627 #define _FILE_OFFSET_BITS 64 11628 #define _STRUCTURED_PROC 1 11629 #include <sys/procfs.h> 11630 int 11631 main () 11632 { 11633 11634 ; 11635 return 0; 11636 } 11637 _ACEOF 11638 if ac_fn_c_try_compile "$LINENO"; then : 11639 acx_cv_procfs_lfs=yes 11640 else 11641 acx_cv_procfs_lfs=no 11642 fi 11643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11644 # 11645 # Forcefully disable large-file support only if necessary, gdb is in 11646 # tree and enabled. 11647 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \ 11648 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then 11649 : ${enable_largefile="no"} 11650 if test "$plugins" = yes; then 11651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 11652 plugin support disabled; require large-file support which is incompatible with GDB." >&5 11653 $as_echo "$as_me: WARNING: 11654 plugin support disabled; require large-file support which is incompatible with GDB." >&2;} 11655 plugins=no 11656 fi 11657 fi 11658 # 11659 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the 11660 # benefit of g++ 9+ which predefines it on Solaris. 11661 if test "$enable_largefile" = no; then 11662 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS" 11663 11664 fi 11665 ;; 11666 esac 11667 11668 # Check whether --enable-largefile was given. 11669 if test "${enable_largefile+set}" = set; then : 11670 enableval=$enable_largefile; 11671 fi 11672 11673 if test "$enable_largefile" != no; then 11674 11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 11676 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 11677 if ${ac_cv_sys_largefile_CC+:} false; then : 11678 $as_echo_n "(cached) " >&6 11679 else 11680 ac_cv_sys_largefile_CC=no 11681 if test "$GCC" != yes; then 11682 ac_save_CC=$CC 11683 while :; do 11684 # IRIX 6.2 and later do not support large files by default, 11685 # so use the C compiler's -n32 option if that helps. 11686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11687 /* end confdefs.h. */ 11688 #include <sys/types.h> 11689 /* Check that off_t can represent 2**63 - 1 correctly. 11690 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11691 since some C++ compilers masquerading as C compilers 11692 incorrectly reject 9223372036854775807. */ 11693 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11694 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11695 && LARGE_OFF_T % 2147483647 == 1) 11696 ? 1 : -1]; 11697 int 11698 main () 11699 { 11700 11701 ; 11702 return 0; 11703 } 11704 _ACEOF 11705 if ac_fn_c_try_compile "$LINENO"; then : 11706 break 11707 fi 11708 rm -f core conftest.err conftest.$ac_objext 11709 CC="$CC -n32" 11710 if ac_fn_c_try_compile "$LINENO"; then : 11711 ac_cv_sys_largefile_CC=' -n32'; break 11712 fi 11713 rm -f core conftest.err conftest.$ac_objext 11714 break 11715 done 11716 CC=$ac_save_CC 11717 rm -f conftest.$ac_ext 11718 fi 11719 fi 11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 11721 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 11722 if test "$ac_cv_sys_largefile_CC" != no; then 11723 CC=$CC$ac_cv_sys_largefile_CC 11724 fi 11725 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 11727 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 11728 if ${ac_cv_sys_file_offset_bits+:} false; then : 11729 $as_echo_n "(cached) " >&6 11730 else 11731 while :; do 11732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11733 /* end confdefs.h. */ 11734 #include <sys/types.h> 11735 /* Check that off_t can represent 2**63 - 1 correctly. 11736 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11737 since some C++ compilers masquerading as C compilers 11738 incorrectly reject 9223372036854775807. */ 11739 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11740 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11741 && LARGE_OFF_T % 2147483647 == 1) 11742 ? 1 : -1]; 11743 int 11744 main () 11745 { 11746 11747 ; 11748 return 0; 11749 } 11750 _ACEOF 11751 if ac_fn_c_try_compile "$LINENO"; then : 11752 ac_cv_sys_file_offset_bits=no; break 11753 fi 11754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11756 /* end confdefs.h. */ 11757 #define _FILE_OFFSET_BITS 64 11758 #include <sys/types.h> 11759 /* Check that off_t can represent 2**63 - 1 correctly. 11760 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11761 since some C++ compilers masquerading as C compilers 11762 incorrectly reject 9223372036854775807. */ 11763 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11764 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11765 && LARGE_OFF_T % 2147483647 == 1) 11766 ? 1 : -1]; 11767 int 11768 main () 11769 { 11770 11771 ; 11772 return 0; 11773 } 11774 _ACEOF 11775 if ac_fn_c_try_compile "$LINENO"; then : 11776 ac_cv_sys_file_offset_bits=64; break 11777 fi 11778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11779 ac_cv_sys_file_offset_bits=unknown 11780 break 11781 done 11782 fi 11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 11784 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 11785 case $ac_cv_sys_file_offset_bits in #( 11786 no | unknown) ;; 11787 *) 11788 cat >>confdefs.h <<_ACEOF 11789 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 11790 _ACEOF 11791 ;; 11792 esac 11793 rm -rf conftest* 11794 if test $ac_cv_sys_file_offset_bits = unknown; then 11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 11796 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 11797 if ${ac_cv_sys_large_files+:} false; then : 11798 $as_echo_n "(cached) " >&6 11799 else 11800 while :; do 11801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11802 /* end confdefs.h. */ 11803 #include <sys/types.h> 11804 /* Check that off_t can represent 2**63 - 1 correctly. 11805 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11806 since some C++ compilers masquerading as C compilers 11807 incorrectly reject 9223372036854775807. */ 11808 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11809 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11810 && LARGE_OFF_T % 2147483647 == 1) 11811 ? 1 : -1]; 11812 int 11813 main () 11814 { 11815 11816 ; 11817 return 0; 11818 } 11819 _ACEOF 11820 if ac_fn_c_try_compile "$LINENO"; then : 11821 ac_cv_sys_large_files=no; break 11822 fi 11823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11825 /* end confdefs.h. */ 11826 #define _LARGE_FILES 1 11827 #include <sys/types.h> 11828 /* Check that off_t can represent 2**63 - 1 correctly. 11829 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11830 since some C++ compilers masquerading as C compilers 11831 incorrectly reject 9223372036854775807. */ 11832 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11833 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11834 && LARGE_OFF_T % 2147483647 == 1) 11835 ? 1 : -1]; 11836 int 11837 main () 11838 { 11839 11840 ; 11841 return 0; 11842 } 11843 _ACEOF 11844 if ac_fn_c_try_compile "$LINENO"; then : 11845 ac_cv_sys_large_files=1; break 11846 fi 11847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11848 ac_cv_sys_large_files=unknown 11849 break 11850 done 11851 fi 11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 11853 $as_echo "$ac_cv_sys_large_files" >&6; } 11854 case $ac_cv_sys_large_files in #( 11855 no | unknown) ;; 11856 *) 11857 cat >>confdefs.h <<_ACEOF 11858 #define _LARGE_FILES $ac_cv_sys_large_files 11859 _ACEOF 11860 ;; 11861 esac 11862 rm -rf conftest* 11863 fi 11864 11865 11866 fi 11867 11868 11869 11870 case "${target}" in 11871 *-*-*aout*| i[3-7]86-*-msdos* | ns32k-*-* | pdp11-*-*) 11872 if test "$plugins" = "yes"; then 11873 if test "${enable_plugins+set}" = set; then 11874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling plugins for AOUT is experimental" >&5 11875 $as_echo "$as_me: WARNING: Enabling plugins for AOUT is experimental" >&2;} 11876 else 11877 plugins=no 11878 fi 11879 fi ;; 11880 esac 11881 11882 if test "$plugins" = "yes"; then 11883 PLUGINS_TRUE= 11884 PLUGINS_FALSE='#' 11885 else 11886 PLUGINS_TRUE='#' 11887 PLUGINS_FALSE= 11888 fi 11889 11890 11891 ac_checking= 11892 . ${srcdir}/development.sh 11893 test "$development" = true && ac_checking=yes 11894 # Check whether --enable-checking was given. 11895 if test "${enable_checking+set}" = set; then : 11896 enableval=$enable_checking; case "${enableval}" in 11897 no|none) ac_checking= ;; 11898 *) ac_checking=yes ;; 11899 esac 11900 fi 11901 if test x$ac_checking != x ; then 11902 11903 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h 11904 11905 fi 11906 11907 # Check whether --enable-64-bit-bfd was given. 11908 if test "${enable_64_bit_bfd+set}" = set; then : 11909 enableval=$enable_64_bit_bfd; case $enableval in #( 11910 yes|no) : 11911 ;; #( 11912 *) : 11913 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #( 11914 *) : 11915 ;; 11916 esac 11917 else 11918 enable_64_bit_bfd=no 11919 fi 11920 11921 if test $enable_64_bit_bfd = yes ; then 11922 want64=true 11923 else 11924 want64=false 11925 fi 11926 11927 # Check whether --enable-targets was given. 11928 if test "${enable_targets+set}" = set; then : 11929 enableval=$enable_targets; case "${enableval}" in 11930 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 11931 ;; 11932 no) enable_targets= ;; 11933 *) enable_targets=$enableval ;; 11934 esac 11935 fi 11936 11937 # Check whether --enable-64_bit_archive was given. 11938 if test "${enable_64_bit_archive+set}" = set; then : 11939 enableval=$enable_64_bit_archive; case "${enableval}" in 11940 yes) want_64_bit_archive=true ;; 11941 no) want_64_bit_archive=false ;; 11942 *) as_fn_error $? "bad value ${enableval} for 64-bit-archive option" "$LINENO" 5 ;; 11943 esac 11944 else 11945 want_64_bit_archive=unset 11946 fi 11947 11948 11949 # Check whether --with-mmap was given. 11950 if test "${with_mmap+set}" = set; then : 11951 withval=$with_mmap; case "${withval}" in 11952 yes) want_mmap=true ;; 11953 no) want_mmap=false ;; 11954 *) as_fn_error $? "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;; 11955 esac 11956 else 11957 want_mmap=true 11958 fi 11959 11960 # Check whether --enable-secureplt was given. 11961 if test "${enable_secureplt+set}" = set; then : 11962 enableval=$enable_secureplt; case "${enableval}" in 11963 yes) use_secureplt=true ;; 11964 no) use_secureplt=false ;; 11965 *) as_fn_error $? "bad value ${enableval} for secureplt option" "$LINENO" 5 ;; 11966 esac 11967 else 11968 use_secureplt=false # XXX port-alpha/57511 11969 fi 11970 if test $use_secureplt = true; then 11971 11972 $as_echo "#define USE_SECUREPLT 1" >>confdefs.h 11973 11974 fi 11975 11976 # Decide if -z separate-code should be enabled in ELF linker by default. 11977 ac_default_ld_z_separate_code=unset 11978 # Check whether --enable-separate-code was given. 11979 if test "${enable_separate_code+set}" = set; then : 11980 enableval=$enable_separate_code; case "${enableval}" in 11981 yes) ac_default_ld_z_separate_code=1 ;; 11982 no) ac_default_ld_z_separate_code=0 ;; 11983 esac 11984 fi 11985 11986 # Enable -z separate-code by default for Linux/x86. 11987 case "${target}" in 11988 i[3-7]86-*-linux-* | x86_64-*-linux-*) 11989 if test ${ac_default_ld_z_separate_code} = unset; then 11990 ac_default_ld_z_separate_code=1 11991 fi 11992 ;; 11993 esac 11994 if test "${ac_default_ld_z_separate_code}" = unset; then 11995 ac_default_ld_z_separate_code=0 11996 fi 11997 11998 cat >>confdefs.h <<_ACEOF 11999 #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code 12000 _ACEOF 12001 12002 12003 # Check whether --enable-leading-mingw64-underscores was given. 12004 if test "${enable_leading_mingw64_underscores+set}" = set; then : 12005 enableval=$enable_leading_mingw64_underscores; 12006 fi 12007 12008 if test x"$enable_leading_mingw64_underscores" = xyes ; then : 12009 12010 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h 12011 12012 fi 12013 12014 DEBUGDIR=${libdir}/debug 12015 12016 # Check whether --with-separate-debug-dir was given. 12017 if test "${with_separate_debug_dir+set}" = set; then : 12018 withval=$with_separate_debug_dir; DEBUGDIR="${withval}" 12019 fi 12020 12021 12022 12023 12024 12025 # Check whether --with-pkgversion was given. 12026 if test "${with_pkgversion+set}" = set; then : 12027 withval=$with_pkgversion; case "$withval" in 12028 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; 12029 no) PKGVERSION= ;; 12030 *) PKGVERSION="($withval) " ;; 12031 esac 12032 else 12033 PKGVERSION="(GNU Binutils) " 12034 12035 fi 12036 12037 12038 12039 12040 12041 # Check whether --with-bugurl was given. 12042 if test "${with_bugurl+set}" = set; then : 12043 withval=$with_bugurl; case "$withval" in 12044 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; 12045 no) BUGURL= 12046 ;; 12047 *) BUGURL="$withval" 12048 ;; 12049 esac 12050 else 12051 BUGURL="https://sourceware.org/bugzilla/" 12052 12053 fi 12054 12055 case ${BUGURL} in 12056 "") 12057 REPORT_BUGS_TO= 12058 REPORT_BUGS_TEXI= 12059 ;; 12060 *) 12061 REPORT_BUGS_TO="<$BUGURL>" 12062 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} 12063 ;; 12064 esac; 12065 12066 12067 12068 12069 12070 # Set the 'development' global. 12071 . $srcdir/../bfd/development.sh 12072 12073 # Set acp_cpp_for_build variable 12074 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD" 12075 12076 # Default set of GCC warnings to enable. 12077 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 12078 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 12079 12080 # Add -Wshadow if the compiler is a sufficiently recent version of GCC. 12081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12082 /* end confdefs.h. */ 12083 __GNUC__ 12084 _ACEOF 12085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12086 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 12087 12088 else 12089 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" 12090 fi 12091 rm -f conftest* 12092 12093 12094 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. 12095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12096 /* end confdefs.h. */ 12097 __GNUC__ 12098 _ACEOF 12099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12100 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : 12101 12102 else 12103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12104 /* end confdefs.h. */ 12105 __clang__ 12106 _ACEOF 12107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12108 $EGREP "^__clang__$" >/dev/null 2>&1; then : 12109 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" 12110 fi 12111 rm -f conftest* 12112 12113 fi 12114 rm -f conftest* 12115 12116 12117 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. 12118 WARN_WRITE_STRINGS="" 12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12120 /* end confdefs.h. */ 12121 __GNUC__ 12122 _ACEOF 12123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12124 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 12125 12126 else 12127 WARN_WRITE_STRINGS="-Wwrite-strings" 12128 fi 12129 rm -f conftest* 12130 12131 12132 # Verify CC_FOR_BUILD to be compatible with warning flags 12133 12134 # Add -Wshadow if the compiler is a sufficiently recent version of GCC. 12135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12136 /* end confdefs.h. */ 12137 __GNUC__ 12138 _ACEOF 12139 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 12140 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 12141 12142 else 12143 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow" 12144 fi 12145 rm -f conftest* 12146 12147 12148 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. 12149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12150 /* end confdefs.h. */ 12151 __GNUC__ 12152 _ACEOF 12153 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 12154 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : 12155 12156 else 12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12158 /* end confdefs.h. */ 12159 __clang__ 12160 _ACEOF 12161 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 12162 $EGREP "^__clang__$" >/dev/null 2>&1; then : 12163 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" 12164 fi 12165 rm -f conftest* 12166 12167 fi 12168 rm -f conftest* 12169 12170 12171 # Check whether --enable-werror was given. 12172 if test "${enable_werror+set}" = set; then : 12173 enableval=$enable_werror; case "${enableval}" in 12174 yes | y) ERROR_ON_WARNING="yes" ;; 12175 no | n) ERROR_ON_WARNING="no" ;; 12176 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; 12177 esac 12178 fi 12179 12180 12181 # Disable -Wformat by default when using gcc on mingw 12182 case "${host}" in 12183 *-*-mingw32*) 12184 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then 12185 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" 12186 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format" 12187 fi 12188 ;; 12189 *) ;; 12190 esac 12191 12192 # Enable -Werror by default when using gcc. Turn it off for releases. 12193 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then 12194 ERROR_ON_WARNING=yes 12195 fi 12196 12197 NO_WERROR= 12198 if test "${ERROR_ON_WARNING}" = yes ; then 12199 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" 12200 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror" 12201 NO_WERROR="-Wno-error" 12202 fi 12203 12204 if test "${GCC}" = yes ; then 12205 WARN_CFLAGS="${GCC_WARN_CFLAGS}" 12206 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}" 12207 fi 12208 12209 # Check whether --enable-build-warnings was given. 12210 if test "${enable_build_warnings+set}" = set; then : 12211 enableval=$enable_build_warnings; case "${enableval}" in 12212 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}" 12213 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";; 12214 no) if test "${GCC}" = yes ; then 12215 WARN_CFLAGS="-w" 12216 WARN_CFLAGS_FOR_BUILD="-w" 12217 fi;; 12218 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 12219 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}" 12220 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";; 12221 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 12222 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}" 12223 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";; 12224 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"` 12225 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;; 12226 esac 12227 fi 12228 12229 12230 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then 12231 echo "Setting warning flags = $WARN_CFLAGS" 6>&1 12232 fi 12233 12234 12235 12236 12237 12238 12239 12240 ac_config_headers="$ac_config_headers config.h:config.in" 12241 12242 12243 # PR 14072 12244 12245 12246 if test -z "$target" ; then 12247 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5 12248 fi 12249 12250 12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 12252 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 12253 # Check whether --enable-maintainer-mode was given. 12254 if test "${enable_maintainer_mode+set}" = set; then : 12255 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 12256 else 12257 USE_MAINTAINER_MODE=no 12258 fi 12259 12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 12261 $as_echo "$USE_MAINTAINER_MODE" >&6; } 12262 if test $USE_MAINTAINER_MODE = yes; then 12263 MAINTAINER_MODE_TRUE= 12264 MAINTAINER_MODE_FALSE='#' 12265 else 12266 MAINTAINER_MODE_TRUE='#' 12267 MAINTAINER_MODE_FALSE= 12268 fi 12269 12270 MAINT=$MAINTAINER_MODE_TRUE 12271 12272 12273 if false; then 12274 GENINSRC_NEVER_TRUE= 12275 GENINSRC_NEVER_FALSE='#' 12276 else 12277 GENINSRC_NEVER_TRUE='#' 12278 GENINSRC_NEVER_FALSE= 12279 fi 12280 12281 case ${build_alias} in 12282 "") build_noncanonical=${build} ;; 12283 *) build_noncanonical=${build_alias} ;; 12284 esac 12285 12286 case ${host_alias} in 12287 "") host_noncanonical=${build_noncanonical} ;; 12288 *) host_noncanonical=${host_alias} ;; 12289 esac 12290 12291 case ${target_alias} in 12292 "") target_noncanonical=${host_noncanonical} ;; 12293 *) target_noncanonical=${target_alias} ;; 12294 esac 12295 12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5 12297 $as_echo_n "checking whether to install libbfd... " >&6; } 12298 # Check whether --enable-install-libbfd was given. 12299 if test "${enable_install_libbfd+set}" = set; then : 12300 enableval=$enable_install_libbfd; install_libbfd_p=$enableval 12301 else 12302 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then 12303 install_libbfd_p=yes 12304 else 12305 install_libbfd_p=no 12306 fi 12307 fi 12308 12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5 12310 $as_echo "$install_libbfd_p" >&6; } 12311 if test $install_libbfd_p = yes; then 12312 INSTALL_LIBBFD_TRUE= 12313 INSTALL_LIBBFD_FALSE='#' 12314 else 12315 INSTALL_LIBBFD_TRUE='#' 12316 INSTALL_LIBBFD_FALSE= 12317 fi 12318 12319 # Need _noncanonical variables for this. 12320 12321 12322 12323 12324 # libbfd.a is a host library containing target dependent code 12325 bfdlibdir='$(libdir)' 12326 bfdincludedir='$(includedir)' 12327 if test "${host}" != "${target}"; then 12328 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' 12329 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' 12330 fi 12331 12332 12333 12334 12335 12336 12337 12338 12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 12340 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 12341 if ${ac_cv_c_bigendian+:} false; then : 12342 $as_echo_n "(cached) " >&6 12343 else 12344 ac_cv_c_bigendian=unknown 12345 # See if we're dealing with a universal compiler. 12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12347 /* end confdefs.h. */ 12348 #ifndef __APPLE_CC__ 12349 not a universal capable compiler 12350 #endif 12351 typedef int dummy; 12352 12353 _ACEOF 12354 if ac_fn_c_try_compile "$LINENO"; then : 12355 12356 # Check for potential -arch flags. It is not universal unless 12357 # there are at least two -arch flags with different values. 12358 ac_arch= 12359 ac_prev= 12360 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 12361 if test -n "$ac_prev"; then 12362 case $ac_word in 12363 i?86 | x86_64 | ppc | ppc64) 12364 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 12365 ac_arch=$ac_word 12366 else 12367 ac_cv_c_bigendian=universal 12368 break 12369 fi 12370 ;; 12371 esac 12372 ac_prev= 12373 elif test "x$ac_word" = "x-arch"; then 12374 ac_prev=arch 12375 fi 12376 done 12377 fi 12378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12379 if test $ac_cv_c_bigendian = unknown; then 12380 # See if sys/param.h defines the BYTE_ORDER macro. 12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12382 /* end confdefs.h. */ 12383 #include <sys/types.h> 12384 #include <sys/param.h> 12385 12386 int 12387 main () 12388 { 12389 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 12390 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 12391 && LITTLE_ENDIAN) 12392 bogus endian macros 12393 #endif 12394 12395 ; 12396 return 0; 12397 } 12398 _ACEOF 12399 if ac_fn_c_try_compile "$LINENO"; then : 12400 # It does; now see whether it defined to BIG_ENDIAN or not. 12401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12402 /* end confdefs.h. */ 12403 #include <sys/types.h> 12404 #include <sys/param.h> 12405 12406 int 12407 main () 12408 { 12409 #if BYTE_ORDER != BIG_ENDIAN 12410 not big endian 12411 #endif 12412 12413 ; 12414 return 0; 12415 } 12416 _ACEOF 12417 if ac_fn_c_try_compile "$LINENO"; then : 12418 ac_cv_c_bigendian=yes 12419 else 12420 ac_cv_c_bigendian=no 12421 fi 12422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12423 fi 12424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12425 fi 12426 if test $ac_cv_c_bigendian = unknown; then 12427 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12429 /* end confdefs.h. */ 12430 #include <limits.h> 12431 12432 int 12433 main () 12434 { 12435 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 12436 bogus endian macros 12437 #endif 12438 12439 ; 12440 return 0; 12441 } 12442 _ACEOF 12443 if ac_fn_c_try_compile "$LINENO"; then : 12444 # It does; now see whether it defined to _BIG_ENDIAN or not. 12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12446 /* end confdefs.h. */ 12447 #include <limits.h> 12448 12449 int 12450 main () 12451 { 12452 #ifndef _BIG_ENDIAN 12453 not big endian 12454 #endif 12455 12456 ; 12457 return 0; 12458 } 12459 _ACEOF 12460 if ac_fn_c_try_compile "$LINENO"; then : 12461 ac_cv_c_bigendian=yes 12462 else 12463 ac_cv_c_bigendian=no 12464 fi 12465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12466 fi 12467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12468 fi 12469 if test $ac_cv_c_bigendian = unknown; then 12470 # Compile a test program. 12471 if test "$cross_compiling" = yes; then : 12472 # Try to guess by grepping values from an object file. 12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12474 /* end confdefs.h. */ 12475 short int ascii_mm[] = 12476 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 12477 short int ascii_ii[] = 12478 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 12479 int use_ascii (int i) { 12480 return ascii_mm[i] + ascii_ii[i]; 12481 } 12482 short int ebcdic_ii[] = 12483 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 12484 short int ebcdic_mm[] = 12485 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 12486 int use_ebcdic (int i) { 12487 return ebcdic_mm[i] + ebcdic_ii[i]; 12488 } 12489 extern int foo; 12490 12491 int 12492 main () 12493 { 12494 return use_ascii (foo) == use_ebcdic (foo); 12495 ; 12496 return 0; 12497 } 12498 _ACEOF 12499 if ac_fn_c_try_compile "$LINENO"; then : 12500 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 12501 ac_cv_c_bigendian=yes 12502 fi 12503 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 12504 if test "$ac_cv_c_bigendian" = unknown; then 12505 ac_cv_c_bigendian=no 12506 else 12507 # finding both strings is unlikely to happen, but who knows? 12508 ac_cv_c_bigendian=unknown 12509 fi 12510 fi 12511 fi 12512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12513 else 12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12515 /* end confdefs.h. */ 12516 $ac_includes_default 12517 int 12518 main () 12519 { 12520 12521 /* Are we little or big endian? From Harbison&Steele. */ 12522 union 12523 { 12524 long int l; 12525 char c[sizeof (long int)]; 12526 } u; 12527 u.l = 1; 12528 return u.c[sizeof (long int) - 1] == 1; 12529 12530 ; 12531 return 0; 12532 } 12533 _ACEOF 12534 if ac_fn_c_try_run "$LINENO"; then : 12535 ac_cv_c_bigendian=no 12536 else 12537 ac_cv_c_bigendian=yes 12538 fi 12539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12540 conftest.$ac_objext conftest.beam conftest.$ac_ext 12541 fi 12542 12543 fi 12544 fi 12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 12546 $as_echo "$ac_cv_c_bigendian" >&6; } 12547 case $ac_cv_c_bigendian in #( 12548 yes) 12549 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 12550 ;; #( 12551 no) 12552 ;; #( 12553 universal) 12554 12555 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 12556 12557 ;; #( 12558 *) 12559 as_fn_error $? "unknown endianness 12560 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 12561 esac 12562 12563 12564 host64=false 12565 target64=false 12566 bfd_default_target_size=32 12567 12568 # host stuff: 12569 12570 ALL_LINGUAS="da es fi fr hr id ja ro ru rw sr sv tr uk vi zh_CN pt" 12571 12572 MKINSTALLDIRS= 12573 if test -n "$ac_aux_dir"; then 12574 case "$ac_aux_dir" in 12575 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 12576 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 12577 esac 12578 fi 12579 if test -z "$MKINSTALLDIRS"; then 12580 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 12581 fi 12582 12583 12584 12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 12586 $as_echo_n "checking whether NLS is requested... " >&6; } 12587 # Check whether --enable-nls was given. 12588 if test "${enable_nls+set}" = set; then : 12589 enableval=$enable_nls; USE_NLS=$enableval 12590 else 12591 USE_NLS=yes 12592 fi 12593 12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 12595 $as_echo "$USE_NLS" >&6; } 12596 12597 12598 12599 12600 12601 12602 # Prepare PATH_SEPARATOR. 12603 # The user is always right. 12604 if test "${PATH_SEPARATOR+set}" != set; then 12605 echo "#! /bin/sh" >conf$$.sh 12606 echo "exit 0" >>conf$$.sh 12607 chmod +x conf$$.sh 12608 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12609 PATH_SEPARATOR=';' 12610 else 12611 PATH_SEPARATOR=: 12612 fi 12613 rm -f conf$$.sh 12614 fi 12615 12616 # Find out how to test for executable files. Don't use a zero-byte file, 12617 # as systems may use methods other than mode bits to determine executability. 12618 cat >conf$$.file <<_ASEOF 12619 #! /bin/sh 12620 exit 0 12621 _ASEOF 12622 chmod +x conf$$.file 12623 if test -x conf$$.file >/dev/null 2>&1; then 12624 ac_executable_p="test -x" 12625 else 12626 ac_executable_p="test -f" 12627 fi 12628 rm -f conf$$.file 12629 12630 # Extract the first word of "msgfmt", so it can be a program name with args. 12631 set dummy msgfmt; ac_word=$2 12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12633 $as_echo_n "checking for $ac_word... " >&6; } 12634 if ${ac_cv_path_MSGFMT+:} false; then : 12635 $as_echo_n "(cached) " >&6 12636 else 12637 case "$MSGFMT" in 12638 [\\/]* | ?:[\\/]*) 12639 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 12640 ;; 12641 *) 12642 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12643 for ac_dir in $PATH; do 12644 IFS="$ac_save_IFS" 12645 test -z "$ac_dir" && ac_dir=. 12646 for ac_exec_ext in '' $ac_executable_extensions; do 12647 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12648 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 12649 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12650 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 12651 break 2 12652 fi 12653 fi 12654 done 12655 done 12656 IFS="$ac_save_IFS" 12657 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 12658 ;; 12659 esac 12660 fi 12661 MSGFMT="$ac_cv_path_MSGFMT" 12662 if test "$MSGFMT" != ":"; then 12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 12664 $as_echo "$MSGFMT" >&6; } 12665 else 12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12667 $as_echo "no" >&6; } 12668 fi 12669 12670 # Extract the first word of "gmsgfmt", so it can be a program name with args. 12671 set dummy gmsgfmt; ac_word=$2 12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12673 $as_echo_n "checking for $ac_word... " >&6; } 12674 if ${ac_cv_path_GMSGFMT+:} false; then : 12675 $as_echo_n "(cached) " >&6 12676 else 12677 case $GMSGFMT in 12678 [\\/]* | ?:[\\/]*) 12679 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 12680 ;; 12681 *) 12682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12683 for as_dir in $PATH 12684 do 12685 IFS=$as_save_IFS 12686 test -z "$as_dir" && as_dir=. 12687 for ac_exec_ext in '' $ac_executable_extensions; do 12688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12689 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 12690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12691 break 2 12692 fi 12693 done 12694 done 12695 IFS=$as_save_IFS 12696 12697 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 12698 ;; 12699 esac 12700 fi 12701 GMSGFMT=$ac_cv_path_GMSGFMT 12702 if test -n "$GMSGFMT"; then 12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 12704 $as_echo "$GMSGFMT" >&6; } 12705 else 12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12707 $as_echo "no" >&6; } 12708 fi 12709 12710 12711 12712 12713 # Prepare PATH_SEPARATOR. 12714 # The user is always right. 12715 if test "${PATH_SEPARATOR+set}" != set; then 12716 echo "#! /bin/sh" >conf$$.sh 12717 echo "exit 0" >>conf$$.sh 12718 chmod +x conf$$.sh 12719 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12720 PATH_SEPARATOR=';' 12721 else 12722 PATH_SEPARATOR=: 12723 fi 12724 rm -f conf$$.sh 12725 fi 12726 12727 # Find out how to test for executable files. Don't use a zero-byte file, 12728 # as systems may use methods other than mode bits to determine executability. 12729 cat >conf$$.file <<_ASEOF 12730 #! /bin/sh 12731 exit 0 12732 _ASEOF 12733 chmod +x conf$$.file 12734 if test -x conf$$.file >/dev/null 2>&1; then 12735 ac_executable_p="test -x" 12736 else 12737 ac_executable_p="test -f" 12738 fi 12739 rm -f conf$$.file 12740 12741 # Extract the first word of "xgettext", so it can be a program name with args. 12742 set dummy xgettext; ac_word=$2 12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12744 $as_echo_n "checking for $ac_word... " >&6; } 12745 if ${ac_cv_path_XGETTEXT+:} false; then : 12746 $as_echo_n "(cached) " >&6 12747 else 12748 case "$XGETTEXT" in 12749 [\\/]* | ?:[\\/]*) 12750 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 12751 ;; 12752 *) 12753 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12754 for ac_dir in $PATH; do 12755 IFS="$ac_save_IFS" 12756 test -z "$ac_dir" && ac_dir=. 12757 for ac_exec_ext in '' $ac_executable_extensions; do 12758 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12759 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 12760 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12761 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 12762 break 2 12763 fi 12764 fi 12765 done 12766 done 12767 IFS="$ac_save_IFS" 12768 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 12769 ;; 12770 esac 12771 fi 12772 XGETTEXT="$ac_cv_path_XGETTEXT" 12773 if test "$XGETTEXT" != ":"; then 12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 12775 $as_echo "$XGETTEXT" >&6; } 12776 else 12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12778 $as_echo "no" >&6; } 12779 fi 12780 12781 rm -f messages.po 12782 12783 12784 # Prepare PATH_SEPARATOR. 12785 # The user is always right. 12786 if test "${PATH_SEPARATOR+set}" != set; then 12787 echo "#! /bin/sh" >conf$$.sh 12788 echo "exit 0" >>conf$$.sh 12789 chmod +x conf$$.sh 12790 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12791 PATH_SEPARATOR=';' 12792 else 12793 PATH_SEPARATOR=: 12794 fi 12795 rm -f conf$$.sh 12796 fi 12797 12798 # Find out how to test for executable files. Don't use a zero-byte file, 12799 # as systems may use methods other than mode bits to determine executability. 12800 cat >conf$$.file <<_ASEOF 12801 #! /bin/sh 12802 exit 0 12803 _ASEOF 12804 chmod +x conf$$.file 12805 if test -x conf$$.file >/dev/null 2>&1; then 12806 ac_executable_p="test -x" 12807 else 12808 ac_executable_p="test -f" 12809 fi 12810 rm -f conf$$.file 12811 12812 # Extract the first word of "msgmerge", so it can be a program name with args. 12813 set dummy msgmerge; ac_word=$2 12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12815 $as_echo_n "checking for $ac_word... " >&6; } 12816 if ${ac_cv_path_MSGMERGE+:} false; then : 12817 $as_echo_n "(cached) " >&6 12818 else 12819 case "$MSGMERGE" in 12820 [\\/]* | ?:[\\/]*) 12821 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 12822 ;; 12823 *) 12824 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12825 for ac_dir in $PATH; do 12826 IFS="$ac_save_IFS" 12827 test -z "$ac_dir" && ac_dir=. 12828 for ac_exec_ext in '' $ac_executable_extensions; do 12829 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12830 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 12831 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 12832 break 2 12833 fi 12834 fi 12835 done 12836 done 12837 IFS="$ac_save_IFS" 12838 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 12839 ;; 12840 esac 12841 fi 12842 MSGMERGE="$ac_cv_path_MSGMERGE" 12843 if test "$MSGMERGE" != ":"; then 12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 12845 $as_echo "$MSGMERGE" >&6; } 12846 else 12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12848 $as_echo "no" >&6; } 12849 fi 12850 12851 12852 if test "$GMSGFMT" != ":"; then 12853 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 12854 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12855 : ; 12856 else 12857 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 12859 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 12860 GMSGFMT=":" 12861 fi 12862 fi 12863 12864 if test "$XGETTEXT" != ":"; then 12865 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 12866 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12867 : ; 12868 else 12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 12870 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 12871 XGETTEXT=":" 12872 fi 12873 rm -f messages.po 12874 fi 12875 12876 ac_config_commands="$ac_config_commands default-1" 12877 12878 12879 12880 if test "X$prefix" = "XNONE"; then 12881 acl_final_prefix="$ac_default_prefix" 12882 else 12883 acl_final_prefix="$prefix" 12884 fi 12885 if test "X$exec_prefix" = "XNONE"; then 12886 acl_final_exec_prefix='${prefix}' 12887 else 12888 acl_final_exec_prefix="$exec_prefix" 12889 fi 12890 acl_save_prefix="$prefix" 12891 prefix="$acl_final_prefix" 12892 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 12893 prefix="$acl_save_prefix" 12894 12895 12896 # Check whether --with-gnu-ld was given. 12897 if test "${with_gnu_ld+set}" = set; then : 12898 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12899 else 12900 with_gnu_ld=no 12901 fi 12902 12903 # Prepare PATH_SEPARATOR. 12904 # The user is always right. 12905 if test "${PATH_SEPARATOR+set}" != set; then 12906 echo "#! /bin/sh" >conf$$.sh 12907 echo "exit 0" >>conf$$.sh 12908 chmod +x conf$$.sh 12909 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12910 PATH_SEPARATOR=';' 12911 else 12912 PATH_SEPARATOR=: 12913 fi 12914 rm -f conf$$.sh 12915 fi 12916 ac_prog=ld 12917 if test "$GCC" = yes; then 12918 # Check if gcc -print-prog-name=ld gives a path. 12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 12920 $as_echo_n "checking for ld used by GCC... " >&6; } 12921 case $host in 12922 *-*-mingw*) 12923 # gcc leaves a trailing carriage return which upsets mingw 12924 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12925 *) 12926 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12927 esac 12928 case $ac_prog in 12929 # Accept absolute paths. 12930 [\\/]* | [A-Za-z]:[\\/]*) 12931 re_direlt='/[^/][^/]*/\.\./' 12932 # Canonicalize the path of ld 12933 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 12934 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 12935 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 12936 done 12937 test -z "$LD" && LD="$ac_prog" 12938 ;; 12939 "") 12940 # If it fails, then pretend we aren't using GCC. 12941 ac_prog=ld 12942 ;; 12943 *) 12944 # If it is relative, then search for the first ld in PATH. 12945 with_gnu_ld=unknown 12946 ;; 12947 esac 12948 elif test "$with_gnu_ld" = yes; then 12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12950 $as_echo_n "checking for GNU ld... " >&6; } 12951 else 12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12953 $as_echo_n "checking for non-GNU ld... " >&6; } 12954 fi 12955 if ${acl_cv_path_LD+:} false; then : 12956 $as_echo_n "(cached) " >&6 12957 else 12958 if test -z "$LD"; then 12959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 12960 for ac_dir in $PATH; do 12961 test -z "$ac_dir" && ac_dir=. 12962 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12963 acl_cv_path_LD="$ac_dir/$ac_prog" 12964 # Check to see if the program is GNU ld. I'd rather use --version, 12965 # but apparently some GNU ld's only accept -v. 12966 # Break only if it was the GNU/non-GNU ld that we prefer. 12967 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then 12968 test "$with_gnu_ld" != no && break 12969 else 12970 test "$with_gnu_ld" != yes && break 12971 fi 12972 fi 12973 done 12974 IFS="$ac_save_ifs" 12975 else 12976 acl_cv_path_LD="$LD" # Let the user override the test with a path. 12977 fi 12978 fi 12979 12980 LD="$acl_cv_path_LD" 12981 if test -n "$LD"; then 12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12983 $as_echo "$LD" >&6; } 12984 else 12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12986 $as_echo "no" >&6; } 12987 fi 12988 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12990 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12991 if ${acl_cv_prog_gnu_ld+:} false; then : 12992 $as_echo_n "(cached) " >&6 12993 else 12994 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 12995 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then 12996 acl_cv_prog_gnu_ld=yes 12997 else 12998 acl_cv_prog_gnu_ld=no 12999 fi 13000 fi 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 13002 $as_echo "$acl_cv_prog_gnu_ld" >&6; } 13003 with_gnu_ld=$acl_cv_prog_gnu_ld 13004 13005 13006 13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 13008 $as_echo_n "checking for shared library run path origin... " >&6; } 13009 if ${acl_cv_rpath+:} false; then : 13010 $as_echo_n "(cached) " >&6 13011 else 13012 13013 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 13014 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 13015 . ./conftest.sh 13016 rm -f ./conftest.sh 13017 acl_cv_rpath=done 13018 13019 fi 13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 13021 $as_echo "$acl_cv_rpath" >&6; } 13022 wl="$acl_cv_wl" 13023 libext="$acl_cv_libext" 13024 shlibext="$acl_cv_shlibext" 13025 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 13026 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 13027 hardcode_direct="$acl_cv_hardcode_direct" 13028 hardcode_minus_L="$acl_cv_hardcode_minus_L" 13029 # Check whether --enable-rpath was given. 13030 if test "${enable_rpath+set}" = set; then : 13031 enableval=$enable_rpath; : 13032 else 13033 enable_rpath=yes 13034 fi 13035 13036 13037 13038 13039 13040 13041 13042 13043 use_additional=yes 13044 13045 acl_save_prefix="$prefix" 13046 prefix="$acl_final_prefix" 13047 acl_save_exec_prefix="$exec_prefix" 13048 exec_prefix="$acl_final_exec_prefix" 13049 13050 eval additional_includedir=\"$includedir\" 13051 eval additional_libdir=\"$libdir\" 13052 13053 exec_prefix="$acl_save_exec_prefix" 13054 prefix="$acl_save_prefix" 13055 13056 13057 # Check whether --with-libiconv-prefix was given. 13058 if test "${with_libiconv_prefix+set}" = set; then : 13059 withval=$with_libiconv_prefix; 13060 if test "X$withval" = "Xno"; then 13061 use_additional=no 13062 else 13063 if test "X$withval" = "X"; then 13064 13065 acl_save_prefix="$prefix" 13066 prefix="$acl_final_prefix" 13067 acl_save_exec_prefix="$exec_prefix" 13068 exec_prefix="$acl_final_exec_prefix" 13069 13070 eval additional_includedir=\"$includedir\" 13071 eval additional_libdir=\"$libdir\" 13072 13073 exec_prefix="$acl_save_exec_prefix" 13074 prefix="$acl_save_prefix" 13075 13076 else 13077 additional_includedir="$withval/include" 13078 additional_libdir="$withval/lib" 13079 fi 13080 fi 13081 13082 fi 13083 13084 13085 # Check whether --with-libiconv-type was given. 13086 if test "${with_libiconv_type+set}" = set; then : 13087 withval=$with_libiconv_type; with_libiconv_type=$withval 13088 else 13089 with_libiconv_type=auto 13090 fi 13091 13092 lib_type=`eval echo \$with_libiconv_type` 13093 13094 LIBICONV= 13095 LTLIBICONV= 13096 INCICONV= 13097 rpathdirs= 13098 ltrpathdirs= 13099 names_already_handled= 13100 names_next_round='iconv ' 13101 while test -n "$names_next_round"; do 13102 names_this_round="$names_next_round" 13103 names_next_round= 13104 for name in $names_this_round; do 13105 already_handled= 13106 for n in $names_already_handled; do 13107 if test "$n" = "$name"; then 13108 already_handled=yes 13109 break 13110 fi 13111 done 13112 if test -z "$already_handled"; then 13113 names_already_handled="$names_already_handled $name" 13114 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 13115 eval value=\"\$HAVE_LIB$uppername\" 13116 if test -n "$value"; then 13117 if test "$value" = yes; then 13118 eval value=\"\$LIB$uppername\" 13119 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 13120 eval value=\"\$LTLIB$uppername\" 13121 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 13122 else 13123 : 13124 fi 13125 else 13126 found_dir= 13127 found_la= 13128 found_so= 13129 found_a= 13130 if test $use_additional = yes; then 13131 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 13132 found_dir="$additional_libdir" 13133 found_so="$additional_libdir/lib$name.$shlibext" 13134 if test -f "$additional_libdir/lib$name.la"; then 13135 found_la="$additional_libdir/lib$name.la" 13136 fi 13137 elif test x$lib_type != xshared; then 13138 if test -f "$additional_libdir/lib$name.$libext"; then 13139 found_dir="$additional_libdir" 13140 found_a="$additional_libdir/lib$name.$libext" 13141 if test -f "$additional_libdir/lib$name.la"; then 13142 found_la="$additional_libdir/lib$name.la" 13143 fi 13144 fi 13145 fi 13146 fi 13147 if test "X$found_dir" = "X"; then 13148 for x in $LDFLAGS $LTLIBICONV; do 13149 13150 acl_save_prefix="$prefix" 13151 prefix="$acl_final_prefix" 13152 acl_save_exec_prefix="$exec_prefix" 13153 exec_prefix="$acl_final_exec_prefix" 13154 eval x=\"$x\" 13155 exec_prefix="$acl_save_exec_prefix" 13156 prefix="$acl_save_prefix" 13157 13158 case "$x" in 13159 -L*) 13160 dir=`echo "X$x" | sed -e 's/^X-L//'` 13161 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 13162 found_dir="$dir" 13163 found_so="$dir/lib$name.$shlibext" 13164 if test -f "$dir/lib$name.la"; then 13165 found_la="$dir/lib$name.la" 13166 fi 13167 elif test x$lib_type != xshared; then 13168 if test -f "$dir/lib$name.$libext"; then 13169 found_dir="$dir" 13170 found_a="$dir/lib$name.$libext" 13171 if test -f "$dir/lib$name.la"; then 13172 found_la="$dir/lib$name.la" 13173 fi 13174 fi 13175 fi 13176 ;; 13177 esac 13178 if test "X$found_dir" != "X"; then 13179 break 13180 fi 13181 done 13182 fi 13183 if test "X$found_dir" != "X"; then 13184 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 13185 if test "X$found_so" != "X"; then 13186 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 13187 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13188 else 13189 haveit= 13190 for x in $ltrpathdirs; do 13191 if test "X$x" = "X$found_dir"; then 13192 haveit=yes 13193 break 13194 fi 13195 done 13196 if test -z "$haveit"; then 13197 ltrpathdirs="$ltrpathdirs $found_dir" 13198 fi 13199 if test "$hardcode_direct" = yes; then 13200 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13201 else 13202 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 13203 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13204 haveit= 13205 for x in $rpathdirs; do 13206 if test "X$x" = "X$found_dir"; then 13207 haveit=yes 13208 break 13209 fi 13210 done 13211 if test -z "$haveit"; then 13212 rpathdirs="$rpathdirs $found_dir" 13213 fi 13214 else 13215 haveit= 13216 for x in $LDFLAGS $LIBICONV; do 13217 13218 acl_save_prefix="$prefix" 13219 prefix="$acl_final_prefix" 13220 acl_save_exec_prefix="$exec_prefix" 13221 exec_prefix="$acl_final_exec_prefix" 13222 eval x=\"$x\" 13223 exec_prefix="$acl_save_exec_prefix" 13224 prefix="$acl_save_prefix" 13225 13226 if test "X$x" = "X-L$found_dir"; then 13227 haveit=yes 13228 break 13229 fi 13230 done 13231 if test -z "$haveit"; then 13232 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 13233 fi 13234 if test "$hardcode_minus_L" != no; then 13235 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13236 else 13237 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 13238 fi 13239 fi 13240 fi 13241 fi 13242 else 13243 if test "X$found_a" != "X"; then 13244 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 13245 else 13246 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 13247 fi 13248 fi 13249 additional_includedir= 13250 case "$found_dir" in 13251 */lib | */lib/) 13252 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 13253 additional_includedir="$basedir/include" 13254 ;; 13255 esac 13256 if test "X$additional_includedir" != "X"; then 13257 if test "X$additional_includedir" != "X/usr/include"; then 13258 haveit= 13259 if test "X$additional_includedir" = "X/usr/local/include"; then 13260 if test -n "$GCC"; then 13261 case $host_os in 13262 linux*) haveit=yes;; 13263 esac 13264 fi 13265 fi 13266 if test -z "$haveit"; then 13267 for x in $CPPFLAGS $INCICONV; do 13268 13269 acl_save_prefix="$prefix" 13270 prefix="$acl_final_prefix" 13271 acl_save_exec_prefix="$exec_prefix" 13272 exec_prefix="$acl_final_exec_prefix" 13273 eval x=\"$x\" 13274 exec_prefix="$acl_save_exec_prefix" 13275 prefix="$acl_save_prefix" 13276 13277 if test "X$x" = "X-I$additional_includedir"; then 13278 haveit=yes 13279 break 13280 fi 13281 done 13282 if test -z "$haveit"; then 13283 if test -d "$additional_includedir"; then 13284 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 13285 fi 13286 fi 13287 fi 13288 fi 13289 fi 13290 if test -n "$found_la"; then 13291 save_libdir="$libdir" 13292 case "$found_la" in 13293 */* | *\\*) . "$found_la" ;; 13294 *) . "./$found_la" ;; 13295 esac 13296 libdir="$save_libdir" 13297 for dep in $dependency_libs; do 13298 case "$dep" in 13299 -L*) 13300 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 13301 if test "X$additional_libdir" != "X/usr/lib"; then 13302 haveit= 13303 if test "X$additional_libdir" = "X/usr/local/lib"; then 13304 if test -n "$GCC"; then 13305 case $host_os in 13306 linux*) haveit=yes;; 13307 esac 13308 fi 13309 fi 13310 if test -z "$haveit"; then 13311 haveit= 13312 for x in $LDFLAGS $LIBICONV; do 13313 13314 acl_save_prefix="$prefix" 13315 prefix="$acl_final_prefix" 13316 acl_save_exec_prefix="$exec_prefix" 13317 exec_prefix="$acl_final_exec_prefix" 13318 eval x=\"$x\" 13319 exec_prefix="$acl_save_exec_prefix" 13320 prefix="$acl_save_prefix" 13321 13322 if test "X$x" = "X-L$additional_libdir"; then 13323 haveit=yes 13324 break 13325 fi 13326 done 13327 if test -z "$haveit"; then 13328 if test -d "$additional_libdir"; then 13329 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 13330 fi 13331 fi 13332 haveit= 13333 for x in $LDFLAGS $LTLIBICONV; do 13334 13335 acl_save_prefix="$prefix" 13336 prefix="$acl_final_prefix" 13337 acl_save_exec_prefix="$exec_prefix" 13338 exec_prefix="$acl_final_exec_prefix" 13339 eval x=\"$x\" 13340 exec_prefix="$acl_save_exec_prefix" 13341 prefix="$acl_save_prefix" 13342 13343 if test "X$x" = "X-L$additional_libdir"; then 13344 haveit=yes 13345 break 13346 fi 13347 done 13348 if test -z "$haveit"; then 13349 if test -d "$additional_libdir"; then 13350 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 13351 fi 13352 fi 13353 fi 13354 fi 13355 ;; 13356 -R*) 13357 dir=`echo "X$dep" | sed -e 's/^X-R//'` 13358 if test "$enable_rpath" != no; then 13359 haveit= 13360 for x in $rpathdirs; do 13361 if test "X$x" = "X$dir"; then 13362 haveit=yes 13363 break 13364 fi 13365 done 13366 if test -z "$haveit"; then 13367 rpathdirs="$rpathdirs $dir" 13368 fi 13369 haveit= 13370 for x in $ltrpathdirs; do 13371 if test "X$x" = "X$dir"; then 13372 haveit=yes 13373 break 13374 fi 13375 done 13376 if test -z "$haveit"; then 13377 ltrpathdirs="$ltrpathdirs $dir" 13378 fi 13379 fi 13380 ;; 13381 -l*) 13382 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 13383 ;; 13384 *.la) 13385 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 13386 ;; 13387 *) 13388 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 13389 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 13390 ;; 13391 esac 13392 done 13393 fi 13394 else 13395 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 13396 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 13397 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 13398 else 13399 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext" 13400 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext" 13401 fi 13402 fi 13403 fi 13404 fi 13405 done 13406 done 13407 if test "X$rpathdirs" != "X"; then 13408 if test -n "$hardcode_libdir_separator"; then 13409 alldirs= 13410 for found_dir in $rpathdirs; do 13411 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 13412 done 13413 acl_save_libdir="$libdir" 13414 libdir="$alldirs" 13415 eval flag=\"$hardcode_libdir_flag_spec\" 13416 libdir="$acl_save_libdir" 13417 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 13418 else 13419 for found_dir in $rpathdirs; do 13420 acl_save_libdir="$libdir" 13421 libdir="$found_dir" 13422 eval flag=\"$hardcode_libdir_flag_spec\" 13423 libdir="$acl_save_libdir" 13424 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 13425 done 13426 fi 13427 fi 13428 if test "X$ltrpathdirs" != "X"; then 13429 for found_dir in $ltrpathdirs; do 13430 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 13431 done 13432 fi 13433 13434 13435 13436 13437 13438 if test -f ../gettext/uninstalled-config.sh; then 13439 relative_builddir='$(top_builddir)/../gettext' 13440 . ../gettext/uninstalled-config.sh 13441 else 13442 # The sister gettext directory doesn't exist and won't collect information on 13443 # using gettext for us. Call a bundled AM_GNU_GETTEXT. 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 13468 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 13469 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 13470 $as_echo_n "(cached) " >&6 13471 else 13472 gt_save_LIBS="$LIBS" 13473 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13475 /* end confdefs.h. */ 13476 #include <CoreFoundation/CFPreferences.h> 13477 int 13478 main () 13479 { 13480 CFPreferencesCopyAppValue(NULL, NULL) 13481 ; 13482 return 0; 13483 } 13484 _ACEOF 13485 if ac_fn_c_try_link "$LINENO"; then : 13486 gt_cv_func_CFPreferencesCopyAppValue=yes 13487 else 13488 gt_cv_func_CFPreferencesCopyAppValue=no 13489 fi 13490 rm -f core conftest.err conftest.$ac_objext \ 13491 conftest$ac_exeext conftest.$ac_ext 13492 LIBS="$gt_save_LIBS" 13493 fi 13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 13495 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 13496 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 13497 13498 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 13499 13500 fi 13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 13502 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; } 13503 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then : 13504 $as_echo_n "(cached) " >&6 13505 else 13506 gt_save_LIBS="$LIBS" 13507 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13509 /* end confdefs.h. */ 13510 #include <CoreFoundation/CFLocale.h> 13511 int 13512 main () 13513 { 13514 CFLocaleCopyPreferredLanguages(); 13515 ; 13516 return 0; 13517 } 13518 _ACEOF 13519 if ac_fn_c_try_link "$LINENO"; then : 13520 gt_cv_func_CFLocaleCopyPreferredLanguages=yes 13521 else 13522 gt_cv_func_CFLocaleCopyPreferredLanguages=no 13523 fi 13524 rm -f core conftest.err conftest.$ac_objext \ 13525 conftest$ac_exeext conftest.$ac_ext 13526 LIBS="$gt_save_LIBS" 13527 fi 13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 13529 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } 13530 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 13531 13532 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h 13533 13534 fi 13535 INTL_MACOSX_LIBS= 13536 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ 13537 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 13538 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices" 13539 fi 13540 13541 13542 13543 13544 13545 13546 LIBINTL= 13547 LTLIBINTL= 13548 POSUB= 13549 13550 case " $gt_needs " in 13551 *" need-formatstring-macros "*) gt_api_version=3 ;; 13552 *" need-ngettext "*) gt_api_version=2 ;; 13553 *) gt_api_version=1 ;; 13554 esac 13555 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 13556 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 13557 13558 if test "$USE_NLS" = "yes"; then 13559 gt_use_preinstalled_gnugettext=no 13560 13561 13562 if test $gt_api_version -ge 3; then 13563 gt_revision_test_code=' 13564 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 13565 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 13566 #endif 13567 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 13568 ' 13569 else 13570 gt_revision_test_code= 13571 fi 13572 if test $gt_api_version -ge 2; then 13573 gt_expression_test_code=' + * ngettext ("", "", 0)' 13574 else 13575 gt_expression_test_code= 13576 fi 13577 13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 13579 $as_echo_n "checking for GNU gettext in libc... " >&6; } 13580 if eval \${$gt_func_gnugettext_libc+:} false; then : 13581 $as_echo_n "(cached) " >&6 13582 else 13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13584 /* end confdefs.h. */ 13585 13586 #include <libintl.h> 13587 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 13588 extern int _nl_msg_cat_cntr; 13589 extern int *_nl_domain_bindings; 13590 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) 13591 #else 13592 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 13593 #endif 13594 $gt_revision_test_code 13595 13596 int 13597 main () 13598 { 13599 13600 bindtextdomain ("", ""); 13601 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 13602 13603 ; 13604 return 0; 13605 } 13606 _ACEOF 13607 if ac_fn_c_try_link "$LINENO"; then : 13608 eval "$gt_func_gnugettext_libc=yes" 13609 else 13610 eval "$gt_func_gnugettext_libc=no" 13611 fi 13612 rm -f core conftest.err conftest.$ac_objext \ 13613 conftest$ac_exeext conftest.$ac_ext 13614 fi 13615 eval ac_res=\$$gt_func_gnugettext_libc 13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13617 $as_echo "$ac_res" >&6; } 13618 13619 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 13620 13621 13622 13623 13624 13625 am_save_CPPFLAGS="$CPPFLAGS" 13626 13627 for element in $INCICONV; do 13628 haveit= 13629 for x in $CPPFLAGS; do 13630 13631 acl_save_prefix="$prefix" 13632 prefix="$acl_final_prefix" 13633 acl_save_exec_prefix="$exec_prefix" 13634 exec_prefix="$acl_final_exec_prefix" 13635 eval x=\"$x\" 13636 exec_prefix="$acl_save_exec_prefix" 13637 prefix="$acl_save_prefix" 13638 13639 if test "X$x" = "X$element"; then 13640 haveit=yes 13641 break 13642 fi 13643 done 13644 if test -z "$haveit"; then 13645 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 13646 fi 13647 done 13648 13649 13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 13651 $as_echo_n "checking for iconv... " >&6; } 13652 if ${am_cv_func_iconv+:} false; then : 13653 $as_echo_n "(cached) " >&6 13654 else 13655 13656 am_cv_func_iconv="no, consider installing GNU libiconv" 13657 am_cv_lib_iconv=no 13658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13659 /* end confdefs.h. */ 13660 13661 #include <stdlib.h> 13662 #include <iconv.h> 13663 13664 int 13665 main () 13666 { 13667 iconv_t cd = iconv_open("",""); 13668 iconv(cd,NULL,NULL,NULL,NULL); 13669 iconv_close(cd); 13670 ; 13671 return 0; 13672 } 13673 _ACEOF 13674 if ac_fn_c_try_link "$LINENO"; then : 13675 am_cv_func_iconv=yes 13676 fi 13677 rm -f core conftest.err conftest.$ac_objext \ 13678 conftest$ac_exeext conftest.$ac_ext 13679 if test "$am_cv_func_iconv" != yes; then 13680 am_save_LIBS="$LIBS" 13681 LIBS="$LIBS $LIBICONV" 13682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13683 /* end confdefs.h. */ 13684 13685 #include <stdlib.h> 13686 #include <iconv.h> 13687 13688 int 13689 main () 13690 { 13691 iconv_t cd = iconv_open("",""); 13692 iconv(cd,NULL,NULL,NULL,NULL); 13693 iconv_close(cd); 13694 ; 13695 return 0; 13696 } 13697 _ACEOF 13698 if ac_fn_c_try_link "$LINENO"; then : 13699 am_cv_lib_iconv=yes 13700 am_cv_func_iconv=yes 13701 fi 13702 rm -f core conftest.err conftest.$ac_objext \ 13703 conftest$ac_exeext conftest.$ac_ext 13704 LIBS="$am_save_LIBS" 13705 fi 13706 13707 fi 13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 13709 $as_echo "$am_cv_func_iconv" >&6; } 13710 if test "$am_cv_func_iconv" = yes; then 13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 13712 $as_echo_n "checking for working iconv... " >&6; } 13713 if ${am_cv_func_iconv_works+:} false; then : 13714 $as_echo_n "(cached) " >&6 13715 else 13716 13717 am_save_LIBS="$LIBS" 13718 if test $am_cv_lib_iconv = yes; then 13719 LIBS="$LIBS $LIBICONV" 13720 fi 13721 am_cv_func_iconv_works=no 13722 for ac_iconv_const in '' 'const'; do 13723 if test "$cross_compiling" = yes; then : 13724 case "$host_os" in 13725 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 13726 *) am_cv_func_iconv_works="guessing yes" ;; 13727 esac 13728 else 13729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13730 /* end confdefs.h. */ 13731 13732 #include <iconv.h> 13733 #include <string.h> 13734 13735 #ifndef ICONV_CONST 13736 # define ICONV_CONST $ac_iconv_const 13737 #endif 13738 13739 int 13740 main () 13741 { 13742 int result = 0; 13743 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from 13744 successful returns. This is even documented in 13745 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */ 13746 { 13747 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 13748 if (cd_utf8_to_88591 != (iconv_t)(-1)) 13749 { 13750 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 13751 char buf[10]; 13752 ICONV_CONST char *inptr = input; 13753 size_t inbytesleft = strlen (input); 13754 char *outptr = buf; 13755 size_t outbytesleft = sizeof (buf); 13756 size_t res = iconv (cd_utf8_to_88591, 13757 &inptr, &inbytesleft, 13758 &outptr, &outbytesleft); 13759 if (res == 0) 13760 result |= 1; 13761 iconv_close (cd_utf8_to_88591); 13762 } 13763 } 13764 /* Test against Solaris 10 bug: Failures are not distinguishable from 13765 successful returns. */ 13766 { 13767 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 13768 if (cd_ascii_to_88591 != (iconv_t)(-1)) 13769 { 13770 static ICONV_CONST char input[] = "\263"; 13771 char buf[10]; 13772 ICONV_CONST char *inptr = input; 13773 size_t inbytesleft = strlen (input); 13774 char *outptr = buf; 13775 size_t outbytesleft = sizeof (buf); 13776 size_t res = iconv (cd_ascii_to_88591, 13777 &inptr, &inbytesleft, 13778 &outptr, &outbytesleft); 13779 if (res == 0) 13780 result |= 2; 13781 iconv_close (cd_ascii_to_88591); 13782 } 13783 } 13784 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 13785 { 13786 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 13787 if (cd_88591_to_utf8 != (iconv_t)(-1)) 13788 { 13789 static ICONV_CONST char input[] = "\304"; 13790 static char buf[2] = { (char)0xDE, (char)0xAD }; 13791 ICONV_CONST char *inptr = input; 13792 size_t inbytesleft = 1; 13793 char *outptr = buf; 13794 size_t outbytesleft = 1; 13795 size_t res = iconv (cd_88591_to_utf8, 13796 &inptr, &inbytesleft, 13797 &outptr, &outbytesleft); 13798 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 13799 result |= 4; 13800 iconv_close (cd_88591_to_utf8); 13801 } 13802 } 13803 #if 0 /* This bug could be worked around by the caller. */ 13804 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 13805 { 13806 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 13807 if (cd_88591_to_utf8 != (iconv_t)(-1)) 13808 { 13809 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 13810 char buf[50]; 13811 ICONV_CONST char *inptr = input; 13812 size_t inbytesleft = strlen (input); 13813 char *outptr = buf; 13814 size_t outbytesleft = sizeof (buf); 13815 size_t res = iconv (cd_88591_to_utf8, 13816 &inptr, &inbytesleft, 13817 &outptr, &outbytesleft); 13818 if ((int)res > 0) 13819 result |= 8; 13820 iconv_close (cd_88591_to_utf8); 13821 } 13822 } 13823 #endif 13824 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 13825 provided. */ 13826 { 13827 /* Try standardized names. */ 13828 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); 13829 /* Try IRIX, OSF/1 names. */ 13830 iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); 13831 /* Try AIX names. */ 13832 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); 13833 /* Try HP-UX names. */ 13834 iconv_t cd4 = iconv_open ("utf8", "eucJP"); 13835 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) 13836 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) 13837 result |= 16; 13838 if (cd1 != (iconv_t)(-1)) 13839 iconv_close (cd1); 13840 if (cd2 != (iconv_t)(-1)) 13841 iconv_close (cd2); 13842 if (cd3 != (iconv_t)(-1)) 13843 iconv_close (cd3); 13844 if (cd4 != (iconv_t)(-1)) 13845 iconv_close (cd4); 13846 } 13847 return result; 13848 13849 ; 13850 return 0; 13851 } 13852 _ACEOF 13853 if ac_fn_c_try_run "$LINENO"; then : 13854 am_cv_func_iconv_works=yes 13855 fi 13856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13857 conftest.$ac_objext conftest.beam conftest.$ac_ext 13858 fi 13859 13860 test "$am_cv_func_iconv_works" = no || break 13861 done 13862 LIBS="$am_save_LIBS" 13863 13864 fi 13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 13866 $as_echo "$am_cv_func_iconv_works" >&6; } 13867 case "$am_cv_func_iconv_works" in 13868 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 13869 *) am_func_iconv=yes ;; 13870 esac 13871 else 13872 am_func_iconv=no am_cv_lib_iconv=no 13873 fi 13874 if test "$am_func_iconv" = yes; then 13875 13876 $as_echo "#define HAVE_ICONV 1" >>confdefs.h 13877 13878 fi 13879 if test "$am_cv_lib_iconv" = yes; then 13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 13881 $as_echo_n "checking how to link with libiconv... " >&6; } 13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 13883 $as_echo "$LIBICONV" >&6; } 13884 else 13885 CPPFLAGS="$am_save_CPPFLAGS" 13886 LIBICONV= 13887 LTLIBICONV= 13888 fi 13889 13890 13891 13892 13893 13894 13895 use_additional=yes 13896 13897 acl_save_prefix="$prefix" 13898 prefix="$acl_final_prefix" 13899 acl_save_exec_prefix="$exec_prefix" 13900 exec_prefix="$acl_final_exec_prefix" 13901 13902 eval additional_includedir=\"$includedir\" 13903 eval additional_libdir=\"$libdir\" 13904 13905 exec_prefix="$acl_save_exec_prefix" 13906 prefix="$acl_save_prefix" 13907 13908 13909 # Check whether --with-libintl-prefix was given. 13910 if test "${with_libintl_prefix+set}" = set; then : 13911 withval=$with_libintl_prefix; 13912 if test "X$withval" = "Xno"; then 13913 use_additional=no 13914 else 13915 if test "X$withval" = "X"; then 13916 13917 acl_save_prefix="$prefix" 13918 prefix="$acl_final_prefix" 13919 acl_save_exec_prefix="$exec_prefix" 13920 exec_prefix="$acl_final_exec_prefix" 13921 13922 eval additional_includedir=\"$includedir\" 13923 eval additional_libdir=\"$libdir\" 13924 13925 exec_prefix="$acl_save_exec_prefix" 13926 prefix="$acl_save_prefix" 13927 13928 else 13929 additional_includedir="$withval/include" 13930 additional_libdir="$withval/lib" 13931 fi 13932 fi 13933 13934 fi 13935 13936 13937 # Check whether --with-libintl-type was given. 13938 if test "${with_libintl_type+set}" = set; then : 13939 withval=$with_libintl_type; with_libintl_type=$withval 13940 else 13941 with_libintl_type=auto 13942 fi 13943 13944 lib_type=`eval echo \$with_libintl_type` 13945 13946 LIBINTL= 13947 LTLIBINTL= 13948 INCINTL= 13949 rpathdirs= 13950 ltrpathdirs= 13951 names_already_handled= 13952 names_next_round='intl ' 13953 while test -n "$names_next_round"; do 13954 names_this_round="$names_next_round" 13955 names_next_round= 13956 for name in $names_this_round; do 13957 already_handled= 13958 for n in $names_already_handled; do 13959 if test "$n" = "$name"; then 13960 already_handled=yes 13961 break 13962 fi 13963 done 13964 if test -z "$already_handled"; then 13965 names_already_handled="$names_already_handled $name" 13966 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 13967 eval value=\"\$HAVE_LIB$uppername\" 13968 if test -n "$value"; then 13969 if test "$value" = yes; then 13970 eval value=\"\$LIB$uppername\" 13971 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 13972 eval value=\"\$LTLIB$uppername\" 13973 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 13974 else 13975 : 13976 fi 13977 else 13978 found_dir= 13979 found_la= 13980 found_so= 13981 found_a= 13982 if test $use_additional = yes; then 13983 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 13984 found_dir="$additional_libdir" 13985 found_so="$additional_libdir/lib$name.$shlibext" 13986 if test -f "$additional_libdir/lib$name.la"; then 13987 found_la="$additional_libdir/lib$name.la" 13988 fi 13989 elif test x$lib_type != xshared; then 13990 if test -f "$additional_libdir/lib$name.$libext"; then 13991 found_dir="$additional_libdir" 13992 found_a="$additional_libdir/lib$name.$libext" 13993 if test -f "$additional_libdir/lib$name.la"; then 13994 found_la="$additional_libdir/lib$name.la" 13995 fi 13996 fi 13997 fi 13998 fi 13999 if test "X$found_dir" = "X"; then 14000 for x in $LDFLAGS $LTLIBINTL; do 14001 14002 acl_save_prefix="$prefix" 14003 prefix="$acl_final_prefix" 14004 acl_save_exec_prefix="$exec_prefix" 14005 exec_prefix="$acl_final_exec_prefix" 14006 eval x=\"$x\" 14007 exec_prefix="$acl_save_exec_prefix" 14008 prefix="$acl_save_prefix" 14009 14010 case "$x" in 14011 -L*) 14012 dir=`echo "X$x" | sed -e 's/^X-L//'` 14013 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 14014 found_dir="$dir" 14015 found_so="$dir/lib$name.$shlibext" 14016 if test -f "$dir/lib$name.la"; then 14017 found_la="$dir/lib$name.la" 14018 fi 14019 elif test x$lib_type != xshared; then 14020 if test -f "$dir/lib$name.$libext"; then 14021 found_dir="$dir" 14022 found_a="$dir/lib$name.$libext" 14023 if test -f "$dir/lib$name.la"; then 14024 found_la="$dir/lib$name.la" 14025 fi 14026 fi 14027 fi 14028 ;; 14029 esac 14030 if test "X$found_dir" != "X"; then 14031 break 14032 fi 14033 done 14034 fi 14035 if test "X$found_dir" != "X"; then 14036 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 14037 if test "X$found_so" != "X"; then 14038 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 14039 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14040 else 14041 haveit= 14042 for x in $ltrpathdirs; do 14043 if test "X$x" = "X$found_dir"; then 14044 haveit=yes 14045 break 14046 fi 14047 done 14048 if test -z "$haveit"; then 14049 ltrpathdirs="$ltrpathdirs $found_dir" 14050 fi 14051 if test "$hardcode_direct" = yes; then 14052 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14053 else 14054 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 14055 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14056 haveit= 14057 for x in $rpathdirs; do 14058 if test "X$x" = "X$found_dir"; then 14059 haveit=yes 14060 break 14061 fi 14062 done 14063 if test -z "$haveit"; then 14064 rpathdirs="$rpathdirs $found_dir" 14065 fi 14066 else 14067 haveit= 14068 for x in $LDFLAGS $LIBINTL; do 14069 14070 acl_save_prefix="$prefix" 14071 prefix="$acl_final_prefix" 14072 acl_save_exec_prefix="$exec_prefix" 14073 exec_prefix="$acl_final_exec_prefix" 14074 eval x=\"$x\" 14075 exec_prefix="$acl_save_exec_prefix" 14076 prefix="$acl_save_prefix" 14077 14078 if test "X$x" = "X-L$found_dir"; then 14079 haveit=yes 14080 break 14081 fi 14082 done 14083 if test -z "$haveit"; then 14084 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 14085 fi 14086 if test "$hardcode_minus_L" != no; then 14087 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14088 else 14089 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 14090 fi 14091 fi 14092 fi 14093 fi 14094 else 14095 if test "X$found_a" != "X"; then 14096 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 14097 else 14098 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 14099 fi 14100 fi 14101 additional_includedir= 14102 case "$found_dir" in 14103 */lib | */lib/) 14104 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 14105 additional_includedir="$basedir/include" 14106 ;; 14107 esac 14108 if test "X$additional_includedir" != "X"; then 14109 if test "X$additional_includedir" != "X/usr/include"; then 14110 haveit= 14111 if test "X$additional_includedir" = "X/usr/local/include"; then 14112 if test -n "$GCC"; then 14113 case $host_os in 14114 linux*) haveit=yes;; 14115 esac 14116 fi 14117 fi 14118 if test -z "$haveit"; then 14119 for x in $CPPFLAGS $INCINTL; do 14120 14121 acl_save_prefix="$prefix" 14122 prefix="$acl_final_prefix" 14123 acl_save_exec_prefix="$exec_prefix" 14124 exec_prefix="$acl_final_exec_prefix" 14125 eval x=\"$x\" 14126 exec_prefix="$acl_save_exec_prefix" 14127 prefix="$acl_save_prefix" 14128 14129 if test "X$x" = "X-I$additional_includedir"; then 14130 haveit=yes 14131 break 14132 fi 14133 done 14134 if test -z "$haveit"; then 14135 if test -d "$additional_includedir"; then 14136 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 14137 fi 14138 fi 14139 fi 14140 fi 14141 fi 14142 if test -n "$found_la"; then 14143 save_libdir="$libdir" 14144 case "$found_la" in 14145 */* | *\\*) . "$found_la" ;; 14146 *) . "./$found_la" ;; 14147 esac 14148 libdir="$save_libdir" 14149 for dep in $dependency_libs; do 14150 case "$dep" in 14151 -L*) 14152 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 14153 if test "X$additional_libdir" != "X/usr/lib"; then 14154 haveit= 14155 if test "X$additional_libdir" = "X/usr/local/lib"; then 14156 if test -n "$GCC"; then 14157 case $host_os in 14158 linux*) haveit=yes;; 14159 esac 14160 fi 14161 fi 14162 if test -z "$haveit"; then 14163 haveit= 14164 for x in $LDFLAGS $LIBINTL; do 14165 14166 acl_save_prefix="$prefix" 14167 prefix="$acl_final_prefix" 14168 acl_save_exec_prefix="$exec_prefix" 14169 exec_prefix="$acl_final_exec_prefix" 14170 eval x=\"$x\" 14171 exec_prefix="$acl_save_exec_prefix" 14172 prefix="$acl_save_prefix" 14173 14174 if test "X$x" = "X-L$additional_libdir"; then 14175 haveit=yes 14176 break 14177 fi 14178 done 14179 if test -z "$haveit"; then 14180 if test -d "$additional_libdir"; then 14181 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 14182 fi 14183 fi 14184 haveit= 14185 for x in $LDFLAGS $LTLIBINTL; do 14186 14187 acl_save_prefix="$prefix" 14188 prefix="$acl_final_prefix" 14189 acl_save_exec_prefix="$exec_prefix" 14190 exec_prefix="$acl_final_exec_prefix" 14191 eval x=\"$x\" 14192 exec_prefix="$acl_save_exec_prefix" 14193 prefix="$acl_save_prefix" 14194 14195 if test "X$x" = "X-L$additional_libdir"; then 14196 haveit=yes 14197 break 14198 fi 14199 done 14200 if test -z "$haveit"; then 14201 if test -d "$additional_libdir"; then 14202 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 14203 fi 14204 fi 14205 fi 14206 fi 14207 ;; 14208 -R*) 14209 dir=`echo "X$dep" | sed -e 's/^X-R//'` 14210 if test "$enable_rpath" != no; then 14211 haveit= 14212 for x in $rpathdirs; do 14213 if test "X$x" = "X$dir"; then 14214 haveit=yes 14215 break 14216 fi 14217 done 14218 if test -z "$haveit"; then 14219 rpathdirs="$rpathdirs $dir" 14220 fi 14221 haveit= 14222 for x in $ltrpathdirs; do 14223 if test "X$x" = "X$dir"; then 14224 haveit=yes 14225 break 14226 fi 14227 done 14228 if test -z "$haveit"; then 14229 ltrpathdirs="$ltrpathdirs $dir" 14230 fi 14231 fi 14232 ;; 14233 -l*) 14234 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 14235 ;; 14236 *.la) 14237 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 14238 ;; 14239 *) 14240 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 14241 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 14242 ;; 14243 esac 14244 done 14245 fi 14246 else 14247 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 14248 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 14249 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 14250 else 14251 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext" 14252 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext" 14253 fi 14254 fi 14255 fi 14256 fi 14257 done 14258 done 14259 if test "X$rpathdirs" != "X"; then 14260 if test -n "$hardcode_libdir_separator"; then 14261 alldirs= 14262 for found_dir in $rpathdirs; do 14263 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 14264 done 14265 acl_save_libdir="$libdir" 14266 libdir="$alldirs" 14267 eval flag=\"$hardcode_libdir_flag_spec\" 14268 libdir="$acl_save_libdir" 14269 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 14270 else 14271 for found_dir in $rpathdirs; do 14272 acl_save_libdir="$libdir" 14273 libdir="$found_dir" 14274 eval flag=\"$hardcode_libdir_flag_spec\" 14275 libdir="$acl_save_libdir" 14276 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 14277 done 14278 fi 14279 fi 14280 if test "X$ltrpathdirs" != "X"; then 14281 for found_dir in $ltrpathdirs; do 14282 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 14283 done 14284 fi 14285 14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 14287 $as_echo_n "checking for GNU gettext in libintl... " >&6; } 14288 if eval \${$gt_func_gnugettext_libintl+:} false; then : 14289 $as_echo_n "(cached) " >&6 14290 else 14291 gt_save_CPPFLAGS="$CPPFLAGS" 14292 CPPFLAGS="$CPPFLAGS $INCINTL" 14293 gt_save_LIBS="$LIBS" 14294 LIBS="$LIBS $LIBINTL" 14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14296 /* end confdefs.h. */ 14297 14298 #include <libintl.h> 14299 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 14300 extern int _nl_msg_cat_cntr; 14301 extern 14302 #ifdef __cplusplus 14303 "C" 14304 #endif 14305 const char *_nl_expand_alias (const char *); 14306 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 14307 #else 14308 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 14309 #endif 14310 $gt_revision_test_code 14311 14312 int 14313 main () 14314 { 14315 14316 bindtextdomain ("", ""); 14317 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 14318 14319 ; 14320 return 0; 14321 } 14322 _ACEOF 14323 if ac_fn_c_try_link "$LINENO"; then : 14324 eval "$gt_func_gnugettext_libintl=yes" 14325 else 14326 eval "$gt_func_gnugettext_libintl=no" 14327 fi 14328 rm -f core conftest.err conftest.$ac_objext \ 14329 conftest$ac_exeext conftest.$ac_ext 14330 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 14331 LIBS="$LIBS $LIBICONV" 14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14333 /* end confdefs.h. */ 14334 14335 #include <libintl.h> 14336 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 14337 extern int _nl_msg_cat_cntr; 14338 extern 14339 #ifdef __cplusplus 14340 "C" 14341 #endif 14342 const char *_nl_expand_alias (const char *); 14343 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 14344 #else 14345 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 14346 #endif 14347 $gt_revision_test_code 14348 14349 int 14350 main () 14351 { 14352 14353 bindtextdomain ("", ""); 14354 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 14355 14356 ; 14357 return 0; 14358 } 14359 _ACEOF 14360 if ac_fn_c_try_link "$LINENO"; then : 14361 LIBINTL="$LIBINTL $LIBICONV" 14362 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 14363 eval "$gt_func_gnugettext_libintl=yes" 14364 14365 fi 14366 rm -f core conftest.err conftest.$ac_objext \ 14367 conftest$ac_exeext conftest.$ac_ext 14368 fi 14369 CPPFLAGS="$gt_save_CPPFLAGS" 14370 LIBS="$gt_save_LIBS" 14371 fi 14372 eval ac_res=\$$gt_func_gnugettext_libintl 14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14374 $as_echo "$ac_res" >&6; } 14375 fi 14376 14377 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 14378 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 14379 && test "$PACKAGE" != gettext-runtime \ 14380 && test "$PACKAGE" != gettext-tools; }; then 14381 gt_use_preinstalled_gnugettext=yes 14382 else 14383 LIBINTL= 14384 LTLIBINTL= 14385 INCINTL= 14386 fi 14387 14388 14389 14390 if test -n "$INTL_MACOSX_LIBS"; then 14391 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 14392 || test "$nls_cv_use_gnu_gettext" = "yes"; then 14393 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 14394 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 14395 fi 14396 fi 14397 14398 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 14399 || test "$nls_cv_use_gnu_gettext" = "yes"; then 14400 14401 $as_echo "#define ENABLE_NLS 1" >>confdefs.h 14402 14403 else 14404 USE_NLS=no 14405 fi 14406 fi 14407 14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 14409 $as_echo_n "checking whether to use NLS... " >&6; } 14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 14411 $as_echo "$USE_NLS" >&6; } 14412 if test "$USE_NLS" = "yes"; then 14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 14414 $as_echo_n "checking where the gettext function comes from... " >&6; } 14415 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 14416 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 14417 gt_source="external libintl" 14418 else 14419 gt_source="libc" 14420 fi 14421 else 14422 gt_source="included intl directory" 14423 fi 14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 14425 $as_echo "$gt_source" >&6; } 14426 fi 14427 14428 if test "$USE_NLS" = "yes"; then 14429 14430 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 14431 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 14433 $as_echo_n "checking how to link with libintl... " >&6; } 14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 14435 $as_echo "$LIBINTL" >&6; } 14436 14437 for element in $INCINTL; do 14438 haveit= 14439 for x in $CPPFLAGS; do 14440 14441 acl_save_prefix="$prefix" 14442 prefix="$acl_final_prefix" 14443 acl_save_exec_prefix="$exec_prefix" 14444 exec_prefix="$acl_final_exec_prefix" 14445 eval x=\"$x\" 14446 exec_prefix="$acl_save_exec_prefix" 14447 prefix="$acl_save_prefix" 14448 14449 if test "X$x" = "X$element"; then 14450 haveit=yes 14451 break 14452 fi 14453 done 14454 if test -z "$haveit"; then 14455 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 14456 fi 14457 done 14458 14459 fi 14460 14461 14462 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 14463 14464 14465 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 14466 14467 fi 14468 14469 POSUB=po 14470 fi 14471 14472 14473 14474 INTLLIBS="$LIBINTL" 14475 14476 14477 14478 14479 14480 14481 fi 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 14494 $as_echo_n "checking whether NLS is requested... " >&6; } 14495 if test x"$USE_NLS" != xyes; then 14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14497 $as_echo "no" >&6; } 14498 else 14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14500 $as_echo "yes" >&6; } 14501 14502 $as_echo "#define ENABLE_NLS 1" >>confdefs.h 14503 14504 14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 14506 $as_echo_n "checking for catalogs to be installed... " >&6; } 14507 # Look for .po and .gmo files in the source directory. 14508 CATALOGS= 14509 XLINGUAS= 14510 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 14511 # If there aren't any .gmo files the shell will give us the 14512 # literal string "../path/to/srcdir/po/*.gmo" which has to be 14513 # weeded out. 14514 case "$cat" in *\**) 14515 continue;; 14516 esac 14517 # The quadruple backslash is collapsed to a double backslash 14518 # by the backticks, then collapsed again by the double quotes, 14519 # leaving us with one backslash in the sed expression (right 14520 # before the dot that mustn't act as a wildcard). 14521 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 14522 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 14523 # The user is allowed to set LINGUAS to a list of languages to 14524 # install catalogs for. If it's empty that means "all of them." 14525 if test "x$LINGUAS" = x; then 14526 CATALOGS="$CATALOGS $cat" 14527 XLINGUAS="$XLINGUAS $lang" 14528 else 14529 case "$LINGUAS" in *$lang*) 14530 CATALOGS="$CATALOGS $cat" 14531 XLINGUAS="$XLINGUAS $lang" 14532 ;; 14533 esac 14534 fi 14535 done 14536 LINGUAS="$XLINGUAS" 14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 14538 $as_echo "$LINGUAS" >&6; } 14539 14540 14541 DATADIRNAME=share 14542 14543 INSTOBJEXT=.mo 14544 14545 GENCAT=gencat 14546 14547 CATOBJEXT=.gmo 14548 14549 fi 14550 14551 # Permit host specific settings. 14552 . ${srcdir}/configure.host 14553 14554 14555 14556 14557 # The cast to long int works around a bug in the HP C Compiler 14558 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14559 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14560 # This bug is HP SR number 8606223364. 14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 14562 $as_echo_n "checking size of long long... " >&6; } 14563 if ${ac_cv_sizeof_long_long+:} false; then : 14564 $as_echo_n "(cached) " >&6 14565 else 14566 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 14567 14568 else 14569 if test "$ac_cv_type_long_long" = yes; then 14570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14572 as_fn_error 77 "cannot compute sizeof (long long) 14573 See \`config.log' for more details" "$LINENO" 5; } 14574 else 14575 ac_cv_sizeof_long_long=0 14576 fi 14577 fi 14578 14579 fi 14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 14581 $as_echo "$ac_cv_sizeof_long_long" >&6; } 14582 14583 14584 14585 cat >>confdefs.h <<_ACEOF 14586 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 14587 _ACEOF 14588 14589 14590 # The cast to long int works around a bug in the HP C Compiler 14591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14592 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14593 # This bug is HP SR number 8606223364. 14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 14595 $as_echo_n "checking size of void *... " >&6; } 14596 if ${ac_cv_sizeof_void_p+:} false; then : 14597 $as_echo_n "(cached) " >&6 14598 else 14599 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 14600 14601 else 14602 if test "$ac_cv_type_void_p" = yes; then 14603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14605 as_fn_error 77 "cannot compute sizeof (void *) 14606 See \`config.log' for more details" "$LINENO" 5; } 14607 else 14608 ac_cv_sizeof_void_p=0 14609 fi 14610 fi 14611 14612 fi 14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 14614 $as_echo "$ac_cv_sizeof_void_p" >&6; } 14615 14616 14617 14618 cat >>confdefs.h <<_ACEOF 14619 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p 14620 _ACEOF 14621 14622 14623 # The cast to long int works around a bug in the HP C Compiler 14624 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14625 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14626 # This bug is HP SR number 8606223364. 14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 14628 $as_echo_n "checking size of long... " >&6; } 14629 if ${ac_cv_sizeof_long+:} false; then : 14630 $as_echo_n "(cached) " >&6 14631 else 14632 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 14633 14634 else 14635 if test "$ac_cv_type_long" = yes; then 14636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14638 as_fn_error 77 "cannot compute sizeof (long) 14639 See \`config.log' for more details" "$LINENO" 5; } 14640 else 14641 ac_cv_sizeof_long=0 14642 fi 14643 fi 14644 14645 fi 14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 14647 $as_echo "$ac_cv_sizeof_long" >&6; } 14648 14649 14650 14651 cat >>confdefs.h <<_ACEOF 14652 #define SIZEOF_LONG $ac_cv_sizeof_long 14653 _ACEOF 14654 14655 14656 # The cast to long int works around a bug in the HP C Compiler 14657 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14658 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14659 # This bug is HP SR number 8606223364. 14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 14661 $as_echo_n "checking size of int... " >&6; } 14662 if ${ac_cv_sizeof_int+:} false; then : 14663 $as_echo_n "(cached) " >&6 14664 else 14665 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 14666 14667 else 14668 if test "$ac_cv_type_int" = yes; then 14669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14671 as_fn_error 77 "cannot compute sizeof (int) 14672 See \`config.log' for more details" "$LINENO" 5; } 14673 else 14674 ac_cv_sizeof_int=0 14675 fi 14676 fi 14677 14678 fi 14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 14680 $as_echo "$ac_cv_sizeof_int" >&6; } 14681 14682 14683 14684 cat >>confdefs.h <<_ACEOF 14685 #define SIZEOF_INT $ac_cv_sizeof_int 14686 _ACEOF 14687 14688 14689 14690 if test "x${ac_cv_sizeof_void_p}" = "x8"; then 14691 host64=true 14692 fi 14693 14694 # Put a plausible default for CC_FOR_BUILD in Makefile. 14695 if test -z "$CC_FOR_BUILD"; then 14696 if test "x$cross_compiling" = "xno"; then 14697 CC_FOR_BUILD='$(CC)' 14698 else 14699 CC_FOR_BUILD=gcc 14700 fi 14701 fi 14702 14703 # Also set EXEEXT_FOR_BUILD. 14704 if test "x$cross_compiling" = "xno"; then 14705 EXEEXT_FOR_BUILD='$(EXEEXT)' 14706 else 14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5 14708 $as_echo_n "checking for build system executable suffix... " >&6; } 14709 if ${bfd_cv_build_exeext+:} false; then : 14710 $as_echo_n "(cached) " >&6 14711 else 14712 rm -f conftest* 14713 echo 'int main () { return 0; }' > conftest.c 14714 bfd_cv_build_exeext= 14715 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 14716 for file in conftest.*; do 14717 case $file in 14718 *.c | *.o | *.obj | *.ilk | *.pdb) ;; 14719 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 14720 esac 14721 done 14722 rm -f conftest* 14723 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no 14724 fi 14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5 14726 $as_echo "$bfd_cv_build_exeext" >&6; } 14727 EXEEXT_FOR_BUILD="" 14728 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} 14729 fi 14730 14731 14732 for ac_header in fcntl.h sys/file.h sys/resource.h sys/stat.h sys/types.h \ 14733 unistd.h 14734 do : 14735 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14736 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14737 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14738 cat >>confdefs.h <<_ACEOF 14739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14740 _ACEOF 14741 14742 fi 14743 14744 done 14745 14746 14747 for ac_func in fcntl fdopen fileno fls getgid getpagesize getrlimit getuid \ 14748 sysconf 14749 do : 14750 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14751 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14752 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14753 cat >>confdefs.h <<_ACEOF 14754 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14755 _ACEOF 14756 14757 fi 14758 done 14759 14760 14761 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" 14762 if test "x$ac_cv_have_decl_basename" = xyes; then : 14763 ac_have_decl=1 14764 else 14765 ac_have_decl=0 14766 fi 14767 14768 cat >>confdefs.h <<_ACEOF 14769 #define HAVE_DECL_BASENAME $ac_have_decl 14770 _ACEOF 14771 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" 14772 if test "x$ac_cv_have_decl_ffs" = xyes; then : 14773 ac_have_decl=1 14774 else 14775 ac_have_decl=0 14776 fi 14777 14778 cat >>confdefs.h <<_ACEOF 14779 #define HAVE_DECL_FFS $ac_have_decl 14780 _ACEOF 14781 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" 14782 if test "x$ac_cv_have_decl_stpcpy" = xyes; then : 14783 ac_have_decl=1 14784 else 14785 ac_have_decl=0 14786 fi 14787 14788 cat >>confdefs.h <<_ACEOF 14789 #define HAVE_DECL_STPCPY $ac_have_decl 14790 _ACEOF 14791 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" 14792 if test "x$ac_cv_have_decl_asprintf" = xyes; then : 14793 ac_have_decl=1 14794 else 14795 ac_have_decl=0 14796 fi 14797 14798 cat >>confdefs.h <<_ACEOF 14799 #define HAVE_DECL_ASPRINTF $ac_have_decl 14800 _ACEOF 14801 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" 14802 if test "x$ac_cv_have_decl_vasprintf" = xyes; then : 14803 ac_have_decl=1 14804 else 14805 ac_have_decl=0 14806 fi 14807 14808 cat >>confdefs.h <<_ACEOF 14809 #define HAVE_DECL_VASPRINTF $ac_have_decl 14810 _ACEOF 14811 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" 14812 if test "x$ac_cv_have_decl_strnlen" = xyes; then : 14813 ac_have_decl=1 14814 else 14815 ac_have_decl=0 14816 fi 14817 14818 cat >>confdefs.h <<_ACEOF 14819 #define HAVE_DECL_STRNLEN $ac_have_decl 14820 _ACEOF 14821 14822 ac_fn_c_check_decl "$LINENO" "___lc_codepage_func" "ac_cv_have_decl____lc_codepage_func" "#include <locale.h> 14823 " 14824 if test "x$ac_cv_have_decl____lc_codepage_func" = xyes; then : 14825 ac_have_decl=1 14826 else 14827 ac_have_decl=0 14828 fi 14829 14830 cat >>confdefs.h <<_ACEOF 14831 #define HAVE_DECL____LC_CODEPAGE_FUNC $ac_have_decl 14832 _ACEOF 14833 14834 14835 14836 case "${host}" in 14837 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) 14838 14839 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h 14840 ;; 14841 esac 14842 14843 14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 14845 $as_echo_n "checking for thread local storage (TLS) class... " >&6; } 14846 if ${ac_cv_tls+:} false; then : 14847 $as_echo_n "(cached) " >&6 14848 else 14849 for ax_tls_keyword in thread_local _Thread_local __thread '__declspec(thread)' none; do 14850 case $ax_tls_keyword in #( 14851 none) : 14852 ac_cv_tls=none ; break ;; #( 14853 *) : 14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14855 /* end confdefs.h. */ 14856 #include <stdlib.h> 14857 int 14858 main () 14859 { 14860 static $ax_tls_keyword int bar; 14861 14862 ; 14863 return 0; 14864 } 14865 _ACEOF 14866 if ac_fn_c_try_compile "$LINENO"; then : 14867 ac_cv_tls=$ax_tls_keyword ; break 14868 else 14869 ac_cv_tls=none 14870 14871 fi 14872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14873 ;; 14874 esac 14875 done 14876 14877 fi 14878 14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 14880 $as_echo "$ac_cv_tls" >&6; } 14881 14882 if test "$ac_cv_tls" != "none"; then : 14883 14884 cat >>confdefs.h <<_ACEOF 14885 #define TLS $ac_cv_tls 14886 _ACEOF 14887 14888 : 14889 else 14890 : 14891 fi 14892 14893 14894 # Link in zlib/zstd if we can. This allows us to read compressed debug sections. 14895 # This is used only by compress.c. 14896 14897 # Use the system's zlib library. 14898 zlibdir="-L\$(top_builddir)/../zlib" 14899 zlibinc="-I\$(top_srcdir)/../zlib" 14900 14901 # Check whether --with-system-zlib was given. 14902 if test "${with_system_zlib+set}" = set; then : 14903 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then 14904 zlibdir= 14905 zlibinc= 14906 fi 14907 14908 fi 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 14921 if test -n "$ac_tool_prefix"; then 14922 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 14923 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14925 $as_echo_n "checking for $ac_word... " >&6; } 14926 if ${ac_cv_path_PKG_CONFIG+:} false; then : 14927 $as_echo_n "(cached) " >&6 14928 else 14929 case $PKG_CONFIG in 14930 [\\/]* | ?:[\\/]*) 14931 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14932 ;; 14933 *) 14934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14935 for as_dir in $PATH 14936 do 14937 IFS=$as_save_IFS 14938 test -z "$as_dir" && as_dir=. 14939 for ac_exec_ext in '' $ac_executable_extensions; do 14940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14941 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14943 break 2 14944 fi 14945 done 14946 done 14947 IFS=$as_save_IFS 14948 14949 ;; 14950 esac 14951 fi 14952 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14953 if test -n "$PKG_CONFIG"; then 14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14955 $as_echo "$PKG_CONFIG" >&6; } 14956 else 14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14958 $as_echo "no" >&6; } 14959 fi 14960 14961 14962 fi 14963 if test -z "$ac_cv_path_PKG_CONFIG"; then 14964 ac_pt_PKG_CONFIG=$PKG_CONFIG 14965 # Extract the first word of "pkg-config", so it can be a program name with args. 14966 set dummy pkg-config; ac_word=$2 14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14968 $as_echo_n "checking for $ac_word... " >&6; } 14969 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 14970 $as_echo_n "(cached) " >&6 14971 else 14972 case $ac_pt_PKG_CONFIG in 14973 [\\/]* | ?:[\\/]*) 14974 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 14975 ;; 14976 *) 14977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14978 for as_dir in $PATH 14979 do 14980 IFS=$as_save_IFS 14981 test -z "$as_dir" && as_dir=. 14982 for ac_exec_ext in '' $ac_executable_extensions; do 14983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14984 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14986 break 2 14987 fi 14988 done 14989 done 14990 IFS=$as_save_IFS 14991 14992 ;; 14993 esac 14994 fi 14995 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 14996 if test -n "$ac_pt_PKG_CONFIG"; then 14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 14998 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 14999 else 15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15001 $as_echo "no" >&6; } 15002 fi 15003 15004 if test "x$ac_pt_PKG_CONFIG" = x; then 15005 PKG_CONFIG="" 15006 else 15007 case $cross_compiling:$ac_tool_warned in 15008 yes:) 15009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15011 ac_tool_warned=yes ;; 15012 esac 15013 PKG_CONFIG=$ac_pt_PKG_CONFIG 15014 fi 15015 else 15016 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15017 fi 15018 15019 fi 15020 if test -n "$PKG_CONFIG"; then 15021 _pkg_min_version=0.9.0 15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 15023 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 15024 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15026 $as_echo "yes" >&6; } 15027 else 15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15029 $as_echo "no" >&6; } 15030 PKG_CONFIG="" 15031 fi 15032 fi 15033 15034 15035 # Check whether --with-zstd was given. 15036 if test "${with_zstd+set}" = set; then : 15037 withval=$with_zstd; 15038 else 15039 with_zstd=auto 15040 fi 15041 15042 15043 if test "$with_zstd" != no; then : 15044 15045 pkg_failed=no 15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5 15047 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; } 15048 15049 if test -n "$ZSTD_CFLAGS"; then 15050 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS" 15051 elif test -n "$PKG_CONFIG"; then 15052 if test -n "$PKG_CONFIG" && \ 15053 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5 15054 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5 15055 ac_status=$? 15056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15057 test $ac_status = 0; }; then 15058 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null` 15059 test "x$?" != "x0" && pkg_failed=yes 15060 else 15061 pkg_failed=yes 15062 fi 15063 else 15064 pkg_failed=untried 15065 fi 15066 if test -n "$ZSTD_LIBS"; then 15067 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS" 15068 elif test -n "$PKG_CONFIG"; then 15069 if test -n "$PKG_CONFIG" && \ 15070 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5 15071 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5 15072 ac_status=$? 15073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15074 test $ac_status = 0; }; then 15075 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null` 15076 test "x$?" != "x0" && pkg_failed=yes 15077 else 15078 pkg_failed=yes 15079 fi 15080 else 15081 pkg_failed=untried 15082 fi 15083 15084 if test $pkg_failed = no; then 15085 pkg_save_LDFLAGS="$LDFLAGS" 15086 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS" 15087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15088 /* end confdefs.h. */ 15089 15090 int 15091 main () 15092 { 15093 15094 ; 15095 return 0; 15096 } 15097 _ACEOF 15098 if ac_fn_c_try_link "$LINENO"; then : 15099 15100 else 15101 pkg_failed=yes 15102 fi 15103 rm -f core conftest.err conftest.$ac_objext \ 15104 conftest$ac_exeext conftest.$ac_ext 15105 LDFLAGS=$pkg_save_LDFLAGS 15106 fi 15107 15108 15109 15110 if test $pkg_failed = yes; then 15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15112 $as_echo "no" >&6; } 15113 15114 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15115 _pkg_short_errors_supported=yes 15116 else 15117 _pkg_short_errors_supported=no 15118 fi 15119 if test $_pkg_short_errors_supported = yes; then 15120 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1` 15121 else 15122 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1` 15123 fi 15124 # Put the nasty error message in config.log where it belongs 15125 echo "$ZSTD_PKG_ERRORS" >&5 15126 15127 15128 if test "$with_zstd" = yes; then 15129 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5 15130 fi 15131 15132 elif test $pkg_failed = untried; then 15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15134 $as_echo "no" >&6; } 15135 15136 if test "$with_zstd" = yes; then 15137 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5 15138 fi 15139 15140 else 15141 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS 15142 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS 15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15144 $as_echo "yes" >&6; } 15145 15146 15147 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h 15148 15149 15150 fi 15151 15152 fi 15153 15154 15155 save_CFLAGS="$CFLAGS" 15156 CFLAGS="$CFLAGS -Werror" 15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for hidden visibility" >&5 15158 $as_echo_n "checking compiler support for hidden visibility... " >&6; } 15159 if ${bfd_cv_hidden+:} false; then : 15160 $as_echo_n "(cached) " >&6 15161 else 15162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15163 /* end confdefs.h. */ 15164 15165 const char hw[] __attribute__ ((__visibility__ ("hidden"))) = "Hello, World\n"; 15166 extern void print (const char *) __attribute__ ((__visibility__ ("hidden"))); 15167 int 15168 main () 15169 { 15170 print (hw); 15171 ; 15172 return 0; 15173 } 15174 _ACEOF 15175 if ac_fn_c_try_compile "$LINENO"; then : 15176 bfd_cv_hidden=yes 15177 else 15178 bfd_cv_hidden=no 15179 fi 15180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15181 fi 15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_hidden" >&5 15183 $as_echo "$bfd_cv_hidden" >&6; } 15184 CFLAGS="$save_CFLAGS" 15185 if test $bfd_cv_hidden = yes; then 15186 15187 $as_echo "#define HAVE_HIDDEN 1" >>confdefs.h 15188 15189 fi 15190 15191 # Check if linker supports --as-needed and --no-as-needed options 15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 15193 $as_echo_n "checking linker --as-needed support... " >&6; } 15194 if ${bfd_cv_ld_as_needed+:} false; then : 15195 $as_echo_n "(cached) " >&6 15196 else 15197 bfd_cv_ld_as_needed=no 15198 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then 15199 bfd_cv_ld_as_needed=yes 15200 fi 15201 15202 fi 15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5 15204 $as_echo "$bfd_cv_ld_as_needed" >&6; } 15205 15206 LIBM= 15207 case $host in 15208 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 15209 # These system don't have libm, or don't need it 15210 ;; 15211 *-ncr-sysv4.3*) 15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 15213 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } 15214 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : 15215 $as_echo_n "(cached) " >&6 15216 else 15217 ac_check_lib_save_LIBS=$LIBS 15218 LIBS="-lmw $LIBS" 15219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15220 /* end confdefs.h. */ 15221 15222 /* Override any GCC internal prototype to avoid an error. 15223 Use char because int might match the return type of a GCC 15224 builtin and then its argument prototype would still apply. */ 15225 #ifdef __cplusplus 15226 extern "C" 15227 #endif 15228 char _mwvalidcheckl (); 15229 int 15230 main () 15231 { 15232 return _mwvalidcheckl (); 15233 ; 15234 return 0; 15235 } 15236 _ACEOF 15237 if ac_fn_c_try_link "$LINENO"; then : 15238 ac_cv_lib_mw__mwvalidcheckl=yes 15239 else 15240 ac_cv_lib_mw__mwvalidcheckl=no 15241 fi 15242 rm -f core conftest.err conftest.$ac_objext \ 15243 conftest$ac_exeext conftest.$ac_ext 15244 LIBS=$ac_check_lib_save_LIBS 15245 fi 15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 15247 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } 15248 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : 15249 LIBM="-lmw" 15250 fi 15251 15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 15253 $as_echo_n "checking for cos in -lm... " >&6; } 15254 if ${ac_cv_lib_m_cos+:} false; then : 15255 $as_echo_n "(cached) " >&6 15256 else 15257 ac_check_lib_save_LIBS=$LIBS 15258 LIBS="-lm $LIBS" 15259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15260 /* end confdefs.h. */ 15261 15262 /* Override any GCC internal prototype to avoid an error. 15263 Use char because int might match the return type of a GCC 15264 builtin and then its argument prototype would still apply. */ 15265 #ifdef __cplusplus 15266 extern "C" 15267 #endif 15268 char cos (); 15269 int 15270 main () 15271 { 15272 return cos (); 15273 ; 15274 return 0; 15275 } 15276 _ACEOF 15277 if ac_fn_c_try_link "$LINENO"; then : 15278 ac_cv_lib_m_cos=yes 15279 else 15280 ac_cv_lib_m_cos=no 15281 fi 15282 rm -f core conftest.err conftest.$ac_objext \ 15283 conftest$ac_exeext conftest.$ac_ext 15284 LIBS=$ac_check_lib_save_LIBS 15285 fi 15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 15287 $as_echo "$ac_cv_lib_m_cos" >&6; } 15288 if test "x$ac_cv_lib_m_cos" = xyes; then : 15289 LIBM="$LIBM -lm" 15290 fi 15291 15292 ;; 15293 *) 15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 15295 $as_echo_n "checking for cos in -lm... " >&6; } 15296 if ${ac_cv_lib_m_cos+:} false; then : 15297 $as_echo_n "(cached) " >&6 15298 else 15299 ac_check_lib_save_LIBS=$LIBS 15300 LIBS="-lm $LIBS" 15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15302 /* end confdefs.h. */ 15303 15304 /* Override any GCC internal prototype to avoid an error. 15305 Use char because int might match the return type of a GCC 15306 builtin and then its argument prototype would still apply. */ 15307 #ifdef __cplusplus 15308 extern "C" 15309 #endif 15310 char cos (); 15311 int 15312 main () 15313 { 15314 return cos (); 15315 ; 15316 return 0; 15317 } 15318 _ACEOF 15319 if ac_fn_c_try_link "$LINENO"; then : 15320 ac_cv_lib_m_cos=yes 15321 else 15322 ac_cv_lib_m_cos=no 15323 fi 15324 rm -f core conftest.err conftest.$ac_objext \ 15325 conftest$ac_exeext conftest.$ac_ext 15326 LIBS=$ac_check_lib_save_LIBS 15327 fi 15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 15329 $as_echo "$ac_cv_lib_m_cos" >&6; } 15330 if test "x$ac_cv_lib_m_cos" = xyes; then : 15331 LIBM="-lm" 15332 fi 15333 15334 ;; 15335 esac 15336 15337 15338 15339 # When building a shared libbfd, link against the pic version of libiberty 15340 # so that apps that use libbfd won't need libiberty just to satisfy any 15341 # libbfd references. 15342 # We can't do that if a pic libiberty is unavailable since including non-pic 15343 # code would insert text relocations into libbfd. 15344 SHARED_LIBADD= 15345 SHARED_LDFLAGS= 15346 if test "$enable_shared" = "yes"; then 15347 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` 15348 if test -n "$x"; then 15349 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" 15350 fi 15351 fi 15352 15353 SHARED_LIBADD="$SHARED_LIBADD $LTLIBINTL" 15354 15355 if test "$enable_shared" = "yes"; then 15356 case "${host}" in 15357 # More hacks to build DLLs on Windows. 15358 *-*-cygwin*) 15359 SHARED_LDFLAGS="-no-undefined" 15360 SHARED_LIBADD="-L`pwd`/../libiberty -liberty $SHARED_LIBADD -lcygwin -lkernel32" 15361 ;; 15362 esac 15363 15364 if test -n "$SHARED_LIBADD"; then 15365 if test -n "$LIBM"; then 15366 if test x"$bfd_cv_ld_as_needed" = xyes; then 15367 # Link against libm only when needed. Put -lc, -lm inside -Wl 15368 # to stop libtool reordering these options. 15369 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed" 15370 else 15371 SHARED_LIBADD="$SHARED_LIBADD $LIBM" 15372 fi 15373 fi 15374 fi 15375 fi 15376 15377 15378 15379 # target stuff: 15380 15381 # Canonicalize the secondary target names. 15382 if test -n "$enable_targets" ; then 15383 for targ in `echo $enable_targets | sed 's/,/ /g'` 15384 do 15385 result=`$ac_config_sub $targ 2>/dev/null` 15386 if test -n "$result" ; then 15387 canon_targets="$canon_targets $result" 15388 else 15389 # Allow targets that config.sub doesn't recognize, like "all". 15390 canon_targets="$canon_targets $targ" 15391 fi 15392 done 15393 fi 15394 15395 all_targets=false 15396 defvec= 15397 selvecs= 15398 assocvecs= 15399 selarchs= 15400 TDEFINES= 15401 for targ in $target $canon_targets 15402 do 15403 if test $targ = all; then 15404 all_targets=true 15405 assocvecs="$assocvecs $targ_defvec $targ_selvecs" 15406 elif test $targ != plugin; then 15407 . $srcdir/config.bfd 15408 if test $targ = $target; then 15409 defvec=$targ_defvec 15410 fi 15411 selvecs="$selvecs $targ_defvec $targ_selvecs" 15412 selarchs="$selarchs $targ_archs" 15413 TDEFINES="$TDEFINES $targ_cflags" 15414 fi 15415 done 15416 15417 15418 # This processing still needs to be done if we're to decide properly whether 15419 # 64-bit support needs to be compiled in. Currently, it will be included if 15420 # the default or any other explicitly requested target requires it; it 15421 # will not be included on a 32-bit host if no 64-bit target is requested, and 15422 # no "--enable-64-bit-bfd" option is given, even if "--enable-targets=all" is 15423 # used. 15424 15425 # uniq the default and selected vectors in all the configured targets. 15426 f="" 15427 for i in $selvecs ; do 15428 case " $f " in 15429 *" $i "*) ;; 15430 *) f="$f $i" ;; 15431 esac 15432 done 15433 selvecs="$f" 15434 15435 15436 # uniq the associated vectors in all the configured targets. 15437 f="" 15438 for i in $assocvecs ; do 15439 case " $f " in 15440 *" $i "*) ;; 15441 *) f="$f $i" ;; 15442 esac 15443 done 15444 assocvecs="$f" 15445 15446 15447 # uniq the architectures in all the configured targets. 15448 f="" 15449 for i in $selarchs ; do 15450 case " $f " in 15451 *" $i "*) ;; 15452 *) f="$f $i" ;; 15453 esac 15454 done 15455 selarchs="$f" 15456 15457 # Target backend .o files. 15458 tb= 15459 15460 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo 15461 elf-sframe.lo dwarf1.lo dwarf2.lo" 15462 coffgen="coffgen.lo dwarf2.lo" 15463 coff="cofflink.lo $coffgen" 15464 ecoff="ecofflink.lo $coffgen" 15465 xcoff="xcofflink.lo $coffgen" 15466 15467 elfxx_x86="elfxx-x86.lo elf-ifunc.lo elf-vxworks.lo" 15468 for vec in $selvecs 15469 do 15470 target_size=32 15471 case "$vec" in 15472 # This list is alphabetized to make it easy to compare 15473 # with the two vector lists in targets.c. For the same reason, 15474 # use one entry per line, even though this leads to long lines. 15475 aarch64_elf32_be_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; 15476 aarch64_elf32_le_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; 15477 aarch64_elf64_be_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; 15478 aarch64_elf64_le_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; 15479 aarch64_mach_o_vec) tb="$tb mach-o-aarch64.lo"; target_size=64 ;; 15480 aarch64_pei_le_vec) tb="$tb pei-aarch64.lo pe-aarch64igen.lo $coff"; target_size=64 ;; 15481 aarch64_pe_le_vec) tb="$tb pe-aarch64.lo pe-aarch64igen.lo $coff"; target_size=64 ;; 15482 alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;; 15483 alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; 15484 alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; 15485 alpha_vms_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;; 15486 alpha_vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;; 15487 am33_elf32_linux_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;; 15488 amdgcn_elf64_le_vec) tb="$tb elf64-amdgcn.lo elf64.lo $elf"; target_size=64 ;; 15489 aout0_be_vec) tb="$tb aout0.lo aout32.lo" ;; 15490 aout64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;; 15491 aout_vec) tb="$tb host-aout.lo aout32.lo" ;; 15492 arc_elf32_be_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 15493 arc_elf32_le_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 15494 arm_elf32_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; 15495 arm_elf32_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; 15496 arm_elf32_fdpic_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; 15497 arm_elf32_fdpic_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; 15498 arm_elf32_vxworks_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; 15499 arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; 15500 arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;; 15501 arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;; 15502 arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;; 15503 arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;; 15504 arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;; 15505 arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;; 15506 arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;; 15507 arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;; 15508 arm_mach_o_vec) tb="$tb mach-o-arm.lo" ;; 15509 avr_elf32_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; 15510 bfin_elf32_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; 15511 bfin_elf32_fdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; 15512 cr16_elf32_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;; 15513 cris_aout_vec) tb="$tb aout-cris.lo" ;; 15514 cris_elf32_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; 15515 cris_elf32_us_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; 15516 crx_elf32_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;; 15517 csky_elf32_be_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;; 15518 csky_elf32_le_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;; 15519 d10v_elf32_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; 15520 d30v_elf32_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; 15521 dlx_elf32_be_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;; 15522 elf32_be_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 15523 elf32_le_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 15524 elf64_be_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 15525 elf64_le_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 15526 bpf_elf64_le_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64;; 15527 bpf_elf64_be_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64 ;; 15528 epiphany_elf32_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;; 15529 fr30_elf32_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; 15530 frv_elf32_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; 15531 frv_elf32_fdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; 15532 h8300_elf32_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; 15533 h8300_elf32_linux_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; 15534 hppa_elf32_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 15535 hppa_elf32_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 15536 hppa_elf32_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 15537 hppa_elf64_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; 15538 hppa_elf64_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; 15539 hppa_som_vec) tb="$tb som.lo" ;; 15540 i386_aout_vec) tb="$tb i386aout.lo aout32.lo" ;; 15541 i386_aout_bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; 15542 i386_aout_lynx_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; 15543 i386_coff_vec) tb="$tb coff-i386.lo $coff" ;; 15544 i386_coff_go32_vec) tb="$tb coff-go32.lo $coff" ;; 15545 i386_coff_go32stubbed_vec) tb="$tb coff-stgo32.lo $coff" ;; 15546 i386_coff_lynx_vec) tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;; 15547 i386_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;; 15548 i386_elf32_fbsd_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;; 15549 i386_elf32_sol2_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;; 15550 i386_elf32_vxworks_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;; 15551 i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;; 15552 i386_msdos_vec) tb="$tb i386msdos.lo" ;; 15553 i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;; 15554 i386_pe_big_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;; 15555 i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;; 15556 iamcu_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;; 15557 ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;; 15558 ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;; 15559 ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; 15560 ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; 15561 ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; 15562 ia64_elf64_vms_vec) tb="$tb elf64-ia64-vms.lo elf64-ia64.lo elfxx-ia64.lo elf64.lo vms-lib.lo vms-misc.lo $elf"; target_size=64 ;; 15563 ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;; 15564 ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;; 15565 iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;; 15566 kvx_elf32_vec) tb="$tb elf32-kvx.lo elfxx-kvx.lo elf32.lo $elf $ipa" ;; 15567 kvx_elf64_vec) tb="$tb elf64-kvx.lo elfxx-kvx.lo elf64.lo $elf $ipa"; target_size=64 ;; 15568 lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;; 15569 lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;; 15570 loongarch_elf32_vec) tb="$tb elf32-loongarch.lo elfxx-loongarch.lo elf32.lo elf-ifunc.lo $elf" ;; 15571 loongarch_elf64_vec) tb="$tb elf64-loongarch.lo elf64.lo elfxx-loongarch.lo elf32.lo elf-ifunc.lo $elf"; target_size=64 ;; 15572 loongarch64_pei_vec) tb="$tb pei-loongarch64.lo pe-loongarch64igen.lo $coff"; target_size=64 ;; 15573 m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;; 15574 m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 15575 m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 15576 m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 15577 m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 15578 m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;; 15579 m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;; 15580 m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; 15581 s12z_elf32_vec) tb="$tb elf32-s12z.lo elf32.lo $elf" ;; 15582 mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;; 15583 mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;; 15584 mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;; 15585 mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 15586 mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 15587 mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;; 15588 mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;; 15589 mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;; 15590 mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;; 15591 mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; 15592 mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; 15593 metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;; 15594 microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;; 15595 microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;; 15596 mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;; 15597 mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;; 15598 mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;; 15599 mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15600 mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15601 mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15602 mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15603 mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; ;; 15604 mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; ;; 15605 mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15606 mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15607 mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15608 mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15609 mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15610 mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15611 mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15612 mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15613 mips_elf64_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15614 mips_elf64_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15615 mips_elf64_trad_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15616 mips_elf64_trad_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15617 mips_elf64_tradfbsd_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15618 mips_elf64_tradfbsd_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15619 mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;; 15620 mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;; 15621 mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; 15622 mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; 15623 moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;; 15624 moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;; 15625 msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; 15626 msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; 15627 mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;; 15628 nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; 15629 nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; 15630 nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; 15631 nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; 15632 nfp_elf64_vec) tb="$tb elf64-nfp.lo elf64.lo $elf" ;; 15633 ns32k_aout_pc532mach_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; 15634 ns32k_aout_pc532nbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; 15635 or1k_elf32_vec) tb="$tb elf32-or1k.lo elf32.lo $elf" ;; 15636 pdb_vec) tb="$tb pdb.lo" ;; 15637 pdp11_aout_vec) tb="$tb pdp11.lo" ;; 15638 pef_vec) tb="$tb pef.lo" ;; 15639 pef_xlib_vec) tb="$tb pef.lo" ;; 15640 pj_elf32_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;; 15641 pj_elf32_le_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;; 15642 powerpc_boot_vec) tb="$tb ppcboot.lo" ;; 15643 powerpc_elf32_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 15644 powerpc_elf32_le_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 15645 powerpc_elf32_fbsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 15646 powerpc_elf32_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 15647 powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 15648 powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; 15649 powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; 15650 powerpc_elf64_fbsd_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; 15651 powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;; 15652 pru_elf32_vec) tb="$tb elf32-pru.lo elf32.lo $elf" ;; 15653 riscv_elf32_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf" ;; 15654 riscv_elf64_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; 15655 riscv_elf32_be_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf" ;; 15656 riscv_elf64_be_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; 15657 riscv64_pei_vec) tb="$tb pei-riscv64.lo pe-riscv64igen.lo $coff"; target_size=64 ;; 15658 rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;; 15659 rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;; 15660 rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;; 15661 rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;; 15662 rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; 15663 rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; 15664 rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; 15665 rx_elf32_linux_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; 15666 s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; 15667 s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; 15668 score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;; 15669 score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;; 15670 sh_coff_vec) tb="$tb coff-sh.lo $coff" ;; 15671 sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;; 15672 sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;; 15673 sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;; 15674 sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15675 sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15676 sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15677 sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15678 sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15679 sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15680 sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15681 sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15682 sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15683 sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15684 sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;; 15685 sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;; 15686 sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; 15687 sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; 15688 sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; 15689 sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; 15690 sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; 15691 sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; 15692 spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;; 15693 sym_vec) tb="$tb xsym.lo" ;; 15694 tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;; 15695 tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 15696 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 15697 tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 15698 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 15699 tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 15700 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 15701 tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 15702 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 15703 tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 15704 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 15705 tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 15706 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 15707 tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 15708 tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 15709 tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 15710 tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 15711 tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 15712 tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 15713 tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;; 15714 tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;; 15715 tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;; 15716 tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;; 15717 tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;; 15718 v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; 15719 v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; 15720 vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;; 15721 vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;; 15722 vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;; 15723 ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;; 15724 visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;; 15725 wasm_vec) tb="$tb wasm-module.lo" ;; 15726 wasm32_elf32_vec) tb="$tb elf32-wasm32.lo elf32.lo $elf" ;; 15727 x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;; 15728 x86_64_elf32_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo elf32.lo $elf"; target_size=64 ;; 15729 x86_64_elf64_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;; 15730 x86_64_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;; 15731 x86_64_elf64_sol2_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;; 15732 x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;; 15733 x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;; 15734 x86_64_pe_big_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;; 15735 x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;; 15736 xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;; 15737 xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;; 15738 xtensa_elf32_be_vec) tb="$tb xtensa-dynconfig.lo xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; 15739 xtensa_elf32_le_vec) tb="$tb xtensa-dynconfig.lo xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; 15740 z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;; 15741 z80_elf32_vec) tb="$tb elf32-z80.lo elf32.lo $elf" ;; 15742 z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;; 15743 15744 # These appear out of order in targets.c 15745 srec_vec) tb="$tb srec.lo" ;; 15746 symbolsrec_vec) tb="$tb srec.lo" ;; 15747 tekhex_vec) tb="$tb tekhex.lo" ;; 15748 core_cisco_be_vec) tb="$tb cisco-core.lo" ;; 15749 core_cisco_le_vec) tb="$tb cisco-core.lo" ;; 15750 15751 "") ;; 15752 *) as_fn_error $? "*** unknown target vector $vec" "$LINENO" 5 ;; 15753 esac 15754 15755 if test ${target_size} = 64; then 15756 target64=true 15757 fi 15758 if test x"${vec}" = x"${defvec}"; then 15759 bfd_default_target_size=${target_size} 15760 fi 15761 done 15762 15763 if test "$plugins" = "yes"; then 15764 tb="$tb plugin.lo" 15765 fi 15766 15767 # Target architecture .o files. 15768 # A couple of CPUs use shorter file names to avoid problems on DOS 15769 # filesystems. 15770 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` 15771 15772 # Weed out duplicate .o files. 15773 f="" 15774 for i in $tb ; do 15775 case " $f " in 15776 *" $i "*) ;; 15777 *) f="$f $i" ;; 15778 esac 15779 done 15780 tb="$f" 15781 15782 f="" 15783 for i in $ta ; do 15784 case " $f " in 15785 *" $i "*) ;; 15786 *) f="$f $i" ;; 15787 esac 15788 done 15789 ta="$f" 15790 15791 bfd_backends="$tb" 15792 bfd_machines="$ta" 15793 15794 if test x${all_targets} = xtrue ; then 15795 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' 15796 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' 15797 selvecs= 15798 havevecs=-DHAVE_all_vecs 15799 selarchs= 15800 test -n "$assocvecs" && 15801 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 15802 else # all_targets is true 15803 # Only set these if they will be nonempty, for the clever echo. 15804 havevecs= 15805 assocvecs= 15806 test -n "$selvecs" && 15807 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` 15808 test -n "$selvecs" && 15809 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 15810 test -n "$selarchs" && 15811 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 15812 fi # all_targets is true 15813 15814 # 64-bit archives need a 64-bit bfd_vma. 15815 if test "x$want_64_bit_archive" = xtrue; then 15816 want64=true 15817 15818 $as_echo "#define USE_64_BIT_ARCHIVE 1" >>confdefs.h 15819 15820 fi 15821 15822 case ${host64}-${target64}-${want64} in 15823 *true*) 15824 wordsize=64 15825 bfd64_libs='$(BFD64_LIBS)' 15826 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' 15827 if test -n "$GCC" ; then 15828 bad_64bit_gcc=no; 15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5 15830 $as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; } 15831 # Add more tests for gcc versions with non-working 64-bit support here. 15832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15833 /* end confdefs.h. */ 15834 :__GNUC__:__GNUC_MINOR__:__i386__: 15835 _ACEOF 15836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15837 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then : 15838 bad_64bit_gcc=yes; 15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5 15840 $as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; } 15841 else 15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15843 $as_echo "no" >&6; } 15844 fi 15845 rm -f conftest* 15846 15847 if test $bad_64bit_gcc = yes ; then 15848 as_fn_error $? "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5 15849 fi 15850 fi 15851 ;; 15852 false-false-false) 15853 wordsize=32 15854 all_backends='$(BFD32_BACKENDS)' 15855 ;; 15856 esac 15857 15858 tdefaults="" 15859 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" 15860 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" 15861 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'" 15862 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 # If we are configured native, pick a core file support file. 15874 COREFILE= 15875 COREFLAG= 15876 CORE_HEADER= 15877 TRAD_HEADER= 15878 if test "${target}" = "${host}"; then 15879 case "${host}" in 15880 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*) 15881 COREFILE='' 15882 ;; 15883 alpha*-*-linux-*) 15884 COREFILE=trad-core.lo 15885 TRAD_HEADER='"hosts/alphalinux.h"' 15886 ;; 15887 alpha*-*-netbsd* | alpha*-*-openbsd*) 15888 COREFILE=netbsd-core.lo 15889 ;; 15890 alpha*-*-*) 15891 COREFILE=osf-core.lo 15892 ;; 15893 arm-*-freebsd* | arm-*-kfreebsd*-gnu) 15894 COREFILE='' ;; 15895 arm*-*-netbsd* | arm-*-openbsd*) 15896 COREFILE=netbsd-core.lo 15897 ;; 15898 hppa*-*-hpux*) COREFILE=hpux-core.lo ;; 15899 hppa*-*-hiux*) COREFILE=hpux-core.lo ;; 15900 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; 15901 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" 15902 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; 15903 hppa*-*-netbsd* | hppa*-*-openbsd*) 15904 COREFILE=netbsd-core.lo 15905 ;; 15906 15907 i[3-7]86-*-bsdi) 15908 COREFILE= 15909 ;; 15910 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.*) 15911 COREFILE=trad-core.lo 15912 TRAD_HEADER='"hosts/i386bsd.h"' 15913 ;; 15914 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*) 15915 COREFILE='' 15916 TRAD_HEADER='"hosts/i386bsd.h"' 15917 ;; 15918 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*) 15919 COREFILE=netbsd-core.lo 15920 ;; 15921 i[3-7]86-esix-sysv3*) 15922 COREFILE=trad-core.lo 15923 TRAD_HEADER='"hosts/esix.h"' 15924 ;; 15925 i[3-7]86-*-mach3*) 15926 COREFILE=trad-core.lo 15927 TRAD_HEADER='"hosts/i386mach3.h"' 15928 ;; 15929 i[3-7]86-*-linux-*) 15930 COREFILE=trad-core.lo 15931 TRAD_HEADER='"hosts/i386linux.h"' 15932 case "$enable_targets"-"$want64" in 15933 *x86_64-*linux*|*-true) 15934 CORE_HEADER='"hosts/x86-64linux.h"' 15935 esac 15936 ;; 15937 mips*-*-netbsd* | mips*-*-openbsd*) 15938 COREFILE=netbsd-core.lo 15939 ;; 15940 mips-*-irix*) 15941 COREFILE=irix-core.lo 15942 ;; 15943 m68*-*-linux-*) 15944 COREFILE=trad-core.lo 15945 TRAD_HEADER='"hosts/m68klinux.h"' 15946 ;; 15947 m68*-*-netbsd*) 15948 COREFILE=netbsd-core.lo 15949 ;; 15950 ns32k-pc532-mach) 15951 COREFILE=trad-core.lo 15952 TRAD_HEADER='"hosts/pc532mach.h"' 15953 ;; 15954 ns32k-*-netbsd* | ns32k-*-openbsd*) 15955 COREFILE=netbsd-core.lo 15956 ;; 15957 riscv*-*-netbsd*) 15958 COREFILE=netbsd-core.lo 15959 ;; 15960 rs6000-*-lynx*) 15961 COREFILE=lynx-core.lo 15962 ;; 15963 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*) 15964 COREFILE=rs6000-core.lo 15965 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE" 15966 ;; 15967 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) 15968 COREFILE=rs6000-core.lo 15969 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" 15970 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE 15971 # have c_impl as a member of struct core_dumpx 15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5 15973 $as_echo_n "checking for c_impl in struct core_dumpx... " >&6; } 15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15975 /* end confdefs.h. */ 15976 #include <core.h> 15977 int 15978 main () 15979 { 15980 struct core_dumpx c; c.c_impl = 0; 15981 ; 15982 return 0; 15983 } 15984 _ACEOF 15985 if ac_fn_c_try_compile "$LINENO"; then : 15986 15987 $as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h 15988 15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15990 $as_echo "yes" >&6; } 15991 else 15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15993 $as_echo "no" >&6; } 15994 fi 15995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15996 ;; 15997 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; 15998 rs6000-*-*) COREFILE=rs6000-core.lo ;; 15999 powerpc64-*-aix*) COREFILE=rs6000-core.lo ;; 16000 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; 16001 powerpc-*-aix*) COREFILE=rs6000-core.lo ;; 16002 powerpc-*-beos*) ;; 16003 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu) 16004 COREFILE='' ;; 16005 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; 16006 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; 16007 s390*-*-*) COREFILE=trad-core.lo ;; 16008 sh*-*-netbsd* | sh*-*-openbsd*) 16009 COREFILE=netbsd-core.lo 16010 ;; 16011 sparc-*-netbsd* | sparc*-*-openbsd*) 16012 COREFILE=netbsd-core.lo 16013 ;; 16014 vax-*-netbsd* | vax-*-openbsd*) 16015 COREFILE=netbsd-core.lo 16016 ;; 16017 vax-*-linux-*) 16018 COREFILE=trad-core.lo 16019 TRAD_HEADER='"hosts/vaxlinux.h"' 16020 ;; 16021 vax-*-*) 16022 COREFILE=trad-core.lo 16023 TRAD_HEADER='"hosts/vaxbsd.h"' 16024 ;; 16025 x86_64-*-linux*) 16026 CORE_HEADER='"hosts/x86-64linux.h"' 16027 ;; 16028 x86_64-*-netbsd* | x86_64-*-openbsd*) 16029 COREFILE=netbsd-core.lo 16030 ;; 16031 esac 16032 16033 case "$COREFILE" in 16034 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; 16035 hpux-core.lo) COREFLAG=-DHPUX_CORE ;; 16036 irix-core.lo) COREFLAG=-DIRIX_CORE ;; 16037 lynx-core.lo) COREFLAG=-DLYNX_CORE ;; 16038 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; 16039 osf-core.lo) COREFLAG=-DOSF_CORE ;; 16040 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; 16041 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; 16042 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; 16043 esac 16044 16045 # ELF corefile support has several flavors, but all of 16046 # them use something called <sys/procfs.h> 16047 16048 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h 16049 16050 for ac_header in sys/procfs.h 16051 do : 16052 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default" 16053 if test "x$ac_cv_header_sys_procfs_h" = xyes; then : 16054 cat >>confdefs.h <<_ACEOF 16055 #define HAVE_SYS_PROCFS_H 1 16056 _ACEOF 16057 16058 fi 16059 16060 done 16061 16062 if test "$ac_cv_header_sys_procfs_h" = yes; then 16063 16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5 16065 $as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; } 16066 if ${bfd_cv_have_sys_procfs_type_prstatus_t+:} false; then : 16067 $as_echo_n "(cached) " >&6 16068 else 16069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16070 /* end confdefs.h. */ 16071 16072 #define _SYSCALL32 16073 #include <sys/procfs.h> 16074 int 16075 main () 16076 { 16077 prstatus_t avar 16078 ; 16079 return 0; 16080 } 16081 _ACEOF 16082 if ac_fn_c_try_compile "$LINENO"; then : 16083 bfd_cv_have_sys_procfs_type_prstatus_t=yes 16084 else 16085 bfd_cv_have_sys_procfs_type_prstatus_t=no 16086 16087 fi 16088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16089 fi 16090 16091 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then 16092 16093 $as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h 16094 16095 fi 16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5 16097 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; } 16098 16099 16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5 16101 $as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; } 16102 if ${bfd_cv_have_sys_procfs_type_prstatus32_t+:} false; then : 16103 $as_echo_n "(cached) " >&6 16104 else 16105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16106 /* end confdefs.h. */ 16107 16108 #define _SYSCALL32 16109 #include <sys/procfs.h> 16110 int 16111 main () 16112 { 16113 prstatus32_t avar 16114 ; 16115 return 0; 16116 } 16117 _ACEOF 16118 if ac_fn_c_try_compile "$LINENO"; then : 16119 bfd_cv_have_sys_procfs_type_prstatus32_t=yes 16120 else 16121 bfd_cv_have_sys_procfs_type_prstatus32_t=no 16122 16123 fi 16124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16125 fi 16126 16127 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then 16128 16129 $as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h 16130 16131 fi 16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5 16133 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; } 16134 16135 16136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5 16137 $as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; } 16138 if ${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+:} false; then : 16139 $as_echo_n "(cached) " >&6 16140 else 16141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16142 /* end confdefs.h. */ 16143 16144 #define _SYSCALL32 16145 #include <sys/procfs.h> 16146 int 16147 main () 16148 { 16149 prstatus_t avar; void* aref = (void*) &avar.pr_who 16150 ; 16151 return 0; 16152 } 16153 _ACEOF 16154 if ac_fn_c_try_compile "$LINENO"; then : 16155 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes 16156 else 16157 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no 16158 16159 fi 16160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16161 fi 16162 16163 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then 16164 16165 $as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h 16166 16167 fi 16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5 16169 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; } 16170 16171 16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 16173 $as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; } 16174 if ${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+:} false; then : 16175 $as_echo_n "(cached) " >&6 16176 else 16177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16178 /* end confdefs.h. */ 16179 16180 #define _SYSCALL32 16181 #include <sys/procfs.h> 16182 int 16183 main () 16184 { 16185 prstatus32_t avar; void* aref = (void*) &avar.pr_who 16186 ; 16187 return 0; 16188 } 16189 _ACEOF 16190 if ac_fn_c_try_compile "$LINENO"; then : 16191 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes 16192 else 16193 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no 16194 16195 fi 16196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16197 fi 16198 16199 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then 16200 16201 $as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h 16202 16203 fi 16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5 16205 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; } 16206 16207 16208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5 16209 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; } 16210 if ${bfd_cv_have_sys_procfs_type_pstatus_t+:} false; then : 16211 $as_echo_n "(cached) " >&6 16212 else 16213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16214 /* end confdefs.h. */ 16215 16216 #define _SYSCALL32 16217 #include <sys/procfs.h> 16218 int 16219 main () 16220 { 16221 pstatus_t avar 16222 ; 16223 return 0; 16224 } 16225 _ACEOF 16226 if ac_fn_c_try_compile "$LINENO"; then : 16227 bfd_cv_have_sys_procfs_type_pstatus_t=yes 16228 else 16229 bfd_cv_have_sys_procfs_type_pstatus_t=no 16230 16231 fi 16232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16233 fi 16234 16235 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then 16236 16237 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h 16238 16239 fi 16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 16241 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; } 16242 16243 16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5 16245 $as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; } 16246 if ${bfd_cv_have_sys_procfs_type_pxstatus_t+:} false; then : 16247 $as_echo_n "(cached) " >&6 16248 else 16249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16250 /* end confdefs.h. */ 16251 16252 #define _SYSCALL32 16253 #include <sys/procfs.h> 16254 int 16255 main () 16256 { 16257 pxstatus_t avar 16258 ; 16259 return 0; 16260 } 16261 _ACEOF 16262 if ac_fn_c_try_compile "$LINENO"; then : 16263 bfd_cv_have_sys_procfs_type_pxstatus_t=yes 16264 else 16265 bfd_cv_have_sys_procfs_type_pxstatus_t=no 16266 16267 fi 16268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16269 fi 16270 16271 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then 16272 16273 $as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h 16274 16275 fi 16276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5 16277 $as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; } 16278 16279 16280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5 16281 $as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; } 16282 if ${bfd_cv_have_sys_procfs_type_pstatus32_t+:} false; then : 16283 $as_echo_n "(cached) " >&6 16284 else 16285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16286 /* end confdefs.h. */ 16287 16288 #define _SYSCALL32 16289 #include <sys/procfs.h> 16290 int 16291 main () 16292 { 16293 pstatus32_t avar 16294 ; 16295 return 0; 16296 } 16297 _ACEOF 16298 if ac_fn_c_try_compile "$LINENO"; then : 16299 bfd_cv_have_sys_procfs_type_pstatus32_t=yes 16300 else 16301 bfd_cv_have_sys_procfs_type_pstatus32_t=no 16302 16303 fi 16304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16305 fi 16306 16307 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then 16308 16309 $as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h 16310 16311 fi 16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5 16313 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; } 16314 16315 16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5 16317 $as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; } 16318 if ${bfd_cv_have_sys_procfs_type_prpsinfo_t+:} false; then : 16319 $as_echo_n "(cached) " >&6 16320 else 16321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16322 /* end confdefs.h. */ 16323 16324 #define _SYSCALL32 16325 #include <sys/procfs.h> 16326 int 16327 main () 16328 { 16329 prpsinfo_t avar 16330 ; 16331 return 0; 16332 } 16333 _ACEOF 16334 if ac_fn_c_try_compile "$LINENO"; then : 16335 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes 16336 else 16337 bfd_cv_have_sys_procfs_type_prpsinfo_t=no 16338 16339 fi 16340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16341 fi 16342 16343 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then 16344 16345 $as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h 16346 16347 fi 16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5 16349 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; } 16350 16351 16352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t.pr_pid in sys/procfs.h" >&5 16353 $as_echo_n "checking for prpsinfo_t.pr_pid in sys/procfs.h... " >&6; } 16354 if ${bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid+:} false; then : 16355 $as_echo_n "(cached) " >&6 16356 else 16357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16358 /* end confdefs.h. */ 16359 16360 #define _SYSCALL32 16361 #include <sys/procfs.h> 16362 int 16363 main () 16364 { 16365 prpsinfo_t avar; void* aref = (void*) &avar.pr_pid 16366 ; 16367 return 0; 16368 } 16369 _ACEOF 16370 if ac_fn_c_try_compile "$LINENO"; then : 16371 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=yes 16372 else 16373 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=no 16374 16375 fi 16376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16377 fi 16378 16379 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid = yes; then 16380 16381 $as_echo "#define HAVE_PRPSINFO_T_PR_PID 1" >>confdefs.h 16382 16383 fi 16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&5 16385 $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&6; } 16386 16387 16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5 16389 $as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; } 16390 if ${bfd_cv_have_sys_procfs_type_prpsinfo32_t+:} false; then : 16391 $as_echo_n "(cached) " >&6 16392 else 16393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16394 /* end confdefs.h. */ 16395 16396 #define _SYSCALL32 16397 #include <sys/procfs.h> 16398 int 16399 main () 16400 { 16401 prpsinfo32_t avar 16402 ; 16403 return 0; 16404 } 16405 _ACEOF 16406 if ac_fn_c_try_compile "$LINENO"; then : 16407 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes 16408 else 16409 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no 16410 16411 fi 16412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16413 fi 16414 16415 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then 16416 16417 $as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h 16418 16419 fi 16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5 16421 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; } 16422 16423 16424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t.pr_pid in sys/procfs.h" >&5 16425 $as_echo_n "checking for prpsinfo32_t.pr_pid in sys/procfs.h... " >&6; } 16426 if ${bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid+:} false; then : 16427 $as_echo_n "(cached) " >&6 16428 else 16429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16430 /* end confdefs.h. */ 16431 16432 #define _SYSCALL32 16433 #include <sys/procfs.h> 16434 int 16435 main () 16436 { 16437 prpsinfo32_t avar; void* aref = (void*) &avar.pr_pid 16438 ; 16439 return 0; 16440 } 16441 _ACEOF 16442 if ac_fn_c_try_compile "$LINENO"; then : 16443 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=yes 16444 else 16445 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=no 16446 16447 fi 16448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16449 fi 16450 16451 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid = yes; then 16452 16453 $as_echo "#define HAVE_PRPSINFO32_T_PR_PID 1" >>confdefs.h 16454 16455 fi 16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&5 16457 $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&6; } 16458 16459 16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5 16461 $as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; } 16462 if ${bfd_cv_have_sys_procfs_type_psinfo_t+:} false; then : 16463 $as_echo_n "(cached) " >&6 16464 else 16465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16466 /* end confdefs.h. */ 16467 16468 #define _SYSCALL32 16469 #include <sys/procfs.h> 16470 int 16471 main () 16472 { 16473 psinfo_t avar 16474 ; 16475 return 0; 16476 } 16477 _ACEOF 16478 if ac_fn_c_try_compile "$LINENO"; then : 16479 bfd_cv_have_sys_procfs_type_psinfo_t=yes 16480 else 16481 bfd_cv_have_sys_procfs_type_psinfo_t=no 16482 16483 fi 16484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16485 fi 16486 16487 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then 16488 16489 $as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h 16490 16491 fi 16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5 16493 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; } 16494 16495 16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t.pr_pid in sys/procfs.h" >&5 16497 $as_echo_n "checking for psinfo_t.pr_pid in sys/procfs.h... " >&6; } 16498 if ${bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid+:} false; then : 16499 $as_echo_n "(cached) " >&6 16500 else 16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16502 /* end confdefs.h. */ 16503 16504 #define _SYSCALL32 16505 #include <sys/procfs.h> 16506 int 16507 main () 16508 { 16509 psinfo_t avar; void* aref = (void*) &avar.pr_pid 16510 ; 16511 return 0; 16512 } 16513 _ACEOF 16514 if ac_fn_c_try_compile "$LINENO"; then : 16515 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=yes 16516 else 16517 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=no 16518 16519 fi 16520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16521 fi 16522 16523 if test $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid = yes; then 16524 16525 $as_echo "#define HAVE_PSINFO_T_PR_PID 1" >>confdefs.h 16526 16527 fi 16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&5 16529 $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&6; } 16530 16531 16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5 16533 $as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; } 16534 if ${bfd_cv_have_sys_procfs_type_psinfo32_t+:} false; then : 16535 $as_echo_n "(cached) " >&6 16536 else 16537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16538 /* end confdefs.h. */ 16539 16540 #define _SYSCALL32 16541 #include <sys/procfs.h> 16542 int 16543 main () 16544 { 16545 psinfo32_t avar 16546 ; 16547 return 0; 16548 } 16549 _ACEOF 16550 if ac_fn_c_try_compile "$LINENO"; then : 16551 bfd_cv_have_sys_procfs_type_psinfo32_t=yes 16552 else 16553 bfd_cv_have_sys_procfs_type_psinfo32_t=no 16554 16555 fi 16556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16557 fi 16558 16559 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then 16560 16561 $as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h 16562 16563 fi 16564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5 16565 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; } 16566 16567 16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t.pr_pid in sys/procfs.h" >&5 16569 $as_echo_n "checking for psinfo32_t.pr_pid in sys/procfs.h... " >&6; } 16570 if ${bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid+:} false; then : 16571 $as_echo_n "(cached) " >&6 16572 else 16573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16574 /* end confdefs.h. */ 16575 16576 #define _SYSCALL32 16577 #include <sys/procfs.h> 16578 int 16579 main () 16580 { 16581 psinfo32_t avar; void* aref = (void*) &avar.pr_pid 16582 ; 16583 return 0; 16584 } 16585 _ACEOF 16586 if ac_fn_c_try_compile "$LINENO"; then : 16587 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=yes 16588 else 16589 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=no 16590 16591 fi 16592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16593 fi 16594 16595 if test $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid = yes; then 16596 16597 $as_echo "#define HAVE_PSINFO32_T_PR_PID 1" >>confdefs.h 16598 16599 fi 16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&5 16601 $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&6; } 16602 16603 16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5 16605 $as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; } 16606 if ${bfd_cv_have_sys_procfs_type_lwpstatus_t+:} false; then : 16607 $as_echo_n "(cached) " >&6 16608 else 16609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16610 /* end confdefs.h. */ 16611 16612 #define _SYSCALL32 16613 #include <sys/procfs.h> 16614 int 16615 main () 16616 { 16617 lwpstatus_t avar 16618 ; 16619 return 0; 16620 } 16621 _ACEOF 16622 if ac_fn_c_try_compile "$LINENO"; then : 16623 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes 16624 else 16625 bfd_cv_have_sys_procfs_type_lwpstatus_t=no 16626 16627 fi 16628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16629 fi 16630 16631 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then 16632 16633 $as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h 16634 16635 fi 16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5 16637 $as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; } 16638 16639 16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5 16641 $as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; } 16642 if ${bfd_cv_have_sys_procfs_type_lwpxstatus_t+:} false; then : 16643 $as_echo_n "(cached) " >&6 16644 else 16645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16646 /* end confdefs.h. */ 16647 16648 #define _SYSCALL32 16649 #include <sys/procfs.h> 16650 int 16651 main () 16652 { 16653 lwpxstatus_t avar 16654 ; 16655 return 0; 16656 } 16657 _ACEOF 16658 if ac_fn_c_try_compile "$LINENO"; then : 16659 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes 16660 else 16661 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no 16662 16663 fi 16664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16665 fi 16666 16667 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then 16668 16669 $as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h 16670 16671 fi 16672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5 16673 $as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; } 16674 16675 16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 16677 $as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; } 16678 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+:} false; then : 16679 $as_echo_n "(cached) " >&6 16680 else 16681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16682 /* end confdefs.h. */ 16683 16684 #define _SYSCALL32 16685 #include <sys/procfs.h> 16686 int 16687 main () 16688 { 16689 lwpstatus_t avar; void* aref = (void*) &avar.pr_context 16690 ; 16691 return 0; 16692 } 16693 _ACEOF 16694 if ac_fn_c_try_compile "$LINENO"; then : 16695 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes 16696 else 16697 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no 16698 16699 fi 16700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16701 fi 16702 16703 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then 16704 16705 $as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h 16706 16707 fi 16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5 16709 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; } 16710 16711 16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 16713 $as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; } 16714 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+:} false; then : 16715 $as_echo_n "(cached) " >&6 16716 else 16717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16718 /* end confdefs.h. */ 16719 16720 #define _SYSCALL32 16721 #include <sys/procfs.h> 16722 int 16723 main () 16724 { 16725 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg 16726 ; 16727 return 0; 16728 } 16729 _ACEOF 16730 if ac_fn_c_try_compile "$LINENO"; then : 16731 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes 16732 else 16733 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no 16734 16735 fi 16736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16737 fi 16738 16739 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then 16740 16741 $as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h 16742 16743 fi 16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5 16745 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; } 16746 16747 16748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5 16749 $as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; } 16750 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+:} false; then : 16751 $as_echo_n "(cached) " >&6 16752 else 16753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16754 /* end confdefs.h. */ 16755 16756 #define _SYSCALL32 16757 #include <sys/procfs.h> 16758 int 16759 main () 16760 { 16761 lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg 16762 ; 16763 return 0; 16764 } 16765 _ACEOF 16766 if ac_fn_c_try_compile "$LINENO"; then : 16767 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes 16768 else 16769 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no 16770 16771 fi 16772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16773 fi 16774 16775 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then 16776 16777 $as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h 16778 16779 fi 16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5 16781 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; } 16782 16783 16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5 16785 $as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; } 16786 if ${bfd_cv_have_sys_procfs_type_win32_pstatus_t+:} false; then : 16787 $as_echo_n "(cached) " >&6 16788 else 16789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16790 /* end confdefs.h. */ 16791 16792 #define _SYSCALL32 16793 #include <sys/procfs.h> 16794 int 16795 main () 16796 { 16797 win32_pstatus_t avar 16798 ; 16799 return 0; 16800 } 16801 _ACEOF 16802 if ac_fn_c_try_compile "$LINENO"; then : 16803 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes 16804 else 16805 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no 16806 16807 fi 16808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16809 fi 16810 16811 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then 16812 16813 $as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h 16814 16815 fi 16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5 16817 $as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; } 16818 16819 fi 16820 fi 16821 16822 16823 if test -n "$CORE_HEADER"; then 16824 16825 cat >>confdefs.h <<_ACEOF 16826 #define CORE_HEADER $CORE_HEADER 16827 _ACEOF 16828 16829 fi 16830 if test -n "$TRAD_HEADER"; then 16831 16832 cat >>confdefs.h <<_ACEOF 16833 #define TRAD_HEADER $TRAD_HEADER 16834 _ACEOF 16835 16836 fi 16837 16838 if test "$plugins" = "yes"; then 16839 supports_plugins=1 16840 else 16841 supports_plugins=0 16842 fi 16843 16844 16845 16846 # Determine the host dependent file_ptr a.k.a. off_t type. In order 16847 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and 16848 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long. 16849 # Hopefully a reasonable assumption since fseeko et.al. should be 16850 # upward compatible. 16851 for ac_func in ftello ftello64 fseeko fseeko64 fopen64 16852 do : 16853 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16854 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16855 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16856 cat >>confdefs.h <<_ACEOF 16857 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16858 _ACEOF 16859 16860 fi 16861 done 16862 16863 ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default" 16864 if test "x$ac_cv_have_decl_ftello" = xyes; then : 16865 ac_have_decl=1 16866 else 16867 ac_have_decl=0 16868 fi 16869 16870 cat >>confdefs.h <<_ACEOF 16871 #define HAVE_DECL_FTELLO $ac_have_decl 16872 _ACEOF 16873 ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default" 16874 if test "x$ac_cv_have_decl_ftello64" = xyes; then : 16875 ac_have_decl=1 16876 else 16877 ac_have_decl=0 16878 fi 16879 16880 cat >>confdefs.h <<_ACEOF 16881 #define HAVE_DECL_FTELLO64 $ac_have_decl 16882 _ACEOF 16883 ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default" 16884 if test "x$ac_cv_have_decl_fseeko" = xyes; then : 16885 ac_have_decl=1 16886 else 16887 ac_have_decl=0 16888 fi 16889 16890 cat >>confdefs.h <<_ACEOF 16891 #define HAVE_DECL_FSEEKO $ac_have_decl 16892 _ACEOF 16893 ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default" 16894 if test "x$ac_cv_have_decl_fseeko64" = xyes; then : 16895 ac_have_decl=1 16896 else 16897 ac_have_decl=0 16898 fi 16899 16900 cat >>confdefs.h <<_ACEOF 16901 #define HAVE_DECL_FSEEKO64 $ac_have_decl 16902 _ACEOF 16903 ac_fn_c_check_decl "$LINENO" "fopen64" "ac_cv_have_decl_fopen64" "$ac_includes_default" 16904 if test "x$ac_cv_have_decl_fopen64" = xyes; then : 16905 ac_have_decl=1 16906 else 16907 ac_have_decl=0 16908 fi 16909 16910 cat >>confdefs.h <<_ACEOF 16911 #define HAVE_DECL_FOPEN64 $ac_have_decl 16912 _ACEOF 16913 16914 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then 16915 # The cast to long int works around a bug in the HP C Compiler 16916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16918 # This bug is HP SR number 8606223364. 16919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 16920 $as_echo_n "checking size of off_t... " >&6; } 16921 if ${ac_cv_sizeof_off_t+:} false; then : 16922 $as_echo_n "(cached) " >&6 16923 else 16924 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 16925 16926 else 16927 if test "$ac_cv_type_off_t" = yes; then 16928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16930 as_fn_error 77 "cannot compute sizeof (off_t) 16931 See \`config.log' for more details" "$LINENO" 5; } 16932 else 16933 ac_cv_sizeof_off_t=0 16934 fi 16935 fi 16936 16937 fi 16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 16939 $as_echo "$ac_cv_sizeof_off_t" >&6; } 16940 16941 16942 16943 cat >>confdefs.h <<_ACEOF 16944 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t 16945 _ACEOF 16946 16947 16948 fi 16949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5 16950 $as_echo_n "checking file_ptr type... " >&6; } 16951 bfd_file_ptr="long" 16952 bfd_ufile_ptr="unsigned long" 16953 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \ 16954 -o x"${ac_cv_sizeof_off_t}" = x8; then 16955 bfd_file_ptr=int64_t 16956 bfd_ufile_ptr=uint64_t 16957 fi 16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5 16959 $as_echo "$bfd_file_ptr" >&6; } 16960 16961 16962 16963 16964 16965 16966 for ac_header in $ac_header_list 16967 do : 16968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16969 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 16970 " 16971 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16972 cat >>confdefs.h <<_ACEOF 16973 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16974 _ACEOF 16975 16976 fi 16977 16978 done 16979 16980 16981 16982 16983 16984 16985 16986 save_ASAN_OPTIONS="$ASAN_OPTIONS" 16987 ASAN_OPTIONS=detect_leaks=0 16988 export ASAN_OPTIONS 16989 16990 for ac_func in getpagesize 16991 do : 16992 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 16993 if test "x$ac_cv_func_getpagesize" = xyes; then : 16994 cat >>confdefs.h <<_ACEOF 16995 #define HAVE_GETPAGESIZE 1 16996 _ACEOF 16997 16998 fi 16999 done 17000 17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 17002 $as_echo_n "checking for working mmap... " >&6; } 17003 if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 17004 $as_echo_n "(cached) " >&6 17005 else 17006 if test "$cross_compiling" = yes; then : 17007 ac_cv_func_mmap_fixed_mapped=no 17008 else 17009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17010 /* end confdefs.h. */ 17011 $ac_includes_default 17012 /* malloc might have been renamed as rpl_malloc. */ 17013 #undef malloc 17014 17015 /* Thanks to Mike Haertel and Jim Avera for this test. 17016 Here is a matrix of mmap possibilities: 17017 mmap private not fixed 17018 mmap private fixed at somewhere currently unmapped 17019 mmap private fixed at somewhere already mapped 17020 mmap shared not fixed 17021 mmap shared fixed at somewhere currently unmapped 17022 mmap shared fixed at somewhere already mapped 17023 For private mappings, we should verify that changes cannot be read() 17024 back from the file, nor mmap's back from the file at a different 17025 address. (There have been systems where private was not correctly 17026 implemented like the infamous i386 svr4.0, and systems where the 17027 VM page cache was not coherent with the file system buffer cache 17028 like early versions of FreeBSD and possibly contemporary NetBSD.) 17029 For shared mappings, we should conversely verify that changes get 17030 propagated back to all the places they're supposed to be. 17031 17032 Grep wants private fixed already mapped. 17033 The main things grep needs to know about mmap are: 17034 * does it exist and is it safe to write into the mmap'd area 17035 * how to use it (BSD variants) */ 17036 17037 #include <fcntl.h> 17038 #include <sys/mman.h> 17039 17040 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 17041 char *malloc (); 17042 #endif 17043 17044 /* This mess was copied from the GNU getpagesize.h. */ 17045 #ifndef HAVE_GETPAGESIZE 17046 # ifdef _SC_PAGESIZE 17047 # define getpagesize() sysconf(_SC_PAGESIZE) 17048 # else /* no _SC_PAGESIZE */ 17049 # ifdef HAVE_SYS_PARAM_H 17050 # include <sys/param.h> 17051 # ifdef EXEC_PAGESIZE 17052 # define getpagesize() EXEC_PAGESIZE 17053 # else /* no EXEC_PAGESIZE */ 17054 # ifdef NBPG 17055 # define getpagesize() NBPG * CLSIZE 17056 # ifndef CLSIZE 17057 # define CLSIZE 1 17058 # endif /* no CLSIZE */ 17059 # else /* no NBPG */ 17060 # ifdef NBPC 17061 # define getpagesize() NBPC 17062 # else /* no NBPC */ 17063 # ifdef PAGESIZE 17064 # define getpagesize() PAGESIZE 17065 # endif /* PAGESIZE */ 17066 # endif /* no NBPC */ 17067 # endif /* no NBPG */ 17068 # endif /* no EXEC_PAGESIZE */ 17069 # else /* no HAVE_SYS_PARAM_H */ 17070 # define getpagesize() 8192 /* punt totally */ 17071 # endif /* no HAVE_SYS_PARAM_H */ 17072 # endif /* no _SC_PAGESIZE */ 17073 17074 #endif /* no HAVE_GETPAGESIZE */ 17075 17076 int 17077 main () 17078 { 17079 char *data, *data2, *data3; 17080 const char *cdata2; 17081 int i, pagesize; 17082 int fd, fd2; 17083 17084 pagesize = getpagesize (); 17085 17086 /* First, make a file with some known garbage in it. */ 17087 data = (char *) malloc (pagesize); 17088 if (!data) 17089 return 1; 17090 for (i = 0; i < pagesize; ++i) 17091 *(data + i) = rand (); 17092 umask (0); 17093 fd = creat ("conftest.mmap", 0600); 17094 if (fd < 0) 17095 return 2; 17096 if (write (fd, data, pagesize) != pagesize) 17097 return 3; 17098 close (fd); 17099 17100 /* Next, check that the tail of a page is zero-filled. File must have 17101 non-zero length, otherwise we risk SIGBUS for entire page. */ 17102 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 17103 if (fd2 < 0) 17104 return 4; 17105 cdata2 = ""; 17106 if (write (fd2, cdata2, 1) != 1) 17107 return 5; 17108 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 17109 if (data2 == MAP_FAILED) 17110 return 6; 17111 for (i = 0; i < pagesize; ++i) 17112 if (*(data2 + i)) 17113 return 7; 17114 close (fd2); 17115 if (munmap (data2, pagesize)) 17116 return 8; 17117 17118 /* Next, try to mmap the file at a fixed address which already has 17119 something else allocated at it. If we can, also make sure that 17120 we see the same garbage. */ 17121 fd = open ("conftest.mmap", O_RDWR); 17122 if (fd < 0) 17123 return 9; 17124 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 17125 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 17126 return 10; 17127 for (i = 0; i < pagesize; ++i) 17128 if (*(data + i) != *(data2 + i)) 17129 return 11; 17130 17131 /* Finally, make sure that changes to the mapped area do not 17132 percolate back to the file as seen by read(). (This is a bug on 17133 some variants of i386 svr4.0.) */ 17134 for (i = 0; i < pagesize; ++i) 17135 *(data2 + i) = *(data2 + i) + 1; 17136 data3 = (char *) malloc (pagesize); 17137 if (!data3) 17138 return 12; 17139 if (read (fd, data3, pagesize) != pagesize) 17140 return 13; 17141 for (i = 0; i < pagesize; ++i) 17142 if (*(data + i) != *(data3 + i)) 17143 return 14; 17144 close (fd); 17145 return 0; 17146 } 17147 _ACEOF 17148 if ac_fn_c_try_run "$LINENO"; then : 17149 ac_cv_func_mmap_fixed_mapped=yes 17150 else 17151 ac_cv_func_mmap_fixed_mapped=no 17152 fi 17153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17154 conftest.$ac_objext conftest.beam conftest.$ac_ext 17155 fi 17156 17157 fi 17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 17159 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 17160 if test $ac_cv_func_mmap_fixed_mapped = yes; then 17161 17162 $as_echo "#define HAVE_MMAP 1" >>confdefs.h 17163 17164 fi 17165 rm -f conftest.mmap conftest.txt 17166 17167 ASAN_OPTIONS="$save_ASAN_OPTIONS" 17168 17169 for ac_func in madvise mprotect 17170 do : 17171 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17172 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17173 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17174 cat >>confdefs.h <<_ACEOF 17175 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17176 _ACEOF 17177 17178 fi 17179 done 17180 17181 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in 17182 true+yes ) 17183 $as_echo "#define USE_MMAP 1" >>confdefs.h 17184 ;; 17185 esac 17186 17187 ac_config_files="$ac_config_files Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in" 17188 17189 17190 ac_config_commands="$ac_config_commands default" 17191 17192 17193 17194 17195 17196 17197 17198 cat >confcache <<\_ACEOF 17199 # This file is a shell script that caches the results of configure 17200 # tests run on this system so they can be shared between configure 17201 # scripts and configure runs, see configure's option --config-cache. 17202 # It is not useful on other systems. If it contains results you don't 17203 # want to keep, you may remove or edit it. 17204 # 17205 # config.status only pays attention to the cache file if you give it 17206 # the --recheck option to rerun configure. 17207 # 17208 # `ac_cv_env_foo' variables (set or unset) will be overridden when 17209 # loading this file, other *unset* `ac_cv_foo' will be assigned the 17210 # following values. 17211 17212 _ACEOF 17213 17214 # The following way of writing the cache mishandles newlines in values, 17215 # but we know of no workaround that is simple, portable, and efficient. 17216 # So, we kill variables containing newlines. 17217 # Ultrix sh set writes to stderr and can't be redirected directly, 17218 # and sets the high bit in the cache file unless we assign to the vars. 17219 ( 17220 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17221 eval ac_val=\$$ac_var 17222 case $ac_val in #( 17223 *${as_nl}*) 17224 case $ac_var in #( 17225 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17226 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17227 esac 17228 case $ac_var in #( 17229 _ | IFS | as_nl) ;; #( 17230 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17231 *) { eval $ac_var=; unset $ac_var;} ;; 17232 esac ;; 17233 esac 17234 done 17235 17236 (set) 2>&1 | 17237 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17238 *${as_nl}ac_space=\ *) 17239 # `set' does not quote correctly, so add quotes: double-quote 17240 # substitution turns \\\\ into \\, and sed turns \\ into \. 17241 sed -n \ 17242 "s/'/'\\\\''/g; 17243 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17244 ;; #( 17245 *) 17246 # `set' quotes correctly as required by POSIX, so do not add quotes. 17247 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17248 ;; 17249 esac | 17250 sort 17251 ) | 17252 sed ' 17253 /^ac_cv_env_/b end 17254 t clear 17255 :clear 17256 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17257 t end 17258 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17259 :end' >>confcache 17260 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17261 if test -w "$cache_file"; then 17262 if test "x$cache_file" != "x/dev/null"; then 17263 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17264 $as_echo "$as_me: updating cache $cache_file" >&6;} 17265 if test ! -f "$cache_file" || test -h "$cache_file"; then 17266 cat confcache >"$cache_file" 17267 else 17268 case $cache_file in #( 17269 */* | ?:*) 17270 mv -f confcache "$cache_file"$$ && 17271 mv -f "$cache_file"$$ "$cache_file" ;; #( 17272 *) 17273 mv -f confcache "$cache_file" ;; 17274 esac 17275 fi 17276 fi 17277 else 17278 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17279 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17280 fi 17281 fi 17282 rm -f confcache 17283 17284 test "x$prefix" = xNONE && prefix=$ac_default_prefix 17285 # Let make expand exec_prefix. 17286 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17287 17288 DEFS=-DHAVE_CONFIG_H 17289 17290 ac_libobjs= 17291 ac_ltlibobjs= 17292 U= 17293 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17294 # 1. Remove the extension, and $U if already installed. 17295 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17296 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17297 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17298 # will be set to the directory where LIBOBJS objects are built. 17299 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17300 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17301 done 17302 LIBOBJS=$ac_libobjs 17303 17304 LTLIBOBJS=$ac_ltlibobjs 17305 17306 17307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17308 $as_echo_n "checking that generated files are newer than configure... " >&6; } 17309 if test -n "$am_sleep_pid"; then 17310 # Hide warnings about reused PIDs. 17311 wait $am_sleep_pid 2>/dev/null 17312 fi 17313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17314 $as_echo "done" >&6; } 17315 if test -n "$EXEEXT"; then 17316 am__EXEEXT_TRUE= 17317 am__EXEEXT_FALSE='#' 17318 else 17319 am__EXEEXT_TRUE='#' 17320 am__EXEEXT_FALSE= 17321 fi 17322 17323 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17324 as_fn_error $? "conditional \"AMDEP\" was never defined. 17325 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17326 fi 17327 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17328 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17329 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17330 fi 17331 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then 17332 as_fn_error $? "conditional \"PLUGINS\" was never defined. 17333 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17334 fi 17335 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17336 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 17337 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17338 fi 17339 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then 17340 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined. 17341 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17342 fi 17343 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then 17344 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined. 17345 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17346 fi 17347 17348 17349 : "${CONFIG_STATUS=./config.status}" 17350 ac_write_fail=0 17351 ac_clean_files_save=$ac_clean_files 17352 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17353 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17354 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17355 as_write_fail=0 17356 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17357 #! $SHELL 17358 # Generated by $as_me. 17359 # Run this file to recreate the current configuration. 17360 # Compiler output produced by configure, useful for debugging 17361 # configure, is in config.log if it exists. 17362 17363 debug=false 17364 ac_cs_recheck=false 17365 ac_cs_silent=false 17366 17367 SHELL=\${CONFIG_SHELL-$SHELL} 17368 export SHELL 17369 _ASEOF 17370 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17371 ## -------------------- ## 17372 ## M4sh Initialization. ## 17373 ## -------------------- ## 17374 17375 # Be more Bourne compatible 17376 DUALCASE=1; export DUALCASE # for MKS sh 17377 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17378 emulate sh 17379 NULLCMD=: 17380 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17381 # is contrary to our usage. Disable this feature. 17382 alias -g '${1+"$@"}'='"$@"' 17383 setopt NO_GLOB_SUBST 17384 else 17385 case `(set -o) 2>/dev/null` in #( 17386 *posix*) : 17387 set -o posix ;; #( 17388 *) : 17389 ;; 17390 esac 17391 fi 17392 17393 17394 as_nl=' 17395 ' 17396 export as_nl 17397 # Printing a long string crashes Solaris 7 /usr/bin/printf. 17398 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17399 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17400 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17401 # Prefer a ksh shell builtin over an external printf program on Solaris, 17402 # but without wasting forks for bash or zsh. 17403 if test -z "$BASH_VERSION$ZSH_VERSION" \ 17404 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17405 as_echo='print -r --' 17406 as_echo_n='print -rn --' 17407 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17408 as_echo='printf %s\n' 17409 as_echo_n='printf %s' 17410 else 17411 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17412 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17413 as_echo_n='/usr/ucb/echo -n' 17414 else 17415 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17416 as_echo_n_body='eval 17417 arg=$1; 17418 case $arg in #( 17419 *"$as_nl"*) 17420 expr "X$arg" : "X\\(.*\\)$as_nl"; 17421 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17422 esac; 17423 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17424 ' 17425 export as_echo_n_body 17426 as_echo_n='sh -c $as_echo_n_body as_echo' 17427 fi 17428 export as_echo_body 17429 as_echo='sh -c $as_echo_body as_echo' 17430 fi 17431 17432 # The user is always right. 17433 if test "${PATH_SEPARATOR+set}" != set; then 17434 PATH_SEPARATOR=: 17435 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17436 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17437 PATH_SEPARATOR=';' 17438 } 17439 fi 17440 17441 17442 # IFS 17443 # We need space, tab and new line, in precisely that order. Quoting is 17444 # there to prevent editors from complaining about space-tab. 17445 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 17446 # splitting by setting IFS to empty value.) 17447 IFS=" "" $as_nl" 17448 17449 # Find who we are. Look in the path if we contain no directory separator. 17450 as_myself= 17451 case $0 in #(( 17452 *[\\/]* ) as_myself=$0 ;; 17453 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17454 for as_dir in $PATH 17455 do 17456 IFS=$as_save_IFS 17457 test -z "$as_dir" && as_dir=. 17458 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17459 done 17460 IFS=$as_save_IFS 17461 17462 ;; 17463 esac 17464 # We did not find ourselves, most probably we were run as `sh COMMAND' 17465 # in which case we are not to be found in the path. 17466 if test "x$as_myself" = x; then 17467 as_myself=$0 17468 fi 17469 if test ! -f "$as_myself"; then 17470 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17471 exit 1 17472 fi 17473 17474 # Unset variables that we do not need and which cause bugs (e.g. in 17475 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17476 # suppresses any "Segmentation fault" message there. '((' could 17477 # trigger a bug in pdksh 5.2.14. 17478 for as_var in BASH_ENV ENV MAIL MAILPATH 17479 do eval test x\${$as_var+set} = xset \ 17480 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17481 done 17482 PS1='$ ' 17483 PS2='> ' 17484 PS4='+ ' 17485 17486 # NLS nuisances. 17487 LC_ALL=C 17488 export LC_ALL 17489 LANGUAGE=C 17490 export LANGUAGE 17491 17492 # CDPATH. 17493 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17494 17495 17496 # as_fn_error STATUS ERROR [LINENO LOG_FD] 17497 # ---------------------------------------- 17498 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17499 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17500 # script with STATUS, using 1 if that was 0. 17501 as_fn_error () 17502 { 17503 as_status=$1; test $as_status -eq 0 && as_status=1 17504 if test "$4"; then 17505 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17506 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17507 fi 17508 $as_echo "$as_me: error: $2" >&2 17509 as_fn_exit $as_status 17510 } # as_fn_error 17511 17512 17513 # as_fn_set_status STATUS 17514 # ----------------------- 17515 # Set $? to STATUS, without forking. 17516 as_fn_set_status () 17517 { 17518 return $1 17519 } # as_fn_set_status 17520 17521 # as_fn_exit STATUS 17522 # ----------------- 17523 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17524 as_fn_exit () 17525 { 17526 set +e 17527 as_fn_set_status $1 17528 exit $1 17529 } # as_fn_exit 17530 17531 # as_fn_unset VAR 17532 # --------------- 17533 # Portably unset VAR. 17534 as_fn_unset () 17535 { 17536 { eval $1=; unset $1;} 17537 } 17538 as_unset=as_fn_unset 17539 # as_fn_append VAR VALUE 17540 # ---------------------- 17541 # Append the text in VALUE to the end of the definition contained in VAR. Take 17542 # advantage of any shell optimizations that allow amortized linear growth over 17543 # repeated appends, instead of the typical quadratic growth present in naive 17544 # implementations. 17545 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17546 eval 'as_fn_append () 17547 { 17548 eval $1+=\$2 17549 }' 17550 else 17551 as_fn_append () 17552 { 17553 eval $1=\$$1\$2 17554 } 17555 fi # as_fn_append 17556 17557 # as_fn_arith ARG... 17558 # ------------------ 17559 # Perform arithmetic evaluation on the ARGs, and store the result in the 17560 # global $as_val. Take advantage of shells that can avoid forks. The arguments 17561 # must be portable across $(()) and expr. 17562 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17563 eval 'as_fn_arith () 17564 { 17565 as_val=$(( $* )) 17566 }' 17567 else 17568 as_fn_arith () 17569 { 17570 as_val=`expr "$@" || test $? -eq 1` 17571 } 17572 fi # as_fn_arith 17573 17574 17575 if expr a : '\(a\)' >/dev/null 2>&1 && 17576 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17577 as_expr=expr 17578 else 17579 as_expr=false 17580 fi 17581 17582 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17583 as_basename=basename 17584 else 17585 as_basename=false 17586 fi 17587 17588 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17589 as_dirname=dirname 17590 else 17591 as_dirname=false 17592 fi 17593 17594 as_me=`$as_basename -- "$0" || 17595 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17596 X"$0" : 'X\(//\)$' \| \ 17597 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17598 $as_echo X/"$0" | 17599 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17600 s//\1/ 17601 q 17602 } 17603 /^X\/\(\/\/\)$/{ 17604 s//\1/ 17605 q 17606 } 17607 /^X\/\(\/\).*/{ 17608 s//\1/ 17609 q 17610 } 17611 s/.*/./; q'` 17612 17613 # Avoid depending upon Character Ranges. 17614 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17615 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17616 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17617 as_cr_digits='0123456789' 17618 as_cr_alnum=$as_cr_Letters$as_cr_digits 17619 17620 ECHO_C= ECHO_N= ECHO_T= 17621 case `echo -n x` in #((((( 17622 -n*) 17623 case `echo 'xy\c'` in 17624 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17625 xy) ECHO_C='\c';; 17626 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17627 ECHO_T=' ';; 17628 esac;; 17629 *) 17630 ECHO_N='-n';; 17631 esac 17632 17633 rm -f conf$$ conf$$.exe conf$$.file 17634 if test -d conf$$.dir; then 17635 rm -f conf$$.dir/conf$$.file 17636 else 17637 rm -f conf$$.dir 17638 mkdir conf$$.dir 2>/dev/null 17639 fi 17640 if (echo >conf$$.file) 2>/dev/null; then 17641 if ln -s conf$$.file conf$$ 2>/dev/null; then 17642 as_ln_s='ln -s' 17643 # ... but there are two gotchas: 17644 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17645 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17646 # In both cases, we have to default to `cp -pR'. 17647 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17648 as_ln_s='cp -pR' 17649 elif ln conf$$.file conf$$ 2>/dev/null; then 17650 as_ln_s=ln 17651 else 17652 as_ln_s='cp -pR' 17653 fi 17654 else 17655 as_ln_s='cp -pR' 17656 fi 17657 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17658 rmdir conf$$.dir 2>/dev/null 17659 17660 17661 # as_fn_mkdir_p 17662 # ------------- 17663 # Create "$as_dir" as a directory, including parents if necessary. 17664 as_fn_mkdir_p () 17665 { 17666 17667 case $as_dir in #( 17668 -*) as_dir=./$as_dir;; 17669 esac 17670 test -d "$as_dir" || eval $as_mkdir_p || { 17671 as_dirs= 17672 while :; do 17673 case $as_dir in #( 17674 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17675 *) as_qdir=$as_dir;; 17676 esac 17677 as_dirs="'$as_qdir' $as_dirs" 17678 as_dir=`$as_dirname -- "$as_dir" || 17679 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17680 X"$as_dir" : 'X\(//\)[^/]' \| \ 17681 X"$as_dir" : 'X\(//\)$' \| \ 17682 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17683 $as_echo X"$as_dir" | 17684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17685 s//\1/ 17686 q 17687 } 17688 /^X\(\/\/\)[^/].*/{ 17689 s//\1/ 17690 q 17691 } 17692 /^X\(\/\/\)$/{ 17693 s//\1/ 17694 q 17695 } 17696 /^X\(\/\).*/{ 17697 s//\1/ 17698 q 17699 } 17700 s/.*/./; q'` 17701 test -d "$as_dir" && break 17702 done 17703 test -z "$as_dirs" || eval "mkdir $as_dirs" 17704 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17705 17706 17707 } # as_fn_mkdir_p 17708 if mkdir -p . 2>/dev/null; then 17709 as_mkdir_p='mkdir -p "$as_dir"' 17710 else 17711 test -d ./-p && rmdir ./-p 17712 as_mkdir_p=false 17713 fi 17714 17715 17716 # as_fn_executable_p FILE 17717 # ----------------------- 17718 # Test if FILE is an executable regular file. 17719 as_fn_executable_p () 17720 { 17721 test -f "$1" && test -x "$1" 17722 } # as_fn_executable_p 17723 as_test_x='test -x' 17724 as_executable_p=as_fn_executable_p 17725 17726 # Sed expression to map a string onto a valid CPP name. 17727 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17728 17729 # Sed expression to map a string onto a valid variable name. 17730 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17731 17732 17733 exec 6>&1 17734 ## ----------------------------------- ## 17735 ## Main body of $CONFIG_STATUS script. ## 17736 ## ----------------------------------- ## 17737 _ASEOF 17738 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17739 17740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17741 # Save the log message, to keep $0 and so on meaningful, and to 17742 # report actual input values of CONFIG_FILES etc. instead of their 17743 # values after options handling. 17744 ac_log=" 17745 This file was extended by bfd $as_me 2.45.50, which was 17746 generated by GNU Autoconf 2.69. Invocation command line was 17747 17748 CONFIG_FILES = $CONFIG_FILES 17749 CONFIG_HEADERS = $CONFIG_HEADERS 17750 CONFIG_LINKS = $CONFIG_LINKS 17751 CONFIG_COMMANDS = $CONFIG_COMMANDS 17752 $ $0 $@ 17753 17754 on `(hostname || uname -n) 2>/dev/null | sed 1q` 17755 " 17756 17757 _ACEOF 17758 17759 case $ac_config_files in *" 17760 "*) set x $ac_config_files; shift; ac_config_files=$*;; 17761 esac 17762 17763 case $ac_config_headers in *" 17764 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17765 esac 17766 17767 17768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17769 # Files that config.status was made for. 17770 config_files="$ac_config_files" 17771 config_headers="$ac_config_headers" 17772 config_commands="$ac_config_commands" 17773 17774 _ACEOF 17775 17776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17777 ac_cs_usage="\ 17778 \`$as_me' instantiates files and other configuration actions 17779 from templates according to the current configuration. Unless the files 17780 and actions are specified as TAGs, all are instantiated by default. 17781 17782 Usage: $0 [OPTION]... [TAG]... 17783 17784 -h, --help print this help, then exit 17785 -V, --version print version number and configuration settings, then exit 17786 --config print configuration, then exit 17787 -q, --quiet, --silent 17788 do not print progress messages 17789 -d, --debug don't remove temporary files 17790 --recheck update $as_me by reconfiguring in the same conditions 17791 --file=FILE[:TEMPLATE] 17792 instantiate the configuration file FILE 17793 --header=FILE[:TEMPLATE] 17794 instantiate the configuration header FILE 17795 17796 Configuration files: 17797 $config_files 17798 17799 Configuration headers: 17800 $config_headers 17801 17802 Configuration commands: 17803 $config_commands 17804 17805 Report bugs to the package provider." 17806 17807 _ACEOF 17808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17809 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17810 ac_cs_version="\\ 17811 bfd config.status 2.45.50 17812 configured by $0, generated by GNU Autoconf 2.69, 17813 with options \\"\$ac_cs_config\\" 17814 17815 Copyright (C) 2012 Free Software Foundation, Inc. 17816 This config.status script is free software; the Free Software Foundation 17817 gives unlimited permission to copy, distribute and modify it." 17818 17819 ac_pwd='$ac_pwd' 17820 srcdir='$srcdir' 17821 INSTALL='$INSTALL' 17822 MKDIR_P='$MKDIR_P' 17823 AWK='$AWK' 17824 test -n "\$AWK" || AWK=awk 17825 _ACEOF 17826 17827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17828 # The default lists apply if the user does not specify any file. 17829 ac_need_defaults=: 17830 while test $# != 0 17831 do 17832 case $1 in 17833 --*=?*) 17834 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17835 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17836 ac_shift=: 17837 ;; 17838 --*=) 17839 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17840 ac_optarg= 17841 ac_shift=: 17842 ;; 17843 *) 17844 ac_option=$1 17845 ac_optarg=$2 17846 ac_shift=shift 17847 ;; 17848 esac 17849 17850 case $ac_option in 17851 # Handling of the options. 17852 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17853 ac_cs_recheck=: ;; 17854 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17855 $as_echo "$ac_cs_version"; exit ;; 17856 --config | --confi | --conf | --con | --co | --c ) 17857 $as_echo "$ac_cs_config"; exit ;; 17858 --debug | --debu | --deb | --de | --d | -d ) 17859 debug=: ;; 17860 --file | --fil | --fi | --f ) 17861 $ac_shift 17862 case $ac_optarg in 17863 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17864 '') as_fn_error $? "missing file argument" ;; 17865 esac 17866 as_fn_append CONFIG_FILES " '$ac_optarg'" 17867 ac_need_defaults=false;; 17868 --header | --heade | --head | --hea ) 17869 $ac_shift 17870 case $ac_optarg in 17871 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17872 esac 17873 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17874 ac_need_defaults=false;; 17875 --he | --h) 17876 # Conflict between --help and --header 17877 as_fn_error $? "ambiguous option: \`$1' 17878 Try \`$0 --help' for more information.";; 17879 --help | --hel | -h ) 17880 $as_echo "$ac_cs_usage"; exit ;; 17881 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17882 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17883 ac_cs_silent=: ;; 17884 17885 # This is an error. 17886 -*) as_fn_error $? "unrecognized option: \`$1' 17887 Try \`$0 --help' for more information." ;; 17888 17889 *) as_fn_append ac_config_targets " $1" 17890 ac_need_defaults=false ;; 17891 17892 esac 17893 shift 17894 done 17895 17896 ac_configure_extra_args= 17897 17898 if $ac_cs_silent; then 17899 exec 6>/dev/null 17900 ac_configure_extra_args="$ac_configure_extra_args --silent" 17901 fi 17902 17903 _ACEOF 17904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17905 if \$ac_cs_recheck; then 17906 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17907 shift 17908 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17909 CONFIG_SHELL='$SHELL' 17910 export CONFIG_SHELL 17911 exec "\$@" 17912 fi 17913 17914 _ACEOF 17915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17916 exec 5>>config.log 17917 { 17918 echo 17919 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17920 ## Running $as_me. ## 17921 _ASBOX 17922 $as_echo "$ac_log" 17923 } >&5 17924 17925 _ACEOF 17926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17927 # 17928 # INIT-COMMANDS 17929 # 17930 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17931 17932 17933 # The HP-UX ksh and POSIX shell print the target directory to stdout 17934 # if CDPATH is set. 17935 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17936 17937 sed_quote_subst='$sed_quote_subst' 17938 double_quote_subst='$double_quote_subst' 17939 delay_variable_subst='$delay_variable_subst' 17940 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17941 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17942 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17943 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17944 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17945 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17946 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17947 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17948 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17949 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17950 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17951 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17952 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17953 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17954 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17955 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17956 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17957 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17958 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17959 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17960 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17961 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17962 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17963 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17964 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17965 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17966 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17967 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17968 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17969 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17970 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17971 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17972 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17973 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17974 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17975 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17976 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17977 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17978 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17979 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17980 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17981 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17982 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17983 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17984 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17985 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17986 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17987 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17988 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"`' 17989 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17990 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17991 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17992 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17993 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17994 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17995 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17996 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17997 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17998 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17999 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18000 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18001 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18002 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18003 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18004 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18005 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18006 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18007 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18008 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18009 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18010 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18011 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18012 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18013 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18014 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18015 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18016 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18017 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18018 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18019 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18020 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 18021 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18022 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18023 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18024 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18025 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18026 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18027 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18028 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18029 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 18030 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18031 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18032 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18033 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18034 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18035 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18036 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18037 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18038 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18039 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18040 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18041 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18042 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18043 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18044 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18045 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18046 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18047 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18048 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18049 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18050 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18051 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18052 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18053 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18054 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18055 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18056 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18057 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18058 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18059 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18060 18061 LTCC='$LTCC' 18062 LTCFLAGS='$LTCFLAGS' 18063 compiler='$compiler_DEFAULT' 18064 18065 # A function that is used when there is no print builtin or printf. 18066 func_fallback_echo () 18067 { 18068 eval 'cat <<_LTECHO_EOF 18069 \$1 18070 _LTECHO_EOF' 18071 } 18072 18073 # Quote evaled strings. 18074 for var in SHELL \ 18075 ECHO \ 18076 SED \ 18077 GREP \ 18078 EGREP \ 18079 FGREP \ 18080 LD \ 18081 NM \ 18082 LN_S \ 18083 lt_SP2NL \ 18084 lt_NL2SP \ 18085 reload_flag \ 18086 OBJDUMP \ 18087 deplibs_check_method \ 18088 file_magic_cmd \ 18089 AR \ 18090 AR_FLAGS \ 18091 STRIP \ 18092 RANLIB \ 18093 CC \ 18094 CFLAGS \ 18095 compiler \ 18096 lt_cv_sys_global_symbol_pipe \ 18097 lt_cv_sys_global_symbol_to_cdecl \ 18098 lt_cv_sys_global_symbol_to_c_name_address \ 18099 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18100 lt_prog_compiler_no_builtin_flag \ 18101 lt_prog_compiler_wl \ 18102 lt_prog_compiler_pic \ 18103 lt_prog_compiler_static \ 18104 lt_cv_prog_compiler_c_o \ 18105 need_locks \ 18106 DSYMUTIL \ 18107 NMEDIT \ 18108 LIPO \ 18109 OTOOL \ 18110 OTOOL64 \ 18111 shrext_cmds \ 18112 export_dynamic_flag_spec \ 18113 whole_archive_flag_spec \ 18114 compiler_needs_object \ 18115 with_gnu_ld \ 18116 allow_undefined_flag \ 18117 no_undefined_flag \ 18118 hardcode_libdir_flag_spec \ 18119 hardcode_libdir_flag_spec_ld \ 18120 hardcode_libdir_separator \ 18121 fix_srcfile_path \ 18122 exclude_expsyms \ 18123 include_expsyms \ 18124 file_list_spec \ 18125 variables_saved_for_relink \ 18126 libname_spec \ 18127 library_names_spec \ 18128 soname_spec \ 18129 install_override_mode \ 18130 finish_eval \ 18131 old_striplib \ 18132 striplib; do 18133 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18134 *[\\\\\\\`\\"\\\$]*) 18135 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18136 ;; 18137 *) 18138 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18139 ;; 18140 esac 18141 done 18142 18143 # Double-quote double-evaled strings. 18144 for var in reload_cmds \ 18145 old_postinstall_cmds \ 18146 old_postuninstall_cmds \ 18147 old_archive_cmds \ 18148 extract_expsyms_cmds \ 18149 old_archive_from_new_cmds \ 18150 old_archive_from_expsyms_cmds \ 18151 archive_cmds \ 18152 archive_expsym_cmds \ 18153 module_cmds \ 18154 module_expsym_cmds \ 18155 export_symbols_cmds \ 18156 prelink_cmds \ 18157 postinstall_cmds \ 18158 postuninstall_cmds \ 18159 finish_cmds \ 18160 sys_lib_search_path_spec \ 18161 sys_lib_dlsearch_path_spec; do 18162 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18163 *[\\\\\\\`\\"\\\$]*) 18164 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18165 ;; 18166 *) 18167 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18168 ;; 18169 esac 18170 done 18171 18172 ac_aux_dir='$ac_aux_dir' 18173 xsi_shell='$xsi_shell' 18174 lt_shell_append='$lt_shell_append' 18175 18176 # See if we are running on zsh, and set the options which allow our 18177 # commands through without removal of \ escapes INIT. 18178 if test -n "\${ZSH_VERSION+set}" ; then 18179 setopt NO_GLOB_SUBST 18180 fi 18181 18182 18183 PACKAGE='$PACKAGE' 18184 VERSION='$VERSION' 18185 TIMESTAMP='$TIMESTAMP' 18186 RM='$RM' 18187 ofile='$ofile' 18188 18189 18190 18191 # Capture the value of obsolete ALL_LINGUAS because we need it to compute 18192 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 18193 # from automake. 18194 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 18195 # Capture the value of LINGUAS because we need it to compute CATALOGS. 18196 LINGUAS="${LINGUAS-%UNSET%}" 18197 18198 18199 18200 _ACEOF 18201 18202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18203 18204 # Handling of arguments. 18205 for ac_config_target in $ac_config_targets 18206 do 18207 case $ac_config_target in 18208 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18209 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18210 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 18211 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 18212 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18213 "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;; 18214 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; 18215 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 18216 18217 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18218 esac 18219 done 18220 18221 18222 # If the user did not use the arguments to specify the items to instantiate, 18223 # then the envvar interface is used. Set only those that are not. 18224 # We use the long form for the default assignment because of an extremely 18225 # bizarre bug on SunOS 4.1.3. 18226 if $ac_need_defaults; then 18227 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18228 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18229 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18230 fi 18231 18232 # Have a temporary directory for convenience. Make it in the build tree 18233 # simply because there is no reason against having it here, and in addition, 18234 # creating and moving files from /tmp can sometimes cause problems. 18235 # Hook for its removal unless debugging. 18236 # Note that there is a small window in which the directory will not be cleaned: 18237 # after its creation but before its name has been assigned to `$tmp'. 18238 $debug || 18239 { 18240 tmp= ac_tmp= 18241 trap 'exit_status=$? 18242 : "${ac_tmp:=$tmp}" 18243 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18244 ' 0 18245 trap 'as_fn_exit 1' 1 2 13 15 18246 } 18247 # Create a (secure) tmp directory for tmp files. 18248 18249 { 18250 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18251 test -d "$tmp" 18252 } || 18253 { 18254 tmp=./conf$$-$RANDOM 18255 (umask 077 && mkdir "$tmp") 18256 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18257 ac_tmp=$tmp 18258 18259 # Set up the scripts for CONFIG_FILES section. 18260 # No need to generate them if there are no CONFIG_FILES. 18261 # This happens for instance with `./config.status config.h'. 18262 if test -n "$CONFIG_FILES"; then 18263 18264 18265 ac_cr=`echo X | tr X '\015'` 18266 # On cygwin, bash can eat \r inside `` if the user requested igncr. 18267 # But we know of no other shell where ac_cr would be empty at this 18268 # point, so we can use a bashism as a fallback. 18269 if test "x$ac_cr" = x; then 18270 eval ac_cr=\$\'\\r\' 18271 fi 18272 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18273 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18274 ac_cs_awk_cr='\\r' 18275 else 18276 ac_cs_awk_cr=$ac_cr 18277 fi 18278 18279 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18280 _ACEOF 18281 18282 18283 { 18284 echo "cat >conf$$subs.awk <<_ACEOF" && 18285 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18286 echo "_ACEOF" 18287 } >conf$$subs.sh || 18288 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18289 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18290 ac_delim='%!_!# ' 18291 for ac_last_try in false false false false false :; do 18292 . ./conf$$subs.sh || 18293 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18294 18295 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18296 if test $ac_delim_n = $ac_delim_num; then 18297 break 18298 elif $ac_last_try; then 18299 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18300 else 18301 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18302 fi 18303 done 18304 rm -f conf$$subs.sh 18305 18306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18307 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18308 _ACEOF 18309 sed -n ' 18310 h 18311 s/^/S["/; s/!.*/"]=/ 18312 p 18313 g 18314 s/^[^!]*!// 18315 :repl 18316 t repl 18317 s/'"$ac_delim"'$// 18318 t delim 18319 :nl 18320 h 18321 s/\(.\{148\}\)..*/\1/ 18322 t more1 18323 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18324 p 18325 n 18326 b repl 18327 :more1 18328 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18329 p 18330 g 18331 s/.\{148\}// 18332 t nl 18333 :delim 18334 h 18335 s/\(.\{148\}\)..*/\1/ 18336 t more2 18337 s/["\\]/\\&/g; s/^/"/; s/$/"/ 18338 p 18339 b 18340 :more2 18341 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18342 p 18343 g 18344 s/.\{148\}// 18345 t delim 18346 ' <conf$$subs.awk | sed ' 18347 /^[^""]/{ 18348 N 18349 s/\n// 18350 } 18351 ' >>$CONFIG_STATUS || ac_write_fail=1 18352 rm -f conf$$subs.awk 18353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18354 _ACAWK 18355 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18356 for (key in S) S_is_set[key] = 1 18357 FS = "" 18358 18359 } 18360 { 18361 line = $ 0 18362 nfields = split(line, field, "@") 18363 substed = 0 18364 len = length(field[1]) 18365 for (i = 2; i < nfields; i++) { 18366 key = field[i] 18367 keylen = length(key) 18368 if (S_is_set[key]) { 18369 value = S[key] 18370 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18371 len += length(value) + length(field[++i]) 18372 substed = 1 18373 } else 18374 len += 1 + keylen 18375 } 18376 18377 print line 18378 } 18379 18380 _ACAWK 18381 _ACEOF 18382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18383 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18384 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18385 else 18386 cat 18387 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18388 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18389 _ACEOF 18390 18391 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18392 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18393 # trailing colons and then remove the whole line if VPATH becomes empty 18394 # (actually we leave an empty line to preserve line numbers). 18395 if test "x$srcdir" = x.; then 18396 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18397 h 18398 s/// 18399 s/^/:/ 18400 s/[ ]*$/:/ 18401 s/:\$(srcdir):/:/g 18402 s/:\${srcdir}:/:/g 18403 s/:@srcdir@:/:/g 18404 s/^:*// 18405 s/:*$// 18406 x 18407 s/\(=[ ]*\).*/\1/ 18408 G 18409 s/\n// 18410 s/^[^=]*=[ ]*$// 18411 }' 18412 fi 18413 18414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18415 fi # test -n "$CONFIG_FILES" 18416 18417 # Set up the scripts for CONFIG_HEADERS section. 18418 # No need to generate them if there are no CONFIG_HEADERS. 18419 # This happens for instance with `./config.status Makefile'. 18420 if test -n "$CONFIG_HEADERS"; then 18421 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18422 BEGIN { 18423 _ACEOF 18424 18425 # Transform confdefs.h into an awk script `defines.awk', embedded as 18426 # here-document in config.status, that substitutes the proper values into 18427 # config.h.in to produce config.h. 18428 18429 # Create a delimiter string that does not exist in confdefs.h, to ease 18430 # handling of long lines. 18431 ac_delim='%!_!# ' 18432 for ac_last_try in false false :; do 18433 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18434 if test -z "$ac_tt"; then 18435 break 18436 elif $ac_last_try; then 18437 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18438 else 18439 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18440 fi 18441 done 18442 18443 # For the awk script, D is an array of macro values keyed by name, 18444 # likewise P contains macro parameters if any. Preserve backslash 18445 # newline sequences. 18446 18447 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18448 sed -n ' 18449 s/.\{148\}/&'"$ac_delim"'/g 18450 t rset 18451 :rset 18452 s/^[ ]*#[ ]*define[ ][ ]*/ / 18453 t def 18454 d 18455 :def 18456 s/\\$// 18457 t bsnl 18458 s/["\\]/\\&/g 18459 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18460 D["\1"]=" \3"/p 18461 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18462 d 18463 :bsnl 18464 s/["\\]/\\&/g 18465 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18466 D["\1"]=" \3\\\\\\n"\\/p 18467 t cont 18468 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18469 t cont 18470 d 18471 :cont 18472 n 18473 s/.\{148\}/&'"$ac_delim"'/g 18474 t clear 18475 :clear 18476 s/\\$// 18477 t bsnlc 18478 s/["\\]/\\&/g; s/^/"/; s/$/"/p 18479 d 18480 :bsnlc 18481 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18482 b cont 18483 ' <confdefs.h | sed ' 18484 s/'"$ac_delim"'/"\\\ 18485 "/g' >>$CONFIG_STATUS || ac_write_fail=1 18486 18487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18488 for (key in D) D_is_set[key] = 1 18489 FS = "" 18490 } 18491 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18492 line = \$ 0 18493 split(line, arg, " ") 18494 if (arg[1] == "#") { 18495 defundef = arg[2] 18496 mac1 = arg[3] 18497 } else { 18498 defundef = substr(arg[1], 2) 18499 mac1 = arg[2] 18500 } 18501 split(mac1, mac2, "(") #) 18502 macro = mac2[1] 18503 prefix = substr(line, 1, index(line, defundef) - 1) 18504 if (D_is_set[macro]) { 18505 # Preserve the white space surrounding the "#". 18506 print prefix "define", macro P[macro] D[macro] 18507 next 18508 } else { 18509 # Replace #undef with comments. This is necessary, for example, 18510 # in the case of _POSIX_SOURCE, which is predefined and required 18511 # on some systems where configure will not decide to define it. 18512 if (defundef == "undef") { 18513 print "/*", prefix defundef, macro, "*/" 18514 next 18515 } 18516 } 18517 } 18518 { print } 18519 _ACAWK 18520 _ACEOF 18521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18522 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18523 fi # test -n "$CONFIG_HEADERS" 18524 18525 18526 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18527 shift 18528 for ac_tag 18529 do 18530 case $ac_tag in 18531 :[FHLC]) ac_mode=$ac_tag; continue;; 18532 esac 18533 case $ac_mode$ac_tag in 18534 :[FHL]*:*);; 18535 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18536 :[FH]-) ac_tag=-:-;; 18537 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18538 esac 18539 ac_save_IFS=$IFS 18540 IFS=: 18541 set x $ac_tag 18542 IFS=$ac_save_IFS 18543 shift 18544 ac_file=$1 18545 shift 18546 18547 case $ac_mode in 18548 :L) ac_source=$1;; 18549 :[FH]) 18550 ac_file_inputs= 18551 for ac_f 18552 do 18553 case $ac_f in 18554 -) ac_f="$ac_tmp/stdin";; 18555 *) # Look for the file first in the build tree, then in the source tree 18556 # (if the path is not absolute). The absolute path cannot be DOS-style, 18557 # because $ac_f cannot contain `:'. 18558 test -f "$ac_f" || 18559 case $ac_f in 18560 [\\/$]*) false;; 18561 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18562 esac || 18563 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18564 esac 18565 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18566 as_fn_append ac_file_inputs " '$ac_f'" 18567 done 18568 18569 # Let's still pretend it is `configure' which instantiates (i.e., don't 18570 # use $as_me), people would be surprised to read: 18571 # /* config.h. Generated by config.status. */ 18572 configure_input='Generated from '` 18573 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18574 `' by configure.' 18575 if test x"$ac_file" != x-; then 18576 configure_input="$ac_file. $configure_input" 18577 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18578 $as_echo "$as_me: creating $ac_file" >&6;} 18579 fi 18580 # Neutralize special characters interpreted by sed in replacement strings. 18581 case $configure_input in #( 18582 *\&* | *\|* | *\\* ) 18583 ac_sed_conf_input=`$as_echo "$configure_input" | 18584 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18585 *) ac_sed_conf_input=$configure_input;; 18586 esac 18587 18588 case $ac_tag in 18589 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18590 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18591 esac 18592 ;; 18593 esac 18594 18595 ac_dir=`$as_dirname -- "$ac_file" || 18596 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18597 X"$ac_file" : 'X\(//\)[^/]' \| \ 18598 X"$ac_file" : 'X\(//\)$' \| \ 18599 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18600 $as_echo X"$ac_file" | 18601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18602 s//\1/ 18603 q 18604 } 18605 /^X\(\/\/\)[^/].*/{ 18606 s//\1/ 18607 q 18608 } 18609 /^X\(\/\/\)$/{ 18610 s//\1/ 18611 q 18612 } 18613 /^X\(\/\).*/{ 18614 s//\1/ 18615 q 18616 } 18617 s/.*/./; q'` 18618 as_dir="$ac_dir"; as_fn_mkdir_p 18619 ac_builddir=. 18620 18621 case "$ac_dir" in 18622 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18623 *) 18624 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18625 # A ".." for each directory in $ac_dir_suffix. 18626 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18627 case $ac_top_builddir_sub in 18628 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18629 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18630 esac ;; 18631 esac 18632 ac_abs_top_builddir=$ac_pwd 18633 ac_abs_builddir=$ac_pwd$ac_dir_suffix 18634 # for backward compatibility: 18635 ac_top_builddir=$ac_top_build_prefix 18636 18637 case $srcdir in 18638 .) # We are building in place. 18639 ac_srcdir=. 18640 ac_top_srcdir=$ac_top_builddir_sub 18641 ac_abs_top_srcdir=$ac_pwd ;; 18642 [\\/]* | ?:[\\/]* ) # Absolute name. 18643 ac_srcdir=$srcdir$ac_dir_suffix; 18644 ac_top_srcdir=$srcdir 18645 ac_abs_top_srcdir=$srcdir ;; 18646 *) # Relative name. 18647 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18648 ac_top_srcdir=$ac_top_build_prefix$srcdir 18649 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18650 esac 18651 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18652 18653 18654 case $ac_mode in 18655 :F) 18656 # 18657 # CONFIG_FILE 18658 # 18659 18660 case $INSTALL in 18661 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18662 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18663 esac 18664 ac_MKDIR_P=$MKDIR_P 18665 case $MKDIR_P in 18666 [\\/$]* | ?:[\\/]* ) ;; 18667 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18668 esac 18669 _ACEOF 18670 18671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18672 # If the template does not know about datarootdir, expand it. 18673 # FIXME: This hack should be removed a few years after 2.60. 18674 ac_datarootdir_hack=; ac_datarootdir_seen= 18675 ac_sed_dataroot=' 18676 /datarootdir/ { 18677 p 18678 q 18679 } 18680 /@datadir@/p 18681 /@docdir@/p 18682 /@infodir@/p 18683 /@localedir@/p 18684 /@mandir@/p' 18685 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18686 *datarootdir*) ac_datarootdir_seen=yes;; 18687 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18689 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18690 _ACEOF 18691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18692 ac_datarootdir_hack=' 18693 s&@datadir@&$datadir&g 18694 s&@docdir@&$docdir&g 18695 s&@infodir@&$infodir&g 18696 s&@localedir@&$localedir&g 18697 s&@mandir@&$mandir&g 18698 s&\\\${datarootdir}&$datarootdir&g' ;; 18699 esac 18700 _ACEOF 18701 18702 # Neutralize VPATH when `$srcdir' = `.'. 18703 # Shell code in configure.ac might set extrasub. 18704 # FIXME: do we really want to maintain this feature? 18705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18706 ac_sed_extra="$ac_vpsub 18707 $extrasub 18708 _ACEOF 18709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18710 :t 18711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18712 s|@configure_input@|$ac_sed_conf_input|;t t 18713 s&@top_builddir@&$ac_top_builddir_sub&;t t 18714 s&@top_build_prefix@&$ac_top_build_prefix&;t t 18715 s&@srcdir@&$ac_srcdir&;t t 18716 s&@abs_srcdir@&$ac_abs_srcdir&;t t 18717 s&@top_srcdir@&$ac_top_srcdir&;t t 18718 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18719 s&@builddir@&$ac_builddir&;t t 18720 s&@abs_builddir@&$ac_abs_builddir&;t t 18721 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18722 s&@INSTALL@&$ac_INSTALL&;t t 18723 s&@MKDIR_P@&$ac_MKDIR_P&;t t 18724 $ac_datarootdir_hack 18725 " 18726 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18727 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18728 18729 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18730 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18731 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18732 "$ac_tmp/out"`; test -z "$ac_out"; } && 18733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18734 which seems to be undefined. Please make sure it is defined" >&5 18735 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18736 which seems to be undefined. Please make sure it is defined" >&2;} 18737 18738 rm -f "$ac_tmp/stdin" 18739 case $ac_file in 18740 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18741 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18742 esac \ 18743 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18744 ;; 18745 :H) 18746 # 18747 # CONFIG_HEADER 18748 # 18749 if test x"$ac_file" != x-; then 18750 { 18751 $as_echo "/* $configure_input */" \ 18752 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18753 } >"$ac_tmp/config.h" \ 18754 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18755 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18756 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18757 $as_echo "$as_me: $ac_file is unchanged" >&6;} 18758 else 18759 rm -f "$ac_file" 18760 mv "$ac_tmp/config.h" "$ac_file" \ 18761 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18762 fi 18763 else 18764 $as_echo "/* $configure_input */" \ 18765 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18766 || as_fn_error $? "could not create -" "$LINENO" 5 18767 fi 18768 # Compute "$ac_file"'s index in $config_headers. 18769 _am_arg="$ac_file" 18770 _am_stamp_count=1 18771 for _am_header in $config_headers :; do 18772 case $_am_header in 18773 $_am_arg | $_am_arg:* ) 18774 break ;; 18775 * ) 18776 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18777 esac 18778 done 18779 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18780 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18781 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18782 X"$_am_arg" : 'X\(//\)$' \| \ 18783 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18784 $as_echo X"$_am_arg" | 18785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18786 s//\1/ 18787 q 18788 } 18789 /^X\(\/\/\)[^/].*/{ 18790 s//\1/ 18791 q 18792 } 18793 /^X\(\/\/\)$/{ 18794 s//\1/ 18795 q 18796 } 18797 /^X\(\/\).*/{ 18798 s//\1/ 18799 q 18800 } 18801 s/.*/./; q'`/stamp-h$_am_stamp_count 18802 ;; 18803 18804 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18805 $as_echo "$as_me: executing $ac_file commands" >&6;} 18806 ;; 18807 esac 18808 18809 18810 case $ac_file$ac_mode in 18811 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18812 # Older Autoconf quotes --file arguments for eval, but not when files 18813 # are listed without --file. Let's play safe and only enable the eval 18814 # if we detect the quoting. 18815 case $CONFIG_FILES in 18816 *\'*) eval set x "$CONFIG_FILES" ;; 18817 *) set x $CONFIG_FILES ;; 18818 esac 18819 shift 18820 for mf 18821 do 18822 # Strip MF so we end up with the name of the file. 18823 mf=`echo "$mf" | sed -e 's/:.*$//'` 18824 # Check whether this is an Automake generated Makefile or not. 18825 # We used to match only the files named 'Makefile.in', but 18826 # some people rename them; so instead we look at the file content. 18827 # Grep'ing the first line is not enough: some people post-process 18828 # each Makefile.in and add a new line on top of each file to say so. 18829 # Grep'ing the whole file is not good either: AIX grep has a line 18830 # limit of 2048, but all sed's we know have understand at least 4000. 18831 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18832 dirpart=`$as_dirname -- "$mf" || 18833 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18834 X"$mf" : 'X\(//\)[^/]' \| \ 18835 X"$mf" : 'X\(//\)$' \| \ 18836 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18837 $as_echo X"$mf" | 18838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18839 s//\1/ 18840 q 18841 } 18842 /^X\(\/\/\)[^/].*/{ 18843 s//\1/ 18844 q 18845 } 18846 /^X\(\/\/\)$/{ 18847 s//\1/ 18848 q 18849 } 18850 /^X\(\/\).*/{ 18851 s//\1/ 18852 q 18853 } 18854 s/.*/./; q'` 18855 else 18856 continue 18857 fi 18858 # Extract the definition of DEPDIR, am__include, and am__quote 18859 # from the Makefile without running 'make'. 18860 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18861 test -z "$DEPDIR" && continue 18862 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18863 test -z "$am__include" && continue 18864 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18865 # Find all dependency output files, they are included files with 18866 # $(DEPDIR) in their names. We invoke sed twice because it is the 18867 # simplest approach to changing $(DEPDIR) to its actual value in the 18868 # expansion. 18869 for file in `sed -n " 18870 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18871 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18872 # Make sure the directory exists. 18873 test -f "$dirpart/$file" && continue 18874 fdir=`$as_dirname -- "$file" || 18875 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18876 X"$file" : 'X\(//\)[^/]' \| \ 18877 X"$file" : 'X\(//\)$' \| \ 18878 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18879 $as_echo X"$file" | 18880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18881 s//\1/ 18882 q 18883 } 18884 /^X\(\/\/\)[^/].*/{ 18885 s//\1/ 18886 q 18887 } 18888 /^X\(\/\/\)$/{ 18889 s//\1/ 18890 q 18891 } 18892 /^X\(\/\).*/{ 18893 s//\1/ 18894 q 18895 } 18896 s/.*/./; q'` 18897 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18898 # echo "creating $dirpart/$file" 18899 echo '# dummy' > "$dirpart/$file" 18900 done 18901 done 18902 } 18903 ;; 18904 "libtool":C) 18905 18906 # See if we are running on zsh, and set the options which allow our 18907 # commands through without removal of \ escapes. 18908 if test -n "${ZSH_VERSION+set}" ; then 18909 setopt NO_GLOB_SUBST 18910 fi 18911 18912 cfgfile="${ofile}T" 18913 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18914 $RM "$cfgfile" 18915 18916 cat <<_LT_EOF >> "$cfgfile" 18917 #! $SHELL 18918 18919 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 18920 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 18921 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18922 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 18923 # 18924 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18925 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 18926 # Written by Gordon Matzigkeit, 1996 18927 # 18928 # This file is part of GNU Libtool. 18929 # 18930 # GNU Libtool is free software; you can redistribute it and/or 18931 # modify it under the terms of the GNU General Public License as 18932 # published by the Free Software Foundation; either version 2 of 18933 # the License, or (at your option) any later version. 18934 # 18935 # As a special exception to the GNU General Public License, 18936 # if you distribute this file as part of a program or library that 18937 # is built using GNU Libtool, you may include this file under the 18938 # same distribution terms that you use for the rest of that program. 18939 # 18940 # GNU Libtool is distributed in the hope that it will be useful, 18941 # but WITHOUT ANY WARRANTY; without even the implied warranty of 18942 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18943 # GNU General Public License for more details. 18944 # 18945 # You should have received a copy of the GNU General Public License 18946 # along with GNU Libtool; see the file COPYING. If not, a copy 18947 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 18948 # obtained by writing to the Free Software Foundation, Inc., 18949 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18950 18951 18952 # The names of the tagged configurations supported by this script. 18953 available_tags="" 18954 18955 # ### BEGIN LIBTOOL CONFIG 18956 18957 # Whether or not to build shared libraries. 18958 build_libtool_libs=$enable_shared 18959 18960 # Which release of libtool.m4 was used? 18961 macro_version=$macro_version 18962 macro_revision=$macro_revision 18963 18964 # Whether or not to build static libraries. 18965 build_old_libs=$enable_static 18966 18967 # What type of objects to build. 18968 pic_mode=$pic_mode 18969 18970 # Whether or not to optimize for fast installation. 18971 fast_install=$enable_fast_install 18972 18973 # Shell to use when invoking shell scripts. 18974 SHELL=$lt_SHELL 18975 18976 # An echo program that protects backslashes. 18977 ECHO=$lt_ECHO 18978 18979 # The host system. 18980 host_alias=$host_alias 18981 host=$host 18982 host_os=$host_os 18983 18984 # The build system. 18985 build_alias=$build_alias 18986 build=$build 18987 build_os=$build_os 18988 18989 # A sed program that does not truncate output. 18990 SED=$lt_SED 18991 18992 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 18993 Xsed="\$SED -e 1s/^X//" 18994 18995 # A grep program that handles long lines. 18996 GREP=$lt_GREP 18997 18998 # An ERE matcher. 18999 EGREP=$lt_EGREP 19000 19001 # A literal string matcher. 19002 FGREP=$lt_FGREP 19003 19004 # A BSD- or MS-compatible name lister. 19005 NM=$lt_NM 19006 19007 # Whether we need soft or hard links. 19008 LN_S=$lt_LN_S 19009 19010 # What is the maximum length of a command? 19011 max_cmd_len=$max_cmd_len 19012 19013 # Object file suffix (normally "o"). 19014 objext=$ac_objext 19015 19016 # Executable file suffix (normally ""). 19017 exeext=$exeext 19018 19019 # whether the shell understands "unset". 19020 lt_unset=$lt_unset 19021 19022 # turn spaces into newlines. 19023 SP2NL=$lt_lt_SP2NL 19024 19025 # turn newlines into spaces. 19026 NL2SP=$lt_lt_NL2SP 19027 19028 # An object symbol dumper. 19029 OBJDUMP=$lt_OBJDUMP 19030 19031 # Method to check whether dependent libraries are shared objects. 19032 deplibs_check_method=$lt_deplibs_check_method 19033 19034 # Command to use when deplibs_check_method == "file_magic". 19035 file_magic_cmd=$lt_file_magic_cmd 19036 19037 # The archiver. 19038 AR=$lt_AR 19039 AR_FLAGS=$lt_AR_FLAGS 19040 19041 # A symbol stripping program. 19042 STRIP=$lt_STRIP 19043 19044 # Commands used to install an old-style archive. 19045 RANLIB=$lt_RANLIB 19046 old_postinstall_cmds=$lt_old_postinstall_cmds 19047 old_postuninstall_cmds=$lt_old_postuninstall_cmds 19048 19049 # Whether to use a lock for old archive extraction. 19050 lock_old_archive_extraction=$lock_old_archive_extraction 19051 19052 # A C compiler. 19053 LTCC=$lt_CC 19054 19055 # LTCC compiler flags. 19056 LTCFLAGS=$lt_CFLAGS 19057 19058 # Take the output of nm and produce a listing of raw symbols and C names. 19059 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19060 19061 # Transform the output of nm in a proper C declaration. 19062 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19063 19064 # Transform the output of nm in a C name address pair. 19065 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19066 19067 # Transform the output of nm in a C name address pair when lib prefix is needed. 19068 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19069 19070 # The name of the directory that contains temporary libtool files. 19071 objdir=$objdir 19072 19073 # Used to examine libraries when file_magic_cmd begins with "file". 19074 MAGIC_CMD=$MAGIC_CMD 19075 19076 # Must we lock files when doing compilation? 19077 need_locks=$lt_need_locks 19078 19079 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19080 DSYMUTIL=$lt_DSYMUTIL 19081 19082 # Tool to change global to local symbols on Mac OS X. 19083 NMEDIT=$lt_NMEDIT 19084 19085 # Tool to manipulate fat objects and archives on Mac OS X. 19086 LIPO=$lt_LIPO 19087 19088 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 19089 OTOOL=$lt_OTOOL 19090 19091 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19092 OTOOL64=$lt_OTOOL64 19093 19094 # Old archive suffix (normally "a"). 19095 libext=$libext 19096 19097 # Shared library suffix (normally ".so"). 19098 shrext_cmds=$lt_shrext_cmds 19099 19100 # The commands to extract the exported symbol list from a shared archive. 19101 extract_expsyms_cmds=$lt_extract_expsyms_cmds 19102 19103 # Variables whose values should be saved in libtool wrapper scripts and 19104 # restored at link time. 19105 variables_saved_for_relink=$lt_variables_saved_for_relink 19106 19107 # Do we need the "lib" prefix for modules? 19108 need_lib_prefix=$need_lib_prefix 19109 19110 # Do we need a version for libraries? 19111 need_version=$need_version 19112 19113 # Library versioning type. 19114 version_type=$version_type 19115 19116 # Shared library runtime path variable. 19117 runpath_var=$runpath_var 19118 19119 # Shared library path variable. 19120 shlibpath_var=$shlibpath_var 19121 19122 # Is shlibpath searched before the hard-coded library search path? 19123 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19124 19125 # Format of library name prefix. 19126 libname_spec=$lt_libname_spec 19127 19128 # List of archive names. First name is the real one, the rest are links. 19129 # The last name is the one that the linker finds with -lNAME 19130 library_names_spec=$lt_library_names_spec 19131 19132 # The coded name of the library, if different from the real name. 19133 soname_spec=$lt_soname_spec 19134 19135 # Permission mode override for installation of shared libraries. 19136 install_override_mode=$lt_install_override_mode 19137 19138 # Command to use after installation of a shared archive. 19139 postinstall_cmds=$lt_postinstall_cmds 19140 19141 # Command to use after uninstallation of a shared archive. 19142 postuninstall_cmds=$lt_postuninstall_cmds 19143 19144 # Commands used to finish a libtool library installation in a directory. 19145 finish_cmds=$lt_finish_cmds 19146 19147 # As "finish_cmds", except a single script fragment to be evaled but 19148 # not shown. 19149 finish_eval=$lt_finish_eval 19150 19151 # Whether we should hardcode library paths into libraries. 19152 hardcode_into_libs=$hardcode_into_libs 19153 19154 # Compile-time system search path for libraries. 19155 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19156 19157 # Run-time system search path for libraries. 19158 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19159 19160 # Whether dlopen is supported. 19161 dlopen_support=$enable_dlopen 19162 19163 # Whether dlopen of programs is supported. 19164 dlopen_self=$enable_dlopen_self 19165 19166 # Whether dlopen of statically linked programs is supported. 19167 dlopen_self_static=$enable_dlopen_self_static 19168 19169 # Commands to strip libraries. 19170 old_striplib=$lt_old_striplib 19171 striplib=$lt_striplib 19172 19173 19174 # The linker used to build libraries. 19175 LD=$lt_LD 19176 19177 # How to create reloadable object files. 19178 reload_flag=$lt_reload_flag 19179 reload_cmds=$lt_reload_cmds 19180 19181 # Commands used to build an old-style archive. 19182 old_archive_cmds=$lt_old_archive_cmds 19183 19184 # A language specific compiler. 19185 CC=$lt_compiler 19186 19187 # Is the compiler the GNU compiler? 19188 with_gcc=$GCC 19189 19190 # Compiler flag to turn off builtin functions. 19191 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19192 19193 # How to pass a linker flag through the compiler. 19194 wl=$lt_lt_prog_compiler_wl 19195 19196 # Additional compiler flags for building library objects. 19197 pic_flag=$lt_lt_prog_compiler_pic 19198 19199 # Compiler flag to prevent dynamic linking. 19200 link_static_flag=$lt_lt_prog_compiler_static 19201 19202 # Does compiler simultaneously support -c and -o options? 19203 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19204 19205 # Whether or not to add -lc for building shared libraries. 19206 build_libtool_need_lc=$archive_cmds_need_lc 19207 19208 # Whether or not to disallow shared libs when runtime libs are static. 19209 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19210 19211 # Compiler flag to allow reflexive dlopens. 19212 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19213 19214 # Compiler flag to generate shared objects directly from archives. 19215 whole_archive_flag_spec=$lt_whole_archive_flag_spec 19216 19217 # Whether the compiler copes with passing no objects directly. 19218 compiler_needs_object=$lt_compiler_needs_object 19219 19220 # Create an old-style archive from a shared archive. 19221 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19222 19223 # Create a temporary old-style archive to link instead of a shared archive. 19224 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19225 19226 # Commands used to build a shared archive. 19227 archive_cmds=$lt_archive_cmds 19228 archive_expsym_cmds=$lt_archive_expsym_cmds 19229 19230 # Commands used to build a loadable module if different from building 19231 # a shared archive. 19232 module_cmds=$lt_module_cmds 19233 module_expsym_cmds=$lt_module_expsym_cmds 19234 19235 # Whether we are building with GNU ld or not. 19236 with_gnu_ld=$lt_with_gnu_ld 19237 19238 # Flag that allows shared libraries with undefined symbols to be built. 19239 allow_undefined_flag=$lt_allow_undefined_flag 19240 19241 # Flag that enforces no undefined symbols. 19242 no_undefined_flag=$lt_no_undefined_flag 19243 19244 # Flag to hardcode \$libdir into a binary during linking. 19245 # This must work even if \$libdir does not exist 19246 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19247 19248 # If ld is used when linking, flag to hardcode \$libdir into a binary 19249 # during linking. This must work even if \$libdir does not exist. 19250 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 19251 19252 # Whether we need a single "-rpath" flag with a separated argument. 19253 hardcode_libdir_separator=$lt_hardcode_libdir_separator 19254 19255 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19256 # DIR into the resulting binary. 19257 hardcode_direct=$hardcode_direct 19258 19259 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19260 # DIR into the resulting binary and the resulting library dependency is 19261 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19262 # library is relocated. 19263 hardcode_direct_absolute=$hardcode_direct_absolute 19264 19265 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19266 # into the resulting binary. 19267 hardcode_minus_L=$hardcode_minus_L 19268 19269 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19270 # into the resulting binary. 19271 hardcode_shlibpath_var=$hardcode_shlibpath_var 19272 19273 # Set to "yes" if building a shared library automatically hardcodes DIR 19274 # into the library and all subsequent libraries and executables linked 19275 # against it. 19276 hardcode_automatic=$hardcode_automatic 19277 19278 # Set to yes if linker adds runtime paths of dependent libraries 19279 # to runtime path list. 19280 inherit_rpath=$inherit_rpath 19281 19282 # Whether libtool must link a program against all its dependency libraries. 19283 link_all_deplibs=$link_all_deplibs 19284 19285 # Fix the shell variable \$srcfile for the compiler. 19286 fix_srcfile_path=$lt_fix_srcfile_path 19287 19288 # Set to "yes" if exported symbols are required. 19289 always_export_symbols=$always_export_symbols 19290 19291 # The commands to list exported symbols. 19292 export_symbols_cmds=$lt_export_symbols_cmds 19293 19294 # Symbols that should not be listed in the preloaded symbols. 19295 exclude_expsyms=$lt_exclude_expsyms 19296 19297 # Symbols that must always be exported. 19298 include_expsyms=$lt_include_expsyms 19299 19300 # Commands necessary for linking programs (against libraries) with templates. 19301 prelink_cmds=$lt_prelink_cmds 19302 19303 # Specify filename containing input files. 19304 file_list_spec=$lt_file_list_spec 19305 19306 # How to hardcode a shared library path into an executable. 19307 hardcode_action=$hardcode_action 19308 19309 # ### END LIBTOOL CONFIG 19310 19311 _LT_EOF 19312 19313 case $host_os in 19314 aix3*) 19315 cat <<\_LT_EOF >> "$cfgfile" 19316 # AIX sometimes has problems with the GCC collect2 program. For some 19317 # reason, if we set the COLLECT_NAMES environment variable, the problems 19318 # vanish in a puff of smoke. 19319 if test "X${COLLECT_NAMES+set}" != Xset; then 19320 COLLECT_NAMES= 19321 export COLLECT_NAMES 19322 fi 19323 _LT_EOF 19324 ;; 19325 esac 19326 19327 19328 ltmain="$ac_aux_dir/ltmain.sh" 19329 19330 19331 # We use sed instead of cat because bash on DJGPP gets confused if 19332 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19333 # text mode, it properly converts lines to CR/LF. This bash problem 19334 # is reportedly fixed, but why not run on old versions too? 19335 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 19336 || (rm -f "$cfgfile"; exit 1) 19337 19338 case $xsi_shell in 19339 yes) 19340 cat << \_LT_EOF >> "$cfgfile" 19341 19342 # func_dirname file append nondir_replacement 19343 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 19344 # otherwise set result to NONDIR_REPLACEMENT. 19345 func_dirname () 19346 { 19347 case ${1} in 19348 */*) func_dirname_result="${1%/*}${2}" ;; 19349 * ) func_dirname_result="${3}" ;; 19350 esac 19351 } 19352 19353 # func_basename file 19354 func_basename () 19355 { 19356 func_basename_result="${1##*/}" 19357 } 19358 19359 # func_dirname_and_basename file append nondir_replacement 19360 # perform func_basename and func_dirname in a single function 19361 # call: 19362 # dirname: Compute the dirname of FILE. If nonempty, 19363 # add APPEND to the result, otherwise set result 19364 # to NONDIR_REPLACEMENT. 19365 # value returned in "$func_dirname_result" 19366 # basename: Compute filename of FILE. 19367 # value retuned in "$func_basename_result" 19368 # Implementation must be kept synchronized with func_dirname 19369 # and func_basename. For efficiency, we do not delegate to 19370 # those functions but instead duplicate the functionality here. 19371 func_dirname_and_basename () 19372 { 19373 case ${1} in 19374 */*) func_dirname_result="${1%/*}${2}" ;; 19375 * ) func_dirname_result="${3}" ;; 19376 esac 19377 func_basename_result="${1##*/}" 19378 } 19379 19380 # func_stripname prefix suffix name 19381 # strip PREFIX and SUFFIX off of NAME. 19382 # PREFIX and SUFFIX must not contain globbing or regex special 19383 # characters, hashes, percent signs, but SUFFIX may contain a leading 19384 # dot (in which case that matches only a dot). 19385 func_stripname () 19386 { 19387 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 19388 # positional parameters, so assign one to ordinary parameter first. 19389 func_stripname_result=${3} 19390 func_stripname_result=${func_stripname_result#"${1}"} 19391 func_stripname_result=${func_stripname_result%"${2}"} 19392 } 19393 19394 # func_opt_split 19395 func_opt_split () 19396 { 19397 func_opt_split_opt=${1%%=*} 19398 func_opt_split_arg=${1#*=} 19399 } 19400 19401 # func_lo2o object 19402 func_lo2o () 19403 { 19404 case ${1} in 19405 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 19406 *) func_lo2o_result=${1} ;; 19407 esac 19408 } 19409 19410 # func_xform libobj-or-source 19411 func_xform () 19412 { 19413 func_xform_result=${1%.*}.lo 19414 } 19415 19416 # func_arith arithmetic-term... 19417 func_arith () 19418 { 19419 func_arith_result=$(( $* )) 19420 } 19421 19422 # func_len string 19423 # STRING may not start with a hyphen. 19424 func_len () 19425 { 19426 func_len_result=${#1} 19427 } 19428 19429 _LT_EOF 19430 ;; 19431 *) # Bourne compatible functions. 19432 cat << \_LT_EOF >> "$cfgfile" 19433 19434 # func_dirname file append nondir_replacement 19435 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 19436 # otherwise set result to NONDIR_REPLACEMENT. 19437 func_dirname () 19438 { 19439 # Extract subdirectory from the argument. 19440 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 19441 if test "X$func_dirname_result" = "X${1}"; then 19442 func_dirname_result="${3}" 19443 else 19444 func_dirname_result="$func_dirname_result${2}" 19445 fi 19446 } 19447 19448 # func_basename file 19449 func_basename () 19450 { 19451 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 19452 } 19453 19454 19455 # func_stripname prefix suffix name 19456 # strip PREFIX and SUFFIX off of NAME. 19457 # PREFIX and SUFFIX must not contain globbing or regex special 19458 # characters, hashes, percent signs, but SUFFIX may contain a leading 19459 # dot (in which case that matches only a dot). 19460 # func_strip_suffix prefix name 19461 func_stripname () 19462 { 19463 case ${2} in 19464 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 19465 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 19466 esac 19467 } 19468 19469 # sed scripts: 19470 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 19471 my_sed_long_arg='1s/^-[^=]*=//' 19472 19473 # func_opt_split 19474 func_opt_split () 19475 { 19476 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 19477 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 19478 } 19479 19480 # func_lo2o object 19481 func_lo2o () 19482 { 19483 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 19484 } 19485 19486 # func_xform libobj-or-source 19487 func_xform () 19488 { 19489 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 19490 } 19491 19492 # func_arith arithmetic-term... 19493 func_arith () 19494 { 19495 func_arith_result=`expr "$@"` 19496 } 19497 19498 # func_len string 19499 # STRING may not start with a hyphen. 19500 func_len () 19501 { 19502 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 19503 } 19504 19505 _LT_EOF 19506 esac 19507 19508 case $lt_shell_append in 19509 yes) 19510 cat << \_LT_EOF >> "$cfgfile" 19511 19512 # func_append var value 19513 # Append VALUE to the end of shell variable VAR. 19514 func_append () 19515 { 19516 eval "$1+=\$2" 19517 } 19518 _LT_EOF 19519 ;; 19520 *) 19521 cat << \_LT_EOF >> "$cfgfile" 19522 19523 # func_append var value 19524 # Append VALUE to the end of shell variable VAR. 19525 func_append () 19526 { 19527 eval "$1=\$$1\$2" 19528 } 19529 19530 _LT_EOF 19531 ;; 19532 esac 19533 19534 19535 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 19536 || (rm -f "$cfgfile"; exit 1) 19537 19538 mv -f "$cfgfile" "$ofile" || 19539 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19540 chmod +x "$ofile" 19541 19542 ;; 19543 "default-1":C) 19544 for ac_file in $CONFIG_FILES; do 19545 # Support "outfile[:infile[:infile...]]" 19546 case "$ac_file" in 19547 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 19548 esac 19549 # PO directories have a Makefile.in generated from Makefile.in.in. 19550 case "$ac_file" in */Makefile.in) 19551 # Adjust a relative srcdir. 19552 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 19553 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 19554 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 19555 # In autoconf-2.13 it is called $ac_given_srcdir. 19556 # In autoconf-2.50 it is called $srcdir. 19557 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 19558 case "$ac_given_srcdir" in 19559 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 19560 /*) top_srcdir="$ac_given_srcdir" ;; 19561 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 19562 esac 19563 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 19564 rm -f "$ac_dir/POTFILES" 19565 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 19566 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 19567 POMAKEFILEDEPS="POTFILES.in" 19568 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 19569 # on $ac_dir but don't depend on user-specified configuration 19570 # parameters. 19571 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 19572 # The LINGUAS file contains the set of available languages. 19573 if test -n "$OBSOLETE_ALL_LINGUAS"; then 19574 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" 19575 fi 19576 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 19577 # Hide the ALL_LINGUAS assigment from automake. 19578 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 19579 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 19580 else 19581 # The set of available languages was given in configure.ac. 19582 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 19583 fi 19584 case "$ac_given_srcdir" in 19585 .) srcdirpre= ;; 19586 *) srcdirpre='$(srcdir)/' ;; 19587 esac 19588 POFILES= 19589 GMOFILES= 19590 UPDATEPOFILES= 19591 DUMMYPOFILES= 19592 for lang in $ALL_LINGUAS; do 19593 POFILES="$POFILES $srcdirpre$lang.po" 19594 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 19595 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 19596 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 19597 done 19598 # CATALOGS depends on both $ac_dir and the user's LINGUAS 19599 # environment variable. 19600 INST_LINGUAS= 19601 if test -n "$ALL_LINGUAS"; then 19602 for presentlang in $ALL_LINGUAS; do 19603 useit=no 19604 if test "%UNSET%" != "$LINGUAS"; then 19605 desiredlanguages="$LINGUAS" 19606 else 19607 desiredlanguages="$ALL_LINGUAS" 19608 fi 19609 for desiredlang in $desiredlanguages; do 19610 # Use the presentlang catalog if desiredlang is 19611 # a. equal to presentlang, or 19612 # b. a variant of presentlang (because in this case, 19613 # presentlang can be used as a fallback for messages 19614 # which are not translated in the desiredlang catalog). 19615 case "$desiredlang" in 19616 "$presentlang"*) useit=yes;; 19617 esac 19618 done 19619 if test $useit = yes; then 19620 INST_LINGUAS="$INST_LINGUAS $presentlang" 19621 fi 19622 done 19623 fi 19624 CATALOGS= 19625 if test -n "$INST_LINGUAS"; then 19626 for lang in $INST_LINGUAS; do 19627 CATALOGS="$CATALOGS $lang.gmo" 19628 done 19629 fi 19630 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 19631 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 19632 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 19633 if test -f "$f"; then 19634 case "$f" in 19635 *.orig | *.bak | *~) ;; 19636 *) cat "$f" >> "$ac_dir/Makefile" ;; 19637 esac 19638 fi 19639 done 19640 fi 19641 ;; 19642 esac 19643 done ;; 19644 "default":C) 19645 case "$srcdir" in 19646 .) srcdirpre= ;; 19647 *) srcdirpre='$(srcdir)/' ;; 19648 esac 19649 POFILES= 19650 GMOFILES= 19651 for lang in dummy $OBSOLETE_ALL_LINGUAS; do 19652 if test $lang != dummy; then 19653 POFILES="$POFILES $srcdirpre$lang.po" 19654 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 19655 fi 19656 done 19657 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \ 19658 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \ 19659 -e "s,@POFILES@,$POFILES," \ 19660 -e "s,@GMOFILES@,$GMOFILES," \ 19661 po/Makefile.in > po/Makefile ;; 19662 19663 esac 19664 done # for ac_tag 19665 19666 19667 as_fn_exit 0 19668 _ACEOF 19669 ac_clean_files=$ac_clean_files_save 19670 19671 test $ac_write_fail = 0 || 19672 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19673 19674 19675 # configure is writing to config.log, and then calls config.status. 19676 # config.status does its own redirection, appending to config.log. 19677 # Unfortunately, on DOS this fails, as config.log is still kept open 19678 # by configure, so config.status won't be able to write to it; its 19679 # output is simply discarded. So we exec the FD to /dev/null, 19680 # effectively closing config.log, so it can be properly (re)opened and 19681 # appended to by config.status. When coming back to configure, we 19682 # need to make the FD available again. 19683 if test "$no_create" != yes; then 19684 ac_cs_success=: 19685 ac_config_status_args= 19686 test "$silent" = yes && 19687 ac_config_status_args="$ac_config_status_args --quiet" 19688 exec 5>/dev/null 19689 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19690 exec 5>>config.log 19691 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19692 # would make configure fail if this is the last instruction. 19693 $ac_cs_success || as_fn_exit 1 19694 fi 19695 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19697 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19698 fi 19699 19700 19701 19702 touch config.status.tmp 19703 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then 19704 sed '/as_fn_exit 0/i \ 19705 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \ 19706 touch --reference=Makefile Makefile.tmp \ 19707 mv Makefile.tmp Makefile \ 19708 ' config.status > config.status.tmp 19709 touch --reference=config.status config.status.tmp 19710 mv config.status.tmp config.status 19711 chmod +x config.status 19712 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp 19713 touch --reference=Makefile Makefile.tmp 19714 mv Makefile.tmp Makefile 19715 else 19716 rm -f config.status.tmp 19717 fi 19718