1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for bfd 2.45. 4 # 5 # 6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7 # 8 # 9 # This configure script is free software; the Free Software Foundation 10 # gives unlimited permission to copy, distribute and modify it. 11 ## -------------------- ## 12 ## M4sh Initialization. ## 13 ## -------------------- ## 14 15 # Be more Bourne compatible 16 DUALCASE=1; export DUALCASE # for MKS sh 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24 else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30 esac 31 fi 32 33 34 as_nl=' 35 ' 36 export as_nl 37 # Printing a long string crashes Solaris 7 /usr/bin/printf. 38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41 # Prefer a ksh shell builtin over an external printf program on Solaris, 42 # but without wasting forks for bash or zsh. 43 if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50 else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70 fi 71 72 # The user is always right. 73 if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79 fi 80 81 82 # IFS 83 # We need space, tab and new line, in precisely that order. Quoting is 84 # there to prevent editors from complaining about space-tab. 85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 86 # splitting by setting IFS to empty value.) 87 IFS=" "" $as_nl" 88 89 # Find who we are. Look in the path if we contain no directory separator. 90 as_myself= 91 case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94 for as_dir in $PATH 95 do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100 IFS=$as_save_IFS 101 102 ;; 103 esac 104 # We did not find ourselves, most probably we were run as `sh COMMAND' 105 # in which case we are not to be found in the path. 106 if test "x$as_myself" = x; then 107 as_myself=$0 108 fi 109 if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112 fi 113 114 # Unset variables that we do not need and which cause bugs (e.g. in 115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116 # suppresses any "Segmentation fault" message there. '((' could 117 # trigger a bug in pdksh 5.2.14. 118 for as_var in BASH_ENV ENV MAIL MAILPATH 119 do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121 done 122 PS1='$ ' 123 PS2='> ' 124 PS4='+ ' 125 126 # NLS nuisances. 127 LC_ALL=C 128 export LC_ALL 129 LANGUAGE=C 130 export LANGUAGE 131 132 # CDPATH. 133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135 # Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140 # neutralization value for shells without unset; and this also 141 # works around shells that cannot unset nonexistent variables. 142 # Preserve -v and -x to the replacement shell. 143 BASH_ENV=/dev/null 144 ENV=/dev/null 145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146 case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151 esac 152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153 # Admittedly, this is quite paranoid, since all the known shells bail 154 # out after a failed `exec'. 155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156 as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160 if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168 else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174 esac 175 fi 176 " 177 as_required="as_fn_return () { (exit \$1); } 178 as_fn_success () { as_fn_return 0; } 179 as_fn_failure () { as_fn_return 1; } 180 as_fn_ret_success () { return 0; } 181 as_fn_ret_failure () { return 1; } 182 183 exitcode=0 184 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190 else 191 exitcode=1; echo positional parameters were not saved. 192 fi 193 test x\$exitcode = x0 || exit 1 194 test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system, 276 $0: including any error possibly output before this 277 $0: message. Then install a modern shell, or manually run 278 $0: the script under such a shell if you do have one." 279 fi 280 exit 1 281 fi 282 fi 283 fi 284 SHELL=${CONFIG_SHELL-/bin/sh} 285 export SHELL 286 # Unset more variables known to interfere with behavior of common tools. 287 CLICOLOR_FORCE= GREP_OPTIONS= 288 unset CLICOLOR_FORCE GREP_OPTIONS 289 290 ## --------------------- ## 291 ## M4sh Shell Functions. ## 292 ## --------------------- ## 293 # as_fn_unset VAR 294 # --------------- 295 # Portably unset VAR. 296 as_fn_unset () 297 { 298 { eval $1=; unset $1;} 299 } 300 as_unset=as_fn_unset 301 302 # as_fn_set_status STATUS 303 # ----------------------- 304 # Set $? to STATUS, without forking. 305 as_fn_set_status () 306 { 307 return $1 308 } # as_fn_set_status 309 310 # as_fn_exit STATUS 311 # ----------------- 312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313 as_fn_exit () 314 { 315 set +e 316 as_fn_set_status $1 317 exit $1 318 } # as_fn_exit 319 320 # as_fn_mkdir_p 321 # ------------- 322 # Create "$as_dir" as a directory, including parents if necessary. 323 as_fn_mkdir_p () 324 { 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342 $as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366 } # as_fn_mkdir_p 367 368 # as_fn_executable_p FILE 369 # ----------------------- 370 # Test if FILE is an executable regular file. 371 as_fn_executable_p () 372 { 373 test -f "$1" && test -x "$1" 374 } # as_fn_executable_p 375 # as_fn_append VAR VALUE 376 # ---------------------- 377 # Append the text in VALUE to the end of the definition contained in VAR. Take 378 # advantage of any shell optimizations that allow amortized linear growth over 379 # repeated appends, instead of the typical quadratic growth present in naive 380 # implementations. 381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386 else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391 fi # as_fn_append 392 393 # as_fn_arith ARG... 394 # ------------------ 395 # Perform arithmetic evaluation on the ARGs, and store the result in the 396 # global $as_val. Take advantage of shells that can avoid forks. The arguments 397 # must be portable across $(()) and expr. 398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403 else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408 fi # as_fn_arith 409 410 411 # as_fn_error STATUS ERROR [LINENO LOG_FD] 412 # ---------------------------------------- 413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415 # script with STATUS, using 1 if that was 0. 416 as_fn_error () 417 { 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425 } # as_fn_error 426 427 if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430 else 431 as_expr=false 432 fi 433 434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436 else 437 as_basename=false 438 fi 439 440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442 else 443 as_dirname=false 444 fi 445 446 as_me=`$as_basename -- "$0" || 447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450 $as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465 # Avoid depending upon Character Ranges. 466 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469 as_cr_digits='0123456789' 470 as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506 } 507 508 ECHO_C= ECHO_N= ECHO_T= 509 case `echo -n x` in #((((( 510 -n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517 *) 518 ECHO_N='-n';; 519 esac 520 521 rm -f conf$$ conf$$.exe conf$$.file 522 if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524 else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527 fi 528 if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542 else 543 as_ln_s='cp -pR' 544 fi 545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546 rmdir conf$$.dir 2>/dev/null 547 548 if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550 else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553 fi 554 555 as_test_x='test -x' 556 as_executable_p=as_fn_executable_p 557 558 # Sed expression to map a string onto a valid CPP name. 559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561 # Sed expression to map a string onto a valid variable name. 562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564 SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567 test -n "$DJDIR" || exec 7<&0 </dev/null 568 exec 6>&1 569 570 # Name of the host. 571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572 # so uname gets run too. 573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575 # 576 # Initializations. 577 # 578 ac_default_prefix=/usr/local 579 ac_clean_files= 580 ac_config_libobj_dir=. 581 LIBOBJS= 582 cross_compiling=no 583 subdirs= 584 MFLAGS= 585 MAKEFLAGS= 586 587 # Identity of this package. 588 PACKAGE_NAME='bfd' 589 PACKAGE_TARNAME='bfd' 590 PACKAGE_VERSION='2.45' 591 PACKAGE_STRING='bfd 2.45' 592 PACKAGE_BUGREPORT='' 593 PACKAGE_URL='' 594 595 ac_unique_file="libbfd.c" 596 # Factoring default headers for most tests. 597 ac_includes_default="\ 598 #include <stdio.h> 599 #ifdef HAVE_SYS_TYPES_H 600 # include <sys/types.h> 601 #endif 602 #ifdef HAVE_SYS_STAT_H 603 # include <sys/stat.h> 604 #endif 605 #ifdef STDC_HEADERS 606 # include <stdlib.h> 607 # include <stddef.h> 608 #else 609 # ifdef HAVE_STDLIB_H 610 # include <stdlib.h> 611 # endif 612 #endif 613 #ifdef HAVE_STRING_H 614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615 # include <memory.h> 616 # endif 617 # include <string.h> 618 #endif 619 #ifdef HAVE_STRINGS_H 620 # include <strings.h> 621 #endif 622 #ifdef HAVE_INTTYPES_H 623 # include <inttypes.h> 624 #endif 625 #ifdef HAVE_STDINT_H 626 # include <stdint.h> 627 #endif 628 #ifdef HAVE_UNISTD_H 629 # include <unistd.h> 630 #endif" 631 632 gt_needs= 633 ac_header_list= 634 ac_subst_vars='am__EXEEXT_FALSE 635 am__EXEEXT_TRUE 636 LTLIBOBJS 637 LIBOBJS 638 bfd_ufile_ptr 639 bfd_file_ptr 640 lt_cv_dlopen_libs 641 supports_plugins 642 COREFLAG 643 COREFILE 644 havevecs 645 tdefaults 646 bfd_default_target_size 647 bfd_machines 648 bfd_backends 649 all_backends 650 bfd64_libs 651 wordsize 652 TDEFINES 653 SHARED_LIBADD 654 SHARED_LDFLAGS 655 LIBM 656 ZSTD_LIBS 657 ZSTD_CFLAGS 658 PKG_CONFIG_LIBDIR 659 PKG_CONFIG_PATH 660 PKG_CONFIG 661 zlibinc 662 zlibdir 663 EXEEXT_FOR_BUILD 664 CC_FOR_BUILD 665 HDEFINES 666 CATOBJEXT 667 GENCAT 668 INSTOBJEXT 669 DATADIRNAME 670 CATALOGS 671 INCINTL 672 LIBINTL_DEP 673 POSUB 674 LTLIBINTL 675 LIBINTL 676 INTLLIBS 677 LTLIBICONV 678 LIBICONV 679 INTL_MACOSX_LIBS 680 MSGMERGE 681 XGETTEXT 682 GMSGFMT 683 MSGFMT 684 USE_NLS 685 MKINSTALLDIRS 686 bfdincludedir 687 bfdlibdir 688 target_noncanonical 689 host_noncanonical 690 INSTALL_LIBBFD_FALSE 691 INSTALL_LIBBFD_TRUE 692 GENINSRC_NEVER_FALSE 693 GENINSRC_NEVER_TRUE 694 MAINT 695 MAINTAINER_MODE_FALSE 696 MAINTAINER_MODE_TRUE 697 WARN_WRITE_STRINGS 698 NO_WERROR 699 WARN_CFLAGS_FOR_BUILD 700 WARN_CFLAGS 701 REPORT_BUGS_TEXI 702 REPORT_BUGS_TO 703 PKGVERSION 704 DEBUGDIR 705 PLUGINS_FALSE 706 PLUGINS_TRUE 707 LARGEFILE_CPPFLAGS 708 OTOOL64 709 OTOOL 710 LIPO 711 NMEDIT 712 DSYMUTIL 713 OBJDUMP 714 LN_S 715 NM 716 ac_ct_DUMPBIN 717 DUMPBIN 718 LD 719 FGREP 720 SED 721 LIBTOOL 722 EGREP 723 GREP 724 CPP 725 am__fastdepCC_FALSE 726 am__fastdepCC_TRUE 727 CCDEPMODE 728 am__nodep 729 AMDEPBACKSLASH 730 AMDEP_FALSE 731 AMDEP_TRUE 732 am__quote 733 am__include 734 DEPDIR 735 OBJEXT 736 EXEEXT 737 ac_ct_CC 738 CPPFLAGS 739 LDFLAGS 740 CFLAGS 741 CC 742 RANLIB 743 AR 744 AM_BACKSLASH 745 AM_DEFAULT_VERBOSITY 746 AM_DEFAULT_V 747 AM_V 748 am__untar 749 am__tar 750 AMTAR 751 am__leading_dot 752 SET_MAKE 753 AWK 754 mkdir_p 755 MKDIR_P 756 INSTALL_STRIP_PROGRAM 757 STRIP 758 install_sh 759 MAKEINFO 760 AUTOHEADER 761 AUTOMAKE 762 AUTOCONF 763 ACLOCAL 764 VERSION 765 PACKAGE 766 CYGPATH_W 767 am__isrc 768 INSTALL_DATA 769 INSTALL_SCRIPT 770 INSTALL_PROGRAM 771 target_os 772 target_vendor 773 target_cpu 774 target 775 host_os 776 host_vendor 777 host_cpu 778 host 779 build_os 780 build_vendor 781 build_cpu 782 build 783 target_alias 784 host_alias 785 build_alias 786 LIBS 787 ECHO_T 788 ECHO_N 789 ECHO_C 790 DEFS 791 mandir 792 localedir 793 libdir 794 psdir 795 pdfdir 796 dvidir 797 htmldir 798 infodir 799 docdir 800 oldincludedir 801 includedir 802 localstatedir 803 sharedstatedir 804 sysconfdir 805 datadir 806 datarootdir 807 libexecdir 808 sbindir 809 bindir 810 program_transform_name 811 prefix 812 exec_prefix 813 PACKAGE_URL 814 PACKAGE_BUGREPORT 815 PACKAGE_STRING 816 PACKAGE_VERSION 817 PACKAGE_TARNAME 818 PACKAGE_NAME 819 PATH_SEPARATOR 820 SHELL' 821 ac_subst_files='' 822 ac_user_opts=' 823 enable_option_checking 824 enable_silent_rules 825 enable_shared 826 enable_dependency_tracking 827 enable_static 828 with_pic 829 enable_fast_install 830 with_gnu_ld 831 enable_libtool_lock 832 enable_plugins 833 enable_largefile 834 enable_checking 835 enable_64_bit_bfd 836 enable_targets 837 enable_64_bit_archive 838 with_mmap 839 enable_secureplt 840 enable_separate_code 841 enable_leading_mingw64_underscores 842 with_separate_debug_dir 843 with_pkgversion 844 with_bugurl 845 enable_werror 846 enable_build_warnings 847 enable_maintainer_mode 848 enable_install_libbfd 849 enable_nls 850 enable_rpath 851 with_libiconv_prefix 852 with_libiconv_type 853 with_libintl_prefix 854 with_libintl_type 855 with_system_zlib 856 with_zstd 857 ' 858 ac_precious_vars='build_alias 859 host_alias 860 target_alias 861 CC 862 CFLAGS 863 LDFLAGS 864 LIBS 865 CPPFLAGS 866 CPP 867 PKG_CONFIG 868 PKG_CONFIG_PATH 869 PKG_CONFIG_LIBDIR 870 ZSTD_CFLAGS 871 ZSTD_LIBS' 872 873 874 # Initialize some variables set by options. 875 ac_init_help= 876 ac_init_version=false 877 ac_unrecognized_opts= 878 ac_unrecognized_sep= 879 # The variables have the same names as the options, with 880 # dashes changed to underlines. 881 cache_file=/dev/null 882 exec_prefix=NONE 883 no_create= 884 no_recursion= 885 prefix=NONE 886 program_prefix=NONE 887 program_suffix=NONE 888 program_transform_name=s,x,x, 889 silent= 890 site= 891 srcdir= 892 verbose= 893 x_includes=NONE 894 x_libraries=NONE 895 896 # Installation directory options. 897 # These are left unexpanded so users can "make install exec_prefix=/foo" 898 # and all the variables that are supposed to be based on exec_prefix 899 # by default will actually change. 900 # Use braces instead of parens because sh, perl, etc. also accept them. 901 # (The list follows the same order as the GNU Coding Standards.) 902 bindir='${exec_prefix}/bin' 903 sbindir='${exec_prefix}/sbin' 904 libexecdir='${exec_prefix}/libexec' 905 datarootdir='${prefix}/share' 906 datadir='${datarootdir}' 907 sysconfdir='${prefix}/etc' 908 sharedstatedir='${prefix}/com' 909 localstatedir='${prefix}/var' 910 includedir='${prefix}/include' 911 oldincludedir='/usr/include' 912 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 913 infodir='${datarootdir}/info' 914 htmldir='${docdir}' 915 dvidir='${docdir}' 916 pdfdir='${docdir}' 917 psdir='${docdir}' 918 libdir='${exec_prefix}/lib' 919 localedir='${datarootdir}/locale' 920 mandir='${datarootdir}/man' 921 922 ac_prev= 923 ac_dashdash= 924 for ac_option 925 do 926 # If the previous option needs an argument, assign it. 927 if test -n "$ac_prev"; then 928 eval $ac_prev=\$ac_option 929 ac_prev= 930 continue 931 fi 932 933 case $ac_option in 934 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 935 *=) ac_optarg= ;; 936 *) ac_optarg=yes ;; 937 esac 938 939 # Accept the important Cygnus configure options, so we can diagnose typos. 940 941 case $ac_dashdash$ac_option in 942 --) 943 ac_dashdash=yes ;; 944 945 -bindir | --bindir | --bindi | --bind | --bin | --bi) 946 ac_prev=bindir ;; 947 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 948 bindir=$ac_optarg ;; 949 950 -build | --build | --buil | --bui | --bu) 951 ac_prev=build_alias ;; 952 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 953 build_alias=$ac_optarg ;; 954 955 -cache-file | --cache-file | --cache-fil | --cache-fi \ 956 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 957 ac_prev=cache_file ;; 958 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 959 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 960 cache_file=$ac_optarg ;; 961 962 --config-cache | -C) 963 cache_file=config.cache ;; 964 965 -datadir | --datadir | --datadi | --datad) 966 ac_prev=datadir ;; 967 -datadir=* | --datadir=* | --datadi=* | --datad=*) 968 datadir=$ac_optarg ;; 969 970 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 971 | --dataroo | --dataro | --datar) 972 ac_prev=datarootdir ;; 973 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 974 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 975 datarootdir=$ac_optarg ;; 976 977 -disable-* | --disable-*) 978 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 979 # Reject names that are not valid shell variable names. 980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 981 as_fn_error $? "invalid feature name: $ac_useropt" 982 ac_useropt_orig=$ac_useropt 983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 984 case $ac_user_opts in 985 *" 986 "enable_$ac_useropt" 987 "*) ;; 988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 989 ac_unrecognized_sep=', ';; 990 esac 991 eval enable_$ac_useropt=no ;; 992 993 -docdir | --docdir | --docdi | --doc | --do) 994 ac_prev=docdir ;; 995 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 996 docdir=$ac_optarg ;; 997 998 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 999 ac_prev=dvidir ;; 1000 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1001 dvidir=$ac_optarg ;; 1002 1003 -enable-* | --enable-*) 1004 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1005 # Reject names that are not valid shell variable names. 1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1007 as_fn_error $? "invalid feature name: $ac_useropt" 1008 ac_useropt_orig=$ac_useropt 1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1010 case $ac_user_opts in 1011 *" 1012 "enable_$ac_useropt" 1013 "*) ;; 1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1015 ac_unrecognized_sep=', ';; 1016 esac 1017 eval enable_$ac_useropt=\$ac_optarg ;; 1018 1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1021 | --exec | --exe | --ex) 1022 ac_prev=exec_prefix ;; 1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1025 | --exec=* | --exe=* | --ex=*) 1026 exec_prefix=$ac_optarg ;; 1027 1028 -gas | --gas | --ga | --g) 1029 # Obsolete; use --with-gas. 1030 with_gas=yes ;; 1031 1032 -help | --help | --hel | --he | -h) 1033 ac_init_help=long ;; 1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1035 ac_init_help=recursive ;; 1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1037 ac_init_help=short ;; 1038 1039 -host | --host | --hos | --ho) 1040 ac_prev=host_alias ;; 1041 -host=* | --host=* | --hos=* | --ho=*) 1042 host_alias=$ac_optarg ;; 1043 1044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1045 ac_prev=htmldir ;; 1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1047 | --ht=*) 1048 htmldir=$ac_optarg ;; 1049 1050 -includedir | --includedir | --includedi | --included | --include \ 1051 | --includ | --inclu | --incl | --inc) 1052 ac_prev=includedir ;; 1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1054 | --includ=* | --inclu=* | --incl=* | --inc=*) 1055 includedir=$ac_optarg ;; 1056 1057 -infodir | --infodir | --infodi | --infod | --info | --inf) 1058 ac_prev=infodir ;; 1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1060 infodir=$ac_optarg ;; 1061 1062 -libdir | --libdir | --libdi | --libd) 1063 ac_prev=libdir ;; 1064 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1065 libdir=$ac_optarg ;; 1066 1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1068 | --libexe | --libex | --libe) 1069 ac_prev=libexecdir ;; 1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1071 | --libexe=* | --libex=* | --libe=*) 1072 libexecdir=$ac_optarg ;; 1073 1074 -localedir | --localedir | --localedi | --localed | --locale) 1075 ac_prev=localedir ;; 1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1077 localedir=$ac_optarg ;; 1078 1079 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1080 | --localstate | --localstat | --localsta | --localst | --locals) 1081 ac_prev=localstatedir ;; 1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1084 localstatedir=$ac_optarg ;; 1085 1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1087 ac_prev=mandir ;; 1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1089 mandir=$ac_optarg ;; 1090 1091 -nfp | --nfp | --nf) 1092 # Obsolete; use --without-fp. 1093 with_fp=no ;; 1094 1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1096 | --no-cr | --no-c | -n) 1097 no_create=yes ;; 1098 1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1101 no_recursion=yes ;; 1102 1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1105 | --oldin | --oldi | --old | --ol | --o) 1106 ac_prev=oldincludedir ;; 1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1110 oldincludedir=$ac_optarg ;; 1111 1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1113 ac_prev=prefix ;; 1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1115 prefix=$ac_optarg ;; 1116 1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1118 | --program-pre | --program-pr | --program-p) 1119 ac_prev=program_prefix ;; 1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1122 program_prefix=$ac_optarg ;; 1123 1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1125 | --program-suf | --program-su | --program-s) 1126 ac_prev=program_suffix ;; 1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1129 program_suffix=$ac_optarg ;; 1130 1131 -program-transform-name | --program-transform-name \ 1132 | --program-transform-nam | --program-transform-na \ 1133 | --program-transform-n | --program-transform- \ 1134 | --program-transform | --program-transfor \ 1135 | --program-transfo | --program-transf \ 1136 | --program-trans | --program-tran \ 1137 | --progr-tra | --program-tr | --program-t) 1138 ac_prev=program_transform_name ;; 1139 -program-transform-name=* | --program-transform-name=* \ 1140 | --program-transform-nam=* | --program-transform-na=* \ 1141 | --program-transform-n=* | --program-transform-=* \ 1142 | --program-transform=* | --program-transfor=* \ 1143 | --program-transfo=* | --program-transf=* \ 1144 | --program-trans=* | --program-tran=* \ 1145 | --progr-tra=* | --program-tr=* | --program-t=*) 1146 program_transform_name=$ac_optarg ;; 1147 1148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1149 ac_prev=pdfdir ;; 1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1151 pdfdir=$ac_optarg ;; 1152 1153 -psdir | --psdir | --psdi | --psd | --ps) 1154 ac_prev=psdir ;; 1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1156 psdir=$ac_optarg ;; 1157 1158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1159 | -silent | --silent | --silen | --sile | --sil) 1160 silent=yes ;; 1161 1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1163 ac_prev=sbindir ;; 1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1165 | --sbi=* | --sb=*) 1166 sbindir=$ac_optarg ;; 1167 1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1170 | --sharedst | --shareds | --shared | --share | --shar \ 1171 | --sha | --sh) 1172 ac_prev=sharedstatedir ;; 1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1176 | --sha=* | --sh=*) 1177 sharedstatedir=$ac_optarg ;; 1178 1179 -site | --site | --sit) 1180 ac_prev=site ;; 1181 -site=* | --site=* | --sit=*) 1182 site=$ac_optarg ;; 1183 1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1185 ac_prev=srcdir ;; 1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1187 srcdir=$ac_optarg ;; 1188 1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1190 | --syscon | --sysco | --sysc | --sys | --sy) 1191 ac_prev=sysconfdir ;; 1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1194 sysconfdir=$ac_optarg ;; 1195 1196 -target | --target | --targe | --targ | --tar | --ta | --t) 1197 ac_prev=target_alias ;; 1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1199 target_alias=$ac_optarg ;; 1200 1201 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1202 verbose=yes ;; 1203 1204 -version | --version | --versio | --versi | --vers | -V) 1205 ac_init_version=: ;; 1206 1207 -with-* | --with-*) 1208 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1209 # Reject names that are not valid shell variable names. 1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1211 as_fn_error $? "invalid package name: $ac_useropt" 1212 ac_useropt_orig=$ac_useropt 1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1214 case $ac_user_opts in 1215 *" 1216 "with_$ac_useropt" 1217 "*) ;; 1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1219 ac_unrecognized_sep=', ';; 1220 esac 1221 eval with_$ac_useropt=\$ac_optarg ;; 1222 1223 -without-* | --without-*) 1224 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1225 # Reject names that are not valid shell variable names. 1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1227 as_fn_error $? "invalid package name: $ac_useropt" 1228 ac_useropt_orig=$ac_useropt 1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1230 case $ac_user_opts in 1231 *" 1232 "with_$ac_useropt" 1233 "*) ;; 1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1235 ac_unrecognized_sep=', ';; 1236 esac 1237 eval with_$ac_useropt=no ;; 1238 1239 --x) 1240 # Obsolete; use --with-x. 1241 with_x=yes ;; 1242 1243 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1244 | --x-incl | --x-inc | --x-in | --x-i) 1245 ac_prev=x_includes ;; 1246 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1247 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1248 x_includes=$ac_optarg ;; 1249 1250 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1251 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1252 ac_prev=x_libraries ;; 1253 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1254 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1255 x_libraries=$ac_optarg ;; 1256 1257 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1258 Try \`$0 --help' for more information" 1259 ;; 1260 1261 *=*) 1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1263 # Reject names that are not valid shell variable names. 1264 case $ac_envvar in #( 1265 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1266 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1267 esac 1268 eval $ac_envvar=\$ac_optarg 1269 export $ac_envvar ;; 1270 1271 *) 1272 # FIXME: should be removed in autoconf 3.0. 1273 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1274 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1275 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1276 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1277 ;; 1278 1279 esac 1280 done 1281 1282 if test -n "$ac_prev"; then 1283 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1284 as_fn_error $? "missing argument to $ac_option" 1285 fi 1286 1287 if test -n "$ac_unrecognized_opts"; then 1288 case $enable_option_checking in 1289 no) ;; 1290 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1291 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1292 esac 1293 fi 1294 1295 # Check all directory arguments for consistency. 1296 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1297 datadir sysconfdir sharedstatedir localstatedir includedir \ 1298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1299 libdir localedir mandir 1300 do 1301 eval ac_val=\$$ac_var 1302 # Remove trailing slashes. 1303 case $ac_val in 1304 */ ) 1305 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1306 eval $ac_var=\$ac_val;; 1307 esac 1308 # Be sure to have absolute directory names. 1309 case $ac_val in 1310 [\\/$]* | ?:[\\/]* ) continue;; 1311 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1312 esac 1313 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1314 done 1315 1316 # There might be people who depend on the old broken behavior: `$host' 1317 # used to hold the argument of --host etc. 1318 # FIXME: To remove some day. 1319 build=$build_alias 1320 host=$host_alias 1321 target=$target_alias 1322 1323 # FIXME: To remove some day. 1324 if test "x$host_alias" != x; then 1325 if test "x$build_alias" = x; then 1326 cross_compiling=maybe 1327 elif test "x$build_alias" != "x$host_alias"; then 1328 cross_compiling=yes 1329 fi 1330 fi 1331 1332 ac_tool_prefix= 1333 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1334 1335 test "$silent" = yes && exec 6>/dev/null 1336 1337 1338 ac_pwd=`pwd` && test -n "$ac_pwd" && 1339 ac_ls_di=`ls -di .` && 1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1341 as_fn_error $? "working directory cannot be determined" 1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1343 as_fn_error $? "pwd does not report name of working directory" 1344 1345 1346 # Find the source files, if location was not specified. 1347 if test -z "$srcdir"; then 1348 ac_srcdir_defaulted=yes 1349 # Try the directory containing this script, then the parent directory. 1350 ac_confdir=`$as_dirname -- "$as_myself" || 1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1352 X"$as_myself" : 'X\(//\)[^/]' \| \ 1353 X"$as_myself" : 'X\(//\)$' \| \ 1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1355 $as_echo X"$as_myself" | 1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1357 s//\1/ 1358 q 1359 } 1360 /^X\(\/\/\)[^/].*/{ 1361 s//\1/ 1362 q 1363 } 1364 /^X\(\/\/\)$/{ 1365 s//\1/ 1366 q 1367 } 1368 /^X\(\/\).*/{ 1369 s//\1/ 1370 q 1371 } 1372 s/.*/./; q'` 1373 srcdir=$ac_confdir 1374 if test ! -r "$srcdir/$ac_unique_file"; then 1375 srcdir=.. 1376 fi 1377 else 1378 ac_srcdir_defaulted=no 1379 fi 1380 if test ! -r "$srcdir/$ac_unique_file"; then 1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1382 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1383 fi 1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1385 ac_abs_confdir=`( 1386 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1387 pwd)` 1388 # When building in place, set srcdir=. 1389 if test "$ac_abs_confdir" = "$ac_pwd"; then 1390 srcdir=. 1391 fi 1392 # Remove unnecessary trailing slashes from srcdir. 1393 # Double slashes in file names in object file debugging info 1394 # mess up M-x gdb in Emacs. 1395 case $srcdir in 1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1397 esac 1398 for ac_var in $ac_precious_vars; do 1399 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1400 eval ac_env_${ac_var}_value=\$${ac_var} 1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1402 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1403 done 1404 1405 # 1406 # Report the --help message. 1407 # 1408 if test "$ac_init_help" = "long"; then 1409 # Omit some internal or obsolete options to make the list less imposing. 1410 # This message is too long to be a string in the A/UX 3.1 sh. 1411 cat <<_ACEOF 1412 \`configure' configures bfd 2.45 to adapt to many kinds of systems. 1413 1414 Usage: $0 [OPTION]... [VAR=VALUE]... 1415 1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1417 VAR=VALUE. See below for descriptions of some of the useful variables. 1418 1419 Defaults for the options are specified in brackets. 1420 1421 Configuration: 1422 -h, --help display this help and exit 1423 --help=short display options specific to this package 1424 --help=recursive display the short help of all the included packages 1425 -V, --version display version information and exit 1426 -q, --quiet, --silent do not print \`checking ...' messages 1427 --cache-file=FILE cache test results in FILE [disabled] 1428 -C, --config-cache alias for \`--cache-file=config.cache' 1429 -n, --no-create do not create output files 1430 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1431 1432 Installation directories: 1433 --prefix=PREFIX install architecture-independent files in PREFIX 1434 [$ac_default_prefix] 1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1436 [PREFIX] 1437 1438 By default, \`make install' will install all the files in 1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1441 for instance \`--prefix=\$HOME'. 1442 1443 For better control, use the options below. 1444 1445 Fine tuning of the installation directories: 1446 --bindir=DIR user executables [EPREFIX/bin] 1447 --sbindir=DIR system admin executables [EPREFIX/sbin] 1448 --libexecdir=DIR program executables [EPREFIX/libexec] 1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1452 --libdir=DIR object code libraries [EPREFIX/lib] 1453 --includedir=DIR C header files [PREFIX/include] 1454 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1457 --infodir=DIR info documentation [DATAROOTDIR/info] 1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1459 --mandir=DIR man documentation [DATAROOTDIR/man] 1460 --docdir=DIR documentation root [DATAROOTDIR/doc/bfd] 1461 --htmldir=DIR html documentation [DOCDIR] 1462 --dvidir=DIR dvi documentation [DOCDIR] 1463 --pdfdir=DIR pdf documentation [DOCDIR] 1464 --psdir=DIR ps documentation [DOCDIR] 1465 _ACEOF 1466 1467 cat <<\_ACEOF 1468 1469 Program names: 1470 --program-prefix=PREFIX prepend PREFIX to installed program names 1471 --program-suffix=SUFFIX append SUFFIX to installed program names 1472 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1473 1474 System types: 1475 --build=BUILD configure for building on BUILD [guessed] 1476 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1477 --target=TARGET configure for building compilers for TARGET [HOST] 1478 _ACEOF 1479 fi 1480 1481 if test -n "$ac_init_help"; then 1482 case $ac_init_help in 1483 short | recursive ) echo "Configuration of bfd 2.45:";; 1484 esac 1485 cat <<\_ACEOF 1486 1487 Optional Features: 1488 --disable-option-checking ignore unrecognized --enable/--with options 1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1491 --enable-silent-rules less verbose build output (undo: "make V=1") 1492 --disable-silent-rules verbose build output (undo: "make V=0") 1493 --enable-shared[=PKGS] build shared libraries [default=no] 1494 --enable-dependency-tracking 1495 do not reject slow dependency extractors 1496 --disable-dependency-tracking 1497 speeds up one-time build 1498 --enable-static[=PKGS] build static libraries [default=yes] 1499 --enable-fast-install[=PKGS] 1500 optimize for fast installation [default=yes] 1501 --disable-libtool-lock avoid locking (might break parallel builds) 1502 --enable-plugins Enable support for plugins 1503 --disable-largefile omit support for large files 1504 --enable-checking enable run-time checks 1505 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) 1506 --enable-targets alternative target configurations 1507 --enable-64-bit-archive force 64-bit archives 1508 --enable-secureplt Default to creating read-only plt entries 1509 --enable-separate-code enable -z separate-code in ELF linker by default 1510 --enable-leading-mingw64-underscores 1511 Enable leading underscores on 64 bit mingw targets 1512 --enable-werror treat compile warnings as errors 1513 --enable-build-warnings enable build-time compiler warnings 1514 --enable-maintainer-mode 1515 enable make rules and dependencies not useful (and 1516 sometimes confusing) to the casual installer 1517 --enable-install-libbfd controls installation of libbfd and related headers 1518 --disable-nls do not use Native Language Support 1519 --disable-rpath do not hardcode runtime library paths 1520 1521 Optional Packages: 1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1524 --with-pic try to use only PIC/non-PIC objects [default=use 1525 both] 1526 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1527 --with-mmap try using mmap for BFD input files if available 1528 --with-separate-debug-dir=DIR 1529 Look for global separate debug info in DIR 1530 [[default=LIBDIR/debug]] 1531 --with-pkgversion=PKG Use PKG in the version string in place of "GNU 1532 Binutils" 1533 --with-bugurl=URL Direct users to URL to report a bug 1534 --with-gnu-ld assume the C compiler uses GNU ld default=no 1535 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1536 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1537 --with-libiconv-type=TYPE type of library to search for (auto/static/shared) 1538 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1539 --without-libintl-prefix don't search for libintl in includedir and libdir 1540 --with-libintl-type=TYPE type of library to search for (auto/static/shared) 1541 --with-system-zlib use installed libz 1542 --with-zstd support zstd compressed debug sections 1543 (default=auto) 1544 1545 Some influential environment variables: 1546 CC C compiler command 1547 CFLAGS C compiler flags 1548 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1549 nonstandard directory <lib dir> 1550 LIBS libraries to pass to the linker, e.g. -l<library> 1551 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1552 you have headers in a nonstandard directory <include dir> 1553 CPP C preprocessor 1554 PKG_CONFIG path to pkg-config utility 1555 PKG_CONFIG_PATH 1556 directories to add to pkg-config's search path 1557 PKG_CONFIG_LIBDIR 1558 path overriding pkg-config's built-in search path 1559 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config 1560 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config 1561 1562 Use these variables to override the choices made by `configure' or to help 1563 it to find libraries and programs with nonstandard names/locations. 1564 1565 Report bugs to the package provider. 1566 _ACEOF 1567 ac_status=$? 1568 fi 1569 1570 if test "$ac_init_help" = "recursive"; then 1571 # If there are subdirs, report their specific --help. 1572 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1573 test -d "$ac_dir" || 1574 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1575 continue 1576 ac_builddir=. 1577 1578 case "$ac_dir" in 1579 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1580 *) 1581 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1582 # A ".." for each directory in $ac_dir_suffix. 1583 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1584 case $ac_top_builddir_sub in 1585 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1586 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1587 esac ;; 1588 esac 1589 ac_abs_top_builddir=$ac_pwd 1590 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1591 # for backward compatibility: 1592 ac_top_builddir=$ac_top_build_prefix 1593 1594 case $srcdir in 1595 .) # We are building in place. 1596 ac_srcdir=. 1597 ac_top_srcdir=$ac_top_builddir_sub 1598 ac_abs_top_srcdir=$ac_pwd ;; 1599 [\\/]* | ?:[\\/]* ) # Absolute name. 1600 ac_srcdir=$srcdir$ac_dir_suffix; 1601 ac_top_srcdir=$srcdir 1602 ac_abs_top_srcdir=$srcdir ;; 1603 *) # Relative name. 1604 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1605 ac_top_srcdir=$ac_top_build_prefix$srcdir 1606 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1607 esac 1608 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1609 1610 cd "$ac_dir" || { ac_status=$?; continue; } 1611 # Check for guested configure. 1612 if test -f "$ac_srcdir/configure.gnu"; then 1613 echo && 1614 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1615 elif test -f "$ac_srcdir/configure"; then 1616 echo && 1617 $SHELL "$ac_srcdir/configure" --help=recursive 1618 else 1619 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1620 fi || ac_status=$? 1621 cd "$ac_pwd" || { ac_status=$?; break; } 1622 done 1623 fi 1624 1625 test -n "$ac_init_help" && exit $ac_status 1626 if $ac_init_version; then 1627 cat <<\_ACEOF 1628 bfd configure 2.45 1629 generated by GNU Autoconf 2.69 1630 1631 Copyright (C) 2012 Free Software Foundation, Inc. 1632 This configure script is free software; the Free Software Foundation 1633 gives unlimited permission to copy, distribute and modify it. 1634 _ACEOF 1635 exit 1636 fi 1637 1638 ## ------------------------ ## 1639 ## Autoconf initialization. ## 1640 ## ------------------------ ## 1641 1642 # ac_fn_c_try_compile LINENO 1643 # -------------------------- 1644 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1645 ac_fn_c_try_compile () 1646 { 1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1648 rm -f conftest.$ac_objext 1649 if { { ac_try="$ac_compile" 1650 case "(($ac_try" in 1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1652 *) ac_try_echo=$ac_try;; 1653 esac 1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1655 $as_echo "$ac_try_echo"; } >&5 1656 (eval "$ac_compile") 2>conftest.err 1657 ac_status=$? 1658 if test -s conftest.err; then 1659 grep -v '^ *+' conftest.err >conftest.er1 1660 cat conftest.er1 >&5 1661 mv -f conftest.er1 conftest.err 1662 fi 1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1664 test $ac_status = 0; } && { 1665 test -z "$ac_c_werror_flag" || 1666 test ! -s conftest.err 1667 } && test -s conftest.$ac_objext; then : 1668 ac_retval=0 1669 else 1670 $as_echo "$as_me: failed program was:" >&5 1671 sed 's/^/| /' conftest.$ac_ext >&5 1672 1673 ac_retval=1 1674 fi 1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1676 as_fn_set_status $ac_retval 1677 1678 } # ac_fn_c_try_compile 1679 1680 # ac_fn_c_try_cpp LINENO 1681 # ---------------------- 1682 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1683 ac_fn_c_try_cpp () 1684 { 1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1686 if { { ac_try="$ac_cpp conftest.$ac_ext" 1687 case "(($ac_try" in 1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1689 *) ac_try_echo=$ac_try;; 1690 esac 1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1692 $as_echo "$ac_try_echo"; } >&5 1693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1694 ac_status=$? 1695 if test -s conftest.err; then 1696 grep -v '^ *+' conftest.err >conftest.er1 1697 cat conftest.er1 >&5 1698 mv -f conftest.er1 conftest.err 1699 fi 1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1701 test $ac_status = 0; } > conftest.i && { 1702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1703 test ! -s conftest.err 1704 }; then : 1705 ac_retval=0 1706 else 1707 $as_echo "$as_me: failed program was:" >&5 1708 sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 ac_retval=1 1711 fi 1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1713 as_fn_set_status $ac_retval 1714 1715 } # ac_fn_c_try_cpp 1716 1717 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1718 # ------------------------------------------------------- 1719 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1720 # the include files in INCLUDES and setting the cache variable VAR 1721 # accordingly. 1722 ac_fn_c_check_header_mongrel () 1723 { 1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1725 if eval \${$3+:} false; then : 1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1727 $as_echo_n "checking for $2... " >&6; } 1728 if eval \${$3+:} false; then : 1729 $as_echo_n "(cached) " >&6 1730 fi 1731 eval ac_res=\$$3 1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1733 $as_echo "$ac_res" >&6; } 1734 else 1735 # Is the header compilable? 1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1737 $as_echo_n "checking $2 usability... " >&6; } 1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1739 /* end confdefs.h. */ 1740 $4 1741 #include <$2> 1742 _ACEOF 1743 if ac_fn_c_try_compile "$LINENO"; then : 1744 ac_header_compiler=yes 1745 else 1746 ac_header_compiler=no 1747 fi 1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1750 $as_echo "$ac_header_compiler" >&6; } 1751 1752 # Is the header present? 1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1754 $as_echo_n "checking $2 presence... " >&6; } 1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1756 /* end confdefs.h. */ 1757 #include <$2> 1758 _ACEOF 1759 if ac_fn_c_try_cpp "$LINENO"; then : 1760 ac_header_preproc=yes 1761 else 1762 ac_header_preproc=no 1763 fi 1764 rm -f conftest.err conftest.i conftest.$ac_ext 1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1766 $as_echo "$ac_header_preproc" >&6; } 1767 1768 # So? What about this header? 1769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1770 yes:no: ) 1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1772 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1774 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1775 ;; 1776 no:yes:* ) 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1778 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1780 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1782 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1784 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1786 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1787 ;; 1788 esac 1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1790 $as_echo_n "checking for $2... " >&6; } 1791 if eval \${$3+:} false; then : 1792 $as_echo_n "(cached) " >&6 1793 else 1794 eval "$3=\$ac_header_compiler" 1795 fi 1796 eval ac_res=\$$3 1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1798 $as_echo "$ac_res" >&6; } 1799 fi 1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1801 1802 } # ac_fn_c_check_header_mongrel 1803 1804 # ac_fn_c_try_run LINENO 1805 # ---------------------- 1806 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1807 # that executables *can* be run. 1808 ac_fn_c_try_run () 1809 { 1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1811 if { { ac_try="$ac_link" 1812 case "(($ac_try" in 1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1814 *) ac_try_echo=$ac_try;; 1815 esac 1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1817 $as_echo "$ac_try_echo"; } >&5 1818 (eval "$ac_link") 2>&5 1819 ac_status=$? 1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1821 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1822 { { case "(($ac_try" in 1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1824 *) ac_try_echo=$ac_try;; 1825 esac 1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1827 $as_echo "$ac_try_echo"; } >&5 1828 (eval "$ac_try") 2>&5 1829 ac_status=$? 1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1831 test $ac_status = 0; }; }; then : 1832 ac_retval=0 1833 else 1834 $as_echo "$as_me: program exited with status $ac_status" >&5 1835 $as_echo "$as_me: failed program was:" >&5 1836 sed 's/^/| /' conftest.$ac_ext >&5 1837 1838 ac_retval=$ac_status 1839 fi 1840 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1842 as_fn_set_status $ac_retval 1843 1844 } # ac_fn_c_try_run 1845 1846 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1847 # ------------------------------------------------------- 1848 # Tests whether HEADER exists and can be compiled using the include files in 1849 # INCLUDES, setting the cache variable VAR accordingly. 1850 ac_fn_c_check_header_compile () 1851 { 1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1854 $as_echo_n "checking for $2... " >&6; } 1855 if eval \${$3+:} false; then : 1856 $as_echo_n "(cached) " >&6 1857 else 1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1859 /* end confdefs.h. */ 1860 $4 1861 #include <$2> 1862 _ACEOF 1863 if ac_fn_c_try_compile "$LINENO"; then : 1864 eval "$3=yes" 1865 else 1866 eval "$3=no" 1867 fi 1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1869 fi 1870 eval ac_res=\$$3 1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1872 $as_echo "$ac_res" >&6; } 1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1874 1875 } # ac_fn_c_check_header_compile 1876 1877 # ac_fn_c_try_link LINENO 1878 # ----------------------- 1879 # Try to link conftest.$ac_ext, and return whether this succeeded. 1880 ac_fn_c_try_link () 1881 { 1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1883 rm -f conftest.$ac_objext conftest$ac_exeext 1884 if { { ac_try="$ac_link" 1885 case "(($ac_try" in 1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1887 *) ac_try_echo=$ac_try;; 1888 esac 1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1890 $as_echo "$ac_try_echo"; } >&5 1891 (eval "$ac_link") 2>conftest.err 1892 ac_status=$? 1893 if test -s conftest.err; then 1894 grep -v '^ *+' conftest.err >conftest.er1 1895 cat conftest.er1 >&5 1896 mv -f conftest.er1 conftest.err 1897 fi 1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1899 test $ac_status = 0; } && { 1900 test -z "$ac_c_werror_flag" || 1901 test ! -s conftest.err 1902 } && test -s conftest$ac_exeext && { 1903 test "$cross_compiling" = yes || 1904 test -x conftest$ac_exeext 1905 }; then : 1906 ac_retval=0 1907 else 1908 $as_echo "$as_me: failed program was:" >&5 1909 sed 's/^/| /' conftest.$ac_ext >&5 1910 1911 ac_retval=1 1912 fi 1913 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1914 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1915 # interfere with the next link command; also delete a directory that is 1916 # left behind by Apple's compiler. We do this before executing the actions. 1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1919 as_fn_set_status $ac_retval 1920 1921 } # ac_fn_c_try_link 1922 1923 # ac_fn_c_check_func LINENO FUNC VAR 1924 # ---------------------------------- 1925 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1926 ac_fn_c_check_func () 1927 { 1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1930 $as_echo_n "checking for $2... " >&6; } 1931 if eval \${$3+:} false; then : 1932 $as_echo_n "(cached) " >&6 1933 else 1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1935 /* end confdefs.h. */ 1936 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1937 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1938 #define $2 innocuous_$2 1939 1940 /* System header to define __stub macros and hopefully few prototypes, 1941 which can conflict with char $2 (); below. 1942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1943 <limits.h> exists even on freestanding compilers. */ 1944 1945 #ifdef __STDC__ 1946 # include <limits.h> 1947 #else 1948 # include <assert.h> 1949 #endif 1950 1951 #undef $2 1952 1953 /* Override any GCC internal prototype to avoid an error. 1954 Use char because int might match the return type of a GCC 1955 builtin and then its argument prototype would still apply. */ 1956 #ifdef __cplusplus 1957 extern "C" 1958 #endif 1959 char $2 (); 1960 /* The GNU C library defines this for functions which it implements 1961 to always fail with ENOSYS. Some functions are actually named 1962 something starting with __ and the normal name is an alias. */ 1963 #if defined __stub_$2 || defined __stub___$2 1964 choke me 1965 #endif 1966 1967 int 1968 main () 1969 { 1970 return $2 (); 1971 ; 1972 return 0; 1973 } 1974 _ACEOF 1975 if ac_fn_c_try_link "$LINENO"; then : 1976 eval "$3=yes" 1977 else 1978 eval "$3=no" 1979 fi 1980 rm -f core conftest.err conftest.$ac_objext \ 1981 conftest$ac_exeext conftest.$ac_ext 1982 fi 1983 eval ac_res=\$$3 1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1985 $as_echo "$ac_res" >&6; } 1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1987 1988 } # ac_fn_c_check_func 1989 1990 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1991 # -------------------------------------------- 1992 # Tries to find the compile-time value of EXPR in a program that includes 1993 # INCLUDES, setting VAR accordingly. Returns whether the value could be 1994 # computed 1995 ac_fn_c_compute_int () 1996 { 1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1998 if test "$cross_compiling" = yes; then 1999 # Depending upon the size, compute the lo and hi bounds. 2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2001 /* end confdefs.h. */ 2002 $4 2003 int 2004 main () 2005 { 2006 static int test_array [1 - 2 * !(($2) >= 0)]; 2007 test_array [0] = 0; 2008 return test_array [0]; 2009 2010 ; 2011 return 0; 2012 } 2013 _ACEOF 2014 if ac_fn_c_try_compile "$LINENO"; then : 2015 ac_lo=0 ac_mid=0 2016 while :; do 2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2018 /* end confdefs.h. */ 2019 $4 2020 int 2021 main () 2022 { 2023 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2024 test_array [0] = 0; 2025 return test_array [0]; 2026 2027 ; 2028 return 0; 2029 } 2030 _ACEOF 2031 if ac_fn_c_try_compile "$LINENO"; then : 2032 ac_hi=$ac_mid; break 2033 else 2034 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2035 if test $ac_lo -le $ac_mid; then 2036 ac_lo= ac_hi= 2037 break 2038 fi 2039 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2040 fi 2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2042 done 2043 else 2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2045 /* end confdefs.h. */ 2046 $4 2047 int 2048 main () 2049 { 2050 static int test_array [1 - 2 * !(($2) < 0)]; 2051 test_array [0] = 0; 2052 return test_array [0]; 2053 2054 ; 2055 return 0; 2056 } 2057 _ACEOF 2058 if ac_fn_c_try_compile "$LINENO"; then : 2059 ac_hi=-1 ac_mid=-1 2060 while :; do 2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2062 /* end confdefs.h. */ 2063 $4 2064 int 2065 main () 2066 { 2067 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2068 test_array [0] = 0; 2069 return test_array [0]; 2070 2071 ; 2072 return 0; 2073 } 2074 _ACEOF 2075 if ac_fn_c_try_compile "$LINENO"; then : 2076 ac_lo=$ac_mid; break 2077 else 2078 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2079 if test $ac_mid -le $ac_hi; then 2080 ac_lo= ac_hi= 2081 break 2082 fi 2083 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2084 fi 2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2086 done 2087 else 2088 ac_lo= ac_hi= 2089 fi 2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2091 fi 2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2093 # Binary search between lo and hi bounds. 2094 while test "x$ac_lo" != "x$ac_hi"; do 2095 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2097 /* end confdefs.h. */ 2098 $4 2099 int 2100 main () 2101 { 2102 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2103 test_array [0] = 0; 2104 return test_array [0]; 2105 2106 ; 2107 return 0; 2108 } 2109 _ACEOF 2110 if ac_fn_c_try_compile "$LINENO"; then : 2111 ac_hi=$ac_mid 2112 else 2113 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2114 fi 2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2116 done 2117 case $ac_lo in #(( 2118 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2119 '') ac_retval=1 ;; 2120 esac 2121 else 2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2123 /* end confdefs.h. */ 2124 $4 2125 static long int longval () { return $2; } 2126 static unsigned long int ulongval () { return $2; } 2127 #include <stdio.h> 2128 #include <stdlib.h> 2129 int 2130 main () 2131 { 2132 2133 FILE *f = fopen ("conftest.val", "w"); 2134 if (! f) 2135 return 1; 2136 if (($2) < 0) 2137 { 2138 long int i = longval (); 2139 if (i != ($2)) 2140 return 1; 2141 fprintf (f, "%ld", i); 2142 } 2143 else 2144 { 2145 unsigned long int i = ulongval (); 2146 if (i != ($2)) 2147 return 1; 2148 fprintf (f, "%lu", i); 2149 } 2150 /* Do not output a trailing newline, as this causes \r\n confusion 2151 on some platforms. */ 2152 return ferror (f) || fclose (f) != 0; 2153 2154 ; 2155 return 0; 2156 } 2157 _ACEOF 2158 if ac_fn_c_try_run "$LINENO"; then : 2159 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2160 else 2161 ac_retval=1 2162 fi 2163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2164 conftest.$ac_objext conftest.beam conftest.$ac_ext 2165 rm -f conftest.val 2166 2167 fi 2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2169 as_fn_set_status $ac_retval 2170 2171 } # ac_fn_c_compute_int 2172 2173 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2174 # --------------------------------------------- 2175 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2176 # accordingly. 2177 ac_fn_c_check_decl () 2178 { 2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2180 as_decl_name=`echo $2|sed 's/ *(.*//'` 2181 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2183 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2184 if eval \${$3+:} false; then : 2185 $as_echo_n "(cached) " >&6 2186 else 2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2188 /* end confdefs.h. */ 2189 $4 2190 int 2191 main () 2192 { 2193 #ifndef $as_decl_name 2194 #ifdef __cplusplus 2195 (void) $as_decl_use; 2196 #else 2197 (void) $as_decl_name; 2198 #endif 2199 #endif 2200 2201 ; 2202 return 0; 2203 } 2204 _ACEOF 2205 if ac_fn_c_try_compile "$LINENO"; then : 2206 eval "$3=yes" 2207 else 2208 eval "$3=no" 2209 fi 2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2211 fi 2212 eval ac_res=\$$3 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2214 $as_echo "$ac_res" >&6; } 2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2216 2217 } # ac_fn_c_check_decl 2218 cat >config.log <<_ACEOF 2219 This file contains any messages produced by compilers while 2220 running configure, to aid debugging if configure makes a mistake. 2221 2222 It was created by bfd $as_me 2.45, which was 2223 generated by GNU Autoconf 2.69. Invocation command line was 2224 2225 $ $0 $@ 2226 2227 _ACEOF 2228 exec 5>>config.log 2229 { 2230 cat <<_ASUNAME 2231 ## --------- ## 2232 ## Platform. ## 2233 ## --------- ## 2234 2235 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2236 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2237 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2238 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2239 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2240 2241 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2242 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2243 2244 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2245 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2246 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2247 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2248 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2249 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2250 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2251 2252 _ASUNAME 2253 2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2255 for as_dir in $PATH 2256 do 2257 IFS=$as_save_IFS 2258 test -z "$as_dir" && as_dir=. 2259 $as_echo "PATH: $as_dir" 2260 done 2261 IFS=$as_save_IFS 2262 2263 } >&5 2264 2265 cat >&5 <<_ACEOF 2266 2267 2268 ## ----------- ## 2269 ## Core tests. ## 2270 ## ----------- ## 2271 2272 _ACEOF 2273 2274 2275 # Keep a trace of the command line. 2276 # Strip out --no-create and --no-recursion so they do not pile up. 2277 # Strip out --silent because we don't want to record it for future runs. 2278 # Also quote any args containing shell meta-characters. 2279 # Make two passes to allow for proper duplicate-argument suppression. 2280 ac_configure_args= 2281 ac_configure_args0= 2282 ac_configure_args1= 2283 ac_must_keep_next=false 2284 for ac_pass in 1 2 2285 do 2286 for ac_arg 2287 do 2288 case $ac_arg in 2289 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2291 | -silent | --silent | --silen | --sile | --sil) 2292 continue ;; 2293 *\'*) 2294 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2295 esac 2296 case $ac_pass in 2297 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2298 2) 2299 as_fn_append ac_configure_args1 " '$ac_arg'" 2300 if test $ac_must_keep_next = true; then 2301 ac_must_keep_next=false # Got value, back to normal. 2302 else 2303 case $ac_arg in 2304 *=* | --config-cache | -C | -disable-* | --disable-* \ 2305 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2306 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2307 | -with-* | --with-* | -without-* | --without-* | --x) 2308 case "$ac_configure_args0 " in 2309 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2310 esac 2311 ;; 2312 -* ) ac_must_keep_next=true ;; 2313 esac 2314 fi 2315 as_fn_append ac_configure_args " '$ac_arg'" 2316 ;; 2317 esac 2318 done 2319 done 2320 { ac_configure_args0=; unset ac_configure_args0;} 2321 { ac_configure_args1=; unset ac_configure_args1;} 2322 2323 # When interrupted or exit'd, cleanup temporary files, and complete 2324 # config.log. We remove comments because anyway the quotes in there 2325 # would cause problems or look ugly. 2326 # WARNING: Use '\'' to represent an apostrophe within the trap. 2327 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2328 trap 'exit_status=$? 2329 # Save into config.log some information that might help in debugging. 2330 { 2331 echo 2332 2333 $as_echo "## ---------------- ## 2334 ## Cache variables. ## 2335 ## ---------------- ##" 2336 echo 2337 # The following way of writing the cache mishandles newlines in values, 2338 ( 2339 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2340 eval ac_val=\$$ac_var 2341 case $ac_val in #( 2342 *${as_nl}*) 2343 case $ac_var in #( 2344 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2345 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2346 esac 2347 case $ac_var in #( 2348 _ | IFS | as_nl) ;; #( 2349 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2350 *) { eval $ac_var=; unset $ac_var;} ;; 2351 esac ;; 2352 esac 2353 done 2354 (set) 2>&1 | 2355 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2356 *${as_nl}ac_space=\ *) 2357 sed -n \ 2358 "s/'\''/'\''\\\\'\'''\''/g; 2359 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2360 ;; #( 2361 *) 2362 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2363 ;; 2364 esac | 2365 sort 2366 ) 2367 echo 2368 2369 $as_echo "## ----------------- ## 2370 ## Output variables. ## 2371 ## ----------------- ##" 2372 echo 2373 for ac_var in $ac_subst_vars 2374 do 2375 eval ac_val=\$$ac_var 2376 case $ac_val in 2377 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2378 esac 2379 $as_echo "$ac_var='\''$ac_val'\''" 2380 done | sort 2381 echo 2382 2383 if test -n "$ac_subst_files"; then 2384 $as_echo "## ------------------- ## 2385 ## File substitutions. ## 2386 ## ------------------- ##" 2387 echo 2388 for ac_var in $ac_subst_files 2389 do 2390 eval ac_val=\$$ac_var 2391 case $ac_val in 2392 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2393 esac 2394 $as_echo "$ac_var='\''$ac_val'\''" 2395 done | sort 2396 echo 2397 fi 2398 2399 if test -s confdefs.h; then 2400 $as_echo "## ----------- ## 2401 ## confdefs.h. ## 2402 ## ----------- ##" 2403 echo 2404 cat confdefs.h 2405 echo 2406 fi 2407 test "$ac_signal" != 0 && 2408 $as_echo "$as_me: caught signal $ac_signal" 2409 $as_echo "$as_me: exit $exit_status" 2410 } >&5 2411 rm -f core *.core core.conftest.* && 2412 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2413 exit $exit_status 2414 ' 0 2415 for ac_signal in 1 2 13 15; do 2416 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2417 done 2418 ac_signal=0 2419 2420 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2421 rm -f -r conftest* confdefs.h 2422 2423 $as_echo "/* confdefs.h */" > confdefs.h 2424 2425 # Predefined preprocessor variables. 2426 2427 cat >>confdefs.h <<_ACEOF 2428 #define PACKAGE_NAME "$PACKAGE_NAME" 2429 _ACEOF 2430 2431 cat >>confdefs.h <<_ACEOF 2432 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2433 _ACEOF 2434 2435 cat >>confdefs.h <<_ACEOF 2436 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2437 _ACEOF 2438 2439 cat >>confdefs.h <<_ACEOF 2440 #define PACKAGE_STRING "$PACKAGE_STRING" 2441 _ACEOF 2442 2443 cat >>confdefs.h <<_ACEOF 2444 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2445 _ACEOF 2446 2447 cat >>confdefs.h <<_ACEOF 2448 #define PACKAGE_URL "$PACKAGE_URL" 2449 _ACEOF 2450 2451 2452 # Let the site file select an alternate cache file if it wants to. 2453 # Prefer an explicitly selected file to automatically selected ones. 2454 ac_site_file1=NONE 2455 ac_site_file2=NONE 2456 if test -n "$CONFIG_SITE"; then 2457 # We do not want a PATH search for config.site. 2458 case $CONFIG_SITE in #(( 2459 -*) ac_site_file1=./$CONFIG_SITE;; 2460 */*) ac_site_file1=$CONFIG_SITE;; 2461 *) ac_site_file1=./$CONFIG_SITE;; 2462 esac 2463 elif test "x$prefix" != xNONE; then 2464 ac_site_file1=$prefix/share/config.site 2465 ac_site_file2=$prefix/etc/config.site 2466 else 2467 ac_site_file1=$ac_default_prefix/share/config.site 2468 ac_site_file2=$ac_default_prefix/etc/config.site 2469 fi 2470 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2471 do 2472 test "x$ac_site_file" = xNONE && continue 2473 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2475 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2476 sed 's/^/| /' "$ac_site_file" >&5 2477 . "$ac_site_file" \ 2478 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2480 as_fn_error $? "failed to load site script $ac_site_file 2481 See \`config.log' for more details" "$LINENO" 5; } 2482 fi 2483 done 2484 2485 if test -r "$cache_file"; then 2486 # Some versions of bash will fail to source /dev/null (special files 2487 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2488 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2490 $as_echo "$as_me: loading cache $cache_file" >&6;} 2491 case $cache_file in 2492 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2493 *) . "./$cache_file";; 2494 esac 2495 fi 2496 else 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2498 $as_echo "$as_me: creating cache $cache_file" >&6;} 2499 >$cache_file 2500 fi 2501 2502 gt_needs="$gt_needs " 2503 as_fn_append ac_header_list " stdlib.h" 2504 as_fn_append ac_header_list " unistd.h" 2505 as_fn_append ac_header_list " sys/param.h" 2506 # Check that the precious variables saved in the cache have kept the same 2507 # value. 2508 ac_cache_corrupted=false 2509 for ac_var in $ac_precious_vars; do 2510 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2511 eval ac_new_set=\$ac_env_${ac_var}_set 2512 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2513 eval ac_new_val=\$ac_env_${ac_var}_value 2514 case $ac_old_set,$ac_new_set in 2515 set,) 2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2517 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2518 ac_cache_corrupted=: ;; 2519 ,set) 2520 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2521 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2522 ac_cache_corrupted=: ;; 2523 ,);; 2524 *) 2525 if test "x$ac_old_val" != "x$ac_new_val"; then 2526 # differences in whitespace do not lead to failure. 2527 ac_old_val_w=`echo x $ac_old_val` 2528 ac_new_val_w=`echo x $ac_new_val` 2529 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2531 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2532 ac_cache_corrupted=: 2533 else 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2535 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2536 eval $ac_var=\$ac_old_val 2537 fi 2538 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2539 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2541 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2542 fi;; 2543 esac 2544 # Pass precious variables to config.status. 2545 if test "$ac_new_set" = set; then 2546 case $ac_new_val in 2547 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2548 *) ac_arg=$ac_var=$ac_new_val ;; 2549 esac 2550 case " $ac_configure_args " in 2551 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2552 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2553 esac 2554 fi 2555 done 2556 if $ac_cache_corrupted; then 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2560 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2561 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2562 fi 2563 ## -------------------- ## 2564 ## Main body of script. ## 2565 ## -------------------- ## 2566 2567 ac_ext=c 2568 ac_cpp='$CPP $CPPFLAGS' 2569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2571 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2572 2573 2574 2575 2576 2577 2578 2579 ac_aux_dir= 2580 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2581 if test -f "$ac_dir/install-sh"; then 2582 ac_aux_dir=$ac_dir 2583 ac_install_sh="$ac_aux_dir/install-sh -c" 2584 break 2585 elif test -f "$ac_dir/install.sh"; then 2586 ac_aux_dir=$ac_dir 2587 ac_install_sh="$ac_aux_dir/install.sh -c" 2588 break 2589 elif test -f "$ac_dir/shtool"; then 2590 ac_aux_dir=$ac_dir 2591 ac_install_sh="$ac_aux_dir/shtool install -c" 2592 break 2593 fi 2594 done 2595 if test -z "$ac_aux_dir"; then 2596 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2597 fi 2598 2599 # These three variables are undocumented and unsupported, 2600 # and are intended to be withdrawn in a future Autoconf release. 2601 # They can cause serious problems if a builder's source tree is in a directory 2602 # whose full name contains unusual characters. 2603 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2604 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2605 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2606 2607 2608 # Make sure we can run config.sub. 2609 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2610 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2611 2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2613 $as_echo_n "checking build system type... " >&6; } 2614 if ${ac_cv_build+:} false; then : 2615 $as_echo_n "(cached) " >&6 2616 else 2617 ac_build_alias=$build_alias 2618 test "x$ac_build_alias" = x && 2619 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2620 test "x$ac_build_alias" = x && 2621 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2622 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2623 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2624 2625 fi 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2627 $as_echo "$ac_cv_build" >&6; } 2628 case $ac_cv_build in 2629 *-*-*) ;; 2630 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2631 esac 2632 build=$ac_cv_build 2633 ac_save_IFS=$IFS; IFS='-' 2634 set x $ac_cv_build 2635 shift 2636 build_cpu=$1 2637 build_vendor=$2 2638 shift; shift 2639 # Remember, the first character of IFS is used to create $*, 2640 # except with old shells: 2641 build_os=$* 2642 IFS=$ac_save_IFS 2643 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2644 2645 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2647 $as_echo_n "checking host system type... " >&6; } 2648 if ${ac_cv_host+:} false; then : 2649 $as_echo_n "(cached) " >&6 2650 else 2651 if test "x$host_alias" = x; then 2652 ac_cv_host=$ac_cv_build 2653 else 2654 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2655 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2656 fi 2657 2658 fi 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2660 $as_echo "$ac_cv_host" >&6; } 2661 case $ac_cv_host in 2662 *-*-*) ;; 2663 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2664 esac 2665 host=$ac_cv_host 2666 ac_save_IFS=$IFS; IFS='-' 2667 set x $ac_cv_host 2668 shift 2669 host_cpu=$1 2670 host_vendor=$2 2671 shift; shift 2672 # Remember, the first character of IFS is used to create $*, 2673 # except with old shells: 2674 host_os=$* 2675 IFS=$ac_save_IFS 2676 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2677 2678 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2680 $as_echo_n "checking target system type... " >&6; } 2681 if ${ac_cv_target+:} false; then : 2682 $as_echo_n "(cached) " >&6 2683 else 2684 if test "x$target_alias" = x; then 2685 ac_cv_target=$ac_cv_host 2686 else 2687 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2688 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2689 fi 2690 2691 fi 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2693 $as_echo "$ac_cv_target" >&6; } 2694 case $ac_cv_target in 2695 *-*-*) ;; 2696 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2697 esac 2698 target=$ac_cv_target 2699 ac_save_IFS=$IFS; IFS='-' 2700 set x $ac_cv_target 2701 shift 2702 target_cpu=$1 2703 target_vendor=$2 2704 shift; shift 2705 # Remember, the first character of IFS is used to create $*, 2706 # except with old shells: 2707 target_os=$* 2708 IFS=$ac_save_IFS 2709 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2710 2711 2712 # The aliases save the names the user supplied, while $host etc. 2713 # will get canonicalized. 2714 test -n "$target_alias" && 2715 test "$program_prefix$program_suffix$program_transform_name" = \ 2716 NONENONEs,x,x, && 2717 program_prefix=${target_alias}- 2718 2719 am__api_version='1.15' 2720 2721 # Find a good install program. We prefer a C program (faster), 2722 # so one script is as good as another. But avoid the broken or 2723 # incompatible versions: 2724 # SysV /etc/install, /usr/sbin/install 2725 # SunOS /usr/etc/install 2726 # IRIX /sbin/install 2727 # AIX /bin/install 2728 # AmigaOS /C/install, which installs bootblocks on floppy discs 2729 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2730 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2731 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2732 # OS/2's system install, which has a completely different semantic 2733 # ./install, which can be erroneously created by make from ./install.sh. 2734 # Reject install programs that cannot install multiple files. 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2736 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2737 if test -z "$INSTALL"; then 2738 if ${ac_cv_path_install+:} false; then : 2739 $as_echo_n "(cached) " >&6 2740 else 2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2742 for as_dir in $PATH 2743 do 2744 IFS=$as_save_IFS 2745 test -z "$as_dir" && as_dir=. 2746 # Account for people who put trailing slashes in PATH elements. 2747 case $as_dir/ in #(( 2748 ./ | .// | /[cC]/* | \ 2749 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2750 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2751 /usr/ucb/* ) ;; 2752 *) 2753 # OSF1 and SCO ODT 3.0 have their own names for install. 2754 # Don't use installbsd from OSF since it installs stuff as root 2755 # by default. 2756 for ac_prog in ginstall scoinst install; do 2757 for ac_exec_ext in '' $ac_executable_extensions; do 2758 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2759 if test $ac_prog = install && 2760 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2761 # AIX install. It has an incompatible calling convention. 2762 : 2763 elif test $ac_prog = install && 2764 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2765 # program-specific install script used by HP pwplus--don't use. 2766 : 2767 else 2768 rm -rf conftest.one conftest.two conftest.dir 2769 echo one > conftest.one 2770 echo two > conftest.two 2771 mkdir conftest.dir 2772 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2773 test -s conftest.one && test -s conftest.two && 2774 test -s conftest.dir/conftest.one && 2775 test -s conftest.dir/conftest.two 2776 then 2777 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2778 break 3 2779 fi 2780 fi 2781 fi 2782 done 2783 done 2784 ;; 2785 esac 2786 2787 done 2788 IFS=$as_save_IFS 2789 2790 rm -rf conftest.one conftest.two conftest.dir 2791 2792 fi 2793 if test "${ac_cv_path_install+set}" = set; then 2794 INSTALL=$ac_cv_path_install 2795 else 2796 # As a last resort, use the slow shell script. Don't cache a 2797 # value for INSTALL within a source directory, because that will 2798 # break other packages using the cache if that directory is 2799 # removed, or if the value is a relative name. 2800 INSTALL=$ac_install_sh 2801 fi 2802 fi 2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2804 $as_echo "$INSTALL" >&6; } 2805 2806 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2807 # It thinks the first close brace ends the variable substitution. 2808 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2809 2810 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2811 2812 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2813 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2815 $as_echo_n "checking whether build environment is sane... " >&6; } 2816 # Reject unsafe characters in $srcdir or the absolute working directory 2817 # name. Accept space and tab only in the latter. 2818 am_lf=' 2819 ' 2820 case `pwd` in 2821 *[\\\"\#\$\&\'\`$am_lf]*) 2822 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2823 esac 2824 case $srcdir in 2825 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2826 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2827 esac 2828 2829 # Do 'set' in a subshell so we don't clobber the current shell's 2830 # arguments. Must try -L first in case configure is actually a 2831 # symlink; some systems play weird games with the mod time of symlinks 2832 # (eg FreeBSD returns the mod time of the symlink's containing 2833 # directory). 2834 if ( 2835 am_has_slept=no 2836 for am_try in 1 2; do 2837 echo "timestamp, slept: $am_has_slept" > conftest.file 2838 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2839 if test "$*" = "X"; then 2840 # -L didn't work. 2841 set X `ls -t "$srcdir/configure" conftest.file` 2842 fi 2843 if test "$*" != "X $srcdir/configure conftest.file" \ 2844 && test "$*" != "X conftest.file $srcdir/configure"; then 2845 2846 # If neither matched, then we have a broken ls. This can happen 2847 # if, for instance, CONFIG_SHELL is bash and it inherits a 2848 # broken ls alias from the environment. This has actually 2849 # happened. Such a system could not be considered "sane". 2850 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2851 alias in your environment" "$LINENO" 5 2852 fi 2853 if test "$2" = conftest.file || test $am_try -eq 2; then 2854 break 2855 fi 2856 # Just in case. 2857 sleep 1 2858 am_has_slept=yes 2859 done 2860 test "$2" = conftest.file 2861 ) 2862 then 2863 # Ok. 2864 : 2865 else 2866 as_fn_error $? "newly created file is older than distributed files! 2867 Check your system clock" "$LINENO" 5 2868 fi 2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2870 $as_echo "yes" >&6; } 2871 # If we didn't sleep, we still need to ensure time stamps of config.status and 2872 # generated files are strictly newer. 2873 am_sleep_pid= 2874 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2875 ( sleep 1 ) & 2876 am_sleep_pid=$! 2877 fi 2878 2879 rm -f conftest.file 2880 2881 test "$program_prefix" != NONE && 2882 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2883 # Use a double $ so make ignores it. 2884 test "$program_suffix" != NONE && 2885 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2886 # Double any \ or $. 2887 # By default was `s,x,x', remove it if useless. 2888 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2889 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2890 2891 # Expand $ac_aux_dir to an absolute path. 2892 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2893 2894 if test x"${MISSING+set}" != xset; then 2895 case $am_aux_dir in 2896 *\ * | *\ *) 2897 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2898 *) 2899 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2900 esac 2901 fi 2902 # Use eval to expand $SHELL 2903 if eval "$MISSING --is-lightweight"; then 2904 am_missing_run="$MISSING " 2905 else 2906 am_missing_run= 2907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2908 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2909 fi 2910 2911 if test x"${install_sh+set}" != xset; then 2912 case $am_aux_dir in 2913 *\ * | *\ *) 2914 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2915 *) 2916 install_sh="\${SHELL} $am_aux_dir/install-sh" 2917 esac 2918 fi 2919 2920 # Installed binaries are usually stripped using 'strip' when the user 2921 # run "make install-strip". However 'strip' might not be the right 2922 # tool to use in cross-compilation environments, therefore Automake 2923 # will honor the 'STRIP' environment variable to overrule this program. 2924 if test "$cross_compiling" != no; then 2925 if test -n "$ac_tool_prefix"; then 2926 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2927 set dummy ${ac_tool_prefix}strip; ac_word=$2 2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2929 $as_echo_n "checking for $ac_word... " >&6; } 2930 if ${ac_cv_prog_STRIP+:} false; then : 2931 $as_echo_n "(cached) " >&6 2932 else 2933 if test -n "$STRIP"; then 2934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2935 else 2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2937 for as_dir in $PATH 2938 do 2939 IFS=$as_save_IFS 2940 test -z "$as_dir" && as_dir=. 2941 for ac_exec_ext in '' $ac_executable_extensions; do 2942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2943 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2945 break 2 2946 fi 2947 done 2948 done 2949 IFS=$as_save_IFS 2950 2951 fi 2952 fi 2953 STRIP=$ac_cv_prog_STRIP 2954 if test -n "$STRIP"; then 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2956 $as_echo "$STRIP" >&6; } 2957 else 2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2959 $as_echo "no" >&6; } 2960 fi 2961 2962 2963 fi 2964 if test -z "$ac_cv_prog_STRIP"; then 2965 ac_ct_STRIP=$STRIP 2966 # Extract the first word of "strip", so it can be a program name with args. 2967 set dummy strip; ac_word=$2 2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2969 $as_echo_n "checking for $ac_word... " >&6; } 2970 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2971 $as_echo_n "(cached) " >&6 2972 else 2973 if test -n "$ac_ct_STRIP"; then 2974 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2975 else 2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2977 for as_dir in $PATH 2978 do 2979 IFS=$as_save_IFS 2980 test -z "$as_dir" && as_dir=. 2981 for ac_exec_ext in '' $ac_executable_extensions; do 2982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2983 ac_cv_prog_ac_ct_STRIP="strip" 2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2985 break 2 2986 fi 2987 done 2988 done 2989 IFS=$as_save_IFS 2990 2991 fi 2992 fi 2993 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2994 if test -n "$ac_ct_STRIP"; then 2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2996 $as_echo "$ac_ct_STRIP" >&6; } 2997 else 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2999 $as_echo "no" >&6; } 3000 fi 3001 3002 if test "x$ac_ct_STRIP" = x; then 3003 STRIP=":" 3004 else 3005 case $cross_compiling:$ac_tool_warned in 3006 yes:) 3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3009 ac_tool_warned=yes ;; 3010 esac 3011 STRIP=$ac_ct_STRIP 3012 fi 3013 else 3014 STRIP="$ac_cv_prog_STRIP" 3015 fi 3016 3017 fi 3018 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3019 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3021 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3022 if test -z "$MKDIR_P"; then 3023 if ${ac_cv_path_mkdir+:} false; then : 3024 $as_echo_n "(cached) " >&6 3025 else 3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3027 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3028 do 3029 IFS=$as_save_IFS 3030 test -z "$as_dir" && as_dir=. 3031 for ac_prog in mkdir gmkdir; do 3032 for ac_exec_ext in '' $ac_executable_extensions; do 3033 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3034 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3035 'mkdir (GNU coreutils) '* | \ 3036 'mkdir (coreutils) '* | \ 3037 'mkdir (fileutils) '4.1*) 3038 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3039 break 3;; 3040 esac 3041 done 3042 done 3043 done 3044 IFS=$as_save_IFS 3045 3046 fi 3047 3048 test -d ./--version && rmdir ./--version 3049 if test "${ac_cv_path_mkdir+set}" = set; then 3050 MKDIR_P="$ac_cv_path_mkdir -p" 3051 else 3052 # As a last resort, use the slow shell script. Don't cache a 3053 # value for MKDIR_P within a source directory, because that will 3054 # break other packages using the cache if that directory is 3055 # removed, or if the value is a relative name. 3056 MKDIR_P="$ac_install_sh -d" 3057 fi 3058 fi 3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3060 $as_echo "$MKDIR_P" >&6; } 3061 3062 for ac_prog in gawk mawk nawk awk 3063 do 3064 # Extract the first word of "$ac_prog", so it can be a program name with args. 3065 set dummy $ac_prog; ac_word=$2 3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3067 $as_echo_n "checking for $ac_word... " >&6; } 3068 if ${ac_cv_prog_AWK+:} false; then : 3069 $as_echo_n "(cached) " >&6 3070 else 3071 if test -n "$AWK"; then 3072 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3073 else 3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3075 for as_dir in $PATH 3076 do 3077 IFS=$as_save_IFS 3078 test -z "$as_dir" && as_dir=. 3079 for ac_exec_ext in '' $ac_executable_extensions; do 3080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3081 ac_cv_prog_AWK="$ac_prog" 3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3083 break 2 3084 fi 3085 done 3086 done 3087 IFS=$as_save_IFS 3088 3089 fi 3090 fi 3091 AWK=$ac_cv_prog_AWK 3092 if test -n "$AWK"; then 3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3094 $as_echo "$AWK" >&6; } 3095 else 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3097 $as_echo "no" >&6; } 3098 fi 3099 3100 3101 test -n "$AWK" && break 3102 done 3103 3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3105 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3106 set x ${MAKE-make} 3107 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3108 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3109 $as_echo_n "(cached) " >&6 3110 else 3111 cat >conftest.make <<\_ACEOF 3112 SHELL = /bin/sh 3113 all: 3114 @echo '@@@%%%=$(MAKE)=@@@%%%' 3115 _ACEOF 3116 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3117 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3118 *@@@%%%=?*=@@@%%%*) 3119 eval ac_cv_prog_make_${ac_make}_set=yes;; 3120 *) 3121 eval ac_cv_prog_make_${ac_make}_set=no;; 3122 esac 3123 rm -f conftest.make 3124 fi 3125 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3127 $as_echo "yes" >&6; } 3128 SET_MAKE= 3129 else 3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3131 $as_echo "no" >&6; } 3132 SET_MAKE="MAKE=${MAKE-make}" 3133 fi 3134 3135 rm -rf .tst 2>/dev/null 3136 mkdir .tst 2>/dev/null 3137 if test -d .tst; then 3138 am__leading_dot=. 3139 else 3140 am__leading_dot=_ 3141 fi 3142 rmdir .tst 2>/dev/null 3143 3144 # Check whether --enable-silent-rules was given. 3145 if test "${enable_silent_rules+set}" = set; then : 3146 enableval=$enable_silent_rules; 3147 fi 3148 3149 case $enable_silent_rules in # ((( 3150 yes) AM_DEFAULT_VERBOSITY=0;; 3151 no) AM_DEFAULT_VERBOSITY=1;; 3152 *) AM_DEFAULT_VERBOSITY=1;; 3153 esac 3154 am_make=${MAKE-make} 3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3156 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3157 if ${am_cv_make_support_nested_variables+:} false; then : 3158 $as_echo_n "(cached) " >&6 3159 else 3160 if $as_echo 'TRUE=$(BAR$(V)) 3161 BAR0=false 3162 BAR1=true 3163 V=1 3164 am__doit: 3165 @$(TRUE) 3166 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3167 am_cv_make_support_nested_variables=yes 3168 else 3169 am_cv_make_support_nested_variables=no 3170 fi 3171 fi 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3173 $as_echo "$am_cv_make_support_nested_variables" >&6; } 3174 if test $am_cv_make_support_nested_variables = yes; then 3175 AM_V='$(V)' 3176 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3177 else 3178 AM_V=$AM_DEFAULT_VERBOSITY 3179 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3180 fi 3181 AM_BACKSLASH='\' 3182 3183 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3184 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3185 # is not polluted with repeated "-I." 3186 am__isrc=' -I$(srcdir)' 3187 # test to see if srcdir already configured 3188 if test -f $srcdir/config.status; then 3189 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3190 fi 3191 fi 3192 3193 # test whether we have cygpath 3194 if test -z "$CYGPATH_W"; then 3195 if (cygpath --version) >/dev/null 2>/dev/null; then 3196 CYGPATH_W='cygpath -w' 3197 else 3198 CYGPATH_W=echo 3199 fi 3200 fi 3201 3202 3203 # Define the identity of the package. 3204 PACKAGE='bfd' 3205 VERSION='2.45' 3206 3207 3208 cat >>confdefs.h <<_ACEOF 3209 #define PACKAGE "$PACKAGE" 3210 _ACEOF 3211 3212 3213 cat >>confdefs.h <<_ACEOF 3214 #define VERSION "$VERSION" 3215 _ACEOF 3216 3217 # Some tools Automake needs. 3218 3219 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3220 3221 3222 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3223 3224 3225 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3226 3227 3228 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3229 3230 3231 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3232 3233 # For better backward compatibility. To be removed once Automake 1.9.x 3234 # dies out for good. For more background, see: 3235 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3236 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3237 mkdir_p='$(MKDIR_P)' 3238 3239 # We need awk for the "check" target (and possibly the TAP driver). The 3240 # system "awk" is bad on some platforms. 3241 # Always define AMTAR for backward compatibility. Yes, it's still used 3242 # in the wild :-( We should find a proper way to deprecate it ... 3243 AMTAR='$${TAR-tar}' 3244 3245 3246 # We'll loop over all known methods to create a tar archive until one works. 3247 _am_tools='gnutar pax cpio none' 3248 3249 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3250 3251 3252 3253 3254 3255 3256 # POSIX will say in a future version that running "rm -f" with no argument 3257 # is OK; and we want to be able to make that assumption in our Makefile 3258 # recipes. So use an aggressive probe to check that the usage we want is 3259 # actually supported "in the wild" to an acceptable degree. 3260 # See automake bug#10828. 3261 # To make any issue more visible, cause the running configure to be aborted 3262 # by default if the 'rm' program in use doesn't match our expectations; the 3263 # user can still override this though. 3264 if rm -f && rm -fr && rm -rf; then : OK; else 3265 cat >&2 <<'END' 3266 Oops! 3267 3268 Your 'rm' program seems unable to run without file operands specified 3269 on the command line, even when the '-f' option is present. This is contrary 3270 to the behaviour of most rm programs out there, and not conforming with 3271 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3272 3273 Please tell bug-automake@gnu.org about your system, including the value 3274 of your $PATH and any error possibly output before this message. This 3275 can help us improve future automake versions. 3276 3277 END 3278 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3279 echo 'Configuration will proceed anyway, since you have set the' >&2 3280 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3281 echo >&2 3282 else 3283 cat >&2 <<'END' 3284 Aborting the configuration process, to ensure you take notice of the issue. 3285 3286 You can download and install GNU coreutils to get an 'rm' implementation 3287 that behaves properly: <http://www.gnu.org/software/coreutils/>. 3288 3289 If you want to complete the configuration process using your problematic 3290 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3291 to "yes", and re-run configure. 3292 3293 END 3294 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3295 fi 3296 fi 3297 3298 # Check whether --enable-silent-rules was given. 3299 if test "${enable_silent_rules+set}" = set; then : 3300 enableval=$enable_silent_rules; 3301 fi 3302 3303 case $enable_silent_rules in # ((( 3304 yes) AM_DEFAULT_VERBOSITY=0;; 3305 no) AM_DEFAULT_VERBOSITY=1;; 3306 *) AM_DEFAULT_VERBOSITY=0;; 3307 esac 3308 am_make=${MAKE-make} 3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3310 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3311 if ${am_cv_make_support_nested_variables+:} false; then : 3312 $as_echo_n "(cached) " >&6 3313 else 3314 if $as_echo 'TRUE=$(BAR$(V)) 3315 BAR0=false 3316 BAR1=true 3317 V=1 3318 am__doit: 3319 @$(TRUE) 3320 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3321 am_cv_make_support_nested_variables=yes 3322 else 3323 am_cv_make_support_nested_variables=no 3324 fi 3325 fi 3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3327 $as_echo "$am_cv_make_support_nested_variables" >&6; } 3328 if test $am_cv_make_support_nested_variables = yes; then 3329 AM_V='$(V)' 3330 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3331 else 3332 AM_V=$AM_DEFAULT_VERBOSITY 3333 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3334 fi 3335 AM_BACKSLASH='\' 3336 3337 3338 if test -n "$ac_tool_prefix"; then 3339 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 3340 set dummy ${ac_tool_prefix}ar; ac_word=$2 3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3342 $as_echo_n "checking for $ac_word... " >&6; } 3343 if ${ac_cv_prog_AR+:} false; then : 3344 $as_echo_n "(cached) " >&6 3345 else 3346 if test -n "$AR"; then 3347 ac_cv_prog_AR="$AR" # Let the user override the test. 3348 else 3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3350 for as_dir in $PATH 3351 do 3352 IFS=$as_save_IFS 3353 test -z "$as_dir" && as_dir=. 3354 for ac_exec_ext in '' $ac_executable_extensions; do 3355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3356 ac_cv_prog_AR="${ac_tool_prefix}ar" 3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3358 break 2 3359 fi 3360 done 3361 done 3362 IFS=$as_save_IFS 3363 3364 fi 3365 fi 3366 AR=$ac_cv_prog_AR 3367 if test -n "$AR"; then 3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 3369 $as_echo "$AR" >&6; } 3370 else 3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3372 $as_echo "no" >&6; } 3373 fi 3374 3375 3376 fi 3377 if test -z "$ac_cv_prog_AR"; then 3378 ac_ct_AR=$AR 3379 # Extract the first word of "ar", so it can be a program name with args. 3380 set dummy ar; ac_word=$2 3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3382 $as_echo_n "checking for $ac_word... " >&6; } 3383 if ${ac_cv_prog_ac_ct_AR+:} false; then : 3384 $as_echo_n "(cached) " >&6 3385 else 3386 if test -n "$ac_ct_AR"; then 3387 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 3388 else 3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3390 for as_dir in $PATH 3391 do 3392 IFS=$as_save_IFS 3393 test -z "$as_dir" && as_dir=. 3394 for ac_exec_ext in '' $ac_executable_extensions; do 3395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3396 ac_cv_prog_ac_ct_AR="ar" 3397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3398 break 2 3399 fi 3400 done 3401 done 3402 IFS=$as_save_IFS 3403 3404 fi 3405 fi 3406 ac_ct_AR=$ac_cv_prog_ac_ct_AR 3407 if test -n "$ac_ct_AR"; then 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 3409 $as_echo "$ac_ct_AR" >&6; } 3410 else 3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3412 $as_echo "no" >&6; } 3413 fi 3414 3415 if test "x$ac_ct_AR" = x; then 3416 AR="" 3417 else 3418 case $cross_compiling:$ac_tool_warned in 3419 yes:) 3420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3422 ac_tool_warned=yes ;; 3423 esac 3424 AR=$ac_ct_AR 3425 fi 3426 else 3427 AR="$ac_cv_prog_AR" 3428 fi 3429 3430 if test -n "$ac_tool_prefix"; then 3431 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3432 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3434 $as_echo_n "checking for $ac_word... " >&6; } 3435 if ${ac_cv_prog_RANLIB+:} false; then : 3436 $as_echo_n "(cached) " >&6 3437 else 3438 if test -n "$RANLIB"; then 3439 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3440 else 3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3442 for as_dir in $PATH 3443 do 3444 IFS=$as_save_IFS 3445 test -z "$as_dir" && as_dir=. 3446 for ac_exec_ext in '' $ac_executable_extensions; do 3447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3448 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3450 break 2 3451 fi 3452 done 3453 done 3454 IFS=$as_save_IFS 3455 3456 fi 3457 fi 3458 RANLIB=$ac_cv_prog_RANLIB 3459 if test -n "$RANLIB"; then 3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3461 $as_echo "$RANLIB" >&6; } 3462 else 3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3464 $as_echo "no" >&6; } 3465 fi 3466 3467 3468 fi 3469 if test -z "$ac_cv_prog_RANLIB"; then 3470 ac_ct_RANLIB=$RANLIB 3471 # Extract the first word of "ranlib", so it can be a program name with args. 3472 set dummy ranlib; ac_word=$2 3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3474 $as_echo_n "checking for $ac_word... " >&6; } 3475 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 3476 $as_echo_n "(cached) " >&6 3477 else 3478 if test -n "$ac_ct_RANLIB"; then 3479 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3480 else 3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3482 for as_dir in $PATH 3483 do 3484 IFS=$as_save_IFS 3485 test -z "$as_dir" && as_dir=. 3486 for ac_exec_ext in '' $ac_executable_extensions; do 3487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3488 ac_cv_prog_ac_ct_RANLIB="ranlib" 3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3490 break 2 3491 fi 3492 done 3493 done 3494 IFS=$as_save_IFS 3495 3496 fi 3497 fi 3498 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3499 if test -n "$ac_ct_RANLIB"; then 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 3501 $as_echo "$ac_ct_RANLIB" >&6; } 3502 else 3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3504 $as_echo "no" >&6; } 3505 fi 3506 3507 if test "x$ac_ct_RANLIB" = x; then 3508 RANLIB=":" 3509 else 3510 case $cross_compiling:$ac_tool_warned in 3511 yes:) 3512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3514 ac_tool_warned=yes ;; 3515 esac 3516 RANLIB=$ac_ct_RANLIB 3517 fi 3518 else 3519 RANLIB="$ac_cv_prog_RANLIB" 3520 fi 3521 3522 3523 # Check whether --enable-shared was given. 3524 if test "${enable_shared+set}" = set; then : 3525 enableval=$enable_shared; p=${PACKAGE-default} 3526 case $enableval in 3527 yes) enable_shared=yes ;; 3528 no) enable_shared=no ;; 3529 *) 3530 enable_shared=no 3531 # Look at the argument we got. We use all the common list separators. 3532 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3533 for pkg in $enableval; do 3534 IFS="$lt_save_ifs" 3535 if test "X$pkg" = "X$p"; then 3536 enable_shared=yes 3537 fi 3538 done 3539 IFS="$lt_save_ifs" 3540 ;; 3541 esac 3542 else 3543 enable_shared=no 3544 fi 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 ac_ext=c 3556 ac_cpp='$CPP $CPPFLAGS' 3557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3560 if test -n "$ac_tool_prefix"; then 3561 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3562 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3564 $as_echo_n "checking for $ac_word... " >&6; } 3565 if ${ac_cv_prog_CC+:} false; then : 3566 $as_echo_n "(cached) " >&6 3567 else 3568 if test -n "$CC"; then 3569 ac_cv_prog_CC="$CC" # Let the user override the test. 3570 else 3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3572 for as_dir in $PATH 3573 do 3574 IFS=$as_save_IFS 3575 test -z "$as_dir" && as_dir=. 3576 for ac_exec_ext in '' $ac_executable_extensions; do 3577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3578 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3580 break 2 3581 fi 3582 done 3583 done 3584 IFS=$as_save_IFS 3585 3586 fi 3587 fi 3588 CC=$ac_cv_prog_CC 3589 if test -n "$CC"; then 3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3591 $as_echo "$CC" >&6; } 3592 else 3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3594 $as_echo "no" >&6; } 3595 fi 3596 3597 3598 fi 3599 if test -z "$ac_cv_prog_CC"; then 3600 ac_ct_CC=$CC 3601 # Extract the first word of "gcc", so it can be a program name with args. 3602 set dummy gcc; ac_word=$2 3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3604 $as_echo_n "checking for $ac_word... " >&6; } 3605 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3606 $as_echo_n "(cached) " >&6 3607 else 3608 if test -n "$ac_ct_CC"; then 3609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3610 else 3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3612 for as_dir in $PATH 3613 do 3614 IFS=$as_save_IFS 3615 test -z "$as_dir" && as_dir=. 3616 for ac_exec_ext in '' $ac_executable_extensions; do 3617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3618 ac_cv_prog_ac_ct_CC="gcc" 3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3620 break 2 3621 fi 3622 done 3623 done 3624 IFS=$as_save_IFS 3625 3626 fi 3627 fi 3628 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3629 if test -n "$ac_ct_CC"; then 3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3631 $as_echo "$ac_ct_CC" >&6; } 3632 else 3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3634 $as_echo "no" >&6; } 3635 fi 3636 3637 if test "x$ac_ct_CC" = x; then 3638 CC="" 3639 else 3640 case $cross_compiling:$ac_tool_warned in 3641 yes:) 3642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3644 ac_tool_warned=yes ;; 3645 esac 3646 CC=$ac_ct_CC 3647 fi 3648 else 3649 CC="$ac_cv_prog_CC" 3650 fi 3651 3652 if test -z "$CC"; then 3653 if test -n "$ac_tool_prefix"; then 3654 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3655 set dummy ${ac_tool_prefix}cc; ac_word=$2 3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3657 $as_echo_n "checking for $ac_word... " >&6; } 3658 if ${ac_cv_prog_CC+:} false; then : 3659 $as_echo_n "(cached) " >&6 3660 else 3661 if test -n "$CC"; then 3662 ac_cv_prog_CC="$CC" # Let the user override the test. 3663 else 3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3665 for as_dir in $PATH 3666 do 3667 IFS=$as_save_IFS 3668 test -z "$as_dir" && as_dir=. 3669 for ac_exec_ext in '' $ac_executable_extensions; do 3670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3671 ac_cv_prog_CC="${ac_tool_prefix}cc" 3672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3673 break 2 3674 fi 3675 done 3676 done 3677 IFS=$as_save_IFS 3678 3679 fi 3680 fi 3681 CC=$ac_cv_prog_CC 3682 if test -n "$CC"; then 3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3684 $as_echo "$CC" >&6; } 3685 else 3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3687 $as_echo "no" >&6; } 3688 fi 3689 3690 3691 fi 3692 fi 3693 if test -z "$CC"; then 3694 # Extract the first word of "cc", so it can be a program name with args. 3695 set dummy cc; ac_word=$2 3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3697 $as_echo_n "checking for $ac_word... " >&6; } 3698 if ${ac_cv_prog_CC+:} false; then : 3699 $as_echo_n "(cached) " >&6 3700 else 3701 if test -n "$CC"; then 3702 ac_cv_prog_CC="$CC" # Let the user override the test. 3703 else 3704 ac_prog_rejected=no 3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3706 for as_dir in $PATH 3707 do 3708 IFS=$as_save_IFS 3709 test -z "$as_dir" && as_dir=. 3710 for ac_exec_ext in '' $ac_executable_extensions; do 3711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3712 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3713 ac_prog_rejected=yes 3714 continue 3715 fi 3716 ac_cv_prog_CC="cc" 3717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3718 break 2 3719 fi 3720 done 3721 done 3722 IFS=$as_save_IFS 3723 3724 if test $ac_prog_rejected = yes; then 3725 # We found a bogon in the path, so make sure we never use it. 3726 set dummy $ac_cv_prog_CC 3727 shift 3728 if test $# != 0; then 3729 # We chose a different compiler from the bogus one. 3730 # However, it has the same basename, so the bogon will be chosen 3731 # first if we set CC to just the basename; use the full file name. 3732 shift 3733 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3734 fi 3735 fi 3736 fi 3737 fi 3738 CC=$ac_cv_prog_CC 3739 if test -n "$CC"; then 3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3741 $as_echo "$CC" >&6; } 3742 else 3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3744 $as_echo "no" >&6; } 3745 fi 3746 3747 3748 fi 3749 if test -z "$CC"; then 3750 if test -n "$ac_tool_prefix"; then 3751 for ac_prog in cl.exe 3752 do 3753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3756 $as_echo_n "checking for $ac_word... " >&6; } 3757 if ${ac_cv_prog_CC+:} false; then : 3758 $as_echo_n "(cached) " >&6 3759 else 3760 if test -n "$CC"; then 3761 ac_cv_prog_CC="$CC" # Let the user override the test. 3762 else 3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3764 for as_dir in $PATH 3765 do 3766 IFS=$as_save_IFS 3767 test -z "$as_dir" && as_dir=. 3768 for ac_exec_ext in '' $ac_executable_extensions; do 3769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3770 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3772 break 2 3773 fi 3774 done 3775 done 3776 IFS=$as_save_IFS 3777 3778 fi 3779 fi 3780 CC=$ac_cv_prog_CC 3781 if test -n "$CC"; then 3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3783 $as_echo "$CC" >&6; } 3784 else 3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3786 $as_echo "no" >&6; } 3787 fi 3788 3789 3790 test -n "$CC" && break 3791 done 3792 fi 3793 if test -z "$CC"; then 3794 ac_ct_CC=$CC 3795 for ac_prog in cl.exe 3796 do 3797 # Extract the first word of "$ac_prog", so it can be a program name with args. 3798 set dummy $ac_prog; ac_word=$2 3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3800 $as_echo_n "checking for $ac_word... " >&6; } 3801 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3802 $as_echo_n "(cached) " >&6 3803 else 3804 if test -n "$ac_ct_CC"; then 3805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3806 else 3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3808 for as_dir in $PATH 3809 do 3810 IFS=$as_save_IFS 3811 test -z "$as_dir" && as_dir=. 3812 for ac_exec_ext in '' $ac_executable_extensions; do 3813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3814 ac_cv_prog_ac_ct_CC="$ac_prog" 3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3816 break 2 3817 fi 3818 done 3819 done 3820 IFS=$as_save_IFS 3821 3822 fi 3823 fi 3824 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3825 if test -n "$ac_ct_CC"; then 3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3827 $as_echo "$ac_ct_CC" >&6; } 3828 else 3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3830 $as_echo "no" >&6; } 3831 fi 3832 3833 3834 test -n "$ac_ct_CC" && break 3835 done 3836 3837 if test "x$ac_ct_CC" = x; then 3838 CC="" 3839 else 3840 case $cross_compiling:$ac_tool_warned in 3841 yes:) 3842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3844 ac_tool_warned=yes ;; 3845 esac 3846 CC=$ac_ct_CC 3847 fi 3848 fi 3849 3850 fi 3851 3852 3853 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3855 as_fn_error $? "no acceptable C compiler found in \$PATH 3856 See \`config.log' for more details" "$LINENO" 5; } 3857 3858 # Provide some information about the compiler. 3859 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3860 set X $ac_compile 3861 ac_compiler=$2 3862 for ac_option in --version -v -V -qversion; do 3863 { { ac_try="$ac_compiler $ac_option >&5" 3864 case "(($ac_try" in 3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3866 *) ac_try_echo=$ac_try;; 3867 esac 3868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3869 $as_echo "$ac_try_echo"; } >&5 3870 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3871 ac_status=$? 3872 if test -s conftest.err; then 3873 sed '10a\ 3874 ... rest of stderr output deleted ... 3875 10q' conftest.err >conftest.er1 3876 cat conftest.er1 >&5 3877 fi 3878 rm -f conftest.er1 conftest.err 3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3880 test $ac_status = 0; } 3881 done 3882 3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3884 /* end confdefs.h. */ 3885 3886 int 3887 main () 3888 { 3889 3890 ; 3891 return 0; 3892 } 3893 _ACEOF 3894 ac_clean_files_save=$ac_clean_files 3895 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3896 # Try to create an executable without -o first, disregard a.out. 3897 # It will help us diagnose broken compilers, and finding out an intuition 3898 # of exeext. 3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3900 $as_echo_n "checking whether the C compiler works... " >&6; } 3901 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3902 3903 # The possible output files: 3904 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3905 3906 ac_rmfiles= 3907 for ac_file in $ac_files 3908 do 3909 case $ac_file in 3910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3911 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3912 esac 3913 done 3914 rm -f $ac_rmfiles 3915 3916 if { { ac_try="$ac_link_default" 3917 case "(($ac_try" in 3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3919 *) ac_try_echo=$ac_try;; 3920 esac 3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3922 $as_echo "$ac_try_echo"; } >&5 3923 (eval "$ac_link_default") 2>&5 3924 ac_status=$? 3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3926 test $ac_status = 0; }; then : 3927 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3928 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3929 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3930 # so that the user can short-circuit this test for compilers unknown to 3931 # Autoconf. 3932 for ac_file in $ac_files '' 3933 do 3934 test -f "$ac_file" || continue 3935 case $ac_file in 3936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3937 ;; 3938 [ab].out ) 3939 # We found the default executable, but exeext='' is most 3940 # certainly right. 3941 break;; 3942 *.* ) 3943 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3944 then :; else 3945 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3946 fi 3947 # We set ac_cv_exeext here because the later test for it is not 3948 # safe: cross compilers may not add the suffix if given an `-o' 3949 # argument, so we may need to know it at that point already. 3950 # Even if this section looks crufty: it has the advantage of 3951 # actually working. 3952 break;; 3953 * ) 3954 break;; 3955 esac 3956 done 3957 test "$ac_cv_exeext" = no && ac_cv_exeext= 3958 3959 else 3960 ac_file='' 3961 fi 3962 if test -z "$ac_file"; then : 3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3964 $as_echo "no" >&6; } 3965 $as_echo "$as_me: failed program was:" >&5 3966 sed 's/^/| /' conftest.$ac_ext >&5 3967 3968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3970 as_fn_error 77 "C compiler cannot create executables 3971 See \`config.log' for more details" "$LINENO" 5; } 3972 else 3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3974 $as_echo "yes" >&6; } 3975 fi 3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3977 $as_echo_n "checking for C compiler default output file name... " >&6; } 3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3979 $as_echo "$ac_file" >&6; } 3980 ac_exeext=$ac_cv_exeext 3981 3982 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3983 ac_clean_files=$ac_clean_files_save 3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3985 $as_echo_n "checking for suffix of executables... " >&6; } 3986 if { { ac_try="$ac_link" 3987 case "(($ac_try" in 3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3989 *) ac_try_echo=$ac_try;; 3990 esac 3991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3992 $as_echo "$ac_try_echo"; } >&5 3993 (eval "$ac_link") 2>&5 3994 ac_status=$? 3995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3996 test $ac_status = 0; }; then : 3997 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3998 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3999 # work properly (i.e., refer to `conftest.exe'), while it won't with 4000 # `rm'. 4001 for ac_file in conftest.exe conftest conftest.*; do 4002 test -f "$ac_file" || continue 4003 case $ac_file in 4004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4005 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4006 break;; 4007 * ) break;; 4008 esac 4009 done 4010 else 4011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4013 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4014 See \`config.log' for more details" "$LINENO" 5; } 4015 fi 4016 rm -f conftest conftest$ac_cv_exeext 4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4018 $as_echo "$ac_cv_exeext" >&6; } 4019 4020 rm -f conftest.$ac_ext 4021 EXEEXT=$ac_cv_exeext 4022 ac_exeext=$EXEEXT 4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4024 /* end confdefs.h. */ 4025 #include <stdio.h> 4026 int 4027 main () 4028 { 4029 FILE *f = fopen ("conftest.out", "w"); 4030 return ferror (f) || fclose (f) != 0; 4031 4032 ; 4033 return 0; 4034 } 4035 _ACEOF 4036 ac_clean_files="$ac_clean_files conftest.out" 4037 # Check that the compiler produces executables we can run. If not, either 4038 # the compiler is broken, or we cross compile. 4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4040 $as_echo_n "checking whether we are cross compiling... " >&6; } 4041 if test "$cross_compiling" != yes; then 4042 { { ac_try="$ac_link" 4043 case "(($ac_try" in 4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4045 *) ac_try_echo=$ac_try;; 4046 esac 4047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4048 $as_echo "$ac_try_echo"; } >&5 4049 (eval "$ac_link") 2>&5 4050 ac_status=$? 4051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4052 test $ac_status = 0; } 4053 if { ac_try='./conftest$ac_cv_exeext' 4054 { { case "(($ac_try" in 4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4056 *) ac_try_echo=$ac_try;; 4057 esac 4058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4059 $as_echo "$ac_try_echo"; } >&5 4060 (eval "$ac_try") 2>&5 4061 ac_status=$? 4062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4063 test $ac_status = 0; }; }; then 4064 cross_compiling=no 4065 else 4066 if test "$cross_compiling" = maybe; then 4067 cross_compiling=yes 4068 else 4069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4071 as_fn_error $? "cannot run C compiled programs. 4072 If you meant to cross compile, use \`--host'. 4073 See \`config.log' for more details" "$LINENO" 5; } 4074 fi 4075 fi 4076 fi 4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4078 $as_echo "$cross_compiling" >&6; } 4079 4080 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4081 ac_clean_files=$ac_clean_files_save 4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4083 $as_echo_n "checking for suffix of object files... " >&6; } 4084 if ${ac_cv_objext+:} false; then : 4085 $as_echo_n "(cached) " >&6 4086 else 4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4088 /* end confdefs.h. */ 4089 4090 int 4091 main () 4092 { 4093 4094 ; 4095 return 0; 4096 } 4097 _ACEOF 4098 rm -f conftest.o conftest.obj 4099 if { { ac_try="$ac_compile" 4100 case "(($ac_try" in 4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4102 *) ac_try_echo=$ac_try;; 4103 esac 4104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4105 $as_echo "$ac_try_echo"; } >&5 4106 (eval "$ac_compile") 2>&5 4107 ac_status=$? 4108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4109 test $ac_status = 0; }; then : 4110 for ac_file in conftest.o conftest.obj conftest.*; do 4111 test -f "$ac_file" || continue; 4112 case $ac_file in 4113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4114 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4115 break;; 4116 esac 4117 done 4118 else 4119 $as_echo "$as_me: failed program was:" >&5 4120 sed 's/^/| /' conftest.$ac_ext >&5 4121 4122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4124 as_fn_error $? "cannot compute suffix of object files: cannot compile 4125 See \`config.log' for more details" "$LINENO" 5; } 4126 fi 4127 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4128 fi 4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4130 $as_echo "$ac_cv_objext" >&6; } 4131 OBJEXT=$ac_cv_objext 4132 ac_objext=$OBJEXT 4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4134 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4135 if ${ac_cv_c_compiler_gnu+:} false; then : 4136 $as_echo_n "(cached) " >&6 4137 else 4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4139 /* end confdefs.h. */ 4140 4141 int 4142 main () 4143 { 4144 #ifndef __GNUC__ 4145 choke me 4146 #endif 4147 4148 ; 4149 return 0; 4150 } 4151 _ACEOF 4152 if ac_fn_c_try_compile "$LINENO"; then : 4153 ac_compiler_gnu=yes 4154 else 4155 ac_compiler_gnu=no 4156 fi 4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4158 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4159 4160 fi 4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4162 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 4163 if test $ac_compiler_gnu = yes; then 4164 GCC=yes 4165 else 4166 GCC= 4167 fi 4168 ac_test_CFLAGS=${CFLAGS+set} 4169 ac_save_CFLAGS=$CFLAGS 4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4171 $as_echo_n "checking whether $CC accepts -g... " >&6; } 4172 if ${ac_cv_prog_cc_g+:} false; then : 4173 $as_echo_n "(cached) " >&6 4174 else 4175 ac_save_c_werror_flag=$ac_c_werror_flag 4176 ac_c_werror_flag=yes 4177 ac_cv_prog_cc_g=no 4178 CFLAGS="-g" 4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4180 /* end confdefs.h. */ 4181 4182 int 4183 main () 4184 { 4185 4186 ; 4187 return 0; 4188 } 4189 _ACEOF 4190 if ac_fn_c_try_compile "$LINENO"; then : 4191 ac_cv_prog_cc_g=yes 4192 else 4193 CFLAGS="" 4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4195 /* end confdefs.h. */ 4196 4197 int 4198 main () 4199 { 4200 4201 ; 4202 return 0; 4203 } 4204 _ACEOF 4205 if ac_fn_c_try_compile "$LINENO"; then : 4206 4207 else 4208 ac_c_werror_flag=$ac_save_c_werror_flag 4209 CFLAGS="-g" 4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4211 /* end confdefs.h. */ 4212 4213 int 4214 main () 4215 { 4216 4217 ; 4218 return 0; 4219 } 4220 _ACEOF 4221 if ac_fn_c_try_compile "$LINENO"; then : 4222 ac_cv_prog_cc_g=yes 4223 fi 4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4225 fi 4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4227 fi 4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4229 ac_c_werror_flag=$ac_save_c_werror_flag 4230 fi 4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4232 $as_echo "$ac_cv_prog_cc_g" >&6; } 4233 if test "$ac_test_CFLAGS" = set; then 4234 CFLAGS=$ac_save_CFLAGS 4235 elif test $ac_cv_prog_cc_g = yes; then 4236 if test "$GCC" = yes; then 4237 CFLAGS="-g -O2" 4238 else 4239 CFLAGS="-g" 4240 fi 4241 else 4242 if test "$GCC" = yes; then 4243 CFLAGS="-O2" 4244 else 4245 CFLAGS= 4246 fi 4247 fi 4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4249 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4250 if ${ac_cv_prog_cc_c89+:} false; then : 4251 $as_echo_n "(cached) " >&6 4252 else 4253 ac_cv_prog_cc_c89=no 4254 ac_save_CC=$CC 4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4256 /* end confdefs.h. */ 4257 #include <stdarg.h> 4258 #include <stdio.h> 4259 struct stat; 4260 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4261 struct buf { int x; }; 4262 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4263 static char *e (p, i) 4264 char **p; 4265 int i; 4266 { 4267 return p[i]; 4268 } 4269 static char *f (char * (*g) (char **, int), char **p, ...) 4270 { 4271 char *s; 4272 va_list v; 4273 va_start (v,p); 4274 s = g (p, va_arg (v,int)); 4275 va_end (v); 4276 return s; 4277 } 4278 4279 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4280 function prototypes and stuff, but not '\xHH' hex character constants. 4281 These don't provoke an error unfortunately, instead are silently treated 4282 as 'x'. The following induces an error, until -std is added to get 4283 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4284 array size at least. It's necessary to write '\x00'==0 to get something 4285 that's true only with -std. */ 4286 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4287 4288 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4289 inside strings and character constants. */ 4290 #define FOO(x) 'x' 4291 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4292 4293 int test (int i, double x); 4294 struct s1 {int (*f) (int a);}; 4295 struct s2 {int (*f) (double a);}; 4296 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4297 int argc; 4298 char **argv; 4299 int 4300 main () 4301 { 4302 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4303 ; 4304 return 0; 4305 } 4306 _ACEOF 4307 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4308 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4309 do 4310 CC="$ac_save_CC $ac_arg" 4311 if ac_fn_c_try_compile "$LINENO"; then : 4312 ac_cv_prog_cc_c89=$ac_arg 4313 fi 4314 rm -f core conftest.err conftest.$ac_objext 4315 test "x$ac_cv_prog_cc_c89" != "xno" && break 4316 done 4317 rm -f conftest.$ac_ext 4318 CC=$ac_save_CC 4319 4320 fi 4321 # AC_CACHE_VAL 4322 case "x$ac_cv_prog_cc_c89" in 4323 x) 4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4325 $as_echo "none needed" >&6; } ;; 4326 xno) 4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4328 $as_echo "unsupported" >&6; } ;; 4329 *) 4330 CC="$CC $ac_cv_prog_cc_c89" 4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4332 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4333 esac 4334 if test "x$ac_cv_prog_cc_c89" != xno; then : 4335 4336 fi 4337 4338 ac_ext=c 4339 ac_cpp='$CPP $CPPFLAGS' 4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4343 4344 ac_ext=c 4345 ac_cpp='$CPP $CPPFLAGS' 4346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4348 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4350 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4351 if ${am_cv_prog_cc_c_o+:} false; then : 4352 $as_echo_n "(cached) " >&6 4353 else 4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4355 /* end confdefs.h. */ 4356 4357 int 4358 main () 4359 { 4360 4361 ; 4362 return 0; 4363 } 4364 _ACEOF 4365 # Make sure it works both with $CC and with simple cc. 4366 # Following AC_PROG_CC_C_O, we do the test twice because some 4367 # compilers refuse to overwrite an existing .o file with -o, 4368 # though they will create one. 4369 am_cv_prog_cc_c_o=yes 4370 for am_i in 1 2; do 4371 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4372 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4373 ac_status=$? 4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4375 (exit $ac_status); } \ 4376 && test -f conftest2.$ac_objext; then 4377 : OK 4378 else 4379 am_cv_prog_cc_c_o=no 4380 break 4381 fi 4382 done 4383 rm -f core conftest* 4384 unset am_i 4385 fi 4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4387 $as_echo "$am_cv_prog_cc_c_o" >&6; } 4388 if test "$am_cv_prog_cc_c_o" != yes; then 4389 # Losing compiler, so override with the script. 4390 # FIXME: It is wrong to rewrite CC. 4391 # But if we don't then we get into trouble of one sort or another. 4392 # A longer-term fix would be to have automake use am__CC in this case, 4393 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4394 CC="$am_aux_dir/compile $CC" 4395 fi 4396 ac_ext=c 4397 ac_cpp='$CPP $CPPFLAGS' 4398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4400 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4401 4402 DEPDIR="${am__leading_dot}deps" 4403 4404 ac_config_commands="$ac_config_commands depfiles" 4405 4406 4407 am_make=${MAKE-make} 4408 cat > confinc << 'END' 4409 am__doit: 4410 @echo this is the am__doit target 4411 .PHONY: am__doit 4412 END 4413 # If we don't find an include directive, just comment out the code. 4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4415 $as_echo_n "checking for style of include used by $am_make... " >&6; } 4416 am__include="#" 4417 am__quote= 4418 _am_result=none 4419 # First try GNU make style include. 4420 echo "include confinc" > confmf 4421 # Ignore all kinds of additional output from 'make'. 4422 case `$am_make -s -f confmf 2> /dev/null` in #( 4423 *the\ am__doit\ target*) 4424 am__include=include 4425 am__quote= 4426 _am_result=GNU 4427 ;; 4428 esac 4429 # Now try BSD make style include. 4430 if test "$am__include" = "#"; then 4431 echo '.include "confinc"' > confmf 4432 case `$am_make -s -f confmf 2> /dev/null` in #( 4433 *the\ am__doit\ target*) 4434 am__include=.include 4435 am__quote="\"" 4436 _am_result=BSD 4437 ;; 4438 esac 4439 fi 4440 4441 4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4443 $as_echo "$_am_result" >&6; } 4444 rm -f confinc confmf 4445 4446 # Check whether --enable-dependency-tracking was given. 4447 if test "${enable_dependency_tracking+set}" = set; then : 4448 enableval=$enable_dependency_tracking; 4449 fi 4450 4451 if test "x$enable_dependency_tracking" != xno; then 4452 am_depcomp="$ac_aux_dir/depcomp" 4453 AMDEPBACKSLASH='\' 4454 am__nodep='_no' 4455 fi 4456 if test "x$enable_dependency_tracking" != xno; then 4457 AMDEP_TRUE= 4458 AMDEP_FALSE='#' 4459 else 4460 AMDEP_TRUE='#' 4461 AMDEP_FALSE= 4462 fi 4463 4464 4465 4466 depcc="$CC" am_compiler_list= 4467 4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4469 $as_echo_n "checking dependency style of $depcc... " >&6; } 4470 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4471 $as_echo_n "(cached) " >&6 4472 else 4473 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4474 # We make a subdir and do the tests there. Otherwise we can end up 4475 # making bogus files that we don't know about and never remove. For 4476 # instance it was reported that on HP-UX the gcc test will end up 4477 # making a dummy file named 'D' -- because '-MD' means "put the output 4478 # in D". 4479 rm -rf conftest.dir 4480 mkdir conftest.dir 4481 # Copy depcomp to subdir because otherwise we won't find it if we're 4482 # using a relative directory. 4483 cp "$am_depcomp" conftest.dir 4484 cd conftest.dir 4485 # We will build objects and dependencies in a subdirectory because 4486 # it helps to detect inapplicable dependency modes. For instance 4487 # both Tru64's cc and ICC support -MD to output dependencies as a 4488 # side effect of compilation, but ICC will put the dependencies in 4489 # the current directory while Tru64 will put them in the object 4490 # directory. 4491 mkdir sub 4492 4493 am_cv_CC_dependencies_compiler_type=none 4494 if test "$am_compiler_list" = ""; then 4495 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4496 fi 4497 am__universal=false 4498 case " $depcc " in #( 4499 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4500 esac 4501 4502 for depmode in $am_compiler_list; do 4503 # Setup a source with many dependencies, because some compilers 4504 # like to wrap large dependency lists on column 80 (with \), and 4505 # we should not choose a depcomp mode which is confused by this. 4506 # 4507 # We need to recreate these files for each test, as the compiler may 4508 # overwrite some of them when testing with obscure command lines. 4509 # This happens at least with the AIX C compiler. 4510 : > sub/conftest.c 4511 for i in 1 2 3 4 5 6; do 4512 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4513 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4514 # Solaris 10 /bin/sh. 4515 echo '/* dummy */' > sub/conftst$i.h 4516 done 4517 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4518 4519 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4520 # mode. It turns out that the SunPro C++ compiler does not properly 4521 # handle '-M -o', and we need to detect this. Also, some Intel 4522 # versions had trouble with output in subdirs. 4523 am__obj=sub/conftest.${OBJEXT-o} 4524 am__minus_obj="-o $am__obj" 4525 case $depmode in 4526 gcc) 4527 # This depmode causes a compiler race in universal mode. 4528 test "$am__universal" = false || continue 4529 ;; 4530 nosideeffect) 4531 # After this tag, mechanisms are not by side-effect, so they'll 4532 # only be used when explicitly requested. 4533 if test "x$enable_dependency_tracking" = xyes; then 4534 continue 4535 else 4536 break 4537 fi 4538 ;; 4539 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4540 # This compiler won't grok '-c -o', but also, the minuso test has 4541 # not run yet. These depmodes are late enough in the game, and 4542 # so weak that their functioning should not be impacted. 4543 am__obj=conftest.${OBJEXT-o} 4544 am__minus_obj= 4545 ;; 4546 none) break ;; 4547 esac 4548 if depmode=$depmode \ 4549 source=sub/conftest.c object=$am__obj \ 4550 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4551 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4552 >/dev/null 2>conftest.err && 4553 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4554 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4555 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4556 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4557 # icc doesn't choke on unknown options, it will just issue warnings 4558 # or remarks (even with -Werror). So we grep stderr for any message 4559 # that says an option was ignored or not supported. 4560 # When given -MP, icc 7.0 and 7.1 complain thusly: 4561 # icc: Command line warning: ignoring option '-M'; no argument required 4562 # The diagnosis changed in icc 8.0: 4563 # icc: Command line remark: option '-MP' not supported 4564 if (grep 'ignoring option' conftest.err || 4565 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4566 am_cv_CC_dependencies_compiler_type=$depmode 4567 break 4568 fi 4569 fi 4570 done 4571 4572 cd .. 4573 rm -rf conftest.dir 4574 else 4575 am_cv_CC_dependencies_compiler_type=none 4576 fi 4577 4578 fi 4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4580 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4581 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4582 4583 if 4584 test "x$enable_dependency_tracking" != xno \ 4585 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4586 am__fastdepCC_TRUE= 4587 am__fastdepCC_FALSE='#' 4588 else 4589 am__fastdepCC_TRUE='#' 4590 am__fastdepCC_FALSE= 4591 fi 4592 4593 4594 4595 ac_ext=c 4596 ac_cpp='$CPP $CPPFLAGS' 4597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4599 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4601 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4602 # On Suns, sometimes $CPP names a directory. 4603 if test -n "$CPP" && test -d "$CPP"; then 4604 CPP= 4605 fi 4606 if test -z "$CPP"; then 4607 if ${ac_cv_prog_CPP+:} false; then : 4608 $as_echo_n "(cached) " >&6 4609 else 4610 # Double quotes because CPP needs to be expanded 4611 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4612 do 4613 ac_preproc_ok=false 4614 for ac_c_preproc_warn_flag in '' yes 4615 do 4616 # Use a header file that comes with gcc, so configuring glibc 4617 # with a fresh cross-compiler works. 4618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4619 # <limits.h> exists even on freestanding compilers. 4620 # On the NeXT, cc -E runs the code through the compiler's parser, 4621 # not just through cpp. "Syntax error" is here to catch this case. 4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4623 /* end confdefs.h. */ 4624 #ifdef __STDC__ 4625 # include <limits.h> 4626 #else 4627 # include <assert.h> 4628 #endif 4629 Syntax error 4630 _ACEOF 4631 if ac_fn_c_try_cpp "$LINENO"; then : 4632 4633 else 4634 # Broken: fails on valid input. 4635 continue 4636 fi 4637 rm -f conftest.err conftest.i conftest.$ac_ext 4638 4639 # OK, works on sane cases. Now check whether nonexistent headers 4640 # can be detected and how. 4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4642 /* end confdefs.h. */ 4643 #include <ac_nonexistent.h> 4644 _ACEOF 4645 if ac_fn_c_try_cpp "$LINENO"; then : 4646 # Broken: success on invalid input. 4647 continue 4648 else 4649 # Passes both tests. 4650 ac_preproc_ok=: 4651 break 4652 fi 4653 rm -f conftest.err conftest.i conftest.$ac_ext 4654 4655 done 4656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4657 rm -f conftest.i conftest.err conftest.$ac_ext 4658 if $ac_preproc_ok; then : 4659 break 4660 fi 4661 4662 done 4663 ac_cv_prog_CPP=$CPP 4664 4665 fi 4666 CPP=$ac_cv_prog_CPP 4667 else 4668 ac_cv_prog_CPP=$CPP 4669 fi 4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4671 $as_echo "$CPP" >&6; } 4672 ac_preproc_ok=false 4673 for ac_c_preproc_warn_flag in '' yes 4674 do 4675 # Use a header file that comes with gcc, so configuring glibc 4676 # with a fresh cross-compiler works. 4677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4678 # <limits.h> exists even on freestanding compilers. 4679 # On the NeXT, cc -E runs the code through the compiler's parser, 4680 # not just through cpp. "Syntax error" is here to catch this case. 4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4682 /* end confdefs.h. */ 4683 #ifdef __STDC__ 4684 # include <limits.h> 4685 #else 4686 # include <assert.h> 4687 #endif 4688 Syntax error 4689 _ACEOF 4690 if ac_fn_c_try_cpp "$LINENO"; then : 4691 4692 else 4693 # Broken: fails on valid input. 4694 continue 4695 fi 4696 rm -f conftest.err conftest.i conftest.$ac_ext 4697 4698 # OK, works on sane cases. Now check whether nonexistent headers 4699 # can be detected and how. 4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4701 /* end confdefs.h. */ 4702 #include <ac_nonexistent.h> 4703 _ACEOF 4704 if ac_fn_c_try_cpp "$LINENO"; then : 4705 # Broken: success on invalid input. 4706 continue 4707 else 4708 # Passes both tests. 4709 ac_preproc_ok=: 4710 break 4711 fi 4712 rm -f conftest.err conftest.i conftest.$ac_ext 4713 4714 done 4715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4716 rm -f conftest.i conftest.err conftest.$ac_ext 4717 if $ac_preproc_ok; then : 4718 4719 else 4720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4722 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4723 See \`config.log' for more details" "$LINENO" 5; } 4724 fi 4725 4726 ac_ext=c 4727 ac_cpp='$CPP $CPPFLAGS' 4728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4730 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4731 4732 4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4734 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4735 if ${ac_cv_path_GREP+:} false; then : 4736 $as_echo_n "(cached) " >&6 4737 else 4738 if test -z "$GREP"; then 4739 ac_path_GREP_found=false 4740 # Loop through the user's path and test for each of PROGNAME-LIST 4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4743 do 4744 IFS=$as_save_IFS 4745 test -z "$as_dir" && as_dir=. 4746 for ac_prog in grep ggrep; do 4747 for ac_exec_ext in '' $ac_executable_extensions; do 4748 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4749 as_fn_executable_p "$ac_path_GREP" || continue 4750 # Check for GNU ac_path_GREP and select it if it is found. 4751 # Check for GNU $ac_path_GREP 4752 case `"$ac_path_GREP" --version 2>&1` in 4753 *GNU*) 4754 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4755 *) 4756 ac_count=0 4757 $as_echo_n 0123456789 >"conftest.in" 4758 while : 4759 do 4760 cat "conftest.in" "conftest.in" >"conftest.tmp" 4761 mv "conftest.tmp" "conftest.in" 4762 cp "conftest.in" "conftest.nl" 4763 $as_echo 'GREP' >> "conftest.nl" 4764 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4766 as_fn_arith $ac_count + 1 && ac_count=$as_val 4767 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4768 # Best one so far, save it but keep looking for a better one 4769 ac_cv_path_GREP="$ac_path_GREP" 4770 ac_path_GREP_max=$ac_count 4771 fi 4772 # 10*(2^10) chars as input seems more than enough 4773 test $ac_count -gt 10 && break 4774 done 4775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4776 esac 4777 4778 $ac_path_GREP_found && break 3 4779 done 4780 done 4781 done 4782 IFS=$as_save_IFS 4783 if test -z "$ac_cv_path_GREP"; then 4784 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4785 fi 4786 else 4787 ac_cv_path_GREP=$GREP 4788 fi 4789 4790 fi 4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4792 $as_echo "$ac_cv_path_GREP" >&6; } 4793 GREP="$ac_cv_path_GREP" 4794 4795 4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4797 $as_echo_n "checking for egrep... " >&6; } 4798 if ${ac_cv_path_EGREP+:} false; then : 4799 $as_echo_n "(cached) " >&6 4800 else 4801 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4802 then ac_cv_path_EGREP="$GREP -E" 4803 else 4804 if test -z "$EGREP"; then 4805 ac_path_EGREP_found=false 4806 # Loop through the user's path and test for each of PROGNAME-LIST 4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4808 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4809 do 4810 IFS=$as_save_IFS 4811 test -z "$as_dir" && as_dir=. 4812 for ac_prog in egrep; do 4813 for ac_exec_ext in '' $ac_executable_extensions; do 4814 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4815 as_fn_executable_p "$ac_path_EGREP" || continue 4816 # Check for GNU ac_path_EGREP and select it if it is found. 4817 # Check for GNU $ac_path_EGREP 4818 case `"$ac_path_EGREP" --version 2>&1` in 4819 *GNU*) 4820 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4821 *) 4822 ac_count=0 4823 $as_echo_n 0123456789 >"conftest.in" 4824 while : 4825 do 4826 cat "conftest.in" "conftest.in" >"conftest.tmp" 4827 mv "conftest.tmp" "conftest.in" 4828 cp "conftest.in" "conftest.nl" 4829 $as_echo 'EGREP' >> "conftest.nl" 4830 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4831 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4832 as_fn_arith $ac_count + 1 && ac_count=$as_val 4833 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4834 # Best one so far, save it but keep looking for a better one 4835 ac_cv_path_EGREP="$ac_path_EGREP" 4836 ac_path_EGREP_max=$ac_count 4837 fi 4838 # 10*(2^10) chars as input seems more than enough 4839 test $ac_count -gt 10 && break 4840 done 4841 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4842 esac 4843 4844 $ac_path_EGREP_found && break 3 4845 done 4846 done 4847 done 4848 IFS=$as_save_IFS 4849 if test -z "$ac_cv_path_EGREP"; then 4850 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4851 fi 4852 else 4853 ac_cv_path_EGREP=$EGREP 4854 fi 4855 4856 fi 4857 fi 4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4859 $as_echo "$ac_cv_path_EGREP" >&6; } 4860 EGREP="$ac_cv_path_EGREP" 4861 4862 4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4864 $as_echo_n "checking for ANSI C header files... " >&6; } 4865 if ${ac_cv_header_stdc+:} false; then : 4866 $as_echo_n "(cached) " >&6 4867 else 4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4869 /* end confdefs.h. */ 4870 #include <stdlib.h> 4871 #include <stdarg.h> 4872 #include <string.h> 4873 #include <float.h> 4874 4875 int 4876 main () 4877 { 4878 4879 ; 4880 return 0; 4881 } 4882 _ACEOF 4883 if ac_fn_c_try_compile "$LINENO"; then : 4884 ac_cv_header_stdc=yes 4885 else 4886 ac_cv_header_stdc=no 4887 fi 4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4889 4890 if test $ac_cv_header_stdc = yes; then 4891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4893 /* end confdefs.h. */ 4894 #include <string.h> 4895 4896 _ACEOF 4897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4898 $EGREP "memchr" >/dev/null 2>&1; then : 4899 4900 else 4901 ac_cv_header_stdc=no 4902 fi 4903 rm -f conftest* 4904 4905 fi 4906 4907 if test $ac_cv_header_stdc = yes; then 4908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4910 /* end confdefs.h. */ 4911 #include <stdlib.h> 4912 4913 _ACEOF 4914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4915 $EGREP "free" >/dev/null 2>&1; then : 4916 4917 else 4918 ac_cv_header_stdc=no 4919 fi 4920 rm -f conftest* 4921 4922 fi 4923 4924 if test $ac_cv_header_stdc = yes; then 4925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4926 if test "$cross_compiling" = yes; then : 4927 : 4928 else 4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4930 /* end confdefs.h. */ 4931 #include <ctype.h> 4932 #include <stdlib.h> 4933 #if ((' ' & 0x0FF) == 0x020) 4934 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4935 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4936 #else 4937 # define ISLOWER(c) \ 4938 (('a' <= (c) && (c) <= 'i') \ 4939 || ('j' <= (c) && (c) <= 'r') \ 4940 || ('s' <= (c) && (c) <= 'z')) 4941 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4942 #endif 4943 4944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4945 int 4946 main () 4947 { 4948 int i; 4949 for (i = 0; i < 256; i++) 4950 if (XOR (islower (i), ISLOWER (i)) 4951 || toupper (i) != TOUPPER (i)) 4952 return 2; 4953 return 0; 4954 } 4955 _ACEOF 4956 if ac_fn_c_try_run "$LINENO"; then : 4957 4958 else 4959 ac_cv_header_stdc=no 4960 fi 4961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4962 conftest.$ac_objext conftest.beam conftest.$ac_ext 4963 fi 4964 4965 fi 4966 fi 4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4968 $as_echo "$ac_cv_header_stdc" >&6; } 4969 if test $ac_cv_header_stdc = yes; then 4970 4971 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4972 4973 fi 4974 4975 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4976 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4977 inttypes.h stdint.h unistd.h 4978 do : 4979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4980 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4981 " 4982 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4983 cat >>confdefs.h <<_ACEOF 4984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4985 _ACEOF 4986 4987 fi 4988 4989 done 4990 4991 4992 4993 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4994 if test "x$ac_cv_header_minix_config_h" = xyes; then : 4995 MINIX=yes 4996 else 4997 MINIX= 4998 fi 4999 5000 5001 if test "$MINIX" = yes; then 5002 5003 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5004 5005 5006 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5007 5008 5009 $as_echo "#define _MINIX 1" >>confdefs.h 5010 5011 fi 5012 5013 5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5015 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5016 if ${ac_cv_safe_to_define___extensions__+:} false; then : 5017 $as_echo_n "(cached) " >&6 5018 else 5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5020 /* end confdefs.h. */ 5021 5022 # define __EXTENSIONS__ 1 5023 $ac_includes_default 5024 int 5025 main () 5026 { 5027 5028 ; 5029 return 0; 5030 } 5031 _ACEOF 5032 if ac_fn_c_try_compile "$LINENO"; then : 5033 ac_cv_safe_to_define___extensions__=yes 5034 else 5035 ac_cv_safe_to_define___extensions__=no 5036 fi 5037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5038 fi 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5040 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5041 test $ac_cv_safe_to_define___extensions__ = yes && 5042 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5043 5044 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5045 5046 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5047 5048 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5049 5050 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5051 5052 5053 5054 case `pwd` in 5055 *\ * | *\ *) 5056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5057 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5058 esac 5059 5060 5061 5062 macro_version='2.2.7a' 5063 macro_revision='1.3134' 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 ltmain="$ac_aux_dir/ltmain.sh" 5078 5079 # Backslashify metacharacters that are still active within 5080 # double-quoted strings. 5081 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5082 5083 # Same as above, but do not quote variable references. 5084 double_quote_subst='s/\(["`\\]\)/\\\1/g' 5085 5086 # Sed substitution to delay expansion of an escaped shell variable in a 5087 # double_quote_subst'ed string. 5088 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5089 5090 # Sed substitution to delay expansion of an escaped single quote. 5091 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5092 5093 # Sed substitution to avoid accidental globbing in evaled expressions 5094 no_glob_subst='s/\*/\\\*/g' 5095 5096 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5097 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5098 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5099 5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5101 $as_echo_n "checking how to print strings... " >&6; } 5102 # Test print first, because it will be a builtin if present. 5103 if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 5104 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5105 ECHO='print -r --' 5106 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5107 ECHO='printf %s\n' 5108 else 5109 # Use this function as a fallback that always works. 5110 func_fallback_echo () 5111 { 5112 eval 'cat <<_LTECHO_EOF 5113 $1 5114 _LTECHO_EOF' 5115 } 5116 ECHO='func_fallback_echo' 5117 fi 5118 5119 # func_echo_all arg... 5120 # Invoke $ECHO with all args, space-separated. 5121 func_echo_all () 5122 { 5123 $ECHO "" 5124 } 5125 5126 case "$ECHO" in 5127 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5128 $as_echo "printf" >&6; } ;; 5129 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5130 $as_echo "print -r" >&6; } ;; 5131 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5132 $as_echo "cat" >&6; } ;; 5133 esac 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5149 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 5150 if ${ac_cv_path_SED+:} false; then : 5151 $as_echo_n "(cached) " >&6 5152 else 5153 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5154 for ac_i in 1 2 3 4 5 6 7; do 5155 ac_script="$ac_script$as_nl$ac_script" 5156 done 5157 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5158 { ac_script=; unset ac_script;} 5159 if test -z "$SED"; then 5160 ac_path_SED_found=false 5161 # Loop through the user's path and test for each of PROGNAME-LIST 5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5163 for as_dir in $PATH 5164 do 5165 IFS=$as_save_IFS 5166 test -z "$as_dir" && as_dir=. 5167 for ac_prog in sed gsed; do 5168 for ac_exec_ext in '' $ac_executable_extensions; do 5169 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5170 as_fn_executable_p "$ac_path_SED" || continue 5171 # Check for GNU ac_path_SED and select it if it is found. 5172 # Check for GNU $ac_path_SED 5173 case `"$ac_path_SED" --version 2>&1` in 5174 *GNU*) 5175 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5176 *) 5177 ac_count=0 5178 $as_echo_n 0123456789 >"conftest.in" 5179 while : 5180 do 5181 cat "conftest.in" "conftest.in" >"conftest.tmp" 5182 mv "conftest.tmp" "conftest.in" 5183 cp "conftest.in" "conftest.nl" 5184 $as_echo '' >> "conftest.nl" 5185 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5187 as_fn_arith $ac_count + 1 && ac_count=$as_val 5188 if test $ac_count -gt ${ac_path_SED_max-0}; then 5189 # Best one so far, save it but keep looking for a better one 5190 ac_cv_path_SED="$ac_path_SED" 5191 ac_path_SED_max=$ac_count 5192 fi 5193 # 10*(2^10) chars as input seems more than enough 5194 test $ac_count -gt 10 && break 5195 done 5196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5197 esac 5198 5199 $ac_path_SED_found && break 3 5200 done 5201 done 5202 done 5203 IFS=$as_save_IFS 5204 if test -z "$ac_cv_path_SED"; then 5205 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5206 fi 5207 else 5208 ac_cv_path_SED=$SED 5209 fi 5210 5211 fi 5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5213 $as_echo "$ac_cv_path_SED" >&6; } 5214 SED="$ac_cv_path_SED" 5215 rm -f conftest.sed 5216 5217 test -z "$SED" && SED=sed 5218 Xsed="$SED -e 1s/^X//" 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5231 $as_echo_n "checking for fgrep... " >&6; } 5232 if ${ac_cv_path_FGREP+:} false; then : 5233 $as_echo_n "(cached) " >&6 5234 else 5235 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5236 then ac_cv_path_FGREP="$GREP -F" 5237 else 5238 if test -z "$FGREP"; then 5239 ac_path_FGREP_found=false 5240 # Loop through the user's path and test for each of PROGNAME-LIST 5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5243 do 5244 IFS=$as_save_IFS 5245 test -z "$as_dir" && as_dir=. 5246 for ac_prog in fgrep; do 5247 for ac_exec_ext in '' $ac_executable_extensions; do 5248 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5249 as_fn_executable_p "$ac_path_FGREP" || continue 5250 # Check for GNU ac_path_FGREP and select it if it is found. 5251 # Check for GNU $ac_path_FGREP 5252 case `"$ac_path_FGREP" --version 2>&1` in 5253 *GNU*) 5254 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5255 *) 5256 ac_count=0 5257 $as_echo_n 0123456789 >"conftest.in" 5258 while : 5259 do 5260 cat "conftest.in" "conftest.in" >"conftest.tmp" 5261 mv "conftest.tmp" "conftest.in" 5262 cp "conftest.in" "conftest.nl" 5263 $as_echo 'FGREP' >> "conftest.nl" 5264 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5266 as_fn_arith $ac_count + 1 && ac_count=$as_val 5267 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5268 # Best one so far, save it but keep looking for a better one 5269 ac_cv_path_FGREP="$ac_path_FGREP" 5270 ac_path_FGREP_max=$ac_count 5271 fi 5272 # 10*(2^10) chars as input seems more than enough 5273 test $ac_count -gt 10 && break 5274 done 5275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5276 esac 5277 5278 $ac_path_FGREP_found && break 3 5279 done 5280 done 5281 done 5282 IFS=$as_save_IFS 5283 if test -z "$ac_cv_path_FGREP"; then 5284 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5285 fi 5286 else 5287 ac_cv_path_FGREP=$FGREP 5288 fi 5289 5290 fi 5291 fi 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5293 $as_echo "$ac_cv_path_FGREP" >&6; } 5294 FGREP="$ac_cv_path_FGREP" 5295 5296 5297 test -z "$GREP" && GREP=grep 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 # Check whether --with-gnu-ld was given. 5318 if test "${with_gnu_ld+set}" = set; then : 5319 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5320 else 5321 with_gnu_ld=no 5322 fi 5323 5324 ac_prog=ld 5325 if test "$GCC" = yes; then 5326 # Check if gcc -print-prog-name=ld gives a path. 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5328 $as_echo_n "checking for ld used by $CC... " >&6; } 5329 case $host in 5330 *-*-mingw*) 5331 # gcc leaves a trailing carriage return which upsets mingw 5332 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5333 *) 5334 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5335 esac 5336 case $ac_prog in 5337 # Accept absolute paths. 5338 [\\/]* | ?:[\\/]*) 5339 re_direlt='/[^/][^/]*/\.\./' 5340 # Canonicalize the pathname of ld 5341 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5342 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5343 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5344 done 5345 test -z "$LD" && LD="$ac_prog" 5346 ;; 5347 "") 5348 # If it fails, then pretend we aren't using GCC. 5349 ac_prog=ld 5350 ;; 5351 *) 5352 # If it is relative, then search for the first ld in PATH. 5353 with_gnu_ld=unknown 5354 ;; 5355 esac 5356 elif test "$with_gnu_ld" = yes; then 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5358 $as_echo_n "checking for GNU ld... " >&6; } 5359 else 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5361 $as_echo_n "checking for non-GNU ld... " >&6; } 5362 fi 5363 if ${lt_cv_path_LD+:} false; then : 5364 $as_echo_n "(cached) " >&6 5365 else 5366 if test -z "$LD"; then 5367 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5368 for ac_dir in $PATH; do 5369 IFS="$lt_save_ifs" 5370 test -z "$ac_dir" && ac_dir=. 5371 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5372 lt_cv_path_LD="$ac_dir/$ac_prog" 5373 # Check to see if the program is GNU ld. I'd rather use --version, 5374 # but apparently some variants of GNU ld only accept -v. 5375 # Break only if it was the GNU/non-GNU ld that we prefer. 5376 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5377 *GNU* | *'with BFD'*) 5378 test "$with_gnu_ld" != no && break 5379 ;; 5380 *) 5381 test "$with_gnu_ld" != yes && break 5382 ;; 5383 esac 5384 fi 5385 done 5386 IFS="$lt_save_ifs" 5387 else 5388 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5389 fi 5390 fi 5391 5392 LD="$lt_cv_path_LD" 5393 if test -n "$LD"; then 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5395 $as_echo "$LD" >&6; } 5396 else 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5398 $as_echo "no" >&6; } 5399 fi 5400 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5402 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5403 if ${lt_cv_prog_gnu_ld+:} false; then : 5404 $as_echo_n "(cached) " >&6 5405 else 5406 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5407 case `$LD -v 2>&1 </dev/null` in 5408 *GNU* | *'with BFD'*) 5409 lt_cv_prog_gnu_ld=yes 5410 ;; 5411 *) 5412 lt_cv_prog_gnu_ld=no 5413 ;; 5414 esac 5415 fi 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5417 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 5418 with_gnu_ld=$lt_cv_prog_gnu_ld 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5429 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5430 if ${lt_cv_path_NM+:} false; then : 5431 $as_echo_n "(cached) " >&6 5432 else 5433 if test -n "$NM"; then 5434 # Let the user override the nm to test. 5435 lt_nm_to_check="$NM" 5436 else 5437 lt_nm_to_check="${ac_tool_prefix}nm" 5438 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5439 lt_nm_to_check="$lt_nm_to_check nm" 5440 fi 5441 fi 5442 for lt_tmp_nm in "$lt_nm_to_check"; do 5443 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5444 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5445 IFS="$lt_save_ifs" 5446 test -z "$ac_dir" && ac_dir=. 5447 # Strip out any user-provided options from the nm to test twice, 5448 # the first time to test to see if nm (rather than its options) has 5449 # an explicit path, the second time to yield a file which can be 5450 # nm'ed itself. 5451 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" 5452 case "$tmp_nm_path" in 5453 */*|*\\*) tmp_nm="$lt_tmp_nm";; 5454 *) tmp_nm="$ac_dir/$lt_tmp_nm";; 5455 esac 5456 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" 5457 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then 5458 # Check to see if the nm accepts a BSD-compat flag. 5459 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5460 # nm: unknown option "B" ignored 5461 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 5462 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" 5463 break 5464 ;; 5465 *) 5466 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 5467 *$tmp_nm*) 5468 lt_cv_path_NM="$tmp_nm -p" 5469 break 5470 ;; 5471 *) 5472 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5473 continue # so that we can try to find one that supports BSD flags 5474 ;; 5475 esac 5476 ;; 5477 esac 5478 fi 5479 done 5480 IFS="$lt_save_ifs" 5481 done 5482 : ${lt_cv_path_NM=no} 5483 fi 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5485 $as_echo "$lt_cv_path_NM" >&6; } 5486 if test "$lt_cv_path_NM" != "no"; then 5487 NM="$lt_cv_path_NM" 5488 else 5489 # Didn't find any BSD compatible name lister, look for dumpbin. 5490 if test -n "$DUMPBIN"; then : 5491 # Let the user override the test. 5492 else 5493 if test -n "$ac_tool_prefix"; then 5494 for ac_prog in dumpbin "link -dump" 5495 do 5496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5499 $as_echo_n "checking for $ac_word... " >&6; } 5500 if ${ac_cv_prog_DUMPBIN+:} false; then : 5501 $as_echo_n "(cached) " >&6 5502 else 5503 if test -n "$DUMPBIN"; then 5504 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5505 else 5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5507 for as_dir in $PATH 5508 do 5509 IFS=$as_save_IFS 5510 test -z "$as_dir" && as_dir=. 5511 for ac_exec_ext in '' $ac_executable_extensions; do 5512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5513 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5515 break 2 5516 fi 5517 done 5518 done 5519 IFS=$as_save_IFS 5520 5521 fi 5522 fi 5523 DUMPBIN=$ac_cv_prog_DUMPBIN 5524 if test -n "$DUMPBIN"; then 5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5526 $as_echo "$DUMPBIN" >&6; } 5527 else 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5529 $as_echo "no" >&6; } 5530 fi 5531 5532 5533 test -n "$DUMPBIN" && break 5534 done 5535 fi 5536 if test -z "$DUMPBIN"; then 5537 ac_ct_DUMPBIN=$DUMPBIN 5538 for ac_prog in dumpbin "link -dump" 5539 do 5540 # Extract the first word of "$ac_prog", so it can be a program name with args. 5541 set dummy $ac_prog; ac_word=$2 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5543 $as_echo_n "checking for $ac_word... " >&6; } 5544 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5545 $as_echo_n "(cached) " >&6 5546 else 5547 if test -n "$ac_ct_DUMPBIN"; then 5548 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5549 else 5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5551 for as_dir in $PATH 5552 do 5553 IFS=$as_save_IFS 5554 test -z "$as_dir" && as_dir=. 5555 for ac_exec_ext in '' $ac_executable_extensions; do 5556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5557 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5559 break 2 5560 fi 5561 done 5562 done 5563 IFS=$as_save_IFS 5564 5565 fi 5566 fi 5567 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5568 if test -n "$ac_ct_DUMPBIN"; then 5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5570 $as_echo "$ac_ct_DUMPBIN" >&6; } 5571 else 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5573 $as_echo "no" >&6; } 5574 fi 5575 5576 5577 test -n "$ac_ct_DUMPBIN" && break 5578 done 5579 5580 if test "x$ac_ct_DUMPBIN" = x; then 5581 DUMPBIN=":" 5582 else 5583 case $cross_compiling:$ac_tool_warned in 5584 yes:) 5585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5587 ac_tool_warned=yes ;; 5588 esac 5589 DUMPBIN=$ac_ct_DUMPBIN 5590 fi 5591 fi 5592 5593 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5594 *COFF*) 5595 DUMPBIN="$DUMPBIN -symbols" 5596 ;; 5597 *) 5598 DUMPBIN=: 5599 ;; 5600 esac 5601 fi 5602 5603 if test "$DUMPBIN" != ":"; then 5604 NM="$DUMPBIN" 5605 fi 5606 fi 5607 test -z "$NM" && NM=nm 5608 5609 5610 5611 5612 5613 5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5615 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 5616 if ${lt_cv_nm_interface+:} false; then : 5617 $as_echo_n "(cached) " >&6 5618 else 5619 lt_cv_nm_interface="BSD nm" 5620 echo "int some_variable = 0;" > conftest.$ac_ext 5621 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5622 (eval "$ac_compile" 2>conftest.err) 5623 cat conftest.err >&5 5624 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5625 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5626 cat conftest.err >&5 5627 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5628 cat conftest.out >&5 5629 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5630 lt_cv_nm_interface="MS dumpbin" 5631 fi 5632 rm -f conftest* 5633 fi 5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5635 $as_echo "$lt_cv_nm_interface" >&6; } 5636 5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5638 $as_echo_n "checking whether ln -s works... " >&6; } 5639 LN_S=$as_ln_s 5640 if test "$LN_S" = "ln -s"; then 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5642 $as_echo "yes" >&6; } 5643 else 5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5645 $as_echo "no, using $LN_S" >&6; } 5646 fi 5647 5648 # find the maximum length of command line arguments 5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5650 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 5651 if ${lt_cv_sys_max_cmd_len+:} false; then : 5652 $as_echo_n "(cached) " >&6 5653 else 5654 i=0 5655 teststring="ABCD" 5656 5657 case $build_os in 5658 msdosdjgpp*) 5659 # On DJGPP, this test can blow up pretty badly due to problems in libc 5660 # (any single argument exceeding 2000 bytes causes a buffer overrun 5661 # during glob expansion). Even if it were fixed, the result of this 5662 # check would be larger than it should be. 5663 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5664 ;; 5665 5666 gnu*) 5667 # Under GNU Hurd, this test is not required because there is 5668 # no limit to the length of command line arguments. 5669 # Libtool will interpret -1 as no limit whatsoever 5670 lt_cv_sys_max_cmd_len=-1; 5671 ;; 5672 5673 cygwin* | mingw* | cegcc*) 5674 # On Win9x/ME, this test blows up -- it succeeds, but takes 5675 # about 5 minutes as the teststring grows exponentially. 5676 # Worse, since 9x/ME are not pre-emptively multitasking, 5677 # you end up with a "frozen" computer, even though with patience 5678 # the test eventually succeeds (with a max line length of 256k). 5679 # Instead, let's just punt: use the minimum linelength reported by 5680 # all of the supported platforms: 8192 (on NT/2K/XP). 5681 lt_cv_sys_max_cmd_len=8192; 5682 ;; 5683 5684 mint*) 5685 # On MiNT this can take a long time and run out of memory. 5686 lt_cv_sys_max_cmd_len=8192; 5687 ;; 5688 5689 amigaos*) 5690 # On AmigaOS with pdksh, this test takes hours, literally. 5691 # So we just punt and use a minimum line length of 8192. 5692 lt_cv_sys_max_cmd_len=8192; 5693 ;; 5694 5695 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5696 # This has been around since 386BSD, at least. Likely further. 5697 if test -x /sbin/sysctl; then 5698 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5699 elif test -x /usr/sbin/sysctl; then 5700 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5701 else 5702 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5703 fi 5704 # And add a safety zone 5705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5707 ;; 5708 5709 interix*) 5710 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5711 lt_cv_sys_max_cmd_len=196608 5712 ;; 5713 5714 osf*) 5715 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5716 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5717 # nice to cause kernel panics so lets avoid the loop below. 5718 # First set a reasonable default. 5719 lt_cv_sys_max_cmd_len=16384 5720 # 5721 if test -x /sbin/sysconfig; then 5722 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5723 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5724 esac 5725 fi 5726 ;; 5727 sco3.2v5*) 5728 lt_cv_sys_max_cmd_len=102400 5729 ;; 5730 sysv5* | sco5v6* | sysv4.2uw2*) 5731 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5732 if test -n "$kargmax"; then 5733 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5734 else 5735 lt_cv_sys_max_cmd_len=32768 5736 fi 5737 ;; 5738 *) 5739 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5740 if test -n "$lt_cv_sys_max_cmd_len"; then 5741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5742 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5743 else 5744 # Make teststring a little bigger before we do anything with it. 5745 # a 1K string should be a reasonable start. 5746 for i in 1 2 3 4 5 6 7 8 ; do 5747 teststring=$teststring$teststring 5748 done 5749 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5750 # If test is not a shell built-in, we'll probably end up computing a 5751 # maximum length that is only half of the actual maximum length, but 5752 # we can't tell. 5753 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5754 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5755 test $i != 17 # 1/2 MB should be enough 5756 do 5757 i=`expr $i + 1` 5758 teststring=$teststring$teststring 5759 done 5760 # Only check the string length outside the loop. 5761 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5762 teststring= 5763 # Add a significant safety factor because C++ compilers can tack on 5764 # massive amounts of additional arguments before passing them to the 5765 # linker. It appears as though 1/2 is a usable value. 5766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5767 fi 5768 ;; 5769 esac 5770 5771 fi 5772 5773 if test -n $lt_cv_sys_max_cmd_len ; then 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5775 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5776 else 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5778 $as_echo "none" >&6; } 5779 fi 5780 max_cmd_len=$lt_cv_sys_max_cmd_len 5781 5782 5783 5784 5785 5786 5787 : ${CP="cp -f"} 5788 : ${MV="mv -f"} 5789 : ${RM="rm -f"} 5790 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5792 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5793 # Try some XSI features 5794 xsi_shell=no 5795 ( _lt_dummy="a/b/c" 5796 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5797 = c,a/b,, \ 5798 && eval 'test $(( 1 + 1 )) -eq 2 \ 5799 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5800 && xsi_shell=yes 5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5802 $as_echo "$xsi_shell" >&6; } 5803 5804 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5806 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5807 lt_shell_append=no 5808 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5809 >/dev/null 2>&1 \ 5810 && lt_shell_append=yes 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5812 $as_echo "$lt_shell_append" >&6; } 5813 5814 5815 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5816 lt_unset=unset 5817 else 5818 lt_unset=false 5819 fi 5820 5821 5822 5823 5824 5825 # test EBCDIC or ASCII 5826 case `echo X|tr X '\101'` in 5827 A) # ASCII based system 5828 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5829 lt_SP2NL='tr \040 \012' 5830 lt_NL2SP='tr \015\012 \040\040' 5831 ;; 5832 *) # EBCDIC based system 5833 lt_SP2NL='tr \100 \n' 5834 lt_NL2SP='tr \r\n \100\100' 5835 ;; 5836 esac 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5847 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5848 if ${lt_cv_ld_reload_flag+:} false; then : 5849 $as_echo_n "(cached) " >&6 5850 else 5851 lt_cv_ld_reload_flag='-r' 5852 fi 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5854 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5855 reload_flag=$lt_cv_ld_reload_flag 5856 case $reload_flag in 5857 "" | " "*) ;; 5858 *) reload_flag=" $reload_flag" ;; 5859 esac 5860 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5861 case $host_os in 5862 darwin*) 5863 if test "$GCC" = yes; then 5864 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5865 else 5866 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5867 fi 5868 ;; 5869 esac 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 if test -n "$ac_tool_prefix"; then 5880 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5881 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5883 $as_echo_n "checking for $ac_word... " >&6; } 5884 if ${ac_cv_prog_OBJDUMP+:} false; then : 5885 $as_echo_n "(cached) " >&6 5886 else 5887 if test -n "$OBJDUMP"; then 5888 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5889 else 5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5891 for as_dir in $PATH 5892 do 5893 IFS=$as_save_IFS 5894 test -z "$as_dir" && as_dir=. 5895 for ac_exec_ext in '' $ac_executable_extensions; do 5896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5897 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5899 break 2 5900 fi 5901 done 5902 done 5903 IFS=$as_save_IFS 5904 5905 fi 5906 fi 5907 OBJDUMP=$ac_cv_prog_OBJDUMP 5908 if test -n "$OBJDUMP"; then 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5910 $as_echo "$OBJDUMP" >&6; } 5911 else 5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5913 $as_echo "no" >&6; } 5914 fi 5915 5916 5917 fi 5918 if test -z "$ac_cv_prog_OBJDUMP"; then 5919 ac_ct_OBJDUMP=$OBJDUMP 5920 # Extract the first word of "objdump", so it can be a program name with args. 5921 set dummy objdump; ac_word=$2 5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5923 $as_echo_n "checking for $ac_word... " >&6; } 5924 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5925 $as_echo_n "(cached) " >&6 5926 else 5927 if test -n "$ac_ct_OBJDUMP"; then 5928 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5929 else 5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5931 for as_dir in $PATH 5932 do 5933 IFS=$as_save_IFS 5934 test -z "$as_dir" && as_dir=. 5935 for ac_exec_ext in '' $ac_executable_extensions; do 5936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5937 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5939 break 2 5940 fi 5941 done 5942 done 5943 IFS=$as_save_IFS 5944 5945 fi 5946 fi 5947 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5948 if test -n "$ac_ct_OBJDUMP"; then 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5950 $as_echo "$ac_ct_OBJDUMP" >&6; } 5951 else 5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5953 $as_echo "no" >&6; } 5954 fi 5955 5956 if test "x$ac_ct_OBJDUMP" = x; then 5957 OBJDUMP="false" 5958 else 5959 case $cross_compiling:$ac_tool_warned in 5960 yes:) 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5963 ac_tool_warned=yes ;; 5964 esac 5965 OBJDUMP=$ac_ct_OBJDUMP 5966 fi 5967 else 5968 OBJDUMP="$ac_cv_prog_OBJDUMP" 5969 fi 5970 5971 test -z "$OBJDUMP" && OBJDUMP=objdump 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5982 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5983 if ${lt_cv_deplibs_check_method+:} false; then : 5984 $as_echo_n "(cached) " >&6 5985 else 5986 lt_cv_file_magic_cmd='$MAGIC_CMD' 5987 lt_cv_file_magic_test_file= 5988 lt_cv_deplibs_check_method='unknown' 5989 # Need to set the preceding variable on all platforms that support 5990 # interlibrary dependencies. 5991 # 'none' -- dependencies not supported. 5992 # `unknown' -- same as none, but documents that we really don't know. 5993 # 'pass_all' -- all dependencies passed with no checks. 5994 # 'test_compile' -- check by making test program. 5995 # 'file_magic [[regex]]' -- check by looking for files in library path 5996 # which responds to the $file_magic_cmd with a given extended regex. 5997 # If you have `file' or equivalent on your system and you're not sure 5998 # whether `pass_all' will *always* work, you probably want this one. 5999 6000 case $host_os in 6001 aix[4-9]*) 6002 lt_cv_deplibs_check_method=pass_all 6003 ;; 6004 6005 beos*) 6006 lt_cv_deplibs_check_method=pass_all 6007 ;; 6008 6009 bsdi[45]*) 6010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6011 lt_cv_file_magic_cmd='/usr/bin/file -L' 6012 lt_cv_file_magic_test_file=/shlib/libc.so 6013 ;; 6014 6015 cygwin*) 6016 # func_win32_libid is a shell function defined in ltmain.sh 6017 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6018 lt_cv_file_magic_cmd='func_win32_libid' 6019 ;; 6020 6021 mingw* | pw32*) 6022 # Base MSYS/MinGW do not provide the 'file' command needed by 6023 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6024 # unless we find 'file', for example because we are cross-compiling. 6025 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6026 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6027 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6028 lt_cv_file_magic_cmd='func_win32_libid' 6029 else 6030 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6031 lt_cv_file_magic_cmd='$OBJDUMP -f' 6032 fi 6033 ;; 6034 6035 cegcc*) 6036 # use the weaker test based on 'objdump'. See mingw*. 6037 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6038 lt_cv_file_magic_cmd='$OBJDUMP -f' 6039 ;; 6040 6041 darwin* | rhapsody*) 6042 lt_cv_deplibs_check_method=pass_all 6043 ;; 6044 6045 freebsd* | dragonfly*) 6046 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6047 case $host_cpu in 6048 i*86 ) 6049 # Not sure whether the presence of OpenBSD here was a mistake. 6050 # Let's accept both of them until this is cleared up. 6051 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6052 lt_cv_file_magic_cmd=/usr/bin/file 6053 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6054 ;; 6055 esac 6056 else 6057 lt_cv_deplibs_check_method=pass_all 6058 fi 6059 ;; 6060 6061 gnu*) 6062 lt_cv_deplibs_check_method=pass_all 6063 ;; 6064 6065 haiku*) 6066 lt_cv_deplibs_check_method=pass_all 6067 ;; 6068 6069 hpux10.20* | hpux11*) 6070 lt_cv_file_magic_cmd=/usr/bin/file 6071 case $host_cpu in 6072 ia64*) 6073 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6074 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6075 ;; 6076 hppa*64*) 6077 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]' 6078 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6079 ;; 6080 *) 6081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6082 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6083 ;; 6084 esac 6085 ;; 6086 6087 interix[3-9]*) 6088 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6090 ;; 6091 6092 irix5* | irix6* | nonstopux*) 6093 case $LD in 6094 *-32|*"-32 ") libmagic=32-bit;; 6095 *-n32|*"-n32 ") libmagic=N32;; 6096 *-64|*"-64 ") libmagic=64-bit;; 6097 *) libmagic=never-match;; 6098 esac 6099 lt_cv_deplibs_check_method=pass_all 6100 ;; 6101 6102 # This must be Linux ELF. 6103 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 6104 lt_cv_deplibs_check_method=pass_all 6105 ;; 6106 6107 netbsd*) 6108 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6110 else 6111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6112 fi 6113 ;; 6114 6115 newos6*) 6116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6117 lt_cv_file_magic_cmd=/usr/bin/file 6118 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6119 ;; 6120 6121 *nto* | *qnx*) 6122 lt_cv_deplibs_check_method=pass_all 6123 ;; 6124 6125 openbsd*) 6126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6128 else 6129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6130 fi 6131 ;; 6132 6133 osf3* | osf4* | osf5*) 6134 lt_cv_deplibs_check_method=pass_all 6135 ;; 6136 6137 rdos*) 6138 lt_cv_deplibs_check_method=pass_all 6139 ;; 6140 6141 solaris*) 6142 lt_cv_deplibs_check_method=pass_all 6143 ;; 6144 6145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6146 lt_cv_deplibs_check_method=pass_all 6147 ;; 6148 6149 sysv4 | sysv4.3*) 6150 case $host_vendor in 6151 motorola) 6152 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]' 6153 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6154 ;; 6155 ncr) 6156 lt_cv_deplibs_check_method=pass_all 6157 ;; 6158 sequent) 6159 lt_cv_file_magic_cmd='/bin/file' 6160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6161 ;; 6162 sni) 6163 lt_cv_file_magic_cmd='/bin/file' 6164 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6165 lt_cv_file_magic_test_file=/lib/libc.so 6166 ;; 6167 siemens) 6168 lt_cv_deplibs_check_method=pass_all 6169 ;; 6170 pc) 6171 lt_cv_deplibs_check_method=pass_all 6172 ;; 6173 esac 6174 ;; 6175 6176 tpf*) 6177 lt_cv_deplibs_check_method=pass_all 6178 ;; 6179 vxworks*) 6180 # Assume VxWorks cross toolchains are built on Linux, possibly 6181 # as canadian for Windows hosts. 6182 lt_cv_deplibs_check_method=pass_all 6183 ;; 6184 esac 6185 6186 fi 6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6188 $as_echo "$lt_cv_deplibs_check_method" >&6; } 6189 file_magic_cmd=$lt_cv_file_magic_cmd 6190 deplibs_check_method=$lt_cv_deplibs_check_method 6191 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 plugin_option= 6205 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" 6206 for plugin in $plugin_names; do 6207 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` 6208 if test x$plugin_so = x$plugin; then 6209 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` 6210 fi 6211 if test x$plugin_so != x$plugin; then 6212 plugin_option="--plugin $plugin_so" 6213 break 6214 fi 6215 done 6216 6217 if test -n "$ac_tool_prefix"; then 6218 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6219 set dummy ${ac_tool_prefix}ar; ac_word=$2 6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6221 $as_echo_n "checking for $ac_word... " >&6; } 6222 if ${ac_cv_prog_AR+:} false; then : 6223 $as_echo_n "(cached) " >&6 6224 else 6225 if test -n "$AR"; then 6226 ac_cv_prog_AR="$AR" # Let the user override the test. 6227 else 6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6229 for as_dir in $PATH 6230 do 6231 IFS=$as_save_IFS 6232 test -z "$as_dir" && as_dir=. 6233 for ac_exec_ext in '' $ac_executable_extensions; do 6234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6235 ac_cv_prog_AR="${ac_tool_prefix}ar" 6236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6237 break 2 6238 fi 6239 done 6240 done 6241 IFS=$as_save_IFS 6242 6243 fi 6244 fi 6245 AR=$ac_cv_prog_AR 6246 if test -n "$AR"; then 6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6248 $as_echo "$AR" >&6; } 6249 else 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6251 $as_echo "no" >&6; } 6252 fi 6253 6254 6255 fi 6256 if test -z "$ac_cv_prog_AR"; then 6257 ac_ct_AR=$AR 6258 # Extract the first word of "ar", so it can be a program name with args. 6259 set dummy ar; ac_word=$2 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6261 $as_echo_n "checking for $ac_word... " >&6; } 6262 if ${ac_cv_prog_ac_ct_AR+:} false; then : 6263 $as_echo_n "(cached) " >&6 6264 else 6265 if test -n "$ac_ct_AR"; then 6266 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6267 else 6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6269 for as_dir in $PATH 6270 do 6271 IFS=$as_save_IFS 6272 test -z "$as_dir" && as_dir=. 6273 for ac_exec_ext in '' $ac_executable_extensions; do 6274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6275 ac_cv_prog_ac_ct_AR="ar" 6276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6277 break 2 6278 fi 6279 done 6280 done 6281 IFS=$as_save_IFS 6282 6283 fi 6284 fi 6285 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6286 if test -n "$ac_ct_AR"; then 6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6288 $as_echo "$ac_ct_AR" >&6; } 6289 else 6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6291 $as_echo "no" >&6; } 6292 fi 6293 6294 if test "x$ac_ct_AR" = x; then 6295 AR="false" 6296 else 6297 case $cross_compiling:$ac_tool_warned in 6298 yes:) 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6301 ac_tool_warned=yes ;; 6302 esac 6303 AR=$ac_ct_AR 6304 fi 6305 else 6306 AR="$ac_cv_prog_AR" 6307 fi 6308 6309 test -z "$AR" && AR=ar 6310 if test -n "$plugin_option"; then 6311 if $AR --help 2>&1 | grep -q "\--plugin"; then 6312 touch conftest.c 6313 $AR $plugin_option rc conftest.a conftest.c 6314 if test "$?" != 0; then 6315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 6316 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} 6317 else 6318 AR="$AR $plugin_option" 6319 fi 6320 rm -f conftest.* 6321 fi 6322 fi 6323 test -z "$AR_FLAGS" && AR_FLAGS=cru 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 if test -n "$ac_tool_prefix"; then 6336 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6337 set dummy ${ac_tool_prefix}strip; ac_word=$2 6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6339 $as_echo_n "checking for $ac_word... " >&6; } 6340 if ${ac_cv_prog_STRIP+:} false; then : 6341 $as_echo_n "(cached) " >&6 6342 else 6343 if test -n "$STRIP"; then 6344 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6345 else 6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6347 for as_dir in $PATH 6348 do 6349 IFS=$as_save_IFS 6350 test -z "$as_dir" && as_dir=. 6351 for ac_exec_ext in '' $ac_executable_extensions; do 6352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6353 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6355 break 2 6356 fi 6357 done 6358 done 6359 IFS=$as_save_IFS 6360 6361 fi 6362 fi 6363 STRIP=$ac_cv_prog_STRIP 6364 if test -n "$STRIP"; then 6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6366 $as_echo "$STRIP" >&6; } 6367 else 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6369 $as_echo "no" >&6; } 6370 fi 6371 6372 6373 fi 6374 if test -z "$ac_cv_prog_STRIP"; then 6375 ac_ct_STRIP=$STRIP 6376 # Extract the first word of "strip", so it can be a program name with args. 6377 set dummy strip; ac_word=$2 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6379 $as_echo_n "checking for $ac_word... " >&6; } 6380 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6381 $as_echo_n "(cached) " >&6 6382 else 6383 if test -n "$ac_ct_STRIP"; then 6384 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6385 else 6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6387 for as_dir in $PATH 6388 do 6389 IFS=$as_save_IFS 6390 test -z "$as_dir" && as_dir=. 6391 for ac_exec_ext in '' $ac_executable_extensions; do 6392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6393 ac_cv_prog_ac_ct_STRIP="strip" 6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6395 break 2 6396 fi 6397 done 6398 done 6399 IFS=$as_save_IFS 6400 6401 fi 6402 fi 6403 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6404 if test -n "$ac_ct_STRIP"; then 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6406 $as_echo "$ac_ct_STRIP" >&6; } 6407 else 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6409 $as_echo "no" >&6; } 6410 fi 6411 6412 if test "x$ac_ct_STRIP" = x; then 6413 STRIP=":" 6414 else 6415 case $cross_compiling:$ac_tool_warned in 6416 yes:) 6417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6419 ac_tool_warned=yes ;; 6420 esac 6421 STRIP=$ac_ct_STRIP 6422 fi 6423 else 6424 STRIP="$ac_cv_prog_STRIP" 6425 fi 6426 6427 test -z "$STRIP" && STRIP=: 6428 6429 6430 6431 6432 6433 6434 if test -n "$ac_tool_prefix"; then 6435 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6436 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6438 $as_echo_n "checking for $ac_word... " >&6; } 6439 if ${ac_cv_prog_RANLIB+:} false; then : 6440 $as_echo_n "(cached) " >&6 6441 else 6442 if test -n "$RANLIB"; then 6443 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6444 else 6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6446 for as_dir in $PATH 6447 do 6448 IFS=$as_save_IFS 6449 test -z "$as_dir" && as_dir=. 6450 for ac_exec_ext in '' $ac_executable_extensions; do 6451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6452 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6454 break 2 6455 fi 6456 done 6457 done 6458 IFS=$as_save_IFS 6459 6460 fi 6461 fi 6462 RANLIB=$ac_cv_prog_RANLIB 6463 if test -n "$RANLIB"; then 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6465 $as_echo "$RANLIB" >&6; } 6466 else 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6468 $as_echo "no" >&6; } 6469 fi 6470 6471 6472 fi 6473 if test -z "$ac_cv_prog_RANLIB"; then 6474 ac_ct_RANLIB=$RANLIB 6475 # Extract the first word of "ranlib", so it can be a program name with args. 6476 set dummy ranlib; ac_word=$2 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6478 $as_echo_n "checking for $ac_word... " >&6; } 6479 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6480 $as_echo_n "(cached) " >&6 6481 else 6482 if test -n "$ac_ct_RANLIB"; then 6483 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6484 else 6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6486 for as_dir in $PATH 6487 do 6488 IFS=$as_save_IFS 6489 test -z "$as_dir" && as_dir=. 6490 for ac_exec_ext in '' $ac_executable_extensions; do 6491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6492 ac_cv_prog_ac_ct_RANLIB="ranlib" 6493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6494 break 2 6495 fi 6496 done 6497 done 6498 IFS=$as_save_IFS 6499 6500 fi 6501 fi 6502 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6503 if test -n "$ac_ct_RANLIB"; then 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6505 $as_echo "$ac_ct_RANLIB" >&6; } 6506 else 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6508 $as_echo "no" >&6; } 6509 fi 6510 6511 if test "x$ac_ct_RANLIB" = x; then 6512 RANLIB=":" 6513 else 6514 case $cross_compiling:$ac_tool_warned in 6515 yes:) 6516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6518 ac_tool_warned=yes ;; 6519 esac 6520 RANLIB=$ac_ct_RANLIB 6521 fi 6522 else 6523 RANLIB="$ac_cv_prog_RANLIB" 6524 fi 6525 6526 test -z "$RANLIB" && RANLIB=: 6527 if test -n "$plugin_option" && test "$RANLIB" != ":"; then 6528 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then 6529 RANLIB="$RANLIB $plugin_option" 6530 fi 6531 fi 6532 6533 6534 6535 6536 6537 6538 # Determine commands to create old-style static archives. 6539 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6540 old_postinstall_cmds='chmod 644 $oldlib' 6541 old_postuninstall_cmds= 6542 6543 if test -n "$RANLIB"; then 6544 case $host_os in 6545 openbsd*) 6546 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6547 ;; 6548 *) 6549 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6550 ;; 6551 esac 6552 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6553 fi 6554 6555 case $host_os in 6556 darwin*) 6557 lock_old_archive_extraction=yes ;; 6558 *) 6559 lock_old_archive_extraction=no ;; 6560 esac 6561 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 # If no C compiler was specified, use CC. 6601 LTCC=${LTCC-"$CC"} 6602 6603 # If no C compiler flags were specified, use CFLAGS. 6604 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6605 6606 # Allow CC to be a program name with arguments. 6607 compiler=$CC 6608 6609 6610 # Check for command to grab the raw symbol name followed by C symbol from nm. 6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6612 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6613 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6614 $as_echo_n "(cached) " >&6 6615 else 6616 6617 # These are sane defaults that work on at least a few old systems. 6618 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6619 6620 # Character class describing NM global symbol codes. 6621 symcode='[BCDEGRST]' 6622 6623 # Regexp to match symbols that can be accessed directly from C. 6624 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6625 6626 # Define system-specific variables. 6627 case $host_os in 6628 aix*) 6629 symcode='[BCDT]' 6630 ;; 6631 cygwin* | mingw* | pw32* | cegcc*) 6632 symcode='[ABCDGISTW]' 6633 ;; 6634 hpux*) 6635 if test "$host_cpu" = ia64; then 6636 symcode='[ABCDEGRST]' 6637 fi 6638 ;; 6639 irix* | nonstopux*) 6640 symcode='[BCDEGRST]' 6641 ;; 6642 osf*) 6643 symcode='[BCDEGQRST]' 6644 ;; 6645 solaris*) 6646 symcode='[BCDRT]' 6647 ;; 6648 sco3.2v5*) 6649 symcode='[DT]' 6650 ;; 6651 sysv4.2uw2*) 6652 symcode='[DT]' 6653 ;; 6654 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6655 symcode='[ABDT]' 6656 ;; 6657 sysv4) 6658 symcode='[DFNSTU]' 6659 ;; 6660 esac 6661 6662 # If we're using GNU nm, then use its standard symbol codes. 6663 case `$NM -V 2>&1` in 6664 *GNU* | *'with BFD'*) 6665 symcode='[ABCDGIRSTW]' ;; 6666 esac 6667 6668 # Transform an extracted symbol line into a proper C declaration. 6669 # Some systems (esp. on ia64) link data and code symbols differently, 6670 # so use this general approach. 6671 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6672 6673 # Transform an extracted symbol line into symbol name and symbol address 6674 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6675 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'" 6676 6677 # Handle CRLF in mingw tool chain 6678 opt_cr= 6679 case $build_os in 6680 mingw*) 6681 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6682 ;; 6683 esac 6684 6685 # Try without a prefix underscore, then with it. 6686 for ac_symprfx in "" "_"; do 6687 6688 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6689 symxfrm="\\1 $ac_symprfx\\2 \\2" 6690 6691 # Write the raw and C identifiers. 6692 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6693 # Fake it for dumpbin and say T for any non-static function 6694 # and D for any global variable. 6695 # Also find C++ and __fastcall symbols from MSVC++, 6696 # which start with @ or ?. 6697 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6698 " {last_section=section; section=\$ 3};"\ 6699 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6700 " \$ 0!~/External *\|/{next};"\ 6701 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6702 " {if(hide[section]) next};"\ 6703 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6704 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6705 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6706 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6707 " ' prfx=^$ac_symprfx" 6708 else 6709 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6710 fi 6711 6712 # Check to see that the pipe works correctly. 6713 pipe_works=no 6714 6715 rm -f conftest* 6716 cat > conftest.$ac_ext <<_LT_EOF 6717 #ifdef __cplusplus 6718 extern "C" { 6719 #endif 6720 char nm_test_var; 6721 void nm_test_func(void); 6722 void nm_test_func(void){} 6723 #ifdef __cplusplus 6724 } 6725 #endif 6726 int main(){nm_test_var='a';nm_test_func();return(0);} 6727 _LT_EOF 6728 6729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6730 (eval $ac_compile) 2>&5 6731 ac_status=$? 6732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6733 test $ac_status = 0; }; then 6734 # Now try to grab the symbols. 6735 nlist=conftest.nm 6736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6737 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6738 ac_status=$? 6739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6740 test $ac_status = 0; } && test -s "$nlist"; then 6741 # Try sorting and uniquifying the output. 6742 if sort "$nlist" | uniq > "$nlist"T; then 6743 mv -f "$nlist"T "$nlist" 6744 else 6745 rm -f "$nlist"T 6746 fi 6747 6748 # Make sure that we snagged all the symbols we need. 6749 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6750 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6751 cat <<_LT_EOF > conftest.$ac_ext 6752 #ifdef __cplusplus 6753 extern "C" { 6754 #endif 6755 6756 _LT_EOF 6757 # Now generate the symbol file. 6758 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6759 6760 cat <<_LT_EOF >> conftest.$ac_ext 6761 6762 /* The mapping between symbol names and symbols. */ 6763 const struct { 6764 const char *name; 6765 void *address; 6766 } 6767 lt__PROGRAM__LTX_preloaded_symbols[] = 6768 { 6769 { "@PROGRAM@", (void *) 0 }, 6770 _LT_EOF 6771 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6772 cat <<\_LT_EOF >> conftest.$ac_ext 6773 {0, (void *) 0} 6774 }; 6775 6776 /* This works around a problem in FreeBSD linker */ 6777 #ifdef FREEBSD_WORKAROUND 6778 static const void *lt_preloaded_setup() { 6779 return lt__PROGRAM__LTX_preloaded_symbols; 6780 } 6781 #endif 6782 6783 #ifdef __cplusplus 6784 } 6785 #endif 6786 _LT_EOF 6787 # Now try linking the two files. 6788 mv conftest.$ac_objext conftstm.$ac_objext 6789 lt_save_LIBS="$LIBS" 6790 lt_save_CFLAGS="$CFLAGS" 6791 LIBS="conftstm.$ac_objext" 6792 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6794 (eval $ac_link) 2>&5 6795 ac_status=$? 6796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6797 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6798 pipe_works=yes 6799 fi 6800 LIBS="$lt_save_LIBS" 6801 CFLAGS="$lt_save_CFLAGS" 6802 else 6803 echo "cannot find nm_test_func in $nlist" >&5 6804 fi 6805 else 6806 echo "cannot find nm_test_var in $nlist" >&5 6807 fi 6808 else 6809 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6810 fi 6811 else 6812 echo "$progname: failed program was:" >&5 6813 cat conftest.$ac_ext >&5 6814 fi 6815 rm -rf conftest* conftst* 6816 6817 # Do not use the global_symbol_pipe unless it works. 6818 if test "$pipe_works" = yes; then 6819 break 6820 else 6821 lt_cv_sys_global_symbol_pipe= 6822 fi 6823 done 6824 6825 fi 6826 6827 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6828 lt_cv_sys_global_symbol_to_cdecl= 6829 fi 6830 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6832 $as_echo "failed" >&6; } 6833 else 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6835 $as_echo "ok" >&6; } 6836 fi 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 # Check whether --enable-libtool-lock was given. 6860 if test "${enable_libtool_lock+set}" = set; then : 6861 enableval=$enable_libtool_lock; 6862 fi 6863 6864 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6865 6866 # Some flags need to be propagated to the compiler or linker for good 6867 # libtool support. 6868 case $host in 6869 ia64-*-hpux*) 6870 # Find out which ABI we are using. 6871 echo 'int i;' > conftest.$ac_ext 6872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6873 (eval $ac_compile) 2>&5 6874 ac_status=$? 6875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6876 test $ac_status = 0; }; then 6877 case `/usr/bin/file conftest.$ac_objext` in 6878 *ELF-32*) 6879 HPUX_IA64_MODE="32" 6880 ;; 6881 *ELF-64*) 6882 HPUX_IA64_MODE="64" 6883 ;; 6884 esac 6885 fi 6886 rm -rf conftest* 6887 ;; 6888 *-*-irix6*) 6889 # Find out which ABI we are using. 6890 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6892 (eval $ac_compile) 2>&5 6893 ac_status=$? 6894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6895 test $ac_status = 0; }; then 6896 if test "$lt_cv_prog_gnu_ld" = yes; then 6897 case `/usr/bin/file conftest.$ac_objext` in 6898 *32-bit*) 6899 LD="${LD-ld} -melf32bsmip" 6900 ;; 6901 *N32*) 6902 LD="${LD-ld} -melf32bmipn32" 6903 ;; 6904 *64-bit*) 6905 LD="${LD-ld} -melf64bmip" 6906 ;; 6907 esac 6908 else 6909 case `/usr/bin/file conftest.$ac_objext` in 6910 *32-bit*) 6911 LD="${LD-ld} -32" 6912 ;; 6913 *N32*) 6914 LD="${LD-ld} -n32" 6915 ;; 6916 *64-bit*) 6917 LD="${LD-ld} -64" 6918 ;; 6919 esac 6920 fi 6921 fi 6922 rm -rf conftest* 6923 ;; 6924 6925 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6926 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6927 # Find out which ABI we are using. 6928 echo 'int i;' > conftest.$ac_ext 6929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6930 (eval $ac_compile) 2>&5 6931 ac_status=$? 6932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6933 test $ac_status = 0; }; then 6934 case `/usr/bin/file conftest.o` in 6935 *32-bit*) 6936 case $host in 6937 x86_64-*kfreebsd*-gnu) 6938 LD="${LD-ld} -m elf_i386_fbsd" 6939 ;; 6940 x86_64-*linux*) 6941 case `/usr/bin/file conftest.o` in 6942 *x86-64*) 6943 LD="${LD-ld} -m elf32_x86_64" 6944 ;; 6945 *) 6946 LD="${LD-ld} -m elf_i386" 6947 ;; 6948 esac 6949 ;; 6950 powerpc64le-*linux*) 6951 LD="${LD-ld} -m elf32lppclinux" 6952 ;; 6953 powerpc64-*linux*) 6954 LD="${LD-ld} -m elf32ppclinux" 6955 ;; 6956 s390x-*linux*) 6957 LD="${LD-ld} -m elf_s390" 6958 ;; 6959 sparc64-*linux*) 6960 LD="${LD-ld} -m elf32_sparc" 6961 ;; 6962 esac 6963 ;; 6964 *64-bit*) 6965 case $host in 6966 x86_64-*kfreebsd*-gnu) 6967 LD="${LD-ld} -m elf_x86_64_fbsd" 6968 ;; 6969 x86_64-*linux*) 6970 LD="${LD-ld} -m elf_x86_64" 6971 ;; 6972 powerpcle-*linux*) 6973 LD="${LD-ld} -m elf64lppc" 6974 ;; 6975 powerpc-*linux*) 6976 LD="${LD-ld} -m elf64ppc" 6977 ;; 6978 s390*-*linux*|s390*-*tpf*) 6979 LD="${LD-ld} -m elf64_s390" 6980 ;; 6981 sparc*-*linux*) 6982 LD="${LD-ld} -m elf64_sparc" 6983 ;; 6984 esac 6985 ;; 6986 esac 6987 fi 6988 rm -rf conftest* 6989 ;; 6990 6991 *-*-sco3.2v5*) 6992 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6993 SAVE_CFLAGS="$CFLAGS" 6994 CFLAGS="$CFLAGS -belf" 6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6996 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6997 if ${lt_cv_cc_needs_belf+:} false; then : 6998 $as_echo_n "(cached) " >&6 6999 else 7000 ac_ext=c 7001 ac_cpp='$CPP $CPPFLAGS' 7002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7004 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7005 7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7007 /* end confdefs.h. */ 7008 7009 int 7010 main () 7011 { 7012 7013 ; 7014 return 0; 7015 } 7016 _ACEOF 7017 if ac_fn_c_try_link "$LINENO"; then : 7018 lt_cv_cc_needs_belf=yes 7019 else 7020 lt_cv_cc_needs_belf=no 7021 fi 7022 rm -f core conftest.err conftest.$ac_objext \ 7023 conftest$ac_exeext conftest.$ac_ext 7024 ac_ext=c 7025 ac_cpp='$CPP $CPPFLAGS' 7026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7028 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7029 7030 fi 7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7032 $as_echo "$lt_cv_cc_needs_belf" >&6; } 7033 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7034 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7035 CFLAGS="$SAVE_CFLAGS" 7036 fi 7037 ;; 7038 sparc*-*solaris*) 7039 # Find out which ABI we are using. 7040 echo 'int i;' > conftest.$ac_ext 7041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7042 (eval $ac_compile) 2>&5 7043 ac_status=$? 7044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7045 test $ac_status = 0; }; then 7046 case `/usr/bin/file conftest.o` in 7047 *64-bit*) 7048 case $lt_cv_prog_gnu_ld in 7049 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7050 *) 7051 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7052 LD="${LD-ld} -64" 7053 fi 7054 ;; 7055 esac 7056 ;; 7057 esac 7058 fi 7059 rm -rf conftest* 7060 ;; 7061 esac 7062 7063 need_locks="$enable_libtool_lock" 7064 7065 7066 case $host_os in 7067 rhapsody* | darwin*) 7068 if test -n "$ac_tool_prefix"; then 7069 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7070 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7072 $as_echo_n "checking for $ac_word... " >&6; } 7073 if ${ac_cv_prog_DSYMUTIL+:} false; then : 7074 $as_echo_n "(cached) " >&6 7075 else 7076 if test -n "$DSYMUTIL"; then 7077 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7078 else 7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7080 for as_dir in $PATH 7081 do 7082 IFS=$as_save_IFS 7083 test -z "$as_dir" && as_dir=. 7084 for ac_exec_ext in '' $ac_executable_extensions; do 7085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7086 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7088 break 2 7089 fi 7090 done 7091 done 7092 IFS=$as_save_IFS 7093 7094 fi 7095 fi 7096 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7097 if test -n "$DSYMUTIL"; then 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7099 $as_echo "$DSYMUTIL" >&6; } 7100 else 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7102 $as_echo "no" >&6; } 7103 fi 7104 7105 7106 fi 7107 if test -z "$ac_cv_prog_DSYMUTIL"; then 7108 ac_ct_DSYMUTIL=$DSYMUTIL 7109 # Extract the first word of "dsymutil", so it can be a program name with args. 7110 set dummy dsymutil; ac_word=$2 7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7112 $as_echo_n "checking for $ac_word... " >&6; } 7113 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7114 $as_echo_n "(cached) " >&6 7115 else 7116 if test -n "$ac_ct_DSYMUTIL"; then 7117 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7118 else 7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7120 for as_dir in $PATH 7121 do 7122 IFS=$as_save_IFS 7123 test -z "$as_dir" && as_dir=. 7124 for ac_exec_ext in '' $ac_executable_extensions; do 7125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7126 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7128 break 2 7129 fi 7130 done 7131 done 7132 IFS=$as_save_IFS 7133 7134 fi 7135 fi 7136 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7137 if test -n "$ac_ct_DSYMUTIL"; then 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7139 $as_echo "$ac_ct_DSYMUTIL" >&6; } 7140 else 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7142 $as_echo "no" >&6; } 7143 fi 7144 7145 if test "x$ac_ct_DSYMUTIL" = x; then 7146 DSYMUTIL=":" 7147 else 7148 case $cross_compiling:$ac_tool_warned in 7149 yes:) 7150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7152 ac_tool_warned=yes ;; 7153 esac 7154 DSYMUTIL=$ac_ct_DSYMUTIL 7155 fi 7156 else 7157 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7158 fi 7159 7160 if test -n "$ac_tool_prefix"; then 7161 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7162 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7164 $as_echo_n "checking for $ac_word... " >&6; } 7165 if ${ac_cv_prog_NMEDIT+:} false; then : 7166 $as_echo_n "(cached) " >&6 7167 else 7168 if test -n "$NMEDIT"; then 7169 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7170 else 7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7172 for as_dir in $PATH 7173 do 7174 IFS=$as_save_IFS 7175 test -z "$as_dir" && as_dir=. 7176 for ac_exec_ext in '' $ac_executable_extensions; do 7177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7178 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7180 break 2 7181 fi 7182 done 7183 done 7184 IFS=$as_save_IFS 7185 7186 fi 7187 fi 7188 NMEDIT=$ac_cv_prog_NMEDIT 7189 if test -n "$NMEDIT"; then 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7191 $as_echo "$NMEDIT" >&6; } 7192 else 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7194 $as_echo "no" >&6; } 7195 fi 7196 7197 7198 fi 7199 if test -z "$ac_cv_prog_NMEDIT"; then 7200 ac_ct_NMEDIT=$NMEDIT 7201 # Extract the first word of "nmedit", so it can be a program name with args. 7202 set dummy nmedit; ac_word=$2 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7204 $as_echo_n "checking for $ac_word... " >&6; } 7205 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7206 $as_echo_n "(cached) " >&6 7207 else 7208 if test -n "$ac_ct_NMEDIT"; then 7209 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7210 else 7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7212 for as_dir in $PATH 7213 do 7214 IFS=$as_save_IFS 7215 test -z "$as_dir" && as_dir=. 7216 for ac_exec_ext in '' $ac_executable_extensions; do 7217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7218 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7220 break 2 7221 fi 7222 done 7223 done 7224 IFS=$as_save_IFS 7225 7226 fi 7227 fi 7228 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7229 if test -n "$ac_ct_NMEDIT"; then 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7231 $as_echo "$ac_ct_NMEDIT" >&6; } 7232 else 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7234 $as_echo "no" >&6; } 7235 fi 7236 7237 if test "x$ac_ct_NMEDIT" = x; then 7238 NMEDIT=":" 7239 else 7240 case $cross_compiling:$ac_tool_warned in 7241 yes:) 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7244 ac_tool_warned=yes ;; 7245 esac 7246 NMEDIT=$ac_ct_NMEDIT 7247 fi 7248 else 7249 NMEDIT="$ac_cv_prog_NMEDIT" 7250 fi 7251 7252 if test -n "$ac_tool_prefix"; then 7253 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7254 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7256 $as_echo_n "checking for $ac_word... " >&6; } 7257 if ${ac_cv_prog_LIPO+:} false; then : 7258 $as_echo_n "(cached) " >&6 7259 else 7260 if test -n "$LIPO"; then 7261 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7262 else 7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7264 for as_dir in $PATH 7265 do 7266 IFS=$as_save_IFS 7267 test -z "$as_dir" && as_dir=. 7268 for ac_exec_ext in '' $ac_executable_extensions; do 7269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7270 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7272 break 2 7273 fi 7274 done 7275 done 7276 IFS=$as_save_IFS 7277 7278 fi 7279 fi 7280 LIPO=$ac_cv_prog_LIPO 7281 if test -n "$LIPO"; then 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7283 $as_echo "$LIPO" >&6; } 7284 else 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7286 $as_echo "no" >&6; } 7287 fi 7288 7289 7290 fi 7291 if test -z "$ac_cv_prog_LIPO"; then 7292 ac_ct_LIPO=$LIPO 7293 # Extract the first word of "lipo", so it can be a program name with args. 7294 set dummy lipo; ac_word=$2 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7296 $as_echo_n "checking for $ac_word... " >&6; } 7297 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7298 $as_echo_n "(cached) " >&6 7299 else 7300 if test -n "$ac_ct_LIPO"; then 7301 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7302 else 7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7304 for as_dir in $PATH 7305 do 7306 IFS=$as_save_IFS 7307 test -z "$as_dir" && as_dir=. 7308 for ac_exec_ext in '' $ac_executable_extensions; do 7309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7310 ac_cv_prog_ac_ct_LIPO="lipo" 7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7312 break 2 7313 fi 7314 done 7315 done 7316 IFS=$as_save_IFS 7317 7318 fi 7319 fi 7320 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7321 if test -n "$ac_ct_LIPO"; then 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7323 $as_echo "$ac_ct_LIPO" >&6; } 7324 else 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7326 $as_echo "no" >&6; } 7327 fi 7328 7329 if test "x$ac_ct_LIPO" = x; then 7330 LIPO=":" 7331 else 7332 case $cross_compiling:$ac_tool_warned in 7333 yes:) 7334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7336 ac_tool_warned=yes ;; 7337 esac 7338 LIPO=$ac_ct_LIPO 7339 fi 7340 else 7341 LIPO="$ac_cv_prog_LIPO" 7342 fi 7343 7344 if test -n "$ac_tool_prefix"; then 7345 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7346 set dummy ${ac_tool_prefix}otool; ac_word=$2 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7348 $as_echo_n "checking for $ac_word... " >&6; } 7349 if ${ac_cv_prog_OTOOL+:} false; then : 7350 $as_echo_n "(cached) " >&6 7351 else 7352 if test -n "$OTOOL"; then 7353 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7354 else 7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7356 for as_dir in $PATH 7357 do 7358 IFS=$as_save_IFS 7359 test -z "$as_dir" && as_dir=. 7360 for ac_exec_ext in '' $ac_executable_extensions; do 7361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7362 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7364 break 2 7365 fi 7366 done 7367 done 7368 IFS=$as_save_IFS 7369 7370 fi 7371 fi 7372 OTOOL=$ac_cv_prog_OTOOL 7373 if test -n "$OTOOL"; then 7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7375 $as_echo "$OTOOL" >&6; } 7376 else 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7378 $as_echo "no" >&6; } 7379 fi 7380 7381 7382 fi 7383 if test -z "$ac_cv_prog_OTOOL"; then 7384 ac_ct_OTOOL=$OTOOL 7385 # Extract the first word of "otool", so it can be a program name with args. 7386 set dummy otool; ac_word=$2 7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7388 $as_echo_n "checking for $ac_word... " >&6; } 7389 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7390 $as_echo_n "(cached) " >&6 7391 else 7392 if test -n "$ac_ct_OTOOL"; then 7393 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7394 else 7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7396 for as_dir in $PATH 7397 do 7398 IFS=$as_save_IFS 7399 test -z "$as_dir" && as_dir=. 7400 for ac_exec_ext in '' $ac_executable_extensions; do 7401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7402 ac_cv_prog_ac_ct_OTOOL="otool" 7403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7404 break 2 7405 fi 7406 done 7407 done 7408 IFS=$as_save_IFS 7409 7410 fi 7411 fi 7412 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7413 if test -n "$ac_ct_OTOOL"; then 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7415 $as_echo "$ac_ct_OTOOL" >&6; } 7416 else 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7418 $as_echo "no" >&6; } 7419 fi 7420 7421 if test "x$ac_ct_OTOOL" = x; then 7422 OTOOL=":" 7423 else 7424 case $cross_compiling:$ac_tool_warned in 7425 yes:) 7426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7428 ac_tool_warned=yes ;; 7429 esac 7430 OTOOL=$ac_ct_OTOOL 7431 fi 7432 else 7433 OTOOL="$ac_cv_prog_OTOOL" 7434 fi 7435 7436 if test -n "$ac_tool_prefix"; then 7437 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7438 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7440 $as_echo_n "checking for $ac_word... " >&6; } 7441 if ${ac_cv_prog_OTOOL64+:} false; then : 7442 $as_echo_n "(cached) " >&6 7443 else 7444 if test -n "$OTOOL64"; then 7445 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7446 else 7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7448 for as_dir in $PATH 7449 do 7450 IFS=$as_save_IFS 7451 test -z "$as_dir" && as_dir=. 7452 for ac_exec_ext in '' $ac_executable_extensions; do 7453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7454 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7456 break 2 7457 fi 7458 done 7459 done 7460 IFS=$as_save_IFS 7461 7462 fi 7463 fi 7464 OTOOL64=$ac_cv_prog_OTOOL64 7465 if test -n "$OTOOL64"; then 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7467 $as_echo "$OTOOL64" >&6; } 7468 else 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7470 $as_echo "no" >&6; } 7471 fi 7472 7473 7474 fi 7475 if test -z "$ac_cv_prog_OTOOL64"; then 7476 ac_ct_OTOOL64=$OTOOL64 7477 # Extract the first word of "otool64", so it can be a program name with args. 7478 set dummy otool64; ac_word=$2 7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7480 $as_echo_n "checking for $ac_word... " >&6; } 7481 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7482 $as_echo_n "(cached) " >&6 7483 else 7484 if test -n "$ac_ct_OTOOL64"; then 7485 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7486 else 7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7488 for as_dir in $PATH 7489 do 7490 IFS=$as_save_IFS 7491 test -z "$as_dir" && as_dir=. 7492 for ac_exec_ext in '' $ac_executable_extensions; do 7493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7494 ac_cv_prog_ac_ct_OTOOL64="otool64" 7495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7496 break 2 7497 fi 7498 done 7499 done 7500 IFS=$as_save_IFS 7501 7502 fi 7503 fi 7504 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7505 if test -n "$ac_ct_OTOOL64"; then 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7507 $as_echo "$ac_ct_OTOOL64" >&6; } 7508 else 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7510 $as_echo "no" >&6; } 7511 fi 7512 7513 if test "x$ac_ct_OTOOL64" = x; then 7514 OTOOL64=":" 7515 else 7516 case $cross_compiling:$ac_tool_warned in 7517 yes:) 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7520 ac_tool_warned=yes ;; 7521 esac 7522 OTOOL64=$ac_ct_OTOOL64 7523 fi 7524 else 7525 OTOOL64="$ac_cv_prog_OTOOL64" 7526 fi 7527 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7555 $as_echo_n "checking for -single_module linker flag... " >&6; } 7556 if ${lt_cv_apple_cc_single_mod+:} false; then : 7557 $as_echo_n "(cached) " >&6 7558 else 7559 lt_cv_apple_cc_single_mod=no 7560 if test -z "${LT_MULTI_MODULE}"; then 7561 # By default we will add the -single_module flag. You can override 7562 # by either setting the environment variable LT_MULTI_MODULE 7563 # non-empty at configure time, or by adding -multi_module to the 7564 # link flags. 7565 rm -rf libconftest.dylib* 7566 echo "int foo(void){return 1;}" > conftest.c 7567 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7568 -dynamiclib -Wl,-single_module conftest.c" >&5 7569 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7570 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7571 _lt_result=$? 7572 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7573 lt_cv_apple_cc_single_mod=yes 7574 else 7575 cat conftest.err >&5 7576 fi 7577 rm -rf libconftest.dylib* 7578 rm -f conftest.* 7579 fi 7580 fi 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7582 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7584 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7585 if ${lt_cv_ld_exported_symbols_list+:} false; then : 7586 $as_echo_n "(cached) " >&6 7587 else 7588 lt_cv_ld_exported_symbols_list=no 7589 save_LDFLAGS=$LDFLAGS 7590 echo "_main" > conftest.sym 7591 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7593 /* end confdefs.h. */ 7594 7595 int 7596 main () 7597 { 7598 7599 ; 7600 return 0; 7601 } 7602 _ACEOF 7603 if ac_fn_c_try_link "$LINENO"; then : 7604 lt_cv_ld_exported_symbols_list=yes 7605 else 7606 lt_cv_ld_exported_symbols_list=no 7607 fi 7608 rm -f core conftest.err conftest.$ac_objext \ 7609 conftest$ac_exeext conftest.$ac_ext 7610 LDFLAGS="$save_LDFLAGS" 7611 7612 fi 7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7614 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7616 $as_echo_n "checking for -force_load linker flag... " >&6; } 7617 if ${lt_cv_ld_force_load+:} false; then : 7618 $as_echo_n "(cached) " >&6 7619 else 7620 lt_cv_ld_force_load=no 7621 cat > conftest.c << _LT_EOF 7622 int forced_loaded() { return 2;} 7623 _LT_EOF 7624 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7625 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7626 echo "$AR cru libconftest.a conftest.o" >&5 7627 $AR cru libconftest.a conftest.o 2>&5 7628 cat > conftest.c << _LT_EOF 7629 int main() { return 0;} 7630 _LT_EOF 7631 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7632 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7633 _lt_result=$? 7634 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7635 lt_cv_ld_force_load=yes 7636 else 7637 cat conftest.err >&5 7638 fi 7639 rm -f conftest.err libconftest.a conftest conftest.c 7640 rm -rf conftest.dSYM 7641 7642 fi 7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7644 $as_echo "$lt_cv_ld_force_load" >&6; } 7645 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to 7646 # build without first building modern cctools / linker. 7647 case $host_cpu-$host_os in 7648 *-rhapsody* | *-darwin1.[012]) 7649 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7650 *-darwin1.*) 7651 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7652 *-darwin*) 7653 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the 7654 # deployment target is forced to an earlier version. 7655 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in 7656 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) 7657 ;; 7658 10.[012][,.]*) 7659 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7660 ;; 7661 *) 7662 ;; 7663 esac 7664 ;; 7665 esac 7666 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7667 _lt_dar_single_mod='$single_module' 7668 fi 7669 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7670 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7671 else 7672 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7673 fi 7674 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7675 _lt_dsymutil='~$DSYMUTIL $lib || :' 7676 else 7677 _lt_dsymutil= 7678 fi 7679 ;; 7680 esac 7681 7682 for ac_header in dlfcn.h 7683 do : 7684 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7685 " 7686 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7687 cat >>confdefs.h <<_ACEOF 7688 #define HAVE_DLFCN_H 1 7689 _ACEOF 7690 7691 fi 7692 7693 done 7694 7695 7696 7697 7698 7699 # Set options 7700 enable_dlopen=yes 7701 7702 7703 7704 7705 enable_win32_dll=no 7706 7707 7708 7709 # Check whether --enable-static was given. 7710 if test "${enable_static+set}" = set; then : 7711 enableval=$enable_static; p=${PACKAGE-default} 7712 case $enableval in 7713 yes) enable_static=yes ;; 7714 no) enable_static=no ;; 7715 *) 7716 enable_static=no 7717 # Look at the argument we got. We use all the common list separators. 7718 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7719 for pkg in $enableval; do 7720 IFS="$lt_save_ifs" 7721 if test "X$pkg" = "X$p"; then 7722 enable_static=yes 7723 fi 7724 done 7725 IFS="$lt_save_ifs" 7726 ;; 7727 esac 7728 else 7729 enable_static=yes 7730 fi 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 # Check whether --with-pic was given. 7742 if test "${with_pic+set}" = set; then : 7743 withval=$with_pic; pic_mode="$withval" 7744 else 7745 pic_mode=default 7746 fi 7747 7748 7749 test -z "$pic_mode" && pic_mode=default 7750 7751 7752 7753 7754 7755 7756 7757 # Check whether --enable-fast-install was given. 7758 if test "${enable_fast_install+set}" = set; then : 7759 enableval=$enable_fast_install; p=${PACKAGE-default} 7760 case $enableval in 7761 yes) enable_fast_install=yes ;; 7762 no) enable_fast_install=no ;; 7763 *) 7764 enable_fast_install=no 7765 # Look at the argument we got. We use all the common list separators. 7766 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7767 for pkg in $enableval; do 7768 IFS="$lt_save_ifs" 7769 if test "X$pkg" = "X$p"; then 7770 enable_fast_install=yes 7771 fi 7772 done 7773 IFS="$lt_save_ifs" 7774 ;; 7775 esac 7776 else 7777 enable_fast_install=yes 7778 fi 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 # This can be used to rebuild libtool when needed 7791 LIBTOOL_DEPS="$ltmain" 7792 7793 # Always use our own libtool. 7794 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7795 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 test -z "$LN_S" && LN_S="ln -s" 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 if test -n "${ZSH_VERSION+set}" ; then 7837 setopt NO_GLOB_SUBST 7838 fi 7839 7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7841 $as_echo_n "checking for objdir... " >&6; } 7842 if ${lt_cv_objdir+:} false; then : 7843 $as_echo_n "(cached) " >&6 7844 else 7845 rm -f .libs 2>/dev/null 7846 mkdir .libs 2>/dev/null 7847 if test -d .libs; then 7848 lt_cv_objdir=.libs 7849 else 7850 # MS-DOS does not allow filenames that begin with a dot. 7851 lt_cv_objdir=_libs 7852 fi 7853 rmdir .libs 2>/dev/null 7854 fi 7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7856 $as_echo "$lt_cv_objdir" >&6; } 7857 objdir=$lt_cv_objdir 7858 7859 7860 7861 7862 7863 cat >>confdefs.h <<_ACEOF 7864 #define LT_OBJDIR "$lt_cv_objdir/" 7865 _ACEOF 7866 7867 7868 7869 7870 case $host_os in 7871 aix3*) 7872 # AIX sometimes has problems with the GCC collect2 program. For some 7873 # reason, if we set the COLLECT_NAMES environment variable, the problems 7874 # vanish in a puff of smoke. 7875 if test "X${COLLECT_NAMES+set}" != Xset; then 7876 COLLECT_NAMES= 7877 export COLLECT_NAMES 7878 fi 7879 ;; 7880 esac 7881 7882 # Global variables: 7883 ofile=libtool 7884 can_build_shared=yes 7885 7886 # All known linkers require a `.a' archive for static linking (except MSVC, 7887 # which needs '.lib'). 7888 libext=a 7889 7890 with_gnu_ld="$lt_cv_prog_gnu_ld" 7891 7892 old_CC="$CC" 7893 old_CFLAGS="$CFLAGS" 7894 7895 # Set sane defaults for various variables 7896 test -z "$CC" && CC=cc 7897 test -z "$LTCC" && LTCC=$CC 7898 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7899 test -z "$LD" && LD=ld 7900 test -z "$ac_objext" && ac_objext=o 7901 7902 for cc_temp in $compiler""; do 7903 case $cc_temp in 7904 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7905 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7906 \-*) ;; 7907 *) break;; 7908 esac 7909 done 7910 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7911 7912 7913 # Only perform the check for file, if the check method requires it 7914 test -z "$MAGIC_CMD" && MAGIC_CMD=file 7915 case $deplibs_check_method in 7916 file_magic*) 7917 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7919 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7920 if ${lt_cv_path_MAGIC_CMD+:} false; then : 7921 $as_echo_n "(cached) " >&6 7922 else 7923 case $MAGIC_CMD in 7924 [\\/*] | ?:[\\/]*) 7925 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7926 ;; 7927 *) 7928 lt_save_MAGIC_CMD="$MAGIC_CMD" 7929 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7930 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7931 for ac_dir in $ac_dummy; do 7932 IFS="$lt_save_ifs" 7933 test -z "$ac_dir" && ac_dir=. 7934 if test -f $ac_dir/${ac_tool_prefix}file; then 7935 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7936 if test -n "$file_magic_test_file"; then 7937 case $deplibs_check_method in 7938 "file_magic "*) 7939 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7940 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7941 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7942 $EGREP "$file_magic_regex" > /dev/null; then 7943 : 7944 else 7945 cat <<_LT_EOF 1>&2 7946 7947 *** Warning: the command libtool uses to detect shared libraries, 7948 *** $file_magic_cmd, produces output that libtool cannot recognize. 7949 *** The result is that libtool may fail to recognize shared libraries 7950 *** as such. This will affect the creation of libtool libraries that 7951 *** depend on shared libraries, but programs linked with such libtool 7952 *** libraries will work regardless of this problem. Nevertheless, you 7953 *** may want to report the problem to your system manager and/or to 7954 *** bug-libtool@gnu.org 7955 7956 _LT_EOF 7957 fi ;; 7958 esac 7959 fi 7960 break 7961 fi 7962 done 7963 IFS="$lt_save_ifs" 7964 MAGIC_CMD="$lt_save_MAGIC_CMD" 7965 ;; 7966 esac 7967 fi 7968 7969 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7970 if test -n "$MAGIC_CMD"; then 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7972 $as_echo "$MAGIC_CMD" >&6; } 7973 else 7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7975 $as_echo "no" >&6; } 7976 fi 7977 7978 7979 7980 7981 7982 if test -z "$lt_cv_path_MAGIC_CMD"; then 7983 if test -n "$ac_tool_prefix"; then 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7985 $as_echo_n "checking for file... " >&6; } 7986 if ${lt_cv_path_MAGIC_CMD+:} false; then : 7987 $as_echo_n "(cached) " >&6 7988 else 7989 case $MAGIC_CMD in 7990 [\\/*] | ?:[\\/]*) 7991 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7992 ;; 7993 *) 7994 lt_save_MAGIC_CMD="$MAGIC_CMD" 7995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7996 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7997 for ac_dir in $ac_dummy; do 7998 IFS="$lt_save_ifs" 7999 test -z "$ac_dir" && ac_dir=. 8000 if test -f $ac_dir/file; then 8001 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8002 if test -n "$file_magic_test_file"; then 8003 case $deplibs_check_method in 8004 "file_magic "*) 8005 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8006 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8007 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8008 $EGREP "$file_magic_regex" > /dev/null; then 8009 : 8010 else 8011 cat <<_LT_EOF 1>&2 8012 8013 *** Warning: the command libtool uses to detect shared libraries, 8014 *** $file_magic_cmd, produces output that libtool cannot recognize. 8015 *** The result is that libtool may fail to recognize shared libraries 8016 *** as such. This will affect the creation of libtool libraries that 8017 *** depend on shared libraries, but programs linked with such libtool 8018 *** libraries will work regardless of this problem. Nevertheless, you 8019 *** may want to report the problem to your system manager and/or to 8020 *** bug-libtool@gnu.org 8021 8022 _LT_EOF 8023 fi ;; 8024 esac 8025 fi 8026 break 8027 fi 8028 done 8029 IFS="$lt_save_ifs" 8030 MAGIC_CMD="$lt_save_MAGIC_CMD" 8031 ;; 8032 esac 8033 fi 8034 8035 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8036 if test -n "$MAGIC_CMD"; then 8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8038 $as_echo "$MAGIC_CMD" >&6; } 8039 else 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8041 $as_echo "no" >&6; } 8042 fi 8043 8044 8045 else 8046 MAGIC_CMD=: 8047 fi 8048 fi 8049 8050 fi 8051 ;; 8052 esac 8053 8054 # Use C for the default configuration in the libtool script 8055 8056 lt_save_CC="$CC" 8057 ac_ext=c 8058 ac_cpp='$CPP $CPPFLAGS' 8059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8061 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8062 8063 8064 # Source file extension for C test sources. 8065 ac_ext=c 8066 8067 # Object file extension for compiled C test sources. 8068 objext=o 8069 objext=$objext 8070 8071 # Code to be used in simple compile tests 8072 lt_simple_compile_test_code="int some_variable = 0;" 8073 8074 # Code to be used in simple link tests 8075 lt_simple_link_test_code='int main(){return(0);}' 8076 8077 8078 8079 8080 8081 8082 8083 # If no C compiler was specified, use CC. 8084 LTCC=${LTCC-"$CC"} 8085 8086 # If no C compiler flags were specified, use CFLAGS. 8087 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8088 8089 # Allow CC to be a program name with arguments. 8090 compiler=$CC 8091 8092 # Save the default compiler, since it gets overwritten when the other 8093 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8094 compiler_DEFAULT=$CC 8095 8096 # save warnings/boilerplate of simple test code 8097 ac_outfile=conftest.$ac_objext 8098 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8099 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8100 _lt_compiler_boilerplate=`cat conftest.err` 8101 $RM conftest* 8102 8103 ac_outfile=conftest.$ac_objext 8104 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8105 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8106 _lt_linker_boilerplate=`cat conftest.err` 8107 $RM -r conftest* 8108 8109 8110 ## CAVEAT EMPTOR: 8111 ## There is no encapsulation within the following macros, do not change 8112 ## the running order or otherwise move them around unless you know exactly 8113 ## what you are doing... 8114 if test -n "$compiler"; then 8115 8116 lt_prog_compiler_no_builtin_flag= 8117 8118 if test "$GCC" = yes; then 8119 case $cc_basename in 8120 nvcc*) 8121 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8122 *) 8123 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8124 esac 8125 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8127 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8128 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8129 $as_echo_n "(cached) " >&6 8130 else 8131 lt_cv_prog_compiler_rtti_exceptions=no 8132 ac_outfile=conftest.$ac_objext 8133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8134 lt_compiler_flag="-fno-rtti -fno-exceptions" 8135 # Insert the option either (1) after the last *FLAGS variable, or 8136 # (2) before a word containing "conftest.", or (3) at the end. 8137 # Note that $ac_compile itself does not contain backslashes and begins 8138 # with a dollar sign (not a hyphen), so the echo should work correctly. 8139 # The option is referenced via a variable to avoid confusing sed. 8140 lt_compile=`echo "$ac_compile" | $SED \ 8141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8143 -e 's:$: $lt_compiler_flag:'` 8144 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8145 (eval "$lt_compile" 2>conftest.err) 8146 ac_status=$? 8147 cat conftest.err >&5 8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8149 if (exit $ac_status) && test -s "$ac_outfile"; then 8150 # The compiler can only warn and ignore the option if not recognized 8151 # So say no if there are warnings other than the usual output. 8152 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8154 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8155 lt_cv_prog_compiler_rtti_exceptions=yes 8156 fi 8157 fi 8158 $RM conftest* 8159 8160 fi 8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8162 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8163 8164 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8165 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8166 else 8167 : 8168 fi 8169 8170 fi 8171 8172 8173 8174 8175 8176 8177 lt_prog_compiler_wl= 8178 lt_prog_compiler_pic= 8179 lt_prog_compiler_static= 8180 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8182 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8183 8184 if test "$GCC" = yes; then 8185 lt_prog_compiler_wl='-Wl,' 8186 lt_prog_compiler_static='-static' 8187 8188 case $host_os in 8189 aix*) 8190 # All AIX code is PIC. 8191 if test "$host_cpu" = ia64; then 8192 # AIX 5 now supports IA64 processor 8193 lt_prog_compiler_static='-Bstatic' 8194 fi 8195 lt_prog_compiler_pic='-fPIC' 8196 ;; 8197 8198 amigaos*) 8199 case $host_cpu in 8200 powerpc) 8201 # see comment about AmigaOS4 .so support 8202 lt_prog_compiler_pic='-fPIC' 8203 ;; 8204 m68k) 8205 # FIXME: we need at least 68020 code to build shared libraries, but 8206 # adding the `-m68020' flag to GCC prevents building anything better, 8207 # like `-m68040'. 8208 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8209 ;; 8210 esac 8211 ;; 8212 8213 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8214 # PIC is the default for these OSes. 8215 ;; 8216 8217 mingw* | cygwin* | pw32* | os2* | cegcc*) 8218 # This hack is so that the source file can tell whether it is being 8219 # built for inclusion in a dll (and should export symbols for example). 8220 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8221 # (--disable-auto-import) libraries 8222 lt_prog_compiler_pic='-DDLL_EXPORT' 8223 ;; 8224 8225 darwin* | rhapsody*) 8226 # PIC is the default on this platform 8227 # Common symbols not allowed in MH_DYLIB files 8228 lt_prog_compiler_pic='-fno-common' 8229 ;; 8230 8231 haiku*) 8232 # PIC is the default for Haiku. 8233 # The "-static" flag exists, but is broken. 8234 lt_prog_compiler_static= 8235 ;; 8236 8237 hpux*) 8238 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8239 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8240 # sets the default TLS model and affects inlining. 8241 case $host_cpu in 8242 hppa*64*) 8243 # +Z the default 8244 ;; 8245 *) 8246 lt_prog_compiler_pic='-fPIC' 8247 ;; 8248 esac 8249 ;; 8250 8251 interix[3-9]*) 8252 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8253 # Instead, we relocate shared libraries at runtime. 8254 ;; 8255 8256 msdosdjgpp*) 8257 # Just because we use GCC doesn't mean we suddenly get shared libraries 8258 # on systems that don't support them. 8259 lt_prog_compiler_can_build_shared=no 8260 enable_shared=no 8261 ;; 8262 8263 *nto* | *qnx*) 8264 # QNX uses GNU C++, but need to define -shared option too, otherwise 8265 # it will coredump. 8266 lt_prog_compiler_pic='-fPIC -shared' 8267 ;; 8268 8269 sysv4*MP*) 8270 if test -d /usr/nec; then 8271 lt_prog_compiler_pic=-Kconform_pic 8272 fi 8273 ;; 8274 8275 *) 8276 lt_prog_compiler_pic='-fPIC' 8277 ;; 8278 esac 8279 8280 case $cc_basename in 8281 nvcc*) # Cuda Compiler Driver 2.2 8282 lt_prog_compiler_wl='-Xlinker ' 8283 lt_prog_compiler_pic='-Xcompiler -fPIC' 8284 ;; 8285 esac 8286 else 8287 # PORTME Check for flag to pass linker flags through the system compiler. 8288 case $host_os in 8289 aix*) 8290 lt_prog_compiler_wl='-Wl,' 8291 if test "$host_cpu" = ia64; then 8292 # AIX 5 now supports IA64 processor 8293 lt_prog_compiler_static='-Bstatic' 8294 else 8295 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8296 fi 8297 ;; 8298 8299 mingw* | cygwin* | pw32* | os2* | cegcc*) 8300 # This hack is so that the source file can tell whether it is being 8301 # built for inclusion in a dll (and should export symbols for example). 8302 lt_prog_compiler_pic='-DDLL_EXPORT' 8303 ;; 8304 8305 hpux9* | hpux10* | hpux11*) 8306 lt_prog_compiler_wl='-Wl,' 8307 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8308 # not for PA HP-UX. 8309 case $host_cpu in 8310 hppa*64*|ia64*) 8311 # +Z the default 8312 ;; 8313 *) 8314 lt_prog_compiler_pic='+Z' 8315 ;; 8316 esac 8317 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8318 lt_prog_compiler_static='${wl}-a ${wl}archive' 8319 ;; 8320 8321 irix5* | irix6* | nonstopux*) 8322 lt_prog_compiler_wl='-Wl,' 8323 # PIC (with -KPIC) is the default. 8324 lt_prog_compiler_static='-non_shared' 8325 ;; 8326 8327 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8328 case $cc_basename in 8329 # old Intel for x86_64 which still supported -KPIC. 8330 ecc*) 8331 lt_prog_compiler_wl='-Wl,' 8332 lt_prog_compiler_pic='-KPIC' 8333 lt_prog_compiler_static='-static' 8334 ;; 8335 # icc used to be incompatible with GCC. 8336 # ICC 10 doesn't accept -KPIC any more. 8337 icc* | ifort*) 8338 lt_prog_compiler_wl='-Wl,' 8339 lt_prog_compiler_pic='-fPIC' 8340 lt_prog_compiler_static='-static' 8341 ;; 8342 # Lahey Fortran 8.1. 8343 lf95*) 8344 lt_prog_compiler_wl='-Wl,' 8345 lt_prog_compiler_pic='--shared' 8346 lt_prog_compiler_static='--static' 8347 ;; 8348 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8349 # Portland Group compilers (*not* the Pentium gcc compiler, 8350 # which looks to be a dead project) 8351 lt_prog_compiler_wl='-Wl,' 8352 lt_prog_compiler_pic='-fpic' 8353 lt_prog_compiler_static='-Bstatic' 8354 ;; 8355 ccc*) 8356 lt_prog_compiler_wl='-Wl,' 8357 # All Alpha code is PIC. 8358 lt_prog_compiler_static='-non_shared' 8359 ;; 8360 xl* | bgxl* | bgf* | mpixl*) 8361 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8362 lt_prog_compiler_wl='-Wl,' 8363 lt_prog_compiler_pic='-qpic' 8364 lt_prog_compiler_static='-qstaticlink' 8365 ;; 8366 *) 8367 case `$CC -V 2>&1 | sed 5q` in 8368 *Sun\ F* | *Sun*Fortran*) 8369 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8370 lt_prog_compiler_pic='-KPIC' 8371 lt_prog_compiler_static='-Bstatic' 8372 lt_prog_compiler_wl='' 8373 ;; 8374 *Sun\ C*) 8375 # Sun C 5.9 8376 lt_prog_compiler_pic='-KPIC' 8377 lt_prog_compiler_static='-Bstatic' 8378 lt_prog_compiler_wl='-Wl,' 8379 ;; 8380 esac 8381 ;; 8382 esac 8383 ;; 8384 8385 newsos6) 8386 lt_prog_compiler_pic='-KPIC' 8387 lt_prog_compiler_static='-Bstatic' 8388 ;; 8389 8390 *nto* | *qnx*) 8391 # QNX uses GNU C++, but need to define -shared option too, otherwise 8392 # it will coredump. 8393 lt_prog_compiler_pic='-fPIC -shared' 8394 ;; 8395 8396 osf3* | osf4* | osf5*) 8397 lt_prog_compiler_wl='-Wl,' 8398 # All OSF/1 code is PIC. 8399 lt_prog_compiler_static='-non_shared' 8400 ;; 8401 8402 rdos*) 8403 lt_prog_compiler_static='-non_shared' 8404 ;; 8405 8406 solaris*) 8407 lt_prog_compiler_pic='-KPIC' 8408 lt_prog_compiler_static='-Bstatic' 8409 case $cc_basename in 8410 f77* | f90* | f95*) 8411 lt_prog_compiler_wl='-Qoption ld ';; 8412 *) 8413 lt_prog_compiler_wl='-Wl,';; 8414 esac 8415 ;; 8416 8417 sunos4*) 8418 lt_prog_compiler_wl='-Qoption ld ' 8419 lt_prog_compiler_pic='-PIC' 8420 lt_prog_compiler_static='-Bstatic' 8421 ;; 8422 8423 sysv4 | sysv4.2uw2* | sysv4.3*) 8424 lt_prog_compiler_wl='-Wl,' 8425 lt_prog_compiler_pic='-KPIC' 8426 lt_prog_compiler_static='-Bstatic' 8427 ;; 8428 8429 sysv4*MP*) 8430 if test -d /usr/nec ;then 8431 lt_prog_compiler_pic='-Kconform_pic' 8432 lt_prog_compiler_static='-Bstatic' 8433 fi 8434 ;; 8435 8436 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8437 lt_prog_compiler_wl='-Wl,' 8438 lt_prog_compiler_pic='-KPIC' 8439 lt_prog_compiler_static='-Bstatic' 8440 ;; 8441 8442 unicos*) 8443 lt_prog_compiler_wl='-Wl,' 8444 lt_prog_compiler_can_build_shared=no 8445 ;; 8446 8447 uts4*) 8448 lt_prog_compiler_pic='-pic' 8449 lt_prog_compiler_static='-Bstatic' 8450 ;; 8451 8452 *) 8453 lt_prog_compiler_can_build_shared=no 8454 ;; 8455 esac 8456 fi 8457 8458 case $host_os in 8459 # For platforms which do not support PIC, -DPIC is meaningless: 8460 *djgpp*) 8461 lt_prog_compiler_pic= 8462 ;; 8463 *) 8464 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8465 ;; 8466 esac 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8468 $as_echo "$lt_prog_compiler_pic" >&6; } 8469 8470 8471 8472 8473 8474 8475 # 8476 # Check to make sure the PIC flag actually works. 8477 # 8478 if test -n "$lt_prog_compiler_pic"; then 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8480 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8481 if ${lt_cv_prog_compiler_pic_works+:} false; then : 8482 $as_echo_n "(cached) " >&6 8483 else 8484 lt_cv_prog_compiler_pic_works=no 8485 ac_outfile=conftest.$ac_objext 8486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8487 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8488 # Insert the option either (1) after the last *FLAGS variable, or 8489 # (2) before a word containing "conftest.", or (3) at the end. 8490 # Note that $ac_compile itself does not contain backslashes and begins 8491 # with a dollar sign (not a hyphen), so the echo should work correctly. 8492 # The option is referenced via a variable to avoid confusing sed. 8493 lt_compile=`echo "$ac_compile" | $SED \ 8494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8496 -e 's:$: $lt_compiler_flag:'` 8497 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8498 (eval "$lt_compile" 2>conftest.err) 8499 ac_status=$? 8500 cat conftest.err >&5 8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8502 if (exit $ac_status) && test -s "$ac_outfile"; then 8503 # The compiler can only warn and ignore the option if not recognized 8504 # So say no if there are warnings other than the usual output. 8505 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8507 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8508 lt_cv_prog_compiler_pic_works=yes 8509 fi 8510 fi 8511 $RM conftest* 8512 8513 fi 8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8515 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8516 8517 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8518 case $lt_prog_compiler_pic in 8519 "" | " "*) ;; 8520 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8521 esac 8522 else 8523 lt_prog_compiler_pic= 8524 lt_prog_compiler_can_build_shared=no 8525 fi 8526 8527 fi 8528 8529 8530 8531 8532 8533 8534 # 8535 # Check to make sure the static flag actually works. 8536 # 8537 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8539 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8540 if ${lt_cv_prog_compiler_static_works+:} false; then : 8541 $as_echo_n "(cached) " >&6 8542 else 8543 lt_cv_prog_compiler_static_works=no 8544 save_LDFLAGS="$LDFLAGS" 8545 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8546 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8547 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8548 # The linker can only warn and ignore the option if not recognized 8549 # So say no if there are warnings 8550 if test -s conftest.err; then 8551 # Append any errors to the config.log. 8552 cat conftest.err 1>&5 8553 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8554 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8555 if diff conftest.exp conftest.er2 >/dev/null; then 8556 lt_cv_prog_compiler_static_works=yes 8557 fi 8558 else 8559 lt_cv_prog_compiler_static_works=yes 8560 fi 8561 fi 8562 $RM -r conftest* 8563 LDFLAGS="$save_LDFLAGS" 8564 8565 fi 8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8567 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8568 8569 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8570 : 8571 else 8572 lt_prog_compiler_static= 8573 fi 8574 8575 8576 8577 8578 8579 8580 8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8582 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8583 if ${lt_cv_prog_compiler_c_o+:} false; then : 8584 $as_echo_n "(cached) " >&6 8585 else 8586 lt_cv_prog_compiler_c_o=no 8587 $RM -r conftest 2>/dev/null 8588 mkdir conftest 8589 cd conftest 8590 mkdir out 8591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8592 8593 lt_compiler_flag="-o out/conftest2.$ac_objext" 8594 # Insert the option either (1) after the last *FLAGS variable, or 8595 # (2) before a word containing "conftest.", or (3) at the end. 8596 # Note that $ac_compile itself does not contain backslashes and begins 8597 # with a dollar sign (not a hyphen), so the echo should work correctly. 8598 lt_compile=`echo "$ac_compile" | $SED \ 8599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8601 -e 's:$: $lt_compiler_flag:'` 8602 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8603 (eval "$lt_compile" 2>out/conftest.err) 8604 ac_status=$? 8605 cat out/conftest.err >&5 8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8607 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8608 then 8609 # The compiler can only warn and ignore the option if not recognized 8610 # So say no if there are warnings 8611 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8612 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8613 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8614 lt_cv_prog_compiler_c_o=yes 8615 fi 8616 fi 8617 chmod u+w . 2>&5 8618 $RM conftest* 8619 # SGI C++ compiler will create directory out/ii_files/ for 8620 # template instantiation 8621 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8622 $RM out/* && rmdir out 8623 cd .. 8624 $RM -r conftest 8625 $RM conftest* 8626 8627 fi 8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8629 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8630 8631 8632 8633 8634 8635 8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8637 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8638 if ${lt_cv_prog_compiler_c_o+:} false; then : 8639 $as_echo_n "(cached) " >&6 8640 else 8641 lt_cv_prog_compiler_c_o=no 8642 $RM -r conftest 2>/dev/null 8643 mkdir conftest 8644 cd conftest 8645 mkdir out 8646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8647 8648 lt_compiler_flag="-o out/conftest2.$ac_objext" 8649 # Insert the option either (1) after the last *FLAGS variable, or 8650 # (2) before a word containing "conftest.", or (3) at the end. 8651 # Note that $ac_compile itself does not contain backslashes and begins 8652 # with a dollar sign (not a hyphen), so the echo should work correctly. 8653 lt_compile=`echo "$ac_compile" | $SED \ 8654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8656 -e 's:$: $lt_compiler_flag:'` 8657 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8658 (eval "$lt_compile" 2>out/conftest.err) 8659 ac_status=$? 8660 cat out/conftest.err >&5 8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8662 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8663 then 8664 # The compiler can only warn and ignore the option if not recognized 8665 # So say no if there are warnings 8666 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8667 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8668 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8669 lt_cv_prog_compiler_c_o=yes 8670 fi 8671 fi 8672 chmod u+w . 2>&5 8673 $RM conftest* 8674 # SGI C++ compiler will create directory out/ii_files/ for 8675 # template instantiation 8676 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8677 $RM out/* && rmdir out 8678 cd .. 8679 $RM -r conftest 8680 $RM conftest* 8681 8682 fi 8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8684 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8685 8686 8687 8688 8689 hard_links="nottested" 8690 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8691 # do not overwrite the value of need_locks provided by the user 8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8693 $as_echo_n "checking if we can lock with hard links... " >&6; } 8694 hard_links=yes 8695 $RM conftest* 8696 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8697 touch conftest.a 8698 ln conftest.a conftest.b 2>&5 || hard_links=no 8699 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8701 $as_echo "$hard_links" >&6; } 8702 if test "$hard_links" = no; then 8703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8704 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8705 need_locks=warn 8706 fi 8707 else 8708 need_locks=no 8709 fi 8710 8711 8712 8713 8714 8715 8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8717 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8718 8719 runpath_var= 8720 allow_undefined_flag= 8721 always_export_symbols=no 8722 archive_cmds= 8723 archive_expsym_cmds= 8724 compiler_needs_object=no 8725 enable_shared_with_static_runtimes=no 8726 export_dynamic_flag_spec= 8727 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8728 hardcode_automatic=no 8729 hardcode_direct=no 8730 hardcode_direct_absolute=no 8731 hardcode_libdir_flag_spec= 8732 hardcode_libdir_flag_spec_ld= 8733 hardcode_libdir_separator= 8734 hardcode_minus_L=no 8735 hardcode_shlibpath_var=unsupported 8736 inherit_rpath=no 8737 link_all_deplibs=unknown 8738 module_cmds= 8739 module_expsym_cmds= 8740 old_archive_from_new_cmds= 8741 old_archive_from_expsyms_cmds= 8742 thread_safe_flag_spec= 8743 whole_archive_flag_spec= 8744 # include_expsyms should be a list of space-separated symbols to be *always* 8745 # included in the symbol list 8746 include_expsyms= 8747 # exclude_expsyms can be an extended regexp of symbols to exclude 8748 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8749 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8750 # as well as any symbol that contains `d'. 8751 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8752 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8753 # platforms (ab)use it in PIC code, but their linkers get confused if 8754 # the symbol is explicitly referenced. Since portable code cannot 8755 # rely on this symbol name, it's probably fine to never include it in 8756 # preloaded symbol tables. 8757 # Exclude shared library initialization/finalization symbols. 8758 extract_expsyms_cmds= 8759 8760 case $host_os in 8761 cygwin* | mingw* | pw32* | cegcc*) 8762 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8763 # When not using gcc, we currently assume that we are using 8764 # Microsoft Visual C++. 8765 if test "$GCC" != yes; then 8766 with_gnu_ld=no 8767 fi 8768 ;; 8769 interix*) 8770 # we just hope/assume this is gcc and not c89 (= MSVC++) 8771 with_gnu_ld=yes 8772 ;; 8773 openbsd*) 8774 with_gnu_ld=no 8775 ;; 8776 esac 8777 8778 ld_shlibs=yes 8779 8780 # On some targets, GNU ld is compatible enough with the native linker 8781 # that we're better off using the native interface for both. 8782 lt_use_gnu_ld_interface=no 8783 if test "$with_gnu_ld" = yes; then 8784 case $host_os in 8785 aix*) 8786 # The AIX port of GNU ld has always aspired to compatibility 8787 # with the native linker. However, as the warning in the GNU ld 8788 # block says, versions before 2.19.5* couldn't really create working 8789 # shared libraries, regardless of the interface used. 8790 case `$LD -v 2>&1` in 8791 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8792 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8793 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8794 *) 8795 lt_use_gnu_ld_interface=yes 8796 ;; 8797 esac 8798 ;; 8799 *) 8800 lt_use_gnu_ld_interface=yes 8801 ;; 8802 esac 8803 fi 8804 8805 if test "$lt_use_gnu_ld_interface" = yes; then 8806 # If archive_cmds runs LD, not CC, wlarc should be empty 8807 wlarc='${wl}' 8808 8809 # Set some defaults for GNU ld with shared library support. These 8810 # are reset later if shared libraries are not supported. Putting them 8811 # here allows them to be overridden if necessary. 8812 runpath_var=LD_RUN_PATH 8813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8814 export_dynamic_flag_spec='${wl}--export-dynamic' 8815 # ancient GNU ld didn't support --whole-archive et. al. 8816 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8817 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8818 else 8819 whole_archive_flag_spec= 8820 fi 8821 supports_anon_versioning=no 8822 case `$LD -v 2>&1` in 8823 *GNU\ gold*) supports_anon_versioning=yes ;; 8824 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8825 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8826 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8827 *\ 2.11.*) ;; # other 2.11 versions 8828 *) supports_anon_versioning=yes ;; 8829 esac 8830 8831 # See if GNU ld supports shared libraries. 8832 case $host_os in 8833 aix[3-9]*) 8834 # On AIX/PPC, the GNU linker is very broken 8835 if test "$host_cpu" != ia64; then 8836 ld_shlibs=no 8837 cat <<_LT_EOF 1>&2 8838 8839 *** Warning: the GNU linker, at least up to release 2.19, is reported 8840 *** to be unable to reliably create shared libraries on AIX. 8841 *** Therefore, libtool is disabling shared libraries support. If you 8842 *** really care for shared libraries, you may want to install binutils 8843 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8844 *** You will then need to restart the configuration process. 8845 8846 _LT_EOF 8847 fi 8848 ;; 8849 8850 amigaos*) 8851 case $host_cpu in 8852 powerpc) 8853 # see comment about AmigaOS4 .so support 8854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8855 archive_expsym_cmds='' 8856 ;; 8857 m68k) 8858 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)' 8859 hardcode_libdir_flag_spec='-L$libdir' 8860 hardcode_minus_L=yes 8861 ;; 8862 esac 8863 ;; 8864 8865 beos*) 8866 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8867 allow_undefined_flag=unsupported 8868 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 8869 # support --undefined. This deserves some investigation. FIXME 8870 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8871 else 8872 ld_shlibs=no 8873 fi 8874 ;; 8875 8876 cygwin* | mingw* | pw32* | cegcc*) 8877 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8878 # as there is no search path for DLLs. 8879 hardcode_libdir_flag_spec='-L$libdir' 8880 export_dynamic_flag_spec='${wl}--export-all-symbols' 8881 allow_undefined_flag=unsupported 8882 always_export_symbols=no 8883 enable_shared_with_static_runtimes=yes 8884 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8885 8886 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8888 # If the export-symbols file already is a .def file (1st line 8889 # is EXPORTS), use it as is; otherwise, prepend... 8890 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8891 cp $export_symbols $output_objdir/$soname.def; 8892 else 8893 echo EXPORTS > $output_objdir/$soname.def; 8894 cat $export_symbols >> $output_objdir/$soname.def; 8895 fi~ 8896 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8897 else 8898 ld_shlibs=no 8899 fi 8900 ;; 8901 8902 haiku*) 8903 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8904 link_all_deplibs=yes 8905 ;; 8906 8907 interix[3-9]*) 8908 hardcode_direct=no 8909 hardcode_shlibpath_var=no 8910 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8911 export_dynamic_flag_spec='${wl}-E' 8912 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8913 # Instead, shared libraries are loaded at an image base (0x10000000 by 8914 # default) and relocated if they conflict, which is a slow very memory 8915 # consuming and fragmenting process. To avoid this, we pick a random, 8916 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8917 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8918 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8919 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' 8920 ;; 8921 8922 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 8923 tmp_diet=no 8924 if test "$host_os" = linux-dietlibc; then 8925 case $cc_basename in 8926 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8927 esac 8928 fi 8929 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8930 && test "$tmp_diet" = no 8931 then 8932 tmp_addflag=' $pic_flag' 8933 tmp_sharedflag='-shared' 8934 case $cc_basename,$host_cpu in 8935 pgcc*) # Portland Group C compiler 8936 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' 8937 tmp_addflag=' $pic_flag' 8938 ;; 8939 pgf77* | pgf90* | pgf95* | pgfortran*) 8940 # Portland Group f77 and f90 compilers 8941 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' 8942 tmp_addflag=' $pic_flag -Mnomain' ;; 8943 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8944 tmp_addflag=' -i_dynamic' ;; 8945 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8946 tmp_addflag=' -i_dynamic -nofor_main' ;; 8947 ifc* | ifort*) # Intel Fortran compiler 8948 tmp_addflag=' -nofor_main' ;; 8949 lf95*) # Lahey Fortran 8.1 8950 whole_archive_flag_spec= 8951 tmp_sharedflag='--shared' ;; 8952 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8953 tmp_sharedflag='-qmkshrobj' 8954 tmp_addflag= ;; 8955 nvcc*) # Cuda Compiler Driver 2.2 8956 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' 8957 compiler_needs_object=yes 8958 ;; 8959 esac 8960 case `$CC -V 2>&1 | sed 5q` in 8961 *Sun\ C*) # Sun C 5.9 8962 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' 8963 compiler_needs_object=yes 8964 tmp_sharedflag='-G' ;; 8965 *Sun\ F*) # Sun Fortran 8.3 8966 tmp_sharedflag='-G' ;; 8967 esac 8968 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8969 8970 if test "x$supports_anon_versioning" = xyes; then 8971 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8972 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8973 echo "local: *; };" >> $output_objdir/$libname.ver~ 8974 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8975 fi 8976 8977 case $cc_basename in 8978 xlf* | bgf* | bgxlf* | mpixlf*) 8979 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8980 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8981 hardcode_libdir_flag_spec= 8982 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8983 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8984 if test "x$supports_anon_versioning" = xyes; then 8985 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8986 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8987 echo "local: *; };" >> $output_objdir/$libname.ver~ 8988 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8989 fi 8990 ;; 8991 esac 8992 else 8993 ld_shlibs=no 8994 fi 8995 ;; 8996 8997 netbsd*) 8998 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8999 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9000 wlarc= 9001 else 9002 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9003 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9004 fi 9005 ;; 9006 9007 solaris*) 9008 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9009 ld_shlibs=no 9010 cat <<_LT_EOF 1>&2 9011 9012 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9013 *** create shared libraries on Solaris systems. Therefore, libtool 9014 *** is disabling shared libraries support. We urge you to upgrade GNU 9015 *** binutils to release 2.9.1 or newer. Another option is to modify 9016 *** your PATH or compiler configuration so that the native linker is 9017 *** used, and then restart. 9018 9019 _LT_EOF 9020 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9022 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9023 else 9024 ld_shlibs=no 9025 fi 9026 ;; 9027 9028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9029 case `$LD -v 2>&1` in 9030 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9031 ld_shlibs=no 9032 cat <<_LT_EOF 1>&2 9033 9034 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9035 *** reliably create shared libraries on SCO systems. Therefore, libtool 9036 *** is disabling shared libraries support. We urge you to upgrade GNU 9037 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9038 *** your PATH or compiler configuration so that the native linker is 9039 *** used, and then restart. 9040 9041 _LT_EOF 9042 ;; 9043 *) 9044 # For security reasons, it is highly recommended that you always 9045 # use absolute paths for naming shared libraries, and exclude the 9046 # DT_RUNPATH tag from executables and libraries. But doing so 9047 # requires that you compile everything twice, which is a pain. 9048 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9049 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9051 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9052 else 9053 ld_shlibs=no 9054 fi 9055 ;; 9056 esac 9057 ;; 9058 9059 sunos4*) 9060 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9061 wlarc= 9062 hardcode_direct=yes 9063 hardcode_shlibpath_var=no 9064 ;; 9065 9066 *) 9067 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9069 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9070 else 9071 ld_shlibs=no 9072 fi 9073 ;; 9074 esac 9075 9076 if test "$ld_shlibs" = no; then 9077 runpath_var= 9078 hardcode_libdir_flag_spec= 9079 export_dynamic_flag_spec= 9080 whole_archive_flag_spec= 9081 fi 9082 else 9083 # PORTME fill in a description of your system's linker (not GNU ld) 9084 case $host_os in 9085 aix3*) 9086 allow_undefined_flag=unsupported 9087 always_export_symbols=yes 9088 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' 9089 # Note: this linker hardcodes the directories in LIBPATH if there 9090 # are no directories specified by -L. 9091 hardcode_minus_L=yes 9092 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9093 # Neither direct hardcoding nor static linking is supported with a 9094 # broken collect2. 9095 hardcode_direct=unsupported 9096 fi 9097 ;; 9098 9099 aix[4-9]*) 9100 if test "$host_cpu" = ia64; then 9101 # On IA64, the linker does run time linking by default, so we don't 9102 # have to do anything special. 9103 aix_use_runtimelinking=no 9104 exp_sym_flag='-Bexport' 9105 no_entry_flag="" 9106 else 9107 # If we're using GNU nm, then we don't want the "-C" option. 9108 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9109 # Also, AIX nm treats weak defined symbols like other global 9110 # defined symbols, whereas GNU nm marks them as "W". 9111 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9112 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' 9113 else 9114 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' 9115 fi 9116 aix_use_runtimelinking=no 9117 9118 # Test if we are trying to use run time linking or normal 9119 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9120 # need to do runtime linking. 9121 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9122 for ld_flag in $LDFLAGS; do 9123 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9124 aix_use_runtimelinking=yes 9125 break 9126 fi 9127 done 9128 ;; 9129 esac 9130 9131 exp_sym_flag='-bexport' 9132 no_entry_flag='-bnoentry' 9133 fi 9134 9135 # When large executables or shared objects are built, AIX ld can 9136 # have problems creating the table of contents. If linking a library 9137 # or program results in "error TOC overflow" add -mminimal-toc to 9138 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9139 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9140 9141 archive_cmds='' 9142 hardcode_direct=yes 9143 hardcode_direct_absolute=yes 9144 hardcode_libdir_separator=':' 9145 link_all_deplibs=yes 9146 file_list_spec='${wl}-f,' 9147 9148 if test "$GCC" = yes; then 9149 case $host_os in aix4.[012]|aix4.[012].*) 9150 # We only want to do this on AIX 4.2 and lower, the check 9151 # below for broken collect2 doesn't work under 4.3+ 9152 collect2name=`${CC} -print-prog-name=collect2` 9153 if test -f "$collect2name" && 9154 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9155 then 9156 # We have reworked collect2 9157 : 9158 else 9159 # We have old collect2 9160 hardcode_direct=unsupported 9161 # It fails to find uninstalled libraries when the uninstalled 9162 # path is not listed in the libpath. Setting hardcode_minus_L 9163 # to unsupported forces relinking 9164 hardcode_minus_L=yes 9165 hardcode_libdir_flag_spec='-L$libdir' 9166 hardcode_libdir_separator= 9167 fi 9168 ;; 9169 esac 9170 shared_flag='-shared' 9171 if test "$aix_use_runtimelinking" = yes; then 9172 shared_flag="$shared_flag "'${wl}-G' 9173 fi 9174 else 9175 # not using gcc 9176 if test "$host_cpu" = ia64; then 9177 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9178 # chokes on -Wl,-G. The following line is correct: 9179 shared_flag='-G' 9180 else 9181 if test "$aix_use_runtimelinking" = yes; then 9182 shared_flag='${wl}-G' 9183 else 9184 shared_flag='${wl}-bM:SRE' 9185 fi 9186 fi 9187 fi 9188 9189 export_dynamic_flag_spec='${wl}-bexpall' 9190 # It seems that -bexpall does not export symbols beginning with 9191 # underscore (_), so it is better to generate a list of symbols to export. 9192 always_export_symbols=yes 9193 if test "$aix_use_runtimelinking" = yes; then 9194 # Warning - without using the other runtime loading flags (-brtl), 9195 # -berok will link without error, but may produce a broken library. 9196 allow_undefined_flag='-berok' 9197 # Determine the default libpath from the value encoded in an 9198 # empty executable. 9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9200 /* end confdefs.h. */ 9201 9202 int 9203 main () 9204 { 9205 9206 ; 9207 return 0; 9208 } 9209 _ACEOF 9210 if ac_fn_c_try_link "$LINENO"; then : 9211 9212 lt_aix_libpath_sed=' 9213 /Import File Strings/,/^$/ { 9214 /^0/ { 9215 s/^0 *\(.*\)$/\1/ 9216 p 9217 } 9218 }' 9219 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9220 # Check for a 64-bit object if we didn't find anything. 9221 if test -z "$aix_libpath"; then 9222 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9223 fi 9224 fi 9225 rm -f core conftest.err conftest.$ac_objext \ 9226 conftest$ac_exeext conftest.$ac_ext 9227 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9228 9229 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9230 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" 9231 else 9232 if test "$host_cpu" = ia64; then 9233 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9234 allow_undefined_flag="-z nodefs" 9235 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" 9236 else 9237 # Determine the default libpath from the value encoded in an 9238 # empty executable. 9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9240 /* end confdefs.h. */ 9241 9242 int 9243 main () 9244 { 9245 9246 ; 9247 return 0; 9248 } 9249 _ACEOF 9250 if ac_fn_c_try_link "$LINENO"; then : 9251 9252 lt_aix_libpath_sed=' 9253 /Import File Strings/,/^$/ { 9254 /^0/ { 9255 s/^0 *\(.*\)$/\1/ 9256 p 9257 } 9258 }' 9259 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9260 # Check for a 64-bit object if we didn't find anything. 9261 if test -z "$aix_libpath"; then 9262 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9263 fi 9264 fi 9265 rm -f core conftest.err conftest.$ac_objext \ 9266 conftest$ac_exeext conftest.$ac_ext 9267 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9268 9269 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9270 # Warning - without using the other run time loading flags, 9271 # -berok will link without error, but may produce a broken library. 9272 no_undefined_flag=' ${wl}-bernotok' 9273 allow_undefined_flag=' ${wl}-berok' 9274 if test "$with_gnu_ld" = yes; then 9275 # We only use this code for GNU lds that support --whole-archive. 9276 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9277 else 9278 # Exported symbols can be pulled into shared objects from archives 9279 whole_archive_flag_spec='$convenience' 9280 fi 9281 archive_cmds_need_lc=yes 9282 # This is similar to how AIX traditionally builds its shared libraries. 9283 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' 9284 fi 9285 fi 9286 ;; 9287 9288 amigaos*) 9289 case $host_cpu in 9290 powerpc) 9291 # see comment about AmigaOS4 .so support 9292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9293 archive_expsym_cmds='' 9294 ;; 9295 m68k) 9296 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)' 9297 hardcode_libdir_flag_spec='-L$libdir' 9298 hardcode_minus_L=yes 9299 ;; 9300 esac 9301 ;; 9302 9303 bsdi[45]*) 9304 export_dynamic_flag_spec=-rdynamic 9305 ;; 9306 9307 cygwin* | mingw* | pw32* | cegcc*) 9308 # When not using gcc, we currently assume that we are using 9309 # Microsoft Visual C++. 9310 # hardcode_libdir_flag_spec is actually meaningless, as there is 9311 # no search path for DLLs. 9312 hardcode_libdir_flag_spec=' ' 9313 allow_undefined_flag=unsupported 9314 # Tell ltmain to make .lib files, not .a files. 9315 libext=lib 9316 # Tell ltmain to make .dll files, not .so files. 9317 shrext_cmds=".dll" 9318 # FIXME: Setting linknames here is a bad hack. 9319 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9320 # The linker will automatically build a .lib file if we build a DLL. 9321 old_archive_from_new_cmds='true' 9322 # FIXME: Should let the user specify the lib program. 9323 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9324 fix_srcfile_path='`cygpath -w "$srcfile"`' 9325 enable_shared_with_static_runtimes=yes 9326 ;; 9327 9328 darwin* | rhapsody*) 9329 9330 9331 archive_cmds_need_lc=no 9332 hardcode_direct=no 9333 hardcode_automatic=yes 9334 hardcode_shlibpath_var=unsupported 9335 if test "$lt_cv_ld_force_load" = "yes"; then 9336 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\"`' 9337 else 9338 whole_archive_flag_spec='' 9339 fi 9340 link_all_deplibs=yes 9341 allow_undefined_flag="$_lt_dar_allow_undefined" 9342 case $cc_basename in 9343 ifort*) _lt_dar_can_shared=yes ;; 9344 *) _lt_dar_can_shared=$GCC ;; 9345 esac 9346 if test "$_lt_dar_can_shared" = "yes"; then 9347 output_verbose_link_cmd=func_echo_all 9348 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9349 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9350 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}" 9351 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}" 9352 9353 else 9354 ld_shlibs=no 9355 fi 9356 9357 ;; 9358 9359 dgux*) 9360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9361 hardcode_libdir_flag_spec='-L$libdir' 9362 hardcode_shlibpath_var=no 9363 ;; 9364 9365 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9366 # support. Future versions do this automatically, but an explicit c++rt0.o 9367 # does not break anything, and helps significantly (at the cost of a little 9368 # extra space). 9369 freebsd2.2*) 9370 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9371 hardcode_libdir_flag_spec='-R$libdir' 9372 hardcode_direct=yes 9373 hardcode_shlibpath_var=no 9374 ;; 9375 9376 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9377 freebsd2.*) 9378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9379 hardcode_direct=yes 9380 hardcode_minus_L=yes 9381 hardcode_shlibpath_var=no 9382 ;; 9383 9384 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9385 freebsd* | dragonfly*) 9386 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9387 hardcode_libdir_flag_spec='-R$libdir' 9388 hardcode_direct=yes 9389 hardcode_shlibpath_var=no 9390 ;; 9391 9392 hpux9*) 9393 if test "$GCC" = yes; then 9394 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' 9395 else 9396 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' 9397 fi 9398 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9399 hardcode_libdir_separator=: 9400 hardcode_direct=yes 9401 9402 # hardcode_minus_L: Not really in the search PATH, 9403 # but as the default location of the library. 9404 hardcode_minus_L=yes 9405 export_dynamic_flag_spec='${wl}-E' 9406 ;; 9407 9408 hpux10*) 9409 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9410 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9411 else 9412 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9413 fi 9414 if test "$with_gnu_ld" = no; then 9415 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9416 hardcode_libdir_flag_spec_ld='+b $libdir' 9417 hardcode_libdir_separator=: 9418 hardcode_direct=yes 9419 hardcode_direct_absolute=yes 9420 export_dynamic_flag_spec='${wl}-E' 9421 # hardcode_minus_L: Not really in the search PATH, 9422 # but as the default location of the library. 9423 hardcode_minus_L=yes 9424 fi 9425 ;; 9426 9427 hpux11*) 9428 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9429 case $host_cpu in 9430 hppa*64*) 9431 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9432 ;; 9433 ia64*) 9434 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9435 ;; 9436 *) 9437 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9438 ;; 9439 esac 9440 else 9441 case $host_cpu in 9442 hppa*64*) 9443 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9444 ;; 9445 ia64*) 9446 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9447 ;; 9448 *) 9449 9450 # Older versions of the 11.00 compiler do not understand -b yet 9451 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9453 $as_echo_n "checking if $CC understands -b... " >&6; } 9454 if ${lt_cv_prog_compiler__b+:} false; then : 9455 $as_echo_n "(cached) " >&6 9456 else 9457 lt_cv_prog_compiler__b=no 9458 save_LDFLAGS="$LDFLAGS" 9459 LDFLAGS="$LDFLAGS -b" 9460 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9461 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9462 # The linker can only warn and ignore the option if not recognized 9463 # So say no if there are warnings 9464 if test -s conftest.err; then 9465 # Append any errors to the config.log. 9466 cat conftest.err 1>&5 9467 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9469 if diff conftest.exp conftest.er2 >/dev/null; then 9470 lt_cv_prog_compiler__b=yes 9471 fi 9472 else 9473 lt_cv_prog_compiler__b=yes 9474 fi 9475 fi 9476 $RM -r conftest* 9477 LDFLAGS="$save_LDFLAGS" 9478 9479 fi 9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9481 $as_echo "$lt_cv_prog_compiler__b" >&6; } 9482 9483 if test x"$lt_cv_prog_compiler__b" = xyes; then 9484 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9485 else 9486 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9487 fi 9488 9489 ;; 9490 esac 9491 fi 9492 if test "$with_gnu_ld" = no; then 9493 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9494 hardcode_libdir_separator=: 9495 9496 case $host_cpu in 9497 hppa*64*|ia64*) 9498 hardcode_direct=no 9499 hardcode_shlibpath_var=no 9500 ;; 9501 *) 9502 hardcode_direct=yes 9503 hardcode_direct_absolute=yes 9504 export_dynamic_flag_spec='${wl}-E' 9505 9506 # hardcode_minus_L: Not really in the search PATH, 9507 # but as the default location of the library. 9508 hardcode_minus_L=yes 9509 ;; 9510 esac 9511 fi 9512 ;; 9513 9514 irix5* | irix6* | nonstopux*) 9515 if test "$GCC" = yes; then 9516 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' 9517 # Try to use the -exported_symbol ld option, if it does not 9518 # work, assume that -exports_file does not work either and 9519 # implicitly export all symbols. 9520 save_LDFLAGS="$LDFLAGS" 9521 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9523 /* end confdefs.h. */ 9524 int foo(void) {} 9525 _ACEOF 9526 if ac_fn_c_try_link "$LINENO"; then : 9527 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' 9528 9529 fi 9530 rm -f core conftest.err conftest.$ac_objext \ 9531 conftest$ac_exeext conftest.$ac_ext 9532 LDFLAGS="$save_LDFLAGS" 9533 else 9534 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' 9535 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' 9536 fi 9537 archive_cmds_need_lc='no' 9538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9539 hardcode_libdir_separator=: 9540 inherit_rpath=yes 9541 link_all_deplibs=yes 9542 ;; 9543 9544 netbsd*) 9545 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9547 else 9548 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9549 fi 9550 hardcode_libdir_flag_spec='-R$libdir' 9551 hardcode_direct=yes 9552 hardcode_shlibpath_var=no 9553 ;; 9554 9555 newsos6) 9556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9557 hardcode_direct=yes 9558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9559 hardcode_libdir_separator=: 9560 hardcode_shlibpath_var=no 9561 ;; 9562 9563 *nto* | *qnx*) 9564 ;; 9565 9566 openbsd*) 9567 if test -f /usr/libexec/ld.so; then 9568 hardcode_direct=yes 9569 hardcode_shlibpath_var=no 9570 hardcode_direct_absolute=yes 9571 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9572 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9573 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9574 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9575 export_dynamic_flag_spec='${wl}-E' 9576 else 9577 case $host_os in 9578 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9580 hardcode_libdir_flag_spec='-R$libdir' 9581 ;; 9582 *) 9583 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9584 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9585 ;; 9586 esac 9587 fi 9588 else 9589 ld_shlibs=no 9590 fi 9591 ;; 9592 9593 os2*) 9594 hardcode_libdir_flag_spec='-L$libdir' 9595 hardcode_minus_L=yes 9596 allow_undefined_flag=unsupported 9597 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' 9598 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9599 ;; 9600 9601 osf3*) 9602 if test "$GCC" = yes; then 9603 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9604 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' 9605 else 9606 allow_undefined_flag=' -expect_unresolved \*' 9607 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' 9608 fi 9609 archive_cmds_need_lc='no' 9610 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9611 hardcode_libdir_separator=: 9612 ;; 9613 9614 osf4* | osf5*) # as osf3* with the addition of -msym flag 9615 if test "$GCC" = yes; then 9616 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9617 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' 9618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9619 else 9620 allow_undefined_flag=' -expect_unresolved \*' 9621 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' 9622 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~ 9623 $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' 9624 9625 # Both c and cxx compiler support -rpath directly 9626 hardcode_libdir_flag_spec='-rpath $libdir' 9627 fi 9628 archive_cmds_need_lc='no' 9629 hardcode_libdir_separator=: 9630 ;; 9631 9632 solaris*) 9633 no_undefined_flag=' -z defs' 9634 if test "$GCC" = yes; then 9635 wlarc='${wl}' 9636 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9637 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9638 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9639 else 9640 case `$CC -V 2>&1` in 9641 *"Compilers 5.0"*) 9642 wlarc='' 9643 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9644 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9645 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9646 ;; 9647 *) 9648 wlarc='${wl}' 9649 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9650 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9651 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9652 ;; 9653 esac 9654 fi 9655 hardcode_libdir_flag_spec='-R$libdir' 9656 hardcode_shlibpath_var=no 9657 case $host_os in 9658 solaris2.[0-5] | solaris2.[0-5].*) ;; 9659 *) 9660 # The compiler driver will combine and reorder linker options, 9661 # but understands `-z linker_flag'. GCC discards it without `$wl', 9662 # but is careful enough not to reorder. 9663 # Supported since Solaris 2.6 (maybe 2.5.1?) 9664 if test "$GCC" = yes; then 9665 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9666 else 9667 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9668 fi 9669 ;; 9670 esac 9671 link_all_deplibs=yes 9672 ;; 9673 9674 sunos4*) 9675 if test "x$host_vendor" = xsequent; then 9676 # Use $CC to link under sequent, because it throws in some extra .o 9677 # files that make .init and .fini sections work. 9678 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9679 else 9680 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9681 fi 9682 hardcode_libdir_flag_spec='-L$libdir' 9683 hardcode_direct=yes 9684 hardcode_minus_L=yes 9685 hardcode_shlibpath_var=no 9686 ;; 9687 9688 sysv4) 9689 case $host_vendor in 9690 sni) 9691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9692 hardcode_direct=yes # is this really true??? 9693 ;; 9694 siemens) 9695 ## LD is ld it makes a PLAMLIB 9696 ## CC just makes a GrossModule. 9697 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9698 reload_cmds='$CC -r -o $output$reload_objs' 9699 hardcode_direct=no 9700 ;; 9701 motorola) 9702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9703 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9704 ;; 9705 esac 9706 runpath_var='LD_RUN_PATH' 9707 hardcode_shlibpath_var=no 9708 ;; 9709 9710 sysv4.3*) 9711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9712 hardcode_shlibpath_var=no 9713 export_dynamic_flag_spec='-Bexport' 9714 ;; 9715 9716 sysv4*MP*) 9717 if test -d /usr/nec; then 9718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9719 hardcode_shlibpath_var=no 9720 runpath_var=LD_RUN_PATH 9721 hardcode_runpath_var=yes 9722 ld_shlibs=yes 9723 fi 9724 ;; 9725 9726 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9727 no_undefined_flag='${wl}-z,text' 9728 archive_cmds_need_lc=no 9729 hardcode_shlibpath_var=no 9730 runpath_var='LD_RUN_PATH' 9731 9732 if test "$GCC" = yes; then 9733 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9734 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9735 else 9736 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9737 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9738 fi 9739 ;; 9740 9741 sysv5* | sco3.2v5* | sco5v6*) 9742 # Note: We can NOT use -z defs as we might desire, because we do not 9743 # link with -lc, and that would cause any symbols used from libc to 9744 # always be unresolved, which means just about no library would 9745 # ever link correctly. If we're not using GNU ld we use -z text 9746 # though, which does catch some bad symbols but isn't as heavy-handed 9747 # as -z defs. 9748 no_undefined_flag='${wl}-z,text' 9749 allow_undefined_flag='${wl}-z,nodefs' 9750 archive_cmds_need_lc=no 9751 hardcode_shlibpath_var=no 9752 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9753 hardcode_libdir_separator=':' 9754 link_all_deplibs=yes 9755 export_dynamic_flag_spec='${wl}-Bexport' 9756 runpath_var='LD_RUN_PATH' 9757 9758 if test "$GCC" = yes; then 9759 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9760 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9761 else 9762 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9763 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9764 fi 9765 ;; 9766 9767 uts4*) 9768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9769 hardcode_libdir_flag_spec='-L$libdir' 9770 hardcode_shlibpath_var=no 9771 ;; 9772 9773 *) 9774 ld_shlibs=no 9775 ;; 9776 esac 9777 9778 if test x$host_vendor = xsni; then 9779 case $host in 9780 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9781 export_dynamic_flag_spec='${wl}-Blargedynsym' 9782 ;; 9783 esac 9784 fi 9785 fi 9786 9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9788 $as_echo "$ld_shlibs" >&6; } 9789 test "$ld_shlibs" = no && can_build_shared=no 9790 9791 with_gnu_ld=$with_gnu_ld 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 # 9808 # Do we need to explicitly link libc? 9809 # 9810 case "x$archive_cmds_need_lc" in 9811 x|xyes) 9812 # Assume -lc should be added 9813 archive_cmds_need_lc=yes 9814 9815 if test "$enable_shared" = yes && test "$GCC" = yes; then 9816 case $archive_cmds in 9817 *'~'*) 9818 # FIXME: we may have to deal with multi-command sequences. 9819 ;; 9820 '$CC '*) 9821 # Test whether the compiler implicitly links with -lc since on some 9822 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9823 # to ld, don't add -lc before -lgcc. 9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9825 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9826 if ${lt_cv_archive_cmds_need_lc+:} false; then : 9827 $as_echo_n "(cached) " >&6 9828 else 9829 $RM conftest* 9830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9831 9832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9833 (eval $ac_compile) 2>&5 9834 ac_status=$? 9835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9836 test $ac_status = 0; } 2>conftest.err; then 9837 soname=conftest 9838 lib=conftest 9839 libobjs=conftest.$ac_objext 9840 deplibs= 9841 wl=$lt_prog_compiler_wl 9842 pic_flag=$lt_prog_compiler_pic 9843 compiler_flags=-v 9844 linker_flags=-v 9845 verstring= 9846 output_objdir=. 9847 libname=conftest 9848 lt_save_allow_undefined_flag=$allow_undefined_flag 9849 allow_undefined_flag= 9850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9851 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9852 ac_status=$? 9853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9854 test $ac_status = 0; } 9855 then 9856 lt_cv_archive_cmds_need_lc=no 9857 else 9858 lt_cv_archive_cmds_need_lc=yes 9859 fi 9860 allow_undefined_flag=$lt_save_allow_undefined_flag 9861 else 9862 cat conftest.err 1>&5 9863 fi 9864 $RM conftest* 9865 9866 fi 9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9868 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9869 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9870 ;; 9871 esac 9872 fi 9873 ;; 9874 esac 9875 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10033 $as_echo_n "checking dynamic linker characteristics... " >&6; } 10034 10035 if test "$GCC" = yes; then 10036 case $host_os in 10037 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10038 *) lt_awk_arg="/^libraries:/" ;; 10039 esac 10040 case $host_os in 10041 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10042 *) lt_sed_strip_eq="s,=/,/,g" ;; 10043 esac 10044 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10045 case $lt_search_path_spec in 10046 *\;*) 10047 # if the path contains ";" then we assume it to be the separator 10048 # otherwise default to the standard path separator (i.e. ":") - it is 10049 # assumed that no part of a normal pathname contains ";" but that should 10050 # okay in the real world where ";" in dirpaths is itself problematic. 10051 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10052 ;; 10053 *) 10054 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10055 ;; 10056 esac 10057 # Ok, now we have the path, separated by spaces, we can step through it 10058 # and add multilib dir if necessary. 10059 lt_tmp_lt_search_path_spec= 10060 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10061 for lt_sys_path in $lt_search_path_spec; do 10062 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10063 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10064 else 10065 test -d "$lt_sys_path" && \ 10066 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10067 fi 10068 done 10069 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10070 BEGIN {RS=" "; FS="/|\n";} { 10071 lt_foo=""; 10072 lt_count=0; 10073 for (lt_i = NF; lt_i > 0; lt_i--) { 10074 if ($lt_i != "" && $lt_i != ".") { 10075 if ($lt_i == "..") { 10076 lt_count++; 10077 } else { 10078 if (lt_count == 0) { 10079 lt_foo="/" $lt_i lt_foo; 10080 } else { 10081 lt_count--; 10082 } 10083 } 10084 } 10085 } 10086 if (lt_foo != "") { lt_freq[lt_foo]++; } 10087 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10088 }'` 10089 # AWK program above erroneously prepends '/' to C:/dos/paths 10090 # for these hosts. 10091 case $host_os in 10092 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10093 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10094 esac 10095 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10096 else 10097 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10098 fi 10099 library_names_spec= 10100 libname_spec='lib$name' 10101 soname_spec= 10102 shrext_cmds=".so" 10103 postinstall_cmds= 10104 postuninstall_cmds= 10105 finish_cmds= 10106 finish_eval= 10107 shlibpath_var= 10108 shlibpath_overrides_runpath=unknown 10109 version_type=none 10110 dynamic_linker="$host_os ld.so" 10111 sys_lib_dlsearch_path_spec="/lib /usr/lib" 10112 need_lib_prefix=unknown 10113 hardcode_into_libs=no 10114 10115 # when you set need_version to no, make sure it does not cause -set_version 10116 # flags to be left without arguments 10117 need_version=unknown 10118 10119 case $host_os in 10120 aix3*) 10121 version_type=linux 10122 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10123 shlibpath_var=LIBPATH 10124 10125 # AIX 3 has no versioning support, so we append a major version to the name. 10126 soname_spec='${libname}${release}${shared_ext}$major' 10127 ;; 10128 10129 aix[4-9]*) 10130 version_type=linux 10131 need_lib_prefix=no 10132 need_version=no 10133 hardcode_into_libs=yes 10134 if test "$host_cpu" = ia64; then 10135 # AIX 5 supports IA64 10136 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10137 shlibpath_var=LD_LIBRARY_PATH 10138 else 10139 # With GCC up to 2.95.x, collect2 would create an import file 10140 # for dependence libraries. The import file would start with 10141 # the line `#! .'. This would cause the generated library to 10142 # depend on `.', always an invalid library. This was fixed in 10143 # development snapshots of GCC prior to 3.0. 10144 case $host_os in 10145 aix4 | aix4.[01] | aix4.[01].*) 10146 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10147 echo ' yes ' 10148 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10149 : 10150 else 10151 can_build_shared=no 10152 fi 10153 ;; 10154 esac 10155 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10156 # soname into executable. Probably we can add versioning support to 10157 # collect2, so additional links can be useful in future. 10158 if test "$aix_use_runtimelinking" = yes; then 10159 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10160 # instead of lib<name>.a to let people know that these are not 10161 # typical AIX shared libraries. 10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10163 else 10164 # We preserve .a as extension for shared libraries through AIX4.2 10165 # and later when we are not doing run time linking. 10166 library_names_spec='${libname}${release}.a $libname.a' 10167 soname_spec='${libname}${release}${shared_ext}$major' 10168 fi 10169 shlibpath_var=LIBPATH 10170 fi 10171 ;; 10172 10173 amigaos*) 10174 case $host_cpu in 10175 powerpc) 10176 # Since July 2007 AmigaOS4 officially supports .so libraries. 10177 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10179 ;; 10180 m68k) 10181 library_names_spec='$libname.ixlibrary $libname.a' 10182 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10183 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' 10184 ;; 10185 esac 10186 ;; 10187 10188 beos*) 10189 library_names_spec='${libname}${shared_ext}' 10190 dynamic_linker="$host_os ld.so" 10191 shlibpath_var=LIBRARY_PATH 10192 ;; 10193 10194 bsdi[45]*) 10195 version_type=linux 10196 need_version=no 10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10198 soname_spec='${libname}${release}${shared_ext}$major' 10199 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10200 shlibpath_var=LD_LIBRARY_PATH 10201 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10202 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10203 # the default ld.so.conf also contains /usr/contrib/lib and 10204 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10205 # libtool to hard-code these into programs 10206 ;; 10207 10208 cygwin* | mingw* | pw32* | cegcc*) 10209 version_type=windows 10210 shrext_cmds=".dll" 10211 need_version=no 10212 need_lib_prefix=no 10213 10214 case $GCC,$host_os in 10215 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10216 library_names_spec='$libname.dll.a' 10217 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10218 postinstall_cmds='base_file=`basename \${file}`~ 10219 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10220 dldir=$destdir/`dirname \$dlpath`~ 10221 test -d \$dldir || mkdir -p \$dldir~ 10222 $install_prog $dir/$dlname \$dldir/$dlname~ 10223 chmod a+x \$dldir/$dlname~ 10224 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10225 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10226 fi' 10227 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10228 dlpath=$dir/\$dldll~ 10229 $RM \$dlpath' 10230 shlibpath_overrides_runpath=yes 10231 10232 case $host_os in 10233 cygwin*) 10234 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10235 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10236 10237 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10238 ;; 10239 mingw* | cegcc*) 10240 # MinGW DLLs use traditional 'lib' prefix 10241 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10242 ;; 10243 pw32*) 10244 # pw32 DLLs use 'pw' prefix rather than 'lib' 10245 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10246 ;; 10247 esac 10248 ;; 10249 10250 *) 10251 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10252 ;; 10253 esac 10254 dynamic_linker='Win32 ld.exe' 10255 # FIXME: first we should search . and the directory the executable is in 10256 shlibpath_var=PATH 10257 ;; 10258 10259 darwin* | rhapsody*) 10260 dynamic_linker="$host_os dyld" 10261 version_type=darwin 10262 need_lib_prefix=no 10263 need_version=no 10264 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10265 soname_spec='${libname}${release}${major}$shared_ext' 10266 shlibpath_overrides_runpath=yes 10267 shlibpath_var=DYLD_LIBRARY_PATH 10268 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10269 10270 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10271 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10272 ;; 10273 10274 dgux*) 10275 version_type=linux 10276 need_lib_prefix=no 10277 need_version=no 10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10279 soname_spec='${libname}${release}${shared_ext}$major' 10280 shlibpath_var=LD_LIBRARY_PATH 10281 ;; 10282 10283 freebsd* | dragonfly*) 10284 # DragonFly does not have aout. When/if they implement a new 10285 # versioning mechanism, adjust this. 10286 if test -x /usr/bin/objformat; then 10287 objformat=`/usr/bin/objformat` 10288 else 10289 case $host_os in 10290 freebsd[23].*) objformat=aout ;; 10291 *) objformat=elf ;; 10292 esac 10293 fi 10294 version_type=freebsd-$objformat 10295 case $version_type in 10296 freebsd-elf*) 10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10298 need_version=no 10299 need_lib_prefix=no 10300 ;; 10301 freebsd-*) 10302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10303 need_version=yes 10304 ;; 10305 esac 10306 shlibpath_var=LD_LIBRARY_PATH 10307 case $host_os in 10308 freebsd2.*) 10309 shlibpath_overrides_runpath=yes 10310 ;; 10311 freebsd3.[01]* | freebsdelf3.[01]*) 10312 shlibpath_overrides_runpath=yes 10313 hardcode_into_libs=yes 10314 ;; 10315 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10316 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10317 shlibpath_overrides_runpath=no 10318 hardcode_into_libs=yes 10319 ;; 10320 *) # from 4.6 on, and DragonFly 10321 shlibpath_overrides_runpath=yes 10322 hardcode_into_libs=yes 10323 ;; 10324 esac 10325 ;; 10326 10327 haiku*) 10328 version_type=linux 10329 need_lib_prefix=no 10330 need_version=no 10331 dynamic_linker="$host_os runtime_loader" 10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10333 soname_spec='${libname}${release}${shared_ext}$major' 10334 shlibpath_var=LIBRARY_PATH 10335 shlibpath_overrides_runpath=yes 10336 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10337 hardcode_into_libs=yes 10338 ;; 10339 10340 hpux9* | hpux10* | hpux11*) 10341 # Give a soname corresponding to the major version so that dld.sl refuses to 10342 # link against other versions. 10343 version_type=sunos 10344 need_lib_prefix=no 10345 need_version=no 10346 case $host_cpu in 10347 ia64*) 10348 shrext_cmds='.so' 10349 hardcode_into_libs=yes 10350 dynamic_linker="$host_os dld.so" 10351 shlibpath_var=LD_LIBRARY_PATH 10352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10354 soname_spec='${libname}${release}${shared_ext}$major' 10355 if test "X$HPUX_IA64_MODE" = X32; then 10356 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10357 else 10358 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10359 fi 10360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10361 ;; 10362 hppa*64*) 10363 shrext_cmds='.sl' 10364 hardcode_into_libs=yes 10365 dynamic_linker="$host_os dld.sl" 10366 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10369 soname_spec='${libname}${release}${shared_ext}$major' 10370 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10371 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10372 ;; 10373 *) 10374 shrext_cmds='.sl' 10375 dynamic_linker="$host_os dld.sl" 10376 shlibpath_var=SHLIB_PATH 10377 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10379 soname_spec='${libname}${release}${shared_ext}$major' 10380 ;; 10381 esac 10382 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10383 postinstall_cmds='chmod 555 $lib' 10384 # or fails outright, so override atomically: 10385 install_override_mode=555 10386 ;; 10387 10388 interix[3-9]*) 10389 version_type=linux 10390 need_lib_prefix=no 10391 need_version=no 10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10393 soname_spec='${libname}${release}${shared_ext}$major' 10394 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10395 shlibpath_var=LD_LIBRARY_PATH 10396 shlibpath_overrides_runpath=no 10397 hardcode_into_libs=yes 10398 ;; 10399 10400 irix5* | irix6* | nonstopux*) 10401 case $host_os in 10402 nonstopux*) version_type=nonstopux ;; 10403 *) 10404 if test "$lt_cv_prog_gnu_ld" = yes; then 10405 version_type=linux 10406 else 10407 version_type=irix 10408 fi ;; 10409 esac 10410 need_lib_prefix=no 10411 need_version=no 10412 soname_spec='${libname}${release}${shared_ext}$major' 10413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10414 case $host_os in 10415 irix5* | nonstopux*) 10416 libsuff= shlibsuff= 10417 ;; 10418 *) 10419 case $LD in # libtool.m4 will add one of these switches to LD 10420 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10421 libsuff= shlibsuff= libmagic=32-bit;; 10422 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10423 libsuff=32 shlibsuff=N32 libmagic=N32;; 10424 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10425 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10426 *) libsuff= shlibsuff= libmagic=never-match;; 10427 esac 10428 ;; 10429 esac 10430 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10431 shlibpath_overrides_runpath=no 10432 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10433 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10434 hardcode_into_libs=yes 10435 ;; 10436 10437 # No shared lib support for Linux oldld, aout, or coff. 10438 linux*oldld* | linux*aout* | linux*coff*) 10439 dynamic_linker=no 10440 ;; 10441 10442 # This must be Linux ELF. 10443 10444 # uclinux* changes (here and below) have been submitted to the libtool 10445 # project, but have not yet been accepted: they are GCC-local changes 10446 # for the time being. (See 10447 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 10448 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) 10449 version_type=linux 10450 need_lib_prefix=no 10451 need_version=no 10452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10453 soname_spec='${libname}${release}${shared_ext}$major' 10454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10455 shlibpath_var=LD_LIBRARY_PATH 10456 shlibpath_overrides_runpath=no 10457 10458 # Some binutils ld are patched to set DT_RUNPATH 10459 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10460 $as_echo_n "(cached) " >&6 10461 else 10462 lt_cv_shlibpath_overrides_runpath=no 10463 save_LDFLAGS=$LDFLAGS 10464 save_libdir=$libdir 10465 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10466 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10468 /* end confdefs.h. */ 10469 10470 int 10471 main () 10472 { 10473 10474 ; 10475 return 0; 10476 } 10477 _ACEOF 10478 if ac_fn_c_try_link "$LINENO"; then : 10479 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10480 lt_cv_shlibpath_overrides_runpath=yes 10481 fi 10482 fi 10483 rm -f core conftest.err conftest.$ac_objext \ 10484 conftest$ac_exeext conftest.$ac_ext 10485 LDFLAGS=$save_LDFLAGS 10486 libdir=$save_libdir 10487 10488 fi 10489 10490 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10491 10492 # This implies no fast_install, which is unacceptable. 10493 # Some rework will be needed to allow for fast_install 10494 # before this can be enabled. 10495 hardcode_into_libs=yes 10496 10497 # Append ld.so.conf contents to the search path 10498 if test -f /etc/ld.so.conf; then 10499 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' ' '` 10500 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10501 fi 10502 10503 # We used to test for /lib/ld.so.1 and disable shared libraries on 10504 # powerpc, because MkLinux only supported shared libraries with the 10505 # GNU dynamic linker. Since this was broken with cross compilers, 10506 # most powerpc-linux boxes support dynamic linking these days and 10507 # people can always --disable-shared, the test was removed, and we 10508 # assume the GNU/Linux dynamic linker is in use. 10509 dynamic_linker='GNU/Linux ld.so' 10510 ;; 10511 10512 netbsd*) 10513 version_type=sunos 10514 need_lib_prefix=no 10515 need_version=no 10516 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10519 dynamic_linker='NetBSD (a.out) ld.so' 10520 else 10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10522 soname_spec='${libname}${release}${shared_ext}$major' 10523 dynamic_linker='NetBSD ld.elf_so' 10524 fi 10525 shlibpath_var=LD_LIBRARY_PATH 10526 shlibpath_overrides_runpath=yes 10527 hardcode_into_libs=yes 10528 ;; 10529 10530 newsos6) 10531 version_type=linux 10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10533 shlibpath_var=LD_LIBRARY_PATH 10534 shlibpath_overrides_runpath=yes 10535 ;; 10536 10537 *nto* | *qnx*) 10538 version_type=qnx 10539 need_lib_prefix=no 10540 need_version=no 10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10542 soname_spec='${libname}${release}${shared_ext}$major' 10543 shlibpath_var=LD_LIBRARY_PATH 10544 shlibpath_overrides_runpath=no 10545 hardcode_into_libs=yes 10546 dynamic_linker='ldqnx.so' 10547 ;; 10548 10549 openbsd*) 10550 version_type=sunos 10551 sys_lib_dlsearch_path_spec="/usr/lib" 10552 need_lib_prefix=no 10553 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10554 case $host_os in 10555 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10556 *) need_version=no ;; 10557 esac 10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10560 shlibpath_var=LD_LIBRARY_PATH 10561 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10562 case $host_os in 10563 openbsd2.[89] | openbsd2.[89].*) 10564 shlibpath_overrides_runpath=no 10565 ;; 10566 *) 10567 shlibpath_overrides_runpath=yes 10568 ;; 10569 esac 10570 else 10571 shlibpath_overrides_runpath=yes 10572 fi 10573 ;; 10574 10575 os2*) 10576 libname_spec='$name' 10577 shrext_cmds=".dll" 10578 need_lib_prefix=no 10579 library_names_spec='$libname${shared_ext} $libname.a' 10580 dynamic_linker='OS/2 ld.exe' 10581 shlibpath_var=LIBPATH 10582 ;; 10583 10584 osf3* | osf4* | osf5*) 10585 version_type=osf 10586 need_lib_prefix=no 10587 need_version=no 10588 soname_spec='${libname}${release}${shared_ext}$major' 10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10590 shlibpath_var=LD_LIBRARY_PATH 10591 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10592 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10593 ;; 10594 10595 rdos*) 10596 dynamic_linker=no 10597 ;; 10598 10599 solaris*) 10600 version_type=linux 10601 need_lib_prefix=no 10602 need_version=no 10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10604 soname_spec='${libname}${release}${shared_ext}$major' 10605 shlibpath_var=LD_LIBRARY_PATH 10606 shlibpath_overrides_runpath=yes 10607 hardcode_into_libs=yes 10608 # ldd complains unless libraries are executable 10609 postinstall_cmds='chmod +x $lib' 10610 ;; 10611 10612 sunos4*) 10613 version_type=sunos 10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10615 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10616 shlibpath_var=LD_LIBRARY_PATH 10617 shlibpath_overrides_runpath=yes 10618 if test "$with_gnu_ld" = yes; then 10619 need_lib_prefix=no 10620 fi 10621 need_version=yes 10622 ;; 10623 10624 sysv4 | sysv4.3*) 10625 version_type=linux 10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10627 soname_spec='${libname}${release}${shared_ext}$major' 10628 shlibpath_var=LD_LIBRARY_PATH 10629 case $host_vendor in 10630 sni) 10631 shlibpath_overrides_runpath=no 10632 need_lib_prefix=no 10633 runpath_var=LD_RUN_PATH 10634 ;; 10635 siemens) 10636 need_lib_prefix=no 10637 ;; 10638 motorola) 10639 need_lib_prefix=no 10640 need_version=no 10641 shlibpath_overrides_runpath=no 10642 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10643 ;; 10644 esac 10645 ;; 10646 10647 sysv4*MP*) 10648 if test -d /usr/nec ;then 10649 version_type=linux 10650 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10651 soname_spec='$libname${shared_ext}.$major' 10652 shlibpath_var=LD_LIBRARY_PATH 10653 fi 10654 ;; 10655 10656 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10657 version_type=freebsd-elf 10658 need_lib_prefix=no 10659 need_version=no 10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10661 soname_spec='${libname}${release}${shared_ext}$major' 10662 shlibpath_var=LD_LIBRARY_PATH 10663 shlibpath_overrides_runpath=yes 10664 hardcode_into_libs=yes 10665 if test "$with_gnu_ld" = yes; then 10666 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10667 else 10668 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10669 case $host_os in 10670 sco3.2v5*) 10671 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10672 ;; 10673 esac 10674 fi 10675 sys_lib_dlsearch_path_spec='/usr/lib' 10676 ;; 10677 10678 tpf*) 10679 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10680 version_type=linux 10681 need_lib_prefix=no 10682 need_version=no 10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10684 shlibpath_var=LD_LIBRARY_PATH 10685 shlibpath_overrides_runpath=no 10686 hardcode_into_libs=yes 10687 ;; 10688 10689 uts4*) 10690 version_type=linux 10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10692 soname_spec='${libname}${release}${shared_ext}$major' 10693 shlibpath_var=LD_LIBRARY_PATH 10694 ;; 10695 10696 # Shared libraries for VwWorks, >= 7 only at this stage 10697 # and (fpic) still incompatible with "large" code models 10698 # in a few configurations. Only for RTP mode in any case, 10699 # and upon explicit request at configure time. 10700 vxworks7*) 10701 dynamic_linker=no 10702 case ${with_multisubdir}-${enable_shared} in 10703 *large*) 10704 ;; 10705 *mrtp*-yes) 10706 version_type=linux 10707 need_lib_prefix=no 10708 need_version=no 10709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10710 soname_spec='${libname}${release}${shared_ext}$major' 10711 dynamic_linker="$host_os module_loader" 10712 ;; 10713 esac 10714 ;; 10715 *) 10716 dynamic_linker=no 10717 ;; 10718 esac 10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10720 $as_echo "$dynamic_linker" >&6; } 10721 test "$dynamic_linker" = no && can_build_shared=no 10722 10723 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10724 if test "$GCC" = yes; then 10725 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10726 fi 10727 10728 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10729 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10730 fi 10731 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10732 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10733 fi 10734 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10827 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10828 hardcode_action= 10829 if test -n "$hardcode_libdir_flag_spec" || 10830 test -n "$runpath_var" || 10831 test "X$hardcode_automatic" = "Xyes" ; then 10832 10833 # We can hardcode non-existent directories. 10834 if test "$hardcode_direct" != no && 10835 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10836 # have to relink, otherwise we might link with an installed library 10837 # when we should be linking with a yet-to-be-installed one 10838 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10839 test "$hardcode_minus_L" != no; then 10840 # Linking always hardcodes the temporary library directory. 10841 hardcode_action=relink 10842 else 10843 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10844 hardcode_action=immediate 10845 fi 10846 else 10847 # We cannot hardcode anything, or else we can only hardcode existing 10848 # directories. 10849 hardcode_action=unsupported 10850 fi 10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10852 $as_echo "$hardcode_action" >&6; } 10853 10854 if test "$hardcode_action" = relink || 10855 test "$inherit_rpath" = yes; then 10856 # Fast installation is not supported 10857 enable_fast_install=no 10858 elif test "$shlibpath_overrides_runpath" = yes || 10859 test "$enable_shared" = no; then 10860 # Fast installation is not necessary 10861 enable_fast_install=needless 10862 fi 10863 10864 10865 10866 10867 10868 10869 if test "x$enable_dlopen" != xyes; then 10870 enable_dlopen=unknown 10871 enable_dlopen_self=unknown 10872 enable_dlopen_self_static=unknown 10873 else 10874 lt_cv_dlopen=no 10875 lt_cv_dlopen_libs= 10876 10877 case $host_os in 10878 beos*) 10879 lt_cv_dlopen="load_add_on" 10880 lt_cv_dlopen_libs= 10881 lt_cv_dlopen_self=yes 10882 ;; 10883 10884 mingw* | pw32* | cegcc*) 10885 lt_cv_dlopen="LoadLibrary" 10886 lt_cv_dlopen_libs= 10887 ;; 10888 10889 cygwin*) 10890 lt_cv_dlopen="dlopen" 10891 lt_cv_dlopen_libs= 10892 ;; 10893 10894 darwin*) 10895 # if libdl is installed we need to link against it 10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10897 $as_echo_n "checking for dlopen in -ldl... " >&6; } 10898 if ${ac_cv_lib_dl_dlopen+:} false; then : 10899 $as_echo_n "(cached) " >&6 10900 else 10901 ac_check_lib_save_LIBS=$LIBS 10902 LIBS="-ldl $LIBS" 10903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10904 /* end confdefs.h. */ 10905 10906 /* Override any GCC internal prototype to avoid an error. 10907 Use char because int might match the return type of a GCC 10908 builtin and then its argument prototype would still apply. */ 10909 #ifdef __cplusplus 10910 extern "C" 10911 #endif 10912 char dlopen (); 10913 int 10914 main () 10915 { 10916 return dlopen (); 10917 ; 10918 return 0; 10919 } 10920 _ACEOF 10921 if ac_fn_c_try_link "$LINENO"; then : 10922 ac_cv_lib_dl_dlopen=yes 10923 else 10924 ac_cv_lib_dl_dlopen=no 10925 fi 10926 rm -f core conftest.err conftest.$ac_objext \ 10927 conftest$ac_exeext conftest.$ac_ext 10928 LIBS=$ac_check_lib_save_LIBS 10929 fi 10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10931 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10932 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10933 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10934 else 10935 10936 lt_cv_dlopen="dyld" 10937 lt_cv_dlopen_libs= 10938 lt_cv_dlopen_self=yes 10939 10940 fi 10941 10942 ;; 10943 10944 *) 10945 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10946 if test "x$ac_cv_func_shl_load" = xyes; then : 10947 lt_cv_dlopen="shl_load" 10948 else 10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10950 $as_echo_n "checking for shl_load in -ldld... " >&6; } 10951 if ${ac_cv_lib_dld_shl_load+:} false; then : 10952 $as_echo_n "(cached) " >&6 10953 else 10954 ac_check_lib_save_LIBS=$LIBS 10955 LIBS="-ldld $LIBS" 10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10957 /* end confdefs.h. */ 10958 10959 /* Override any GCC internal prototype to avoid an error. 10960 Use char because int might match the return type of a GCC 10961 builtin and then its argument prototype would still apply. */ 10962 #ifdef __cplusplus 10963 extern "C" 10964 #endif 10965 char shl_load (); 10966 int 10967 main () 10968 { 10969 return shl_load (); 10970 ; 10971 return 0; 10972 } 10973 _ACEOF 10974 if ac_fn_c_try_link "$LINENO"; then : 10975 ac_cv_lib_dld_shl_load=yes 10976 else 10977 ac_cv_lib_dld_shl_load=no 10978 fi 10979 rm -f core conftest.err conftest.$ac_objext \ 10980 conftest$ac_exeext conftest.$ac_ext 10981 LIBS=$ac_check_lib_save_LIBS 10982 fi 10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10984 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10985 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10986 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10987 else 10988 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10989 if test "x$ac_cv_func_dlopen" = xyes; then : 10990 lt_cv_dlopen="dlopen" 10991 else 10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10993 $as_echo_n "checking for dlopen in -ldl... " >&6; } 10994 if ${ac_cv_lib_dl_dlopen+:} false; then : 10995 $as_echo_n "(cached) " >&6 10996 else 10997 ac_check_lib_save_LIBS=$LIBS 10998 LIBS="-ldl $LIBS" 10999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11000 /* end confdefs.h. */ 11001 11002 /* Override any GCC internal prototype to avoid an error. 11003 Use char because int might match the return type of a GCC 11004 builtin and then its argument prototype would still apply. */ 11005 #ifdef __cplusplus 11006 extern "C" 11007 #endif 11008 char dlopen (); 11009 int 11010 main () 11011 { 11012 return dlopen (); 11013 ; 11014 return 0; 11015 } 11016 _ACEOF 11017 if ac_fn_c_try_link "$LINENO"; then : 11018 ac_cv_lib_dl_dlopen=yes 11019 else 11020 ac_cv_lib_dl_dlopen=no 11021 fi 11022 rm -f core conftest.err conftest.$ac_objext \ 11023 conftest$ac_exeext conftest.$ac_ext 11024 LIBS=$ac_check_lib_save_LIBS 11025 fi 11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11027 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11028 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11029 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11030 else 11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11032 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 11033 if ${ac_cv_lib_svld_dlopen+:} false; then : 11034 $as_echo_n "(cached) " >&6 11035 else 11036 ac_check_lib_save_LIBS=$LIBS 11037 LIBS="-lsvld $LIBS" 11038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11039 /* end confdefs.h. */ 11040 11041 /* Override any GCC internal prototype to avoid an error. 11042 Use char because int might match the return type of a GCC 11043 builtin and then its argument prototype would still apply. */ 11044 #ifdef __cplusplus 11045 extern "C" 11046 #endif 11047 char dlopen (); 11048 int 11049 main () 11050 { 11051 return dlopen (); 11052 ; 11053 return 0; 11054 } 11055 _ACEOF 11056 if ac_fn_c_try_link "$LINENO"; then : 11057 ac_cv_lib_svld_dlopen=yes 11058 else 11059 ac_cv_lib_svld_dlopen=no 11060 fi 11061 rm -f core conftest.err conftest.$ac_objext \ 11062 conftest$ac_exeext conftest.$ac_ext 11063 LIBS=$ac_check_lib_save_LIBS 11064 fi 11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11066 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11067 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11068 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11069 else 11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11071 $as_echo_n "checking for dld_link in -ldld... " >&6; } 11072 if ${ac_cv_lib_dld_dld_link+:} false; then : 11073 $as_echo_n "(cached) " >&6 11074 else 11075 ac_check_lib_save_LIBS=$LIBS 11076 LIBS="-ldld $LIBS" 11077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11078 /* end confdefs.h. */ 11079 11080 /* Override any GCC internal prototype to avoid an error. 11081 Use char because int might match the return type of a GCC 11082 builtin and then its argument prototype would still apply. */ 11083 #ifdef __cplusplus 11084 extern "C" 11085 #endif 11086 char dld_link (); 11087 int 11088 main () 11089 { 11090 return dld_link (); 11091 ; 11092 return 0; 11093 } 11094 _ACEOF 11095 if ac_fn_c_try_link "$LINENO"; then : 11096 ac_cv_lib_dld_dld_link=yes 11097 else 11098 ac_cv_lib_dld_dld_link=no 11099 fi 11100 rm -f core conftest.err conftest.$ac_objext \ 11101 conftest$ac_exeext conftest.$ac_ext 11102 LIBS=$ac_check_lib_save_LIBS 11103 fi 11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11105 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11106 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11107 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11108 fi 11109 11110 11111 fi 11112 11113 11114 fi 11115 11116 11117 fi 11118 11119 11120 fi 11121 11122 11123 fi 11124 11125 ;; 11126 esac 11127 11128 if test "x$lt_cv_dlopen" != xno; then 11129 enable_dlopen=yes 11130 else 11131 enable_dlopen=no 11132 fi 11133 11134 case $lt_cv_dlopen in 11135 dlopen) 11136 save_CPPFLAGS="$CPPFLAGS" 11137 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11138 11139 save_LDFLAGS="$LDFLAGS" 11140 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11141 11142 save_LIBS="$LIBS" 11143 LIBS="$lt_cv_dlopen_libs $LIBS" 11144 11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11146 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 11147 if ${lt_cv_dlopen_self+:} false; then : 11148 $as_echo_n "(cached) " >&6 11149 else 11150 if test "$cross_compiling" = yes; then : 11151 lt_cv_dlopen_self=cross 11152 else 11153 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11154 lt_status=$lt_dlunknown 11155 cat > conftest.$ac_ext <<_LT_EOF 11156 #line 11156 "configure" 11157 #include "confdefs.h" 11158 11159 #if HAVE_DLFCN_H 11160 #include <dlfcn.h> 11161 #endif 11162 11163 #include <stdio.h> 11164 11165 #ifdef RTLD_GLOBAL 11166 # define LT_DLGLOBAL RTLD_GLOBAL 11167 #else 11168 # ifdef DL_GLOBAL 11169 # define LT_DLGLOBAL DL_GLOBAL 11170 # else 11171 # define LT_DLGLOBAL 0 11172 # endif 11173 #endif 11174 11175 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11176 find out it does not work in some platform. */ 11177 #ifndef LT_DLLAZY_OR_NOW 11178 # ifdef RTLD_LAZY 11179 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11180 # else 11181 # ifdef DL_LAZY 11182 # define LT_DLLAZY_OR_NOW DL_LAZY 11183 # else 11184 # ifdef RTLD_NOW 11185 # define LT_DLLAZY_OR_NOW RTLD_NOW 11186 # else 11187 # ifdef DL_NOW 11188 # define LT_DLLAZY_OR_NOW DL_NOW 11189 # else 11190 # define LT_DLLAZY_OR_NOW 0 11191 # endif 11192 # endif 11193 # endif 11194 # endif 11195 #endif 11196 11197 /* When -fvisbility=hidden is used, assume the code has been annotated 11198 correspondingly for the symbols needed. */ 11199 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11200 void fnord () __attribute__((visibility("default"))); 11201 #endif 11202 11203 void fnord () { int i=42; } 11204 int main () 11205 { 11206 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11207 int status = $lt_dlunknown; 11208 11209 if (self) 11210 { 11211 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11212 else 11213 { 11214 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11215 else puts (dlerror ()); 11216 } 11217 /* dlclose (self); */ 11218 } 11219 else 11220 puts (dlerror ()); 11221 11222 return status; 11223 } 11224 _LT_EOF 11225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11226 (eval $ac_link) 2>&5 11227 ac_status=$? 11228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11229 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11230 (./conftest; exit; ) >&5 2>/dev/null 11231 lt_status=$? 11232 case x$lt_status in 11233 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11234 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11235 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11236 esac 11237 else : 11238 # compilation failed 11239 lt_cv_dlopen_self=no 11240 fi 11241 fi 11242 rm -fr conftest* 11243 11244 11245 fi 11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11247 $as_echo "$lt_cv_dlopen_self" >&6; } 11248 11249 if test "x$lt_cv_dlopen_self" = xyes; then 11250 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11252 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11253 if ${lt_cv_dlopen_self_static+:} false; then : 11254 $as_echo_n "(cached) " >&6 11255 else 11256 if test "$cross_compiling" = yes; then : 11257 lt_cv_dlopen_self_static=cross 11258 else 11259 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11260 lt_status=$lt_dlunknown 11261 cat > conftest.$ac_ext <<_LT_EOF 11262 #line 11262 "configure" 11263 #include "confdefs.h" 11264 11265 #if HAVE_DLFCN_H 11266 #include <dlfcn.h> 11267 #endif 11268 11269 #include <stdio.h> 11270 11271 #ifdef RTLD_GLOBAL 11272 # define LT_DLGLOBAL RTLD_GLOBAL 11273 #else 11274 # ifdef DL_GLOBAL 11275 # define LT_DLGLOBAL DL_GLOBAL 11276 # else 11277 # define LT_DLGLOBAL 0 11278 # endif 11279 #endif 11280 11281 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11282 find out it does not work in some platform. */ 11283 #ifndef LT_DLLAZY_OR_NOW 11284 # ifdef RTLD_LAZY 11285 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11286 # else 11287 # ifdef DL_LAZY 11288 # define LT_DLLAZY_OR_NOW DL_LAZY 11289 # else 11290 # ifdef RTLD_NOW 11291 # define LT_DLLAZY_OR_NOW RTLD_NOW 11292 # else 11293 # ifdef DL_NOW 11294 # define LT_DLLAZY_OR_NOW DL_NOW 11295 # else 11296 # define LT_DLLAZY_OR_NOW 0 11297 # endif 11298 # endif 11299 # endif 11300 # endif 11301 #endif 11302 11303 /* When -fvisbility=hidden is used, assume the code has been annotated 11304 correspondingly for the symbols needed. */ 11305 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11306 void fnord () __attribute__((visibility("default"))); 11307 #endif 11308 11309 void fnord () { int i=42; } 11310 int main () 11311 { 11312 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11313 int status = $lt_dlunknown; 11314 11315 if (self) 11316 { 11317 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11318 else 11319 { 11320 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11321 else puts (dlerror ()); 11322 } 11323 /* dlclose (self); */ 11324 } 11325 else 11326 puts (dlerror ()); 11327 11328 return status; 11329 } 11330 _LT_EOF 11331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11332 (eval $ac_link) 2>&5 11333 ac_status=$? 11334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11335 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11336 (./conftest; exit; ) >&5 2>/dev/null 11337 lt_status=$? 11338 case x$lt_status in 11339 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11340 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11341 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11342 esac 11343 else : 11344 # compilation failed 11345 lt_cv_dlopen_self_static=no 11346 fi 11347 fi 11348 rm -fr conftest* 11349 11350 11351 fi 11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11353 $as_echo "$lt_cv_dlopen_self_static" >&6; } 11354 fi 11355 11356 CPPFLAGS="$save_CPPFLAGS" 11357 LDFLAGS="$save_LDFLAGS" 11358 LIBS="$save_LIBS" 11359 ;; 11360 esac 11361 11362 case $lt_cv_dlopen_self in 11363 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11364 *) enable_dlopen_self=unknown ;; 11365 esac 11366 11367 case $lt_cv_dlopen_self_static in 11368 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11369 *) enable_dlopen_self_static=unknown ;; 11370 esac 11371 fi 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 striplib= 11390 old_striplib= 11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11392 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 11393 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11394 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11395 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11397 $as_echo "yes" >&6; } 11398 else 11399 # FIXME - insert some real tests, host_os isn't really good enough 11400 case $host_os in 11401 darwin*) 11402 if test -n "$STRIP" ; then 11403 striplib="$STRIP -x" 11404 old_striplib="$STRIP -S" 11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11406 $as_echo "yes" >&6; } 11407 else 11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11409 $as_echo "no" >&6; } 11410 fi 11411 ;; 11412 *) 11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11414 $as_echo "no" >&6; } 11415 ;; 11416 esac 11417 fi 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 # Report which library types will actually be built 11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11432 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11434 $as_echo "$can_build_shared" >&6; } 11435 11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11437 $as_echo_n "checking whether to build shared libraries... " >&6; } 11438 test "$can_build_shared" = "no" && enable_shared=no 11439 11440 # On AIX, shared libraries and static libraries use the same namespace, and 11441 # are all built from PIC. 11442 case $host_os in 11443 aix3*) 11444 test "$enable_shared" = yes && enable_static=no 11445 if test -n "$RANLIB"; then 11446 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11447 postinstall_cmds='$RANLIB $lib' 11448 fi 11449 ;; 11450 11451 aix[4-9]*) 11452 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11453 test "$enable_shared" = yes && enable_static=no 11454 fi 11455 ;; 11456 esac 11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11458 $as_echo "$enable_shared" >&6; } 11459 11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11461 $as_echo_n "checking whether to build static libraries... " >&6; } 11462 # Make sure either enable_shared or enable_static is yes. 11463 test "$enable_shared" = yes || enable_static=yes 11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11465 $as_echo "$enable_static" >&6; } 11466 11467 11468 11469 11470 fi 11471 ac_ext=c 11472 ac_cpp='$CPP $CPPFLAGS' 11473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11475 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11476 11477 CC="$lt_save_CC" 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 ac_config_commands="$ac_config_commands libtool" 11492 11493 11494 11495 11496 # Only expand once: 11497 11498 11499 11500 # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE. 11501 11502 # The tests for host and target for $enable_largefile require 11503 # canonical names. 11504 11505 11506 11507 # As the $enable_largefile decision depends on --enable-plugins we must set it 11508 # even in directories otherwise not depending on the $plugins option. 11509 11510 11511 maybe_plugins=no 11512 for ac_header in dlfcn.h 11513 do : 11514 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 11515 " 11516 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 11517 cat >>confdefs.h <<_ACEOF 11518 #define HAVE_DLFCN_H 1 11519 _ACEOF 11520 maybe_plugins=yes 11521 fi 11522 11523 done 11524 11525 for ac_header in windows.h 11526 do : 11527 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 11528 " 11529 if test "x$ac_cv_header_windows_h" = xyes; then : 11530 cat >>confdefs.h <<_ACEOF 11531 #define HAVE_WINDOWS_H 1 11532 _ACEOF 11533 maybe_plugins=yes 11534 fi 11535 11536 done 11537 11538 11539 # Check whether --enable-plugins was given. 11540 if test "${enable_plugins+set}" = set; then : 11541 enableval=$enable_plugins; case "${enableval}" in 11542 no) plugins=no ;; 11543 *) plugins=yes 11544 if test "$maybe_plugins" != "yes" ; then 11545 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 11546 fi ;; 11547 esac 11548 else 11549 plugins=$maybe_plugins 11550 11551 fi 11552 11553 if test "$plugins" = "yes"; then 11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 11555 $as_echo_n "checking for library containing dlsym... " >&6; } 11556 if ${ac_cv_search_dlsym+:} false; then : 11557 $as_echo_n "(cached) " >&6 11558 else 11559 ac_func_search_save_LIBS=$LIBS 11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11561 /* end confdefs.h. */ 11562 11563 /* Override any GCC internal prototype to avoid an error. 11564 Use char because int might match the return type of a GCC 11565 builtin and then its argument prototype would still apply. */ 11566 #ifdef __cplusplus 11567 extern "C" 11568 #endif 11569 char dlsym (); 11570 int 11571 main () 11572 { 11573 return dlsym (); 11574 ; 11575 return 0; 11576 } 11577 _ACEOF 11578 for ac_lib in '' dl; do 11579 if test -z "$ac_lib"; then 11580 ac_res="none required" 11581 else 11582 ac_res=-l$ac_lib 11583 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11584 fi 11585 if ac_fn_c_try_link "$LINENO"; then : 11586 ac_cv_search_dlsym=$ac_res 11587 fi 11588 rm -f core conftest.err conftest.$ac_objext \ 11589 conftest$ac_exeext 11590 if ${ac_cv_search_dlsym+:} false; then : 11591 break 11592 fi 11593 done 11594 if ${ac_cv_search_dlsym+:} false; then : 11595 11596 else 11597 ac_cv_search_dlsym=no 11598 fi 11599 rm conftest.$ac_ext 11600 LIBS=$ac_func_search_save_LIBS 11601 fi 11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 11603 $as_echo "$ac_cv_search_dlsym" >&6; } 11604 ac_res=$ac_cv_search_dlsym 11605 if test "$ac_res" != no; then : 11606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11607 11608 fi 11609 11610 fi 11611 11612 11613 case "${host}" in 11614 sparc-*-solaris*|i?86-*-solaris*) 11615 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support 11616 # were mutually exclusive until Solaris 11.3. Without procfs support, 11617 # the bfd/ elf module cannot provide certain routines such as 11618 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user 11619 # explicitly requested large-file support through the 11620 # --enable-largefile switch, disable large-file support in favor of 11621 # procfs support. 11622 # 11623 # Check if <sys/procfs.h> is incompatible with large-file support. 11624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11625 /* end confdefs.h. */ 11626 #define _FILE_OFFSET_BITS 64 11627 #define _STRUCTURED_PROC 1 11628 #include <sys/procfs.h> 11629 int 11630 main () 11631 { 11632 11633 ; 11634 return 0; 11635 } 11636 _ACEOF 11637 if ac_fn_c_try_compile "$LINENO"; then : 11638 acx_cv_procfs_lfs=yes 11639 else 11640 acx_cv_procfs_lfs=no 11641 fi 11642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11643 # 11644 # Forcefully disable large-file support only if necessary, gdb is in 11645 # tree and enabled. 11646 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \ 11647 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then 11648 : ${enable_largefile="no"} 11649 if test "$plugins" = yes; then 11650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 11651 plugin support disabled; require large-file support which is incompatible with GDB." >&5 11652 $as_echo "$as_me: WARNING: 11653 plugin support disabled; require large-file support which is incompatible with GDB." >&2;} 11654 plugins=no 11655 fi 11656 fi 11657 # 11658 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the 11659 # benefit of g++ 9+ which predefines it on Solaris. 11660 if test "$enable_largefile" = no; then 11661 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS" 11662 11663 fi 11664 ;; 11665 esac 11666 11667 # Check whether --enable-largefile was given. 11668 if test "${enable_largefile+set}" = set; then : 11669 enableval=$enable_largefile; 11670 fi 11671 11672 if test "$enable_largefile" != no; then 11673 11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 11675 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 11676 if ${ac_cv_sys_largefile_CC+:} false; then : 11677 $as_echo_n "(cached) " >&6 11678 else 11679 ac_cv_sys_largefile_CC=no 11680 if test "$GCC" != yes; then 11681 ac_save_CC=$CC 11682 while :; do 11683 # IRIX 6.2 and later do not support large files by default, 11684 # so use the C compiler's -n32 option if that helps. 11685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11686 /* end confdefs.h. */ 11687 #include <sys/types.h> 11688 /* Check that off_t can represent 2**63 - 1 correctly. 11689 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11690 since some C++ compilers masquerading as C compilers 11691 incorrectly reject 9223372036854775807. */ 11692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11694 && LARGE_OFF_T % 2147483647 == 1) 11695 ? 1 : -1]; 11696 int 11697 main () 11698 { 11699 11700 ; 11701 return 0; 11702 } 11703 _ACEOF 11704 if ac_fn_c_try_compile "$LINENO"; then : 11705 break 11706 fi 11707 rm -f core conftest.err conftest.$ac_objext 11708 CC="$CC -n32" 11709 if ac_fn_c_try_compile "$LINENO"; then : 11710 ac_cv_sys_largefile_CC=' -n32'; break 11711 fi 11712 rm -f core conftest.err conftest.$ac_objext 11713 break 11714 done 11715 CC=$ac_save_CC 11716 rm -f conftest.$ac_ext 11717 fi 11718 fi 11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 11720 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 11721 if test "$ac_cv_sys_largefile_CC" != no; then 11722 CC=$CC$ac_cv_sys_largefile_CC 11723 fi 11724 11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 11726 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 11727 if ${ac_cv_sys_file_offset_bits+:} false; then : 11728 $as_echo_n "(cached) " >&6 11729 else 11730 while :; do 11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11732 /* end confdefs.h. */ 11733 #include <sys/types.h> 11734 /* Check that off_t can represent 2**63 - 1 correctly. 11735 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11736 since some C++ compilers masquerading as C compilers 11737 incorrectly reject 9223372036854775807. */ 11738 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11739 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11740 && LARGE_OFF_T % 2147483647 == 1) 11741 ? 1 : -1]; 11742 int 11743 main () 11744 { 11745 11746 ; 11747 return 0; 11748 } 11749 _ACEOF 11750 if ac_fn_c_try_compile "$LINENO"; then : 11751 ac_cv_sys_file_offset_bits=no; break 11752 fi 11753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11755 /* end confdefs.h. */ 11756 #define _FILE_OFFSET_BITS 64 11757 #include <sys/types.h> 11758 /* Check that off_t can represent 2**63 - 1 correctly. 11759 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11760 since some C++ compilers masquerading as C compilers 11761 incorrectly reject 9223372036854775807. */ 11762 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11763 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11764 && LARGE_OFF_T % 2147483647 == 1) 11765 ? 1 : -1]; 11766 int 11767 main () 11768 { 11769 11770 ; 11771 return 0; 11772 } 11773 _ACEOF 11774 if ac_fn_c_try_compile "$LINENO"; then : 11775 ac_cv_sys_file_offset_bits=64; break 11776 fi 11777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11778 ac_cv_sys_file_offset_bits=unknown 11779 break 11780 done 11781 fi 11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 11783 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 11784 case $ac_cv_sys_file_offset_bits in #( 11785 no | unknown) ;; 11786 *) 11787 cat >>confdefs.h <<_ACEOF 11788 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 11789 _ACEOF 11790 ;; 11791 esac 11792 rm -rf conftest* 11793 if test $ac_cv_sys_file_offset_bits = unknown; then 11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 11795 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 11796 if ${ac_cv_sys_large_files+:} false; then : 11797 $as_echo_n "(cached) " >&6 11798 else 11799 while :; do 11800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11801 /* end confdefs.h. */ 11802 #include <sys/types.h> 11803 /* Check that off_t can represent 2**63 - 1 correctly. 11804 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11805 since some C++ compilers masquerading as C compilers 11806 incorrectly reject 9223372036854775807. */ 11807 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11808 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11809 && LARGE_OFF_T % 2147483647 == 1) 11810 ? 1 : -1]; 11811 int 11812 main () 11813 { 11814 11815 ; 11816 return 0; 11817 } 11818 _ACEOF 11819 if ac_fn_c_try_compile "$LINENO"; then : 11820 ac_cv_sys_large_files=no; break 11821 fi 11822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11824 /* end confdefs.h. */ 11825 #define _LARGE_FILES 1 11826 #include <sys/types.h> 11827 /* Check that off_t can represent 2**63 - 1 correctly. 11828 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11829 since some C++ compilers masquerading as C compilers 11830 incorrectly reject 9223372036854775807. */ 11831 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11832 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11833 && LARGE_OFF_T % 2147483647 == 1) 11834 ? 1 : -1]; 11835 int 11836 main () 11837 { 11838 11839 ; 11840 return 0; 11841 } 11842 _ACEOF 11843 if ac_fn_c_try_compile "$LINENO"; then : 11844 ac_cv_sys_large_files=1; break 11845 fi 11846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11847 ac_cv_sys_large_files=unknown 11848 break 11849 done 11850 fi 11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 11852 $as_echo "$ac_cv_sys_large_files" >&6; } 11853 case $ac_cv_sys_large_files in #( 11854 no | unknown) ;; 11855 *) 11856 cat >>confdefs.h <<_ACEOF 11857 #define _LARGE_FILES $ac_cv_sys_large_files 11858 _ACEOF 11859 ;; 11860 esac 11861 rm -rf conftest* 11862 fi 11863 11864 11865 fi 11866 11867 11868 11869 case "${target}" in 11870 hppa*64*-*-*) ;; 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 hppa*-*-hpux* | *-*-*vms* | \ 11881 powerpc*-*-aix* | powerpc-*-beos* | powerpc-*-macos* | rs6000-*-*) 11882 if test "$plugins" = "yes"; then 11883 if test "${enable_plugins+set}" = set; then 11884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling plugins may result in ar creating non-standard archives for ${target}" >&5 11885 $as_echo "$as_me: WARNING: Enabling plugins may result in ar creating non-standard archives for ${target}" >&2;} 11886 else 11887 plugins=no 11888 fi 11889 fi ;; 11890 esac 11891 11892 if test "$plugins" = "yes"; then 11893 PLUGINS_TRUE= 11894 PLUGINS_FALSE='#' 11895 else 11896 PLUGINS_TRUE='#' 11897 PLUGINS_FALSE= 11898 fi 11899 11900 11901 ac_checking= 11902 . ${srcdir}/development.sh 11903 test "$development" = true && ac_checking=yes 11904 # Check whether --enable-checking was given. 11905 if test "${enable_checking+set}" = set; then : 11906 enableval=$enable_checking; case "${enableval}" in 11907 no|none) ac_checking= ;; 11908 *) ac_checking=yes ;; 11909 esac 11910 fi 11911 if test x$ac_checking != x ; then 11912 11913 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h 11914 11915 fi 11916 11917 # Check whether --enable-64-bit-bfd was given. 11918 if test "${enable_64_bit_bfd+set}" = set; then : 11919 enableval=$enable_64_bit_bfd; case $enableval in #( 11920 yes|no) : 11921 ;; #( 11922 *) : 11923 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #( 11924 *) : 11925 ;; 11926 esac 11927 else 11928 enable_64_bit_bfd=no 11929 fi 11930 11931 if test $enable_64_bit_bfd = yes ; then 11932 want64=true 11933 else 11934 want64=false 11935 fi 11936 11937 # Check whether --enable-targets was given. 11938 if test "${enable_targets+set}" = set; then : 11939 enableval=$enable_targets; case "${enableval}" in 11940 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 11941 ;; 11942 no) enable_targets= ;; 11943 *) enable_targets=$enableval ;; 11944 esac 11945 fi 11946 11947 # Check whether --enable-64_bit_archive was given. 11948 if test "${enable_64_bit_archive+set}" = set; then : 11949 enableval=$enable_64_bit_archive; case "${enableval}" in 11950 yes) want_64_bit_archive=true ;; 11951 no) want_64_bit_archive=false ;; 11952 *) as_fn_error $? "bad value ${enableval} for 64-bit-archive option" "$LINENO" 5 ;; 11953 esac 11954 else 11955 want_64_bit_archive=unset 11956 fi 11957 11958 11959 # Check whether --with-mmap was given. 11960 if test "${with_mmap+set}" = set; then : 11961 withval=$with_mmap; case "${withval}" in 11962 yes) want_mmap=true ;; 11963 no) want_mmap=false ;; 11964 *) as_fn_error $? "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;; 11965 esac 11966 else 11967 want_mmap=true 11968 fi 11969 11970 # Check whether --enable-secureplt was given. 11971 if test "${enable_secureplt+set}" = set; then : 11972 enableval=$enable_secureplt; case "${enableval}" in 11973 yes) use_secureplt=true ;; 11974 no) use_secureplt=false ;; 11975 *) as_fn_error $? "bad value ${enableval} for secureplt option" "$LINENO" 5 ;; 11976 esac 11977 else 11978 use_secureplt=true 11979 fi 11980 if test $use_secureplt = true; then 11981 11982 $as_echo "#define USE_SECUREPLT 1" >>confdefs.h 11983 11984 fi 11985 11986 # Decide if -z separate-code should be enabled in ELF linker by default. 11987 ac_default_ld_z_separate_code=unset 11988 # Check whether --enable-separate-code was given. 11989 if test "${enable_separate_code+set}" = set; then : 11990 enableval=$enable_separate_code; case "${enableval}" in 11991 yes) ac_default_ld_z_separate_code=1 ;; 11992 no) ac_default_ld_z_separate_code=0 ;; 11993 esac 11994 fi 11995 11996 # Enable -z separate-code by default for Linux/x86 and NetBSD/x86 11997 case "${target}" in 11998 i[3-7]86-*-linux-* | x86_64-*-linux-* | i[3-7]86-*-netbsd* | x86_64-*-netbsd*) 11999 if test ${ac_default_ld_z_separate_code} = unset; then 12000 ac_default_ld_z_separate_code=1 12001 fi 12002 ;; 12003 esac 12004 if test "${ac_default_ld_z_separate_code}" = unset; then 12005 ac_default_ld_z_separate_code=0 12006 fi 12007 12008 cat >>confdefs.h <<_ACEOF 12009 #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code 12010 _ACEOF 12011 12012 12013 # Check whether --enable-leading-mingw64-underscores was given. 12014 if test "${enable_leading_mingw64_underscores+set}" = set; then : 12015 enableval=$enable_leading_mingw64_underscores; 12016 fi 12017 12018 if test x"$enable_leading_mingw64_underscores" = xyes ; then : 12019 12020 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h 12021 12022 fi 12023 12024 DEBUGDIR=${libdir}/debug 12025 12026 # Check whether --with-separate-debug-dir was given. 12027 if test "${with_separate_debug_dir+set}" = set; then : 12028 withval=$with_separate_debug_dir; DEBUGDIR="${withval}" 12029 fi 12030 12031 12032 12033 12034 12035 # Check whether --with-pkgversion was given. 12036 if test "${with_pkgversion+set}" = set; then : 12037 withval=$with_pkgversion; case "$withval" in 12038 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; 12039 no) PKGVERSION= ;; 12040 *) PKGVERSION="($withval) " ;; 12041 esac 12042 else 12043 PKGVERSION="(GNU Binutils) " 12044 12045 fi 12046 12047 12048 12049 12050 12051 # Check whether --with-bugurl was given. 12052 if test "${with_bugurl+set}" = set; then : 12053 withval=$with_bugurl; case "$withval" in 12054 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; 12055 no) BUGURL= 12056 ;; 12057 *) BUGURL="$withval" 12058 ;; 12059 esac 12060 else 12061 BUGURL="https://sourceware.org/bugzilla/" 12062 12063 fi 12064 12065 case ${BUGURL} in 12066 "") 12067 REPORT_BUGS_TO= 12068 REPORT_BUGS_TEXI= 12069 ;; 12070 *) 12071 REPORT_BUGS_TO="<$BUGURL>" 12072 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} 12073 ;; 12074 esac; 12075 12076 12077 12078 12079 12080 # Set the 'development' global. 12081 . $srcdir/../bfd/development.sh 12082 12083 # Set acp_cpp_for_build variable 12084 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD" 12085 12086 # Default set of GCC warnings to enable. 12087 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 12088 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 12089 12090 # Add -Wshadow if the compiler is a sufficiently recent version of GCC. 12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12092 /* end confdefs.h. */ 12093 __GNUC__ 12094 _ACEOF 12095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12096 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 12097 12098 else 12099 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" 12100 fi 12101 rm -f conftest* 12102 12103 12104 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. 12105 #cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12106 #/* end confdefs.h. */ 12107 #__GNUC__ 12108 #_ACEOF 12109 #if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12110 # $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : 12111 # 12112 #else 12113 # cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12114 #/* end confdefs.h. */ 12115 #__clang__ 12116 #_ACEOF 12117 #if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12118 # $EGREP "^__clang__$" >/dev/null 2>&1; then : 12119 # GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" 12120 #fi 12121 #rm -f conftest* 12122 12123 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. 12124 WARN_WRITE_STRINGS="" 12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12126 /* end confdefs.h. */ 12127 __GNUC__ 12128 _ACEOF 12129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12130 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 12131 12132 else 12133 WARN_WRITE_STRINGS="-Wwrite-strings" 12134 fi 12135 rm -f conftest* 12136 12137 12138 # Verify CC_FOR_BUILD to be compatible with warning flags 12139 12140 # Add -Wshadow if the compiler is a sufficiently recent version of GCC. 12141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12142 /* end confdefs.h. */ 12143 __GNUC__ 12144 _ACEOF 12145 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 12146 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 12147 12148 else 12149 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow" 12150 fi 12151 rm -f conftest* 12152 12153 12154 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. 12155 #cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12156 #/* end confdefs.h. */ 12157 #__GNUC__ 12158 #_ACEOF 12159 #if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 12160 # $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : 12161 # 12162 #else 12163 # cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12164 #/* end confdefs.h. */ 12165 #__clang__ 12166 #_ACEOF 12167 #if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 12168 # $EGREP "^__clang__$" >/dev/null 2>&1; then : 12169 # GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" 12170 #fi 12171 #rm -f conftest* 12172 12173 12174 # Check whether --enable-werror was given. 12175 if test "${enable_werror+set}" = set; then : 12176 enableval=$enable_werror; case "${enableval}" in 12177 yes | y) ERROR_ON_WARNING="yes" ;; 12178 no | n) ERROR_ON_WARNING="no" ;; 12179 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; 12180 esac 12181 fi 12182 12183 12184 # Disable -Wformat by default when using gcc on mingw 12185 case "${host}" in 12186 *-*-mingw32*) 12187 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then 12188 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" 12189 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format" 12190 fi 12191 ;; 12192 *) ;; 12193 esac 12194 12195 # Enable -Werror by default when using gcc. Turn it off for releases. 12196 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then 12197 ERROR_ON_WARNING=yes 12198 fi 12199 12200 NO_WERROR= 12201 if test "${ERROR_ON_WARNING}" = yes ; then 12202 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" 12203 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror" 12204 NO_WERROR="-Wno-error" 12205 fi 12206 12207 if test "${GCC}" = yes ; then 12208 WARN_CFLAGS="${GCC_WARN_CFLAGS}" 12209 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}" 12210 fi 12211 12212 # Check whether --enable-build-warnings was given. 12213 if test "${enable_build_warnings+set}" = set; then : 12214 enableval=$enable_build_warnings; case "${enableval}" in 12215 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}" 12216 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";; 12217 no) if test "${GCC}" = yes ; then 12218 WARN_CFLAGS="-w" 12219 WARN_CFLAGS_FOR_BUILD="-w" 12220 fi;; 12221 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 12222 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}" 12223 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";; 12224 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 12225 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}" 12226 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";; 12227 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"` 12228 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;; 12229 esac 12230 fi 12231 12232 12233 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then 12234 echo "Setting warning flags = $WARN_CFLAGS" 6>&1 12235 fi 12236 12237 12238 12239 12240 12241 12242 12243 ac_config_headers="$ac_config_headers config.h:config.in" 12244 12245 12246 # PR 14072 12247 12248 12249 if test -z "$target" ; then 12250 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5 12251 fi 12252 12253 12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 12255 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 12256 # Check whether --enable-maintainer-mode was given. 12257 if test "${enable_maintainer_mode+set}" = set; then : 12258 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 12259 else 12260 USE_MAINTAINER_MODE=no 12261 fi 12262 12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 12264 $as_echo "$USE_MAINTAINER_MODE" >&6; } 12265 if test $USE_MAINTAINER_MODE = yes; then 12266 MAINTAINER_MODE_TRUE= 12267 MAINTAINER_MODE_FALSE='#' 12268 else 12269 MAINTAINER_MODE_TRUE='#' 12270 MAINTAINER_MODE_FALSE= 12271 fi 12272 12273 MAINT=$MAINTAINER_MODE_TRUE 12274 12275 12276 if false; then 12277 GENINSRC_NEVER_TRUE= 12278 GENINSRC_NEVER_FALSE='#' 12279 else 12280 GENINSRC_NEVER_TRUE='#' 12281 GENINSRC_NEVER_FALSE= 12282 fi 12283 12284 case ${build_alias} in 12285 "") build_noncanonical=${build} ;; 12286 *) build_noncanonical=${build_alias} ;; 12287 esac 12288 12289 case ${host_alias} in 12290 "") host_noncanonical=${build_noncanonical} ;; 12291 *) host_noncanonical=${host_alias} ;; 12292 esac 12293 12294 case ${target_alias} in 12295 "") target_noncanonical=${host_noncanonical} ;; 12296 *) target_noncanonical=${target_alias} ;; 12297 esac 12298 12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5 12300 $as_echo_n "checking whether to install libbfd... " >&6; } 12301 # Check whether --enable-install-libbfd was given. 12302 if test "${enable_install_libbfd+set}" = set; then : 12303 enableval=$enable_install_libbfd; install_libbfd_p=$enableval 12304 else 12305 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then 12306 install_libbfd_p=yes 12307 else 12308 install_libbfd_p=no 12309 fi 12310 fi 12311 12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5 12313 $as_echo "$install_libbfd_p" >&6; } 12314 if test $install_libbfd_p = yes; then 12315 INSTALL_LIBBFD_TRUE= 12316 INSTALL_LIBBFD_FALSE='#' 12317 else 12318 INSTALL_LIBBFD_TRUE='#' 12319 INSTALL_LIBBFD_FALSE= 12320 fi 12321 12322 # Need _noncanonical variables for this. 12323 12324 12325 12326 12327 # libbfd.a is a host library containing target dependent code 12328 bfdlibdir='$(libdir)' 12329 bfdincludedir='$(includedir)' 12330 if test "${host}" != "${target}"; then 12331 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' 12332 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' 12333 fi 12334 12335 12336 12337 12338 12339 12340 12341 12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 12343 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 12344 if ${ac_cv_c_bigendian+:} false; then : 12345 $as_echo_n "(cached) " >&6 12346 else 12347 ac_cv_c_bigendian=unknown 12348 # See if we're dealing with a universal compiler. 12349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12350 /* end confdefs.h. */ 12351 #ifndef __APPLE_CC__ 12352 not a universal capable compiler 12353 #endif 12354 typedef int dummy; 12355 12356 _ACEOF 12357 if ac_fn_c_try_compile "$LINENO"; then : 12358 12359 # Check for potential -arch flags. It is not universal unless 12360 # there are at least two -arch flags with different values. 12361 ac_arch= 12362 ac_prev= 12363 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 12364 if test -n "$ac_prev"; then 12365 case $ac_word in 12366 i?86 | x86_64 | ppc | ppc64) 12367 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 12368 ac_arch=$ac_word 12369 else 12370 ac_cv_c_bigendian=universal 12371 break 12372 fi 12373 ;; 12374 esac 12375 ac_prev= 12376 elif test "x$ac_word" = "x-arch"; then 12377 ac_prev=arch 12378 fi 12379 done 12380 fi 12381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12382 if test $ac_cv_c_bigendian = unknown; then 12383 # See if sys/param.h defines the BYTE_ORDER macro. 12384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12385 /* end confdefs.h. */ 12386 #include <sys/types.h> 12387 #include <sys/param.h> 12388 12389 int 12390 main () 12391 { 12392 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 12393 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 12394 && LITTLE_ENDIAN) 12395 bogus endian macros 12396 #endif 12397 12398 ; 12399 return 0; 12400 } 12401 _ACEOF 12402 if ac_fn_c_try_compile "$LINENO"; then : 12403 # It does; now see whether it defined to BIG_ENDIAN or not. 12404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12405 /* end confdefs.h. */ 12406 #include <sys/types.h> 12407 #include <sys/param.h> 12408 12409 int 12410 main () 12411 { 12412 #if BYTE_ORDER != BIG_ENDIAN 12413 not big endian 12414 #endif 12415 12416 ; 12417 return 0; 12418 } 12419 _ACEOF 12420 if ac_fn_c_try_compile "$LINENO"; then : 12421 ac_cv_c_bigendian=yes 12422 else 12423 ac_cv_c_bigendian=no 12424 fi 12425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12426 fi 12427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12428 fi 12429 if test $ac_cv_c_bigendian = unknown; then 12430 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 12431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12432 /* end confdefs.h. */ 12433 #include <limits.h> 12434 12435 int 12436 main () 12437 { 12438 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 12439 bogus endian macros 12440 #endif 12441 12442 ; 12443 return 0; 12444 } 12445 _ACEOF 12446 if ac_fn_c_try_compile "$LINENO"; then : 12447 # It does; now see whether it defined to _BIG_ENDIAN or not. 12448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12449 /* end confdefs.h. */ 12450 #include <limits.h> 12451 12452 int 12453 main () 12454 { 12455 #ifndef _BIG_ENDIAN 12456 not big endian 12457 #endif 12458 12459 ; 12460 return 0; 12461 } 12462 _ACEOF 12463 if ac_fn_c_try_compile "$LINENO"; then : 12464 ac_cv_c_bigendian=yes 12465 else 12466 ac_cv_c_bigendian=no 12467 fi 12468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12469 fi 12470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12471 fi 12472 if test $ac_cv_c_bigendian = unknown; then 12473 # Compile a test program. 12474 if test "$cross_compiling" = yes; then : 12475 # Try to guess by grepping values from an object file. 12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12477 /* end confdefs.h. */ 12478 short int ascii_mm[] = 12479 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 12480 short int ascii_ii[] = 12481 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 12482 int use_ascii (int i) { 12483 return ascii_mm[i] + ascii_ii[i]; 12484 } 12485 short int ebcdic_ii[] = 12486 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 12487 short int ebcdic_mm[] = 12488 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 12489 int use_ebcdic (int i) { 12490 return ebcdic_mm[i] + ebcdic_ii[i]; 12491 } 12492 extern int foo; 12493 12494 int 12495 main () 12496 { 12497 return use_ascii (foo) == use_ebcdic (foo); 12498 ; 12499 return 0; 12500 } 12501 _ACEOF 12502 if ac_fn_c_try_compile "$LINENO"; then : 12503 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 12504 ac_cv_c_bigendian=yes 12505 fi 12506 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 12507 if test "$ac_cv_c_bigendian" = unknown; then 12508 ac_cv_c_bigendian=no 12509 else 12510 # finding both strings is unlikely to happen, but who knows? 12511 ac_cv_c_bigendian=unknown 12512 fi 12513 fi 12514 fi 12515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12516 else 12517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12518 /* end confdefs.h. */ 12519 $ac_includes_default 12520 int 12521 main () 12522 { 12523 12524 /* Are we little or big endian? From Harbison&Steele. */ 12525 union 12526 { 12527 long int l; 12528 char c[sizeof (long int)]; 12529 } u; 12530 u.l = 1; 12531 return u.c[sizeof (long int) - 1] == 1; 12532 12533 ; 12534 return 0; 12535 } 12536 _ACEOF 12537 if ac_fn_c_try_run "$LINENO"; then : 12538 ac_cv_c_bigendian=no 12539 else 12540 ac_cv_c_bigendian=yes 12541 fi 12542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12543 conftest.$ac_objext conftest.beam conftest.$ac_ext 12544 fi 12545 12546 fi 12547 fi 12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 12549 $as_echo "$ac_cv_c_bigendian" >&6; } 12550 case $ac_cv_c_bigendian in #( 12551 yes) 12552 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 12553 ;; #( 12554 no) 12555 ;; #( 12556 universal) 12557 12558 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 12559 12560 ;; #( 12561 *) 12562 as_fn_error $? "unknown endianness 12563 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 12564 esac 12565 12566 12567 host64=false 12568 target64=false 12569 bfd_default_target_size=32 12570 12571 # host stuff: 12572 12573 ALL_LINGUAS="da es fi fr hr id ja ro ru rw sr sv tr uk vi zh_CN pt" 12574 12575 MKINSTALLDIRS= 12576 if test -n "$ac_aux_dir"; then 12577 case "$ac_aux_dir" in 12578 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 12579 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 12580 esac 12581 fi 12582 if test -z "$MKINSTALLDIRS"; then 12583 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 12584 fi 12585 12586 12587 12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 12589 $as_echo_n "checking whether NLS is requested... " >&6; } 12590 # Check whether --enable-nls was given. 12591 if test "${enable_nls+set}" = set; then : 12592 enableval=$enable_nls; USE_NLS=$enableval 12593 else 12594 USE_NLS=yes 12595 fi 12596 12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 12598 $as_echo "$USE_NLS" >&6; } 12599 12600 12601 12602 12603 12604 12605 # Prepare PATH_SEPARATOR. 12606 # The user is always right. 12607 if test "${PATH_SEPARATOR+set}" != set; then 12608 echo "#! /bin/sh" >conf$$.sh 12609 echo "exit 0" >>conf$$.sh 12610 chmod +x conf$$.sh 12611 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12612 PATH_SEPARATOR=';' 12613 else 12614 PATH_SEPARATOR=: 12615 fi 12616 rm -f conf$$.sh 12617 fi 12618 12619 # Find out how to test for executable files. Don't use a zero-byte file, 12620 # as systems may use methods other than mode bits to determine executability. 12621 cat >conf$$.file <<_ASEOF 12622 #! /bin/sh 12623 exit 0 12624 _ASEOF 12625 chmod +x conf$$.file 12626 if test -x conf$$.file >/dev/null 2>&1; then 12627 ac_executable_p="test -x" 12628 else 12629 ac_executable_p="test -f" 12630 fi 12631 rm -f conf$$.file 12632 12633 # Extract the first word of "msgfmt", so it can be a program name with args. 12634 set dummy msgfmt; ac_word=$2 12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12636 $as_echo_n "checking for $ac_word... " >&6; } 12637 if ${ac_cv_path_MSGFMT+:} false; then : 12638 $as_echo_n "(cached) " >&6 12639 else 12640 case "$MSGFMT" in 12641 [\\/]* | ?:[\\/]*) 12642 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 12643 ;; 12644 *) 12645 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12646 for ac_dir in $PATH; do 12647 IFS="$ac_save_IFS" 12648 test -z "$ac_dir" && ac_dir=. 12649 for ac_exec_ext in '' $ac_executable_extensions; do 12650 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12651 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 12652 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12653 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 12654 break 2 12655 fi 12656 fi 12657 done 12658 done 12659 IFS="$ac_save_IFS" 12660 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 12661 ;; 12662 esac 12663 fi 12664 MSGFMT="$ac_cv_path_MSGFMT" 12665 if test "$MSGFMT" != ":"; then 12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 12667 $as_echo "$MSGFMT" >&6; } 12668 else 12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12670 $as_echo "no" >&6; } 12671 fi 12672 12673 # Extract the first word of "gmsgfmt", so it can be a program name with args. 12674 set dummy gmsgfmt; ac_word=$2 12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12676 $as_echo_n "checking for $ac_word... " >&6; } 12677 if ${ac_cv_path_GMSGFMT+:} false; then : 12678 $as_echo_n "(cached) " >&6 12679 else 12680 case $GMSGFMT in 12681 [\\/]* | ?:[\\/]*) 12682 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 12683 ;; 12684 *) 12685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12686 for as_dir in $PATH 12687 do 12688 IFS=$as_save_IFS 12689 test -z "$as_dir" && as_dir=. 12690 for ac_exec_ext in '' $ac_executable_extensions; do 12691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12692 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 12693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12694 break 2 12695 fi 12696 done 12697 done 12698 IFS=$as_save_IFS 12699 12700 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 12701 ;; 12702 esac 12703 fi 12704 GMSGFMT=$ac_cv_path_GMSGFMT 12705 if test -n "$GMSGFMT"; then 12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 12707 $as_echo "$GMSGFMT" >&6; } 12708 else 12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12710 $as_echo "no" >&6; } 12711 fi 12712 12713 12714 12715 12716 # Prepare PATH_SEPARATOR. 12717 # The user is always right. 12718 if test "${PATH_SEPARATOR+set}" != set; then 12719 echo "#! /bin/sh" >conf$$.sh 12720 echo "exit 0" >>conf$$.sh 12721 chmod +x conf$$.sh 12722 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12723 PATH_SEPARATOR=';' 12724 else 12725 PATH_SEPARATOR=: 12726 fi 12727 rm -f conf$$.sh 12728 fi 12729 12730 # Find out how to test for executable files. Don't use a zero-byte file, 12731 # as systems may use methods other than mode bits to determine executability. 12732 cat >conf$$.file <<_ASEOF 12733 #! /bin/sh 12734 exit 0 12735 _ASEOF 12736 chmod +x conf$$.file 12737 if test -x conf$$.file >/dev/null 2>&1; then 12738 ac_executable_p="test -x" 12739 else 12740 ac_executable_p="test -f" 12741 fi 12742 rm -f conf$$.file 12743 12744 # Extract the first word of "xgettext", so it can be a program name with args. 12745 set dummy xgettext; ac_word=$2 12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12747 $as_echo_n "checking for $ac_word... " >&6; } 12748 if ${ac_cv_path_XGETTEXT+:} false; then : 12749 $as_echo_n "(cached) " >&6 12750 else 12751 case "$XGETTEXT" in 12752 [\\/]* | ?:[\\/]*) 12753 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 12754 ;; 12755 *) 12756 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12757 for ac_dir in $PATH; do 12758 IFS="$ac_save_IFS" 12759 test -z "$ac_dir" && ac_dir=. 12760 for ac_exec_ext in '' $ac_executable_extensions; do 12761 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12762 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 12763 (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 12764 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 12765 break 2 12766 fi 12767 fi 12768 done 12769 done 12770 IFS="$ac_save_IFS" 12771 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 12772 ;; 12773 esac 12774 fi 12775 XGETTEXT="$ac_cv_path_XGETTEXT" 12776 if test "$XGETTEXT" != ":"; then 12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 12778 $as_echo "$XGETTEXT" >&6; } 12779 else 12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12781 $as_echo "no" >&6; } 12782 fi 12783 12784 rm -f messages.po 12785 12786 12787 # Prepare PATH_SEPARATOR. 12788 # The user is always right. 12789 if test "${PATH_SEPARATOR+set}" != set; then 12790 echo "#! /bin/sh" >conf$$.sh 12791 echo "exit 0" >>conf$$.sh 12792 chmod +x conf$$.sh 12793 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12794 PATH_SEPARATOR=';' 12795 else 12796 PATH_SEPARATOR=: 12797 fi 12798 rm -f conf$$.sh 12799 fi 12800 12801 # Find out how to test for executable files. Don't use a zero-byte file, 12802 # as systems may use methods other than mode bits to determine executability. 12803 cat >conf$$.file <<_ASEOF 12804 #! /bin/sh 12805 exit 0 12806 _ASEOF 12807 chmod +x conf$$.file 12808 if test -x conf$$.file >/dev/null 2>&1; then 12809 ac_executable_p="test -x" 12810 else 12811 ac_executable_p="test -f" 12812 fi 12813 rm -f conf$$.file 12814 12815 # Extract the first word of "msgmerge", so it can be a program name with args. 12816 set dummy msgmerge; ac_word=$2 12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12818 $as_echo_n "checking for $ac_word... " >&6; } 12819 if ${ac_cv_path_MSGMERGE+:} false; then : 12820 $as_echo_n "(cached) " >&6 12821 else 12822 case "$MSGMERGE" in 12823 [\\/]* | ?:[\\/]*) 12824 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 12825 ;; 12826 *) 12827 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12828 for ac_dir in $PATH; do 12829 IFS="$ac_save_IFS" 12830 test -z "$ac_dir" && ac_dir=. 12831 for ac_exec_ext in '' $ac_executable_extensions; do 12832 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12833 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 12834 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 12835 break 2 12836 fi 12837 fi 12838 done 12839 done 12840 IFS="$ac_save_IFS" 12841 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 12842 ;; 12843 esac 12844 fi 12845 MSGMERGE="$ac_cv_path_MSGMERGE" 12846 if test "$MSGMERGE" != ":"; then 12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 12848 $as_echo "$MSGMERGE" >&6; } 12849 else 12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12851 $as_echo "no" >&6; } 12852 fi 12853 12854 12855 if test "$GMSGFMT" != ":"; then 12856 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 12857 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12858 : ; 12859 else 12860 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 12862 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 12863 GMSGFMT=":" 12864 fi 12865 fi 12866 12867 if test "$XGETTEXT" != ":"; then 12868 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 12869 (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 12870 : ; 12871 else 12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 12873 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 12874 XGETTEXT=":" 12875 fi 12876 rm -f messages.po 12877 fi 12878 12879 ac_config_commands="$ac_config_commands default-1" 12880 12881 12882 12883 if test "X$prefix" = "XNONE"; then 12884 acl_final_prefix="$ac_default_prefix" 12885 else 12886 acl_final_prefix="$prefix" 12887 fi 12888 if test "X$exec_prefix" = "XNONE"; then 12889 acl_final_exec_prefix='${prefix}' 12890 else 12891 acl_final_exec_prefix="$exec_prefix" 12892 fi 12893 acl_save_prefix="$prefix" 12894 prefix="$acl_final_prefix" 12895 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 12896 prefix="$acl_save_prefix" 12897 12898 12899 # Check whether --with-gnu-ld was given. 12900 if test "${with_gnu_ld+set}" = set; then : 12901 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12902 else 12903 with_gnu_ld=no 12904 fi 12905 12906 # Prepare PATH_SEPARATOR. 12907 # The user is always right. 12908 if test "${PATH_SEPARATOR+set}" != set; then 12909 echo "#! /bin/sh" >conf$$.sh 12910 echo "exit 0" >>conf$$.sh 12911 chmod +x conf$$.sh 12912 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12913 PATH_SEPARATOR=';' 12914 else 12915 PATH_SEPARATOR=: 12916 fi 12917 rm -f conf$$.sh 12918 fi 12919 ac_prog=ld 12920 if test "$GCC" = yes; then 12921 # Check if gcc -print-prog-name=ld gives a path. 12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 12923 $as_echo_n "checking for ld used by GCC... " >&6; } 12924 case $host in 12925 *-*-mingw*) 12926 # gcc leaves a trailing carriage return which upsets mingw 12927 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12928 *) 12929 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12930 esac 12931 case $ac_prog in 12932 # Accept absolute paths. 12933 [\\/]* | [A-Za-z]:[\\/]*) 12934 re_direlt='/[^/][^/]*/\.\./' 12935 # Canonicalize the path of ld 12936 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 12937 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 12938 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 12939 done 12940 test -z "$LD" && LD="$ac_prog" 12941 ;; 12942 "") 12943 # If it fails, then pretend we aren't using GCC. 12944 ac_prog=ld 12945 ;; 12946 *) 12947 # If it is relative, then search for the first ld in PATH. 12948 with_gnu_ld=unknown 12949 ;; 12950 esac 12951 elif test "$with_gnu_ld" = yes; then 12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12953 $as_echo_n "checking for GNU ld... " >&6; } 12954 else 12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12956 $as_echo_n "checking for non-GNU ld... " >&6; } 12957 fi 12958 if ${acl_cv_path_LD+:} false; then : 12959 $as_echo_n "(cached) " >&6 12960 else 12961 if test -z "$LD"; then 12962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 12963 for ac_dir in $PATH; do 12964 test -z "$ac_dir" && ac_dir=. 12965 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12966 acl_cv_path_LD="$ac_dir/$ac_prog" 12967 # Check to see if the program is GNU ld. I'd rather use --version, 12968 # but apparently some GNU ld's only accept -v. 12969 # Break only if it was the GNU/non-GNU ld that we prefer. 12970 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then 12971 test "$with_gnu_ld" != no && break 12972 else 12973 test "$with_gnu_ld" != yes && break 12974 fi 12975 fi 12976 done 12977 IFS="$ac_save_ifs" 12978 else 12979 acl_cv_path_LD="$LD" # Let the user override the test with a path. 12980 fi 12981 fi 12982 12983 LD="$acl_cv_path_LD" 12984 if test -n "$LD"; then 12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12986 $as_echo "$LD" >&6; } 12987 else 12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12989 $as_echo "no" >&6; } 12990 fi 12991 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12993 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12994 if ${acl_cv_prog_gnu_ld+:} false; then : 12995 $as_echo_n "(cached) " >&6 12996 else 12997 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 12998 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then 12999 acl_cv_prog_gnu_ld=yes 13000 else 13001 acl_cv_prog_gnu_ld=no 13002 fi 13003 fi 13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 13005 $as_echo "$acl_cv_prog_gnu_ld" >&6; } 13006 with_gnu_ld=$acl_cv_prog_gnu_ld 13007 13008 13009 13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 13011 $as_echo_n "checking for shared library run path origin... " >&6; } 13012 if ${acl_cv_rpath+:} false; then : 13013 $as_echo_n "(cached) " >&6 13014 else 13015 13016 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 13017 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 13018 . ./conftest.sh 13019 rm -f ./conftest.sh 13020 acl_cv_rpath=done 13021 13022 fi 13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 13024 $as_echo "$acl_cv_rpath" >&6; } 13025 wl="$acl_cv_wl" 13026 libext="$acl_cv_libext" 13027 shlibext="$acl_cv_shlibext" 13028 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 13029 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 13030 hardcode_direct="$acl_cv_hardcode_direct" 13031 hardcode_minus_L="$acl_cv_hardcode_minus_L" 13032 # Check whether --enable-rpath was given. 13033 if test "${enable_rpath+set}" = set; then : 13034 enableval=$enable_rpath; : 13035 else 13036 enable_rpath=yes 13037 fi 13038 13039 13040 13041 13042 13043 13044 13045 13046 use_additional=yes 13047 13048 acl_save_prefix="$prefix" 13049 prefix="$acl_final_prefix" 13050 acl_save_exec_prefix="$exec_prefix" 13051 exec_prefix="$acl_final_exec_prefix" 13052 13053 eval additional_includedir=\"$includedir\" 13054 eval additional_libdir=\"$libdir\" 13055 13056 exec_prefix="$acl_save_exec_prefix" 13057 prefix="$acl_save_prefix" 13058 13059 13060 # Check whether --with-libiconv-prefix was given. 13061 if test "${with_libiconv_prefix+set}" = set; then : 13062 withval=$with_libiconv_prefix; 13063 if test "X$withval" = "Xno"; then 13064 use_additional=no 13065 else 13066 if test "X$withval" = "X"; then 13067 13068 acl_save_prefix="$prefix" 13069 prefix="$acl_final_prefix" 13070 acl_save_exec_prefix="$exec_prefix" 13071 exec_prefix="$acl_final_exec_prefix" 13072 13073 eval additional_includedir=\"$includedir\" 13074 eval additional_libdir=\"$libdir\" 13075 13076 exec_prefix="$acl_save_exec_prefix" 13077 prefix="$acl_save_prefix" 13078 13079 else 13080 additional_includedir="$withval/include" 13081 additional_libdir="$withval/lib" 13082 fi 13083 fi 13084 13085 fi 13086 13087 13088 # Check whether --with-libiconv-type was given. 13089 if test "${with_libiconv_type+set}" = set; then : 13090 withval=$with_libiconv_type; with_libiconv_type=$withval 13091 else 13092 with_libiconv_type=auto 13093 fi 13094 13095 lib_type=`eval echo \$with_libiconv_type` 13096 13097 LIBICONV= 13098 LTLIBICONV= 13099 INCICONV= 13100 rpathdirs= 13101 ltrpathdirs= 13102 names_already_handled= 13103 names_next_round='iconv ' 13104 while test -n "$names_next_round"; do 13105 names_this_round="$names_next_round" 13106 names_next_round= 13107 for name in $names_this_round; do 13108 already_handled= 13109 for n in $names_already_handled; do 13110 if test "$n" = "$name"; then 13111 already_handled=yes 13112 break 13113 fi 13114 done 13115 if test -z "$already_handled"; then 13116 names_already_handled="$names_already_handled $name" 13117 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 13118 eval value=\"\$HAVE_LIB$uppername\" 13119 if test -n "$value"; then 13120 if test "$value" = yes; then 13121 eval value=\"\$LIB$uppername\" 13122 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 13123 eval value=\"\$LTLIB$uppername\" 13124 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 13125 else 13126 : 13127 fi 13128 else 13129 found_dir= 13130 found_la= 13131 found_so= 13132 found_a= 13133 if test $use_additional = yes; then 13134 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 13135 found_dir="$additional_libdir" 13136 found_so="$additional_libdir/lib$name.$shlibext" 13137 if test -f "$additional_libdir/lib$name.la"; then 13138 found_la="$additional_libdir/lib$name.la" 13139 fi 13140 elif test x$lib_type != xshared; then 13141 if test -f "$additional_libdir/lib$name.$libext"; then 13142 found_dir="$additional_libdir" 13143 found_a="$additional_libdir/lib$name.$libext" 13144 if test -f "$additional_libdir/lib$name.la"; then 13145 found_la="$additional_libdir/lib$name.la" 13146 fi 13147 fi 13148 fi 13149 fi 13150 if test "X$found_dir" = "X"; then 13151 for x in $LDFLAGS $LTLIBICONV; do 13152 13153 acl_save_prefix="$prefix" 13154 prefix="$acl_final_prefix" 13155 acl_save_exec_prefix="$exec_prefix" 13156 exec_prefix="$acl_final_exec_prefix" 13157 eval x=\"$x\" 13158 exec_prefix="$acl_save_exec_prefix" 13159 prefix="$acl_save_prefix" 13160 13161 case "$x" in 13162 -L*) 13163 dir=`echo "X$x" | sed -e 's/^X-L//'` 13164 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 13165 found_dir="$dir" 13166 found_so="$dir/lib$name.$shlibext" 13167 if test -f "$dir/lib$name.la"; then 13168 found_la="$dir/lib$name.la" 13169 fi 13170 elif test x$lib_type != xshared; then 13171 if test -f "$dir/lib$name.$libext"; then 13172 found_dir="$dir" 13173 found_a="$dir/lib$name.$libext" 13174 if test -f "$dir/lib$name.la"; then 13175 found_la="$dir/lib$name.la" 13176 fi 13177 fi 13178 fi 13179 ;; 13180 esac 13181 if test "X$found_dir" != "X"; then 13182 break 13183 fi 13184 done 13185 fi 13186 if test "X$found_dir" != "X"; then 13187 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 13188 if test "X$found_so" != "X"; then 13189 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 13190 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13191 else 13192 haveit= 13193 for x in $ltrpathdirs; do 13194 if test "X$x" = "X$found_dir"; then 13195 haveit=yes 13196 break 13197 fi 13198 done 13199 if test -z "$haveit"; then 13200 ltrpathdirs="$ltrpathdirs $found_dir" 13201 fi 13202 if test "$hardcode_direct" = yes; then 13203 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13204 else 13205 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 13206 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13207 haveit= 13208 for x in $rpathdirs; do 13209 if test "X$x" = "X$found_dir"; then 13210 haveit=yes 13211 break 13212 fi 13213 done 13214 if test -z "$haveit"; then 13215 rpathdirs="$rpathdirs $found_dir" 13216 fi 13217 else 13218 haveit= 13219 for x in $LDFLAGS $LIBICONV; do 13220 13221 acl_save_prefix="$prefix" 13222 prefix="$acl_final_prefix" 13223 acl_save_exec_prefix="$exec_prefix" 13224 exec_prefix="$acl_final_exec_prefix" 13225 eval x=\"$x\" 13226 exec_prefix="$acl_save_exec_prefix" 13227 prefix="$acl_save_prefix" 13228 13229 if test "X$x" = "X-L$found_dir"; then 13230 haveit=yes 13231 break 13232 fi 13233 done 13234 if test -z "$haveit"; then 13235 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 13236 fi 13237 if test "$hardcode_minus_L" != no; then 13238 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13239 else 13240 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 13241 fi 13242 fi 13243 fi 13244 fi 13245 else 13246 if test "X$found_a" != "X"; then 13247 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 13248 else 13249 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 13250 fi 13251 fi 13252 additional_includedir= 13253 case "$found_dir" in 13254 */lib | */lib/) 13255 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 13256 additional_includedir="$basedir/include" 13257 ;; 13258 esac 13259 if test "X$additional_includedir" != "X"; then 13260 if test "X$additional_includedir" != "X/usr/include"; then 13261 haveit= 13262 if test "X$additional_includedir" = "X/usr/local/include"; then 13263 if test -n "$GCC"; then 13264 case $host_os in 13265 linux*) haveit=yes;; 13266 esac 13267 fi 13268 fi 13269 if test -z "$haveit"; then 13270 for x in $CPPFLAGS $INCICONV; do 13271 13272 acl_save_prefix="$prefix" 13273 prefix="$acl_final_prefix" 13274 acl_save_exec_prefix="$exec_prefix" 13275 exec_prefix="$acl_final_exec_prefix" 13276 eval x=\"$x\" 13277 exec_prefix="$acl_save_exec_prefix" 13278 prefix="$acl_save_prefix" 13279 13280 if test "X$x" = "X-I$additional_includedir"; then 13281 haveit=yes 13282 break 13283 fi 13284 done 13285 if test -z "$haveit"; then 13286 if test -d "$additional_includedir"; then 13287 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 13288 fi 13289 fi 13290 fi 13291 fi 13292 fi 13293 if test -n "$found_la"; then 13294 save_libdir="$libdir" 13295 case "$found_la" in 13296 */* | *\\*) . "$found_la" ;; 13297 *) . "./$found_la" ;; 13298 esac 13299 libdir="$save_libdir" 13300 for dep in $dependency_libs; do 13301 case "$dep" in 13302 -L*) 13303 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 13304 if test "X$additional_libdir" != "X/usr/lib"; then 13305 haveit= 13306 if test "X$additional_libdir" = "X/usr/local/lib"; then 13307 if test -n "$GCC"; then 13308 case $host_os in 13309 linux*) haveit=yes;; 13310 esac 13311 fi 13312 fi 13313 if test -z "$haveit"; then 13314 haveit= 13315 for x in $LDFLAGS $LIBICONV; do 13316 13317 acl_save_prefix="$prefix" 13318 prefix="$acl_final_prefix" 13319 acl_save_exec_prefix="$exec_prefix" 13320 exec_prefix="$acl_final_exec_prefix" 13321 eval x=\"$x\" 13322 exec_prefix="$acl_save_exec_prefix" 13323 prefix="$acl_save_prefix" 13324 13325 if test "X$x" = "X-L$additional_libdir"; then 13326 haveit=yes 13327 break 13328 fi 13329 done 13330 if test -z "$haveit"; then 13331 if test -d "$additional_libdir"; then 13332 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 13333 fi 13334 fi 13335 haveit= 13336 for x in $LDFLAGS $LTLIBICONV; do 13337 13338 acl_save_prefix="$prefix" 13339 prefix="$acl_final_prefix" 13340 acl_save_exec_prefix="$exec_prefix" 13341 exec_prefix="$acl_final_exec_prefix" 13342 eval x=\"$x\" 13343 exec_prefix="$acl_save_exec_prefix" 13344 prefix="$acl_save_prefix" 13345 13346 if test "X$x" = "X-L$additional_libdir"; then 13347 haveit=yes 13348 break 13349 fi 13350 done 13351 if test -z "$haveit"; then 13352 if test -d "$additional_libdir"; then 13353 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 13354 fi 13355 fi 13356 fi 13357 fi 13358 ;; 13359 -R*) 13360 dir=`echo "X$dep" | sed -e 's/^X-R//'` 13361 if test "$enable_rpath" != no; then 13362 haveit= 13363 for x in $rpathdirs; do 13364 if test "X$x" = "X$dir"; then 13365 haveit=yes 13366 break 13367 fi 13368 done 13369 if test -z "$haveit"; then 13370 rpathdirs="$rpathdirs $dir" 13371 fi 13372 haveit= 13373 for x in $ltrpathdirs; do 13374 if test "X$x" = "X$dir"; then 13375 haveit=yes 13376 break 13377 fi 13378 done 13379 if test -z "$haveit"; then 13380 ltrpathdirs="$ltrpathdirs $dir" 13381 fi 13382 fi 13383 ;; 13384 -l*) 13385 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 13386 ;; 13387 *.la) 13388 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 13389 ;; 13390 *) 13391 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 13392 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 13393 ;; 13394 esac 13395 done 13396 fi 13397 else 13398 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 13399 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 13400 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 13401 else 13402 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext" 13403 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext" 13404 fi 13405 fi 13406 fi 13407 fi 13408 done 13409 done 13410 if test "X$rpathdirs" != "X"; then 13411 if test -n "$hardcode_libdir_separator"; then 13412 alldirs= 13413 for found_dir in $rpathdirs; do 13414 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 13415 done 13416 acl_save_libdir="$libdir" 13417 libdir="$alldirs" 13418 eval flag=\"$hardcode_libdir_flag_spec\" 13419 libdir="$acl_save_libdir" 13420 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 13421 else 13422 for found_dir in $rpathdirs; do 13423 acl_save_libdir="$libdir" 13424 libdir="$found_dir" 13425 eval flag=\"$hardcode_libdir_flag_spec\" 13426 libdir="$acl_save_libdir" 13427 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 13428 done 13429 fi 13430 fi 13431 if test "X$ltrpathdirs" != "X"; then 13432 for found_dir in $ltrpathdirs; do 13433 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 13434 done 13435 fi 13436 13437 13438 13439 13440 13441 if test -f ../gettext/uninstalled-config.sh; then 13442 relative_builddir='$(top_builddir)/../gettext' 13443 . ../gettext/uninstalled-config.sh 13444 else 13445 # The sister gettext directory doesn't exist and won't collect information on 13446 # using gettext for us. Call a bundled AM_GNU_GETTEXT. 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 13471 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 13472 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 13473 $as_echo_n "(cached) " >&6 13474 else 13475 gt_save_LIBS="$LIBS" 13476 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 13477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13478 /* end confdefs.h. */ 13479 #include <CoreFoundation/CFPreferences.h> 13480 int 13481 main () 13482 { 13483 CFPreferencesCopyAppValue(NULL, NULL) 13484 ; 13485 return 0; 13486 } 13487 _ACEOF 13488 if ac_fn_c_try_link "$LINENO"; then : 13489 gt_cv_func_CFPreferencesCopyAppValue=yes 13490 else 13491 gt_cv_func_CFPreferencesCopyAppValue=no 13492 fi 13493 rm -f core conftest.err conftest.$ac_objext \ 13494 conftest$ac_exeext conftest.$ac_ext 13495 LIBS="$gt_save_LIBS" 13496 fi 13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 13498 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 13499 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 13500 13501 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 13502 13503 fi 13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 13505 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; } 13506 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then : 13507 $as_echo_n "(cached) " >&6 13508 else 13509 gt_save_LIBS="$LIBS" 13510 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13512 /* end confdefs.h. */ 13513 #include <CoreFoundation/CFLocale.h> 13514 int 13515 main () 13516 { 13517 CFLocaleCopyPreferredLanguages(); 13518 ; 13519 return 0; 13520 } 13521 _ACEOF 13522 if ac_fn_c_try_link "$LINENO"; then : 13523 gt_cv_func_CFLocaleCopyPreferredLanguages=yes 13524 else 13525 gt_cv_func_CFLocaleCopyPreferredLanguages=no 13526 fi 13527 rm -f core conftest.err conftest.$ac_objext \ 13528 conftest$ac_exeext conftest.$ac_ext 13529 LIBS="$gt_save_LIBS" 13530 fi 13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 13532 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } 13533 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 13534 13535 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h 13536 13537 fi 13538 INTL_MACOSX_LIBS= 13539 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ 13540 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 13541 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices" 13542 fi 13543 13544 13545 13546 13547 13548 13549 LIBINTL= 13550 LTLIBINTL= 13551 POSUB= 13552 13553 case " $gt_needs " in 13554 *" need-formatstring-macros "*) gt_api_version=3 ;; 13555 *" need-ngettext "*) gt_api_version=2 ;; 13556 *) gt_api_version=1 ;; 13557 esac 13558 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 13559 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 13560 13561 if test "$USE_NLS" = "yes"; then 13562 gt_use_preinstalled_gnugettext=no 13563 13564 13565 if test $gt_api_version -ge 3; then 13566 gt_revision_test_code=' 13567 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 13568 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 13569 #endif 13570 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 13571 ' 13572 else 13573 gt_revision_test_code= 13574 fi 13575 if test $gt_api_version -ge 2; then 13576 gt_expression_test_code=' + * ngettext ("", "", 0)' 13577 else 13578 gt_expression_test_code= 13579 fi 13580 13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 13582 $as_echo_n "checking for GNU gettext in libc... " >&6; } 13583 if eval \${$gt_func_gnugettext_libc+:} false; then : 13584 $as_echo_n "(cached) " >&6 13585 else 13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13587 /* end confdefs.h. */ 13588 13589 #include <libintl.h> 13590 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 13591 extern int _nl_msg_cat_cntr; 13592 extern int *_nl_domain_bindings; 13593 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) 13594 #else 13595 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 13596 #endif 13597 $gt_revision_test_code 13598 13599 int 13600 main () 13601 { 13602 13603 bindtextdomain ("", ""); 13604 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 13605 13606 ; 13607 return 0; 13608 } 13609 _ACEOF 13610 if ac_fn_c_try_link "$LINENO"; then : 13611 eval "$gt_func_gnugettext_libc=yes" 13612 else 13613 eval "$gt_func_gnugettext_libc=no" 13614 fi 13615 rm -f core conftest.err conftest.$ac_objext \ 13616 conftest$ac_exeext conftest.$ac_ext 13617 fi 13618 eval ac_res=\$$gt_func_gnugettext_libc 13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13620 $as_echo "$ac_res" >&6; } 13621 13622 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 13623 13624 13625 13626 13627 13628 am_save_CPPFLAGS="$CPPFLAGS" 13629 13630 for element in $INCICONV; do 13631 haveit= 13632 for x in $CPPFLAGS; do 13633 13634 acl_save_prefix="$prefix" 13635 prefix="$acl_final_prefix" 13636 acl_save_exec_prefix="$exec_prefix" 13637 exec_prefix="$acl_final_exec_prefix" 13638 eval x=\"$x\" 13639 exec_prefix="$acl_save_exec_prefix" 13640 prefix="$acl_save_prefix" 13641 13642 if test "X$x" = "X$element"; then 13643 haveit=yes 13644 break 13645 fi 13646 done 13647 if test -z "$haveit"; then 13648 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 13649 fi 13650 done 13651 13652 13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 13654 $as_echo_n "checking for iconv... " >&6; } 13655 if ${am_cv_func_iconv+:} false; then : 13656 $as_echo_n "(cached) " >&6 13657 else 13658 13659 am_cv_func_iconv="no, consider installing GNU libiconv" 13660 am_cv_lib_iconv=no 13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13662 /* end confdefs.h. */ 13663 13664 #include <stdlib.h> 13665 #include <iconv.h> 13666 13667 int 13668 main () 13669 { 13670 iconv_t cd = iconv_open("",""); 13671 iconv(cd,NULL,NULL,NULL,NULL); 13672 iconv_close(cd); 13673 ; 13674 return 0; 13675 } 13676 _ACEOF 13677 if ac_fn_c_try_link "$LINENO"; then : 13678 am_cv_func_iconv=yes 13679 fi 13680 rm -f core conftest.err conftest.$ac_objext \ 13681 conftest$ac_exeext conftest.$ac_ext 13682 if test "$am_cv_func_iconv" != yes; then 13683 am_save_LIBS="$LIBS" 13684 LIBS="$LIBS $LIBICONV" 13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13686 /* end confdefs.h. */ 13687 13688 #include <stdlib.h> 13689 #include <iconv.h> 13690 13691 int 13692 main () 13693 { 13694 iconv_t cd = iconv_open("",""); 13695 iconv(cd,NULL,NULL,NULL,NULL); 13696 iconv_close(cd); 13697 ; 13698 return 0; 13699 } 13700 _ACEOF 13701 if ac_fn_c_try_link "$LINENO"; then : 13702 am_cv_lib_iconv=yes 13703 am_cv_func_iconv=yes 13704 fi 13705 rm -f core conftest.err conftest.$ac_objext \ 13706 conftest$ac_exeext conftest.$ac_ext 13707 LIBS="$am_save_LIBS" 13708 fi 13709 13710 fi 13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 13712 $as_echo "$am_cv_func_iconv" >&6; } 13713 if test "$am_cv_func_iconv" = yes; then 13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 13715 $as_echo_n "checking for working iconv... " >&6; } 13716 if ${am_cv_func_iconv_works+:} false; then : 13717 $as_echo_n "(cached) " >&6 13718 else 13719 13720 am_save_LIBS="$LIBS" 13721 if test $am_cv_lib_iconv = yes; then 13722 LIBS="$LIBS $LIBICONV" 13723 fi 13724 am_cv_func_iconv_works=no 13725 for ac_iconv_const in '' 'const'; do 13726 if test "$cross_compiling" = yes; then : 13727 case "$host_os" in 13728 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 13729 *) am_cv_func_iconv_works="guessing yes" ;; 13730 esac 13731 else 13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13733 /* end confdefs.h. */ 13734 13735 #include <iconv.h> 13736 #include <string.h> 13737 13738 #ifndef ICONV_CONST 13739 # define ICONV_CONST $ac_iconv_const 13740 #endif 13741 13742 int 13743 main () 13744 { 13745 int result = 0; 13746 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from 13747 successful returns. This is even documented in 13748 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */ 13749 { 13750 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 13751 if (cd_utf8_to_88591 != (iconv_t)(-1)) 13752 { 13753 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 13754 char buf[10]; 13755 ICONV_CONST char *inptr = input; 13756 size_t inbytesleft = strlen (input); 13757 char *outptr = buf; 13758 size_t outbytesleft = sizeof (buf); 13759 size_t res = iconv (cd_utf8_to_88591, 13760 &inptr, &inbytesleft, 13761 &outptr, &outbytesleft); 13762 if (res == 0) 13763 result |= 1; 13764 iconv_close (cd_utf8_to_88591); 13765 } 13766 } 13767 /* Test against Solaris 10 bug: Failures are not distinguishable from 13768 successful returns. */ 13769 { 13770 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 13771 if (cd_ascii_to_88591 != (iconv_t)(-1)) 13772 { 13773 static ICONV_CONST char input[] = "\263"; 13774 char buf[10]; 13775 ICONV_CONST char *inptr = input; 13776 size_t inbytesleft = strlen (input); 13777 char *outptr = buf; 13778 size_t outbytesleft = sizeof (buf); 13779 size_t res = iconv (cd_ascii_to_88591, 13780 &inptr, &inbytesleft, 13781 &outptr, &outbytesleft); 13782 if (res == 0) 13783 result |= 2; 13784 iconv_close (cd_ascii_to_88591); 13785 } 13786 } 13787 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 13788 { 13789 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 13790 if (cd_88591_to_utf8 != (iconv_t)(-1)) 13791 { 13792 static ICONV_CONST char input[] = "\304"; 13793 static char buf[2] = { (char)0xDE, (char)0xAD }; 13794 ICONV_CONST char *inptr = input; 13795 size_t inbytesleft = 1; 13796 char *outptr = buf; 13797 size_t outbytesleft = 1; 13798 size_t res = iconv (cd_88591_to_utf8, 13799 &inptr, &inbytesleft, 13800 &outptr, &outbytesleft); 13801 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 13802 result |= 4; 13803 iconv_close (cd_88591_to_utf8); 13804 } 13805 } 13806 #if 0 /* This bug could be worked around by the caller. */ 13807 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 13808 { 13809 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 13810 if (cd_88591_to_utf8 != (iconv_t)(-1)) 13811 { 13812 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 13813 char buf[50]; 13814 ICONV_CONST char *inptr = input; 13815 size_t inbytesleft = strlen (input); 13816 char *outptr = buf; 13817 size_t outbytesleft = sizeof (buf); 13818 size_t res = iconv (cd_88591_to_utf8, 13819 &inptr, &inbytesleft, 13820 &outptr, &outbytesleft); 13821 if ((int)res > 0) 13822 result |= 8; 13823 iconv_close (cd_88591_to_utf8); 13824 } 13825 } 13826 #endif 13827 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 13828 provided. */ 13829 { 13830 /* Try standardized names. */ 13831 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); 13832 /* Try IRIX, OSF/1 names. */ 13833 iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); 13834 /* Try AIX names. */ 13835 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); 13836 /* Try HP-UX names. */ 13837 iconv_t cd4 = iconv_open ("utf8", "eucJP"); 13838 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) 13839 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) 13840 result |= 16; 13841 if (cd1 != (iconv_t)(-1)) 13842 iconv_close (cd1); 13843 if (cd2 != (iconv_t)(-1)) 13844 iconv_close (cd2); 13845 if (cd3 != (iconv_t)(-1)) 13846 iconv_close (cd3); 13847 if (cd4 != (iconv_t)(-1)) 13848 iconv_close (cd4); 13849 } 13850 return result; 13851 13852 ; 13853 return 0; 13854 } 13855 _ACEOF 13856 if ac_fn_c_try_run "$LINENO"; then : 13857 am_cv_func_iconv_works=yes 13858 fi 13859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13860 conftest.$ac_objext conftest.beam conftest.$ac_ext 13861 fi 13862 13863 test "$am_cv_func_iconv_works" = no || break 13864 done 13865 LIBS="$am_save_LIBS" 13866 13867 fi 13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 13869 $as_echo "$am_cv_func_iconv_works" >&6; } 13870 case "$am_cv_func_iconv_works" in 13871 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 13872 *) am_func_iconv=yes ;; 13873 esac 13874 else 13875 am_func_iconv=no am_cv_lib_iconv=no 13876 fi 13877 if test "$am_func_iconv" = yes; then 13878 13879 $as_echo "#define HAVE_ICONV 1" >>confdefs.h 13880 13881 fi 13882 if test "$am_cv_lib_iconv" = yes; then 13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 13884 $as_echo_n "checking how to link with libiconv... " >&6; } 13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 13886 $as_echo "$LIBICONV" >&6; } 13887 else 13888 CPPFLAGS="$am_save_CPPFLAGS" 13889 LIBICONV= 13890 LTLIBICONV= 13891 fi 13892 13893 13894 13895 13896 13897 13898 use_additional=yes 13899 13900 acl_save_prefix="$prefix" 13901 prefix="$acl_final_prefix" 13902 acl_save_exec_prefix="$exec_prefix" 13903 exec_prefix="$acl_final_exec_prefix" 13904 13905 eval additional_includedir=\"$includedir\" 13906 eval additional_libdir=\"$libdir\" 13907 13908 exec_prefix="$acl_save_exec_prefix" 13909 prefix="$acl_save_prefix" 13910 13911 13912 # Check whether --with-libintl-prefix was given. 13913 if test "${with_libintl_prefix+set}" = set; then : 13914 withval=$with_libintl_prefix; 13915 if test "X$withval" = "Xno"; then 13916 use_additional=no 13917 else 13918 if test "X$withval" = "X"; then 13919 13920 acl_save_prefix="$prefix" 13921 prefix="$acl_final_prefix" 13922 acl_save_exec_prefix="$exec_prefix" 13923 exec_prefix="$acl_final_exec_prefix" 13924 13925 eval additional_includedir=\"$includedir\" 13926 eval additional_libdir=\"$libdir\" 13927 13928 exec_prefix="$acl_save_exec_prefix" 13929 prefix="$acl_save_prefix" 13930 13931 else 13932 additional_includedir="$withval/include" 13933 additional_libdir="$withval/lib" 13934 fi 13935 fi 13936 13937 fi 13938 13939 13940 # Check whether --with-libintl-type was given. 13941 if test "${with_libintl_type+set}" = set; then : 13942 withval=$with_libintl_type; with_libintl_type=$withval 13943 else 13944 with_libintl_type=auto 13945 fi 13946 13947 lib_type=`eval echo \$with_libintl_type` 13948 13949 LIBINTL= 13950 LTLIBINTL= 13951 INCINTL= 13952 rpathdirs= 13953 ltrpathdirs= 13954 names_already_handled= 13955 names_next_round='intl ' 13956 while test -n "$names_next_round"; do 13957 names_this_round="$names_next_round" 13958 names_next_round= 13959 for name in $names_this_round; do 13960 already_handled= 13961 for n in $names_already_handled; do 13962 if test "$n" = "$name"; then 13963 already_handled=yes 13964 break 13965 fi 13966 done 13967 if test -z "$already_handled"; then 13968 names_already_handled="$names_already_handled $name" 13969 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 13970 eval value=\"\$HAVE_LIB$uppername\" 13971 if test -n "$value"; then 13972 if test "$value" = yes; then 13973 eval value=\"\$LIB$uppername\" 13974 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 13975 eval value=\"\$LTLIB$uppername\" 13976 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 13977 else 13978 : 13979 fi 13980 else 13981 found_dir= 13982 found_la= 13983 found_so= 13984 found_a= 13985 if test $use_additional = yes; then 13986 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 13987 found_dir="$additional_libdir" 13988 found_so="$additional_libdir/lib$name.$shlibext" 13989 if test -f "$additional_libdir/lib$name.la"; then 13990 found_la="$additional_libdir/lib$name.la" 13991 fi 13992 elif test x$lib_type != xshared; then 13993 if test -f "$additional_libdir/lib$name.$libext"; then 13994 found_dir="$additional_libdir" 13995 found_a="$additional_libdir/lib$name.$libext" 13996 if test -f "$additional_libdir/lib$name.la"; then 13997 found_la="$additional_libdir/lib$name.la" 13998 fi 13999 fi 14000 fi 14001 fi 14002 if test "X$found_dir" = "X"; then 14003 for x in $LDFLAGS $LTLIBINTL; do 14004 14005 acl_save_prefix="$prefix" 14006 prefix="$acl_final_prefix" 14007 acl_save_exec_prefix="$exec_prefix" 14008 exec_prefix="$acl_final_exec_prefix" 14009 eval x=\"$x\" 14010 exec_prefix="$acl_save_exec_prefix" 14011 prefix="$acl_save_prefix" 14012 14013 case "$x" in 14014 -L*) 14015 dir=`echo "X$x" | sed -e 's/^X-L//'` 14016 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 14017 found_dir="$dir" 14018 found_so="$dir/lib$name.$shlibext" 14019 if test -f "$dir/lib$name.la"; then 14020 found_la="$dir/lib$name.la" 14021 fi 14022 elif test x$lib_type != xshared; then 14023 if test -f "$dir/lib$name.$libext"; then 14024 found_dir="$dir" 14025 found_a="$dir/lib$name.$libext" 14026 if test -f "$dir/lib$name.la"; then 14027 found_la="$dir/lib$name.la" 14028 fi 14029 fi 14030 fi 14031 ;; 14032 esac 14033 if test "X$found_dir" != "X"; then 14034 break 14035 fi 14036 done 14037 fi 14038 if test "X$found_dir" != "X"; then 14039 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 14040 if test "X$found_so" != "X"; then 14041 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 14042 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14043 else 14044 haveit= 14045 for x in $ltrpathdirs; do 14046 if test "X$x" = "X$found_dir"; then 14047 haveit=yes 14048 break 14049 fi 14050 done 14051 if test -z "$haveit"; then 14052 ltrpathdirs="$ltrpathdirs $found_dir" 14053 fi 14054 if test "$hardcode_direct" = yes; then 14055 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14056 else 14057 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 14058 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14059 haveit= 14060 for x in $rpathdirs; do 14061 if test "X$x" = "X$found_dir"; then 14062 haveit=yes 14063 break 14064 fi 14065 done 14066 if test -z "$haveit"; then 14067 rpathdirs="$rpathdirs $found_dir" 14068 fi 14069 else 14070 haveit= 14071 for x in $LDFLAGS $LIBINTL; do 14072 14073 acl_save_prefix="$prefix" 14074 prefix="$acl_final_prefix" 14075 acl_save_exec_prefix="$exec_prefix" 14076 exec_prefix="$acl_final_exec_prefix" 14077 eval x=\"$x\" 14078 exec_prefix="$acl_save_exec_prefix" 14079 prefix="$acl_save_prefix" 14080 14081 if test "X$x" = "X-L$found_dir"; then 14082 haveit=yes 14083 break 14084 fi 14085 done 14086 if test -z "$haveit"; then 14087 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 14088 fi 14089 if test "$hardcode_minus_L" != no; then 14090 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14091 else 14092 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 14093 fi 14094 fi 14095 fi 14096 fi 14097 else 14098 if test "X$found_a" != "X"; then 14099 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 14100 else 14101 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 14102 fi 14103 fi 14104 additional_includedir= 14105 case "$found_dir" in 14106 */lib | */lib/) 14107 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 14108 additional_includedir="$basedir/include" 14109 ;; 14110 esac 14111 if test "X$additional_includedir" != "X"; then 14112 if test "X$additional_includedir" != "X/usr/include"; then 14113 haveit= 14114 if test "X$additional_includedir" = "X/usr/local/include"; then 14115 if test -n "$GCC"; then 14116 case $host_os in 14117 linux*) haveit=yes;; 14118 esac 14119 fi 14120 fi 14121 if test -z "$haveit"; then 14122 for x in $CPPFLAGS $INCINTL; do 14123 14124 acl_save_prefix="$prefix" 14125 prefix="$acl_final_prefix" 14126 acl_save_exec_prefix="$exec_prefix" 14127 exec_prefix="$acl_final_exec_prefix" 14128 eval x=\"$x\" 14129 exec_prefix="$acl_save_exec_prefix" 14130 prefix="$acl_save_prefix" 14131 14132 if test "X$x" = "X-I$additional_includedir"; then 14133 haveit=yes 14134 break 14135 fi 14136 done 14137 if test -z "$haveit"; then 14138 if test -d "$additional_includedir"; then 14139 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 14140 fi 14141 fi 14142 fi 14143 fi 14144 fi 14145 if test -n "$found_la"; then 14146 save_libdir="$libdir" 14147 case "$found_la" in 14148 */* | *\\*) . "$found_la" ;; 14149 *) . "./$found_la" ;; 14150 esac 14151 libdir="$save_libdir" 14152 for dep in $dependency_libs; do 14153 case "$dep" in 14154 -L*) 14155 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 14156 if test "X$additional_libdir" != "X/usr/lib"; then 14157 haveit= 14158 if test "X$additional_libdir" = "X/usr/local/lib"; then 14159 if test -n "$GCC"; then 14160 case $host_os in 14161 linux*) haveit=yes;; 14162 esac 14163 fi 14164 fi 14165 if test -z "$haveit"; then 14166 haveit= 14167 for x in $LDFLAGS $LIBINTL; do 14168 14169 acl_save_prefix="$prefix" 14170 prefix="$acl_final_prefix" 14171 acl_save_exec_prefix="$exec_prefix" 14172 exec_prefix="$acl_final_exec_prefix" 14173 eval x=\"$x\" 14174 exec_prefix="$acl_save_exec_prefix" 14175 prefix="$acl_save_prefix" 14176 14177 if test "X$x" = "X-L$additional_libdir"; then 14178 haveit=yes 14179 break 14180 fi 14181 done 14182 if test -z "$haveit"; then 14183 if test -d "$additional_libdir"; then 14184 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 14185 fi 14186 fi 14187 haveit= 14188 for x in $LDFLAGS $LTLIBINTL; do 14189 14190 acl_save_prefix="$prefix" 14191 prefix="$acl_final_prefix" 14192 acl_save_exec_prefix="$exec_prefix" 14193 exec_prefix="$acl_final_exec_prefix" 14194 eval x=\"$x\" 14195 exec_prefix="$acl_save_exec_prefix" 14196 prefix="$acl_save_prefix" 14197 14198 if test "X$x" = "X-L$additional_libdir"; then 14199 haveit=yes 14200 break 14201 fi 14202 done 14203 if test -z "$haveit"; then 14204 if test -d "$additional_libdir"; then 14205 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 14206 fi 14207 fi 14208 fi 14209 fi 14210 ;; 14211 -R*) 14212 dir=`echo "X$dep" | sed -e 's/^X-R//'` 14213 if test "$enable_rpath" != no; then 14214 haveit= 14215 for x in $rpathdirs; do 14216 if test "X$x" = "X$dir"; then 14217 haveit=yes 14218 break 14219 fi 14220 done 14221 if test -z "$haveit"; then 14222 rpathdirs="$rpathdirs $dir" 14223 fi 14224 haveit= 14225 for x in $ltrpathdirs; do 14226 if test "X$x" = "X$dir"; then 14227 haveit=yes 14228 break 14229 fi 14230 done 14231 if test -z "$haveit"; then 14232 ltrpathdirs="$ltrpathdirs $dir" 14233 fi 14234 fi 14235 ;; 14236 -l*) 14237 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 14238 ;; 14239 *.la) 14240 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 14241 ;; 14242 *) 14243 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 14244 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 14245 ;; 14246 esac 14247 done 14248 fi 14249 else 14250 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 14251 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 14252 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 14253 else 14254 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext" 14255 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext" 14256 fi 14257 fi 14258 fi 14259 fi 14260 done 14261 done 14262 if test "X$rpathdirs" != "X"; then 14263 if test -n "$hardcode_libdir_separator"; then 14264 alldirs= 14265 for found_dir in $rpathdirs; do 14266 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 14267 done 14268 acl_save_libdir="$libdir" 14269 libdir="$alldirs" 14270 eval flag=\"$hardcode_libdir_flag_spec\" 14271 libdir="$acl_save_libdir" 14272 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 14273 else 14274 for found_dir in $rpathdirs; do 14275 acl_save_libdir="$libdir" 14276 libdir="$found_dir" 14277 eval flag=\"$hardcode_libdir_flag_spec\" 14278 libdir="$acl_save_libdir" 14279 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 14280 done 14281 fi 14282 fi 14283 if test "X$ltrpathdirs" != "X"; then 14284 for found_dir in $ltrpathdirs; do 14285 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 14286 done 14287 fi 14288 14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 14290 $as_echo_n "checking for GNU gettext in libintl... " >&6; } 14291 if eval \${$gt_func_gnugettext_libintl+:} false; then : 14292 $as_echo_n "(cached) " >&6 14293 else 14294 gt_save_CPPFLAGS="$CPPFLAGS" 14295 CPPFLAGS="$CPPFLAGS $INCINTL" 14296 gt_save_LIBS="$LIBS" 14297 LIBS="$LIBS $LIBINTL" 14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14299 /* end confdefs.h. */ 14300 14301 #include <libintl.h> 14302 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 14303 extern int _nl_msg_cat_cntr; 14304 extern 14305 #ifdef __cplusplus 14306 "C" 14307 #endif 14308 const char *_nl_expand_alias (const char *); 14309 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 14310 #else 14311 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 14312 #endif 14313 $gt_revision_test_code 14314 14315 int 14316 main () 14317 { 14318 14319 bindtextdomain ("", ""); 14320 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 14321 14322 ; 14323 return 0; 14324 } 14325 _ACEOF 14326 if ac_fn_c_try_link "$LINENO"; then : 14327 eval "$gt_func_gnugettext_libintl=yes" 14328 else 14329 eval "$gt_func_gnugettext_libintl=no" 14330 fi 14331 rm -f core conftest.err conftest.$ac_objext \ 14332 conftest$ac_exeext conftest.$ac_ext 14333 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 14334 LIBS="$LIBS $LIBICONV" 14335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14336 /* end confdefs.h. */ 14337 14338 #include <libintl.h> 14339 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 14340 extern int _nl_msg_cat_cntr; 14341 extern 14342 #ifdef __cplusplus 14343 "C" 14344 #endif 14345 const char *_nl_expand_alias (const char *); 14346 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 14347 #else 14348 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 14349 #endif 14350 $gt_revision_test_code 14351 14352 int 14353 main () 14354 { 14355 14356 bindtextdomain ("", ""); 14357 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 14358 14359 ; 14360 return 0; 14361 } 14362 _ACEOF 14363 if ac_fn_c_try_link "$LINENO"; then : 14364 LIBINTL="$LIBINTL $LIBICONV" 14365 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 14366 eval "$gt_func_gnugettext_libintl=yes" 14367 14368 fi 14369 rm -f core conftest.err conftest.$ac_objext \ 14370 conftest$ac_exeext conftest.$ac_ext 14371 fi 14372 CPPFLAGS="$gt_save_CPPFLAGS" 14373 LIBS="$gt_save_LIBS" 14374 fi 14375 eval ac_res=\$$gt_func_gnugettext_libintl 14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14377 $as_echo "$ac_res" >&6; } 14378 fi 14379 14380 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 14381 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 14382 && test "$PACKAGE" != gettext-runtime \ 14383 && test "$PACKAGE" != gettext-tools; }; then 14384 gt_use_preinstalled_gnugettext=yes 14385 else 14386 LIBINTL= 14387 LTLIBINTL= 14388 INCINTL= 14389 fi 14390 14391 14392 14393 if test -n "$INTL_MACOSX_LIBS"; then 14394 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 14395 || test "$nls_cv_use_gnu_gettext" = "yes"; then 14396 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 14397 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 14398 fi 14399 fi 14400 14401 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 14402 || test "$nls_cv_use_gnu_gettext" = "yes"; then 14403 14404 $as_echo "#define ENABLE_NLS 1" >>confdefs.h 14405 14406 else 14407 USE_NLS=no 14408 fi 14409 fi 14410 14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 14412 $as_echo_n "checking whether to use NLS... " >&6; } 14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 14414 $as_echo "$USE_NLS" >&6; } 14415 if test "$USE_NLS" = "yes"; then 14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 14417 $as_echo_n "checking where the gettext function comes from... " >&6; } 14418 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 14419 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 14420 gt_source="external libintl" 14421 else 14422 gt_source="libc" 14423 fi 14424 else 14425 gt_source="included intl directory" 14426 fi 14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 14428 $as_echo "$gt_source" >&6; } 14429 fi 14430 14431 if test "$USE_NLS" = "yes"; then 14432 14433 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 14434 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 14436 $as_echo_n "checking how to link with libintl... " >&6; } 14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 14438 $as_echo "$LIBINTL" >&6; } 14439 14440 for element in $INCINTL; do 14441 haveit= 14442 for x in $CPPFLAGS; do 14443 14444 acl_save_prefix="$prefix" 14445 prefix="$acl_final_prefix" 14446 acl_save_exec_prefix="$exec_prefix" 14447 exec_prefix="$acl_final_exec_prefix" 14448 eval x=\"$x\" 14449 exec_prefix="$acl_save_exec_prefix" 14450 prefix="$acl_save_prefix" 14451 14452 if test "X$x" = "X$element"; then 14453 haveit=yes 14454 break 14455 fi 14456 done 14457 if test -z "$haveit"; then 14458 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 14459 fi 14460 done 14461 14462 fi 14463 14464 14465 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 14466 14467 14468 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 14469 14470 fi 14471 14472 POSUB=po 14473 fi 14474 14475 14476 14477 INTLLIBS="$LIBINTL" 14478 14479 14480 14481 14482 14483 14484 fi 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 14497 $as_echo_n "checking whether NLS is requested... " >&6; } 14498 if test x"$USE_NLS" != xyes; then 14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14500 $as_echo "no" >&6; } 14501 else 14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14503 $as_echo "yes" >&6; } 14504 14505 $as_echo "#define ENABLE_NLS 1" >>confdefs.h 14506 14507 14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 14509 $as_echo_n "checking for catalogs to be installed... " >&6; } 14510 # Look for .po and .gmo files in the source directory. 14511 CATALOGS= 14512 XLINGUAS= 14513 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 14514 # If there aren't any .gmo files the shell will give us the 14515 # literal string "../path/to/srcdir/po/*.gmo" which has to be 14516 # weeded out. 14517 case "$cat" in *\**) 14518 continue;; 14519 esac 14520 # The quadruple backslash is collapsed to a double backslash 14521 # by the backticks, then collapsed again by the double quotes, 14522 # leaving us with one backslash in the sed expression (right 14523 # before the dot that mustn't act as a wildcard). 14524 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 14525 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 14526 # The user is allowed to set LINGUAS to a list of languages to 14527 # install catalogs for. If it's empty that means "all of them." 14528 if test "x$LINGUAS" = x; then 14529 CATALOGS="$CATALOGS $cat" 14530 XLINGUAS="$XLINGUAS $lang" 14531 else 14532 case "$LINGUAS" in *$lang*) 14533 CATALOGS="$CATALOGS $cat" 14534 XLINGUAS="$XLINGUAS $lang" 14535 ;; 14536 esac 14537 fi 14538 done 14539 LINGUAS="$XLINGUAS" 14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 14541 $as_echo "$LINGUAS" >&6; } 14542 14543 14544 DATADIRNAME=share 14545 14546 INSTOBJEXT=.mo 14547 14548 GENCAT=gencat 14549 14550 CATOBJEXT=.gmo 14551 14552 fi 14553 14554 # Permit host specific settings. 14555 . ${srcdir}/configure.host 14556 14557 14558 14559 14560 # The cast to long int works around a bug in the HP C Compiler 14561 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14562 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14563 # This bug is HP SR number 8606223364. 14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 14565 $as_echo_n "checking size of long long... " >&6; } 14566 if ${ac_cv_sizeof_long_long+:} false; then : 14567 $as_echo_n "(cached) " >&6 14568 else 14569 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 14570 14571 else 14572 if test "$ac_cv_type_long_long" = yes; then 14573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14575 as_fn_error 77 "cannot compute sizeof (long long) 14576 See \`config.log' for more details" "$LINENO" 5; } 14577 else 14578 ac_cv_sizeof_long_long=0 14579 fi 14580 fi 14581 14582 fi 14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 14584 $as_echo "$ac_cv_sizeof_long_long" >&6; } 14585 14586 14587 14588 cat >>confdefs.h <<_ACEOF 14589 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 14590 _ACEOF 14591 14592 14593 # The cast to long int works around a bug in the HP C Compiler 14594 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14595 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14596 # This bug is HP SR number 8606223364. 14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 14598 $as_echo_n "checking size of void *... " >&6; } 14599 if ${ac_cv_sizeof_void_p+:} false; then : 14600 $as_echo_n "(cached) " >&6 14601 else 14602 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 14603 14604 else 14605 if test "$ac_cv_type_void_p" = yes; then 14606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14608 as_fn_error 77 "cannot compute sizeof (void *) 14609 See \`config.log' for more details" "$LINENO" 5; } 14610 else 14611 ac_cv_sizeof_void_p=0 14612 fi 14613 fi 14614 14615 fi 14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 14617 $as_echo "$ac_cv_sizeof_void_p" >&6; } 14618 14619 14620 14621 cat >>confdefs.h <<_ACEOF 14622 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p 14623 _ACEOF 14624 14625 14626 # The cast to long int works around a bug in the HP C Compiler 14627 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14628 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14629 # This bug is HP SR number 8606223364. 14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 14631 $as_echo_n "checking size of long... " >&6; } 14632 if ${ac_cv_sizeof_long+:} false; then : 14633 $as_echo_n "(cached) " >&6 14634 else 14635 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 14636 14637 else 14638 if test "$ac_cv_type_long" = yes; then 14639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14641 as_fn_error 77 "cannot compute sizeof (long) 14642 See \`config.log' for more details" "$LINENO" 5; } 14643 else 14644 ac_cv_sizeof_long=0 14645 fi 14646 fi 14647 14648 fi 14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 14650 $as_echo "$ac_cv_sizeof_long" >&6; } 14651 14652 14653 14654 cat >>confdefs.h <<_ACEOF 14655 #define SIZEOF_LONG $ac_cv_sizeof_long 14656 _ACEOF 14657 14658 14659 # The cast to long int works around a bug in the HP C Compiler 14660 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14661 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14662 # This bug is HP SR number 8606223364. 14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 14664 $as_echo_n "checking size of int... " >&6; } 14665 if ${ac_cv_sizeof_int+:} false; then : 14666 $as_echo_n "(cached) " >&6 14667 else 14668 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 14669 14670 else 14671 if test "$ac_cv_type_int" = yes; then 14672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14674 as_fn_error 77 "cannot compute sizeof (int) 14675 See \`config.log' for more details" "$LINENO" 5; } 14676 else 14677 ac_cv_sizeof_int=0 14678 fi 14679 fi 14680 14681 fi 14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 14683 $as_echo "$ac_cv_sizeof_int" >&6; } 14684 14685 14686 14687 cat >>confdefs.h <<_ACEOF 14688 #define SIZEOF_INT $ac_cv_sizeof_int 14689 _ACEOF 14690 14691 14692 14693 if test "x${ac_cv_sizeof_void_p}" = "x8"; then 14694 host64=true 14695 fi 14696 14697 # Put a plausible default for CC_FOR_BUILD in Makefile. 14698 if test -z "$CC_FOR_BUILD"; then 14699 if test "x$cross_compiling" = "xno"; then 14700 CC_FOR_BUILD='$(CC)' 14701 else 14702 CC_FOR_BUILD=gcc 14703 fi 14704 fi 14705 14706 # Also set EXEEXT_FOR_BUILD. 14707 if test "x$cross_compiling" = "xno"; then 14708 EXEEXT_FOR_BUILD='$(EXEEXT)' 14709 else 14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5 14711 $as_echo_n "checking for build system executable suffix... " >&6; } 14712 if ${bfd_cv_build_exeext+:} false; then : 14713 $as_echo_n "(cached) " >&6 14714 else 14715 rm -f conftest* 14716 echo 'int main () { return 0; }' > conftest.c 14717 bfd_cv_build_exeext= 14718 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 14719 for file in conftest.*; do 14720 case $file in 14721 *.c | *.o | *.obj | *.ilk | *.pdb) ;; 14722 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 14723 esac 14724 done 14725 rm -f conftest* 14726 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no 14727 fi 14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5 14729 $as_echo "$bfd_cv_build_exeext" >&6; } 14730 EXEEXT_FOR_BUILD="" 14731 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} 14732 fi 14733 14734 14735 for ac_header in fcntl.h sys/file.h sys/resource.h sys/stat.h sys/types.h \ 14736 unistd.h 14737 do : 14738 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14739 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14740 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14741 cat >>confdefs.h <<_ACEOF 14742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14743 _ACEOF 14744 14745 fi 14746 14747 done 14748 14749 14750 for ac_func in fcntl fdopen fileno fls getgid getpagesize getrlimit getuid \ 14751 sysconf 14752 do : 14753 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14754 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14755 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14756 cat >>confdefs.h <<_ACEOF 14757 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14758 _ACEOF 14759 14760 fi 14761 done 14762 14763 14764 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" 14765 if test "x$ac_cv_have_decl_basename" = xyes; then : 14766 ac_have_decl=1 14767 else 14768 ac_have_decl=0 14769 fi 14770 14771 cat >>confdefs.h <<_ACEOF 14772 #define HAVE_DECL_BASENAME $ac_have_decl 14773 _ACEOF 14774 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" 14775 if test "x$ac_cv_have_decl_ffs" = xyes; then : 14776 ac_have_decl=1 14777 else 14778 ac_have_decl=0 14779 fi 14780 14781 cat >>confdefs.h <<_ACEOF 14782 #define HAVE_DECL_FFS $ac_have_decl 14783 _ACEOF 14784 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" 14785 if test "x$ac_cv_have_decl_stpcpy" = xyes; then : 14786 ac_have_decl=1 14787 else 14788 ac_have_decl=0 14789 fi 14790 14791 cat >>confdefs.h <<_ACEOF 14792 #define HAVE_DECL_STPCPY $ac_have_decl 14793 _ACEOF 14794 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" 14795 if test "x$ac_cv_have_decl_asprintf" = xyes; then : 14796 ac_have_decl=1 14797 else 14798 ac_have_decl=0 14799 fi 14800 14801 cat >>confdefs.h <<_ACEOF 14802 #define HAVE_DECL_ASPRINTF $ac_have_decl 14803 _ACEOF 14804 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" 14805 if test "x$ac_cv_have_decl_vasprintf" = xyes; then : 14806 ac_have_decl=1 14807 else 14808 ac_have_decl=0 14809 fi 14810 14811 cat >>confdefs.h <<_ACEOF 14812 #define HAVE_DECL_VASPRINTF $ac_have_decl 14813 _ACEOF 14814 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" 14815 if test "x$ac_cv_have_decl_strnlen" = xyes; then : 14816 ac_have_decl=1 14817 else 14818 ac_have_decl=0 14819 fi 14820 14821 cat >>confdefs.h <<_ACEOF 14822 #define HAVE_DECL_STRNLEN $ac_have_decl 14823 _ACEOF 14824 14825 ac_fn_c_check_decl "$LINENO" "___lc_codepage_func" "ac_cv_have_decl____lc_codepage_func" "#include <locale.h> 14826 " 14827 if test "x$ac_cv_have_decl____lc_codepage_func" = xyes; then : 14828 ac_have_decl=1 14829 else 14830 ac_have_decl=0 14831 fi 14832 14833 cat >>confdefs.h <<_ACEOF 14834 #define HAVE_DECL____LC_CODEPAGE_FUNC $ac_have_decl 14835 _ACEOF 14836 14837 14838 14839 case "${host}" in 14840 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) 14841 14842 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h 14843 ;; 14844 esac 14845 14846 14847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 14848 $as_echo_n "checking for thread local storage (TLS) class... " >&6; } 14849 if ${ac_cv_tls+:} false; then : 14850 $as_echo_n "(cached) " >&6 14851 else 14852 for ax_tls_keyword in thread_local _Thread_local __thread '__declspec(thread)' none; do 14853 case $ax_tls_keyword in #( 14854 none) : 14855 ac_cv_tls=none ; break ;; #( 14856 *) : 14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14858 /* end confdefs.h. */ 14859 #include <stdlib.h> 14860 int 14861 main () 14862 { 14863 static $ax_tls_keyword int bar; 14864 14865 ; 14866 return 0; 14867 } 14868 _ACEOF 14869 if ac_fn_c_try_compile "$LINENO"; then : 14870 ac_cv_tls=$ax_tls_keyword ; break 14871 else 14872 ac_cv_tls=none 14873 14874 fi 14875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14876 ;; 14877 esac 14878 done 14879 14880 fi 14881 14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 14883 $as_echo "$ac_cv_tls" >&6; } 14884 14885 if test "$ac_cv_tls" != "none"; then : 14886 14887 cat >>confdefs.h <<_ACEOF 14888 #define TLS $ac_cv_tls 14889 _ACEOF 14890 14891 : 14892 else 14893 : 14894 fi 14895 14896 14897 # Link in zlib/zstd if we can. This allows us to read compressed debug sections. 14898 # This is used only by compress.c. 14899 14900 # Use the system's zlib library. 14901 zlibdir="-L\$(top_builddir)/../zlib" 14902 zlibinc="-I\$(top_srcdir)/../zlib" 14903 14904 # Check whether --with-system-zlib was given. 14905 if test "${with_system_zlib+set}" = set; then : 14906 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then 14907 zlibdir= 14908 zlibinc= 14909 fi 14910 14911 fi 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 14924 if test -n "$ac_tool_prefix"; then 14925 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 14926 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14928 $as_echo_n "checking for $ac_word... " >&6; } 14929 if ${ac_cv_path_PKG_CONFIG+:} false; then : 14930 $as_echo_n "(cached) " >&6 14931 else 14932 case $PKG_CONFIG in 14933 [\\/]* | ?:[\\/]*) 14934 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14935 ;; 14936 *) 14937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14938 for as_dir in $PATH 14939 do 14940 IFS=$as_save_IFS 14941 test -z "$as_dir" && as_dir=. 14942 for ac_exec_ext in '' $ac_executable_extensions; do 14943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14944 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14946 break 2 14947 fi 14948 done 14949 done 14950 IFS=$as_save_IFS 14951 14952 ;; 14953 esac 14954 fi 14955 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14956 if test -n "$PKG_CONFIG"; then 14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14958 $as_echo "$PKG_CONFIG" >&6; } 14959 else 14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14961 $as_echo "no" >&6; } 14962 fi 14963 14964 14965 fi 14966 if test -z "$ac_cv_path_PKG_CONFIG"; then 14967 ac_pt_PKG_CONFIG=$PKG_CONFIG 14968 # Extract the first word of "pkg-config", so it can be a program name with args. 14969 set dummy pkg-config; ac_word=$2 14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14971 $as_echo_n "checking for $ac_word... " >&6; } 14972 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 14973 $as_echo_n "(cached) " >&6 14974 else 14975 case $ac_pt_PKG_CONFIG in 14976 [\\/]* | ?:[\\/]*) 14977 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 14978 ;; 14979 *) 14980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14981 for as_dir in $PATH 14982 do 14983 IFS=$as_save_IFS 14984 test -z "$as_dir" && as_dir=. 14985 for ac_exec_ext in '' $ac_executable_extensions; do 14986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14987 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14989 break 2 14990 fi 14991 done 14992 done 14993 IFS=$as_save_IFS 14994 14995 ;; 14996 esac 14997 fi 14998 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 14999 if test -n "$ac_pt_PKG_CONFIG"; then 15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15001 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 15002 else 15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15004 $as_echo "no" >&6; } 15005 fi 15006 15007 if test "x$ac_pt_PKG_CONFIG" = x; then 15008 PKG_CONFIG="" 15009 else 15010 case $cross_compiling:$ac_tool_warned in 15011 yes:) 15012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15014 ac_tool_warned=yes ;; 15015 esac 15016 PKG_CONFIG=$ac_pt_PKG_CONFIG 15017 fi 15018 else 15019 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15020 fi 15021 15022 fi 15023 if test -n "$PKG_CONFIG"; then 15024 _pkg_min_version=0.9.0 15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 15026 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 15027 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15029 $as_echo "yes" >&6; } 15030 else 15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15032 $as_echo "no" >&6; } 15033 PKG_CONFIG="" 15034 fi 15035 fi 15036 15037 15038 # Check whether --with-zstd was given. 15039 if test "${with_zstd+set}" = set; then : 15040 withval=$with_zstd; 15041 else 15042 with_zstd=auto 15043 fi 15044 15045 15046 if test "$with_zstd" != no; then : 15047 15048 pkg_failed=no 15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5 15050 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; } 15051 15052 if test -n "$ZSTD_CFLAGS"; then 15053 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS" 15054 elif test -n "$PKG_CONFIG"; then 15055 if test -n "$PKG_CONFIG" && \ 15056 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5 15057 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5 15058 ac_status=$? 15059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15060 test $ac_status = 0; }; then 15061 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null` 15062 test "x$?" != "x0" && pkg_failed=yes 15063 else 15064 pkg_failed=yes 15065 fi 15066 else 15067 pkg_failed=untried 15068 fi 15069 if test -n "$ZSTD_LIBS"; then 15070 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS" 15071 elif test -n "$PKG_CONFIG"; then 15072 if test -n "$PKG_CONFIG" && \ 15073 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5 15074 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5 15075 ac_status=$? 15076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15077 test $ac_status = 0; }; then 15078 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null` 15079 test "x$?" != "x0" && pkg_failed=yes 15080 else 15081 pkg_failed=yes 15082 fi 15083 else 15084 pkg_failed=untried 15085 fi 15086 15087 if test $pkg_failed = no; then 15088 pkg_save_LDFLAGS="$LDFLAGS" 15089 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS" 15090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15091 /* end confdefs.h. */ 15092 15093 int 15094 main () 15095 { 15096 15097 ; 15098 return 0; 15099 } 15100 _ACEOF 15101 if ac_fn_c_try_link "$LINENO"; then : 15102 15103 else 15104 pkg_failed=yes 15105 fi 15106 rm -f core conftest.err conftest.$ac_objext \ 15107 conftest$ac_exeext conftest.$ac_ext 15108 LDFLAGS=$pkg_save_LDFLAGS 15109 fi 15110 15111 15112 15113 if test $pkg_failed = yes; then 15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15115 $as_echo "no" >&6; } 15116 15117 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15118 _pkg_short_errors_supported=yes 15119 else 15120 _pkg_short_errors_supported=no 15121 fi 15122 if test $_pkg_short_errors_supported = yes; then 15123 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1` 15124 else 15125 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1` 15126 fi 15127 # Put the nasty error message in config.log where it belongs 15128 echo "$ZSTD_PKG_ERRORS" >&5 15129 15130 15131 if test "$with_zstd" = yes; then 15132 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5 15133 fi 15134 15135 elif test $pkg_failed = untried; then 15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15137 $as_echo "no" >&6; } 15138 15139 if test "$with_zstd" = yes; then 15140 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5 15141 fi 15142 15143 else 15144 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS 15145 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS 15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15147 $as_echo "yes" >&6; } 15148 15149 15150 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h 15151 15152 15153 fi 15154 15155 fi 15156 15157 15158 save_CFLAGS="$CFLAGS" 15159 CFLAGS="$CFLAGS -Werror" 15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for hidden visibility" >&5 15161 $as_echo_n "checking compiler support for hidden visibility... " >&6; } 15162 if ${bfd_cv_hidden+:} false; then : 15163 $as_echo_n "(cached) " >&6 15164 else 15165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15166 /* end confdefs.h. */ 15167 15168 const char hw[] __attribute__ ((__visibility__ ("hidden"))) = "Hello, World\n"; 15169 extern void print (const char *) __attribute__ ((__visibility__ ("hidden"))); 15170 int 15171 main () 15172 { 15173 print (hw); 15174 ; 15175 return 0; 15176 } 15177 _ACEOF 15178 if ac_fn_c_try_compile "$LINENO"; then : 15179 bfd_cv_hidden=yes 15180 else 15181 bfd_cv_hidden=no 15182 fi 15183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15184 fi 15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_hidden" >&5 15186 $as_echo "$bfd_cv_hidden" >&6; } 15187 CFLAGS="$save_CFLAGS" 15188 if test $bfd_cv_hidden = yes; then 15189 15190 $as_echo "#define HAVE_HIDDEN 1" >>confdefs.h 15191 15192 fi 15193 15194 # Check if linker supports --as-needed and --no-as-needed options 15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 15196 $as_echo_n "checking linker --as-needed support... " >&6; } 15197 if ${bfd_cv_ld_as_needed+:} false; then : 15198 $as_echo_n "(cached) " >&6 15199 else 15200 bfd_cv_ld_as_needed=no 15201 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then 15202 bfd_cv_ld_as_needed=yes 15203 fi 15204 15205 fi 15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5 15207 $as_echo "$bfd_cv_ld_as_needed" >&6; } 15208 15209 LIBM= 15210 case $host in 15211 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 15212 # These system don't have libm, or don't need it 15213 ;; 15214 *-ncr-sysv4.3*) 15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 15216 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } 15217 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : 15218 $as_echo_n "(cached) " >&6 15219 else 15220 ac_check_lib_save_LIBS=$LIBS 15221 LIBS="-lmw $LIBS" 15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15223 /* end confdefs.h. */ 15224 15225 /* Override any GCC internal prototype to avoid an error. 15226 Use char because int might match the return type of a GCC 15227 builtin and then its argument prototype would still apply. */ 15228 #ifdef __cplusplus 15229 extern "C" 15230 #endif 15231 char _mwvalidcheckl (); 15232 int 15233 main () 15234 { 15235 return _mwvalidcheckl (); 15236 ; 15237 return 0; 15238 } 15239 _ACEOF 15240 if ac_fn_c_try_link "$LINENO"; then : 15241 ac_cv_lib_mw__mwvalidcheckl=yes 15242 else 15243 ac_cv_lib_mw__mwvalidcheckl=no 15244 fi 15245 rm -f core conftest.err conftest.$ac_objext \ 15246 conftest$ac_exeext conftest.$ac_ext 15247 LIBS=$ac_check_lib_save_LIBS 15248 fi 15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 15250 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } 15251 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : 15252 LIBM="-lmw" 15253 fi 15254 15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 15256 $as_echo_n "checking for cos in -lm... " >&6; } 15257 if ${ac_cv_lib_m_cos+:} false; then : 15258 $as_echo_n "(cached) " >&6 15259 else 15260 ac_check_lib_save_LIBS=$LIBS 15261 LIBS="-lm $LIBS" 15262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15263 /* end confdefs.h. */ 15264 15265 /* Override any GCC internal prototype to avoid an error. 15266 Use char because int might match the return type of a GCC 15267 builtin and then its argument prototype would still apply. */ 15268 #ifdef __cplusplus 15269 extern "C" 15270 #endif 15271 char cos (); 15272 int 15273 main () 15274 { 15275 return cos (); 15276 ; 15277 return 0; 15278 } 15279 _ACEOF 15280 if ac_fn_c_try_link "$LINENO"; then : 15281 ac_cv_lib_m_cos=yes 15282 else 15283 ac_cv_lib_m_cos=no 15284 fi 15285 rm -f core conftest.err conftest.$ac_objext \ 15286 conftest$ac_exeext conftest.$ac_ext 15287 LIBS=$ac_check_lib_save_LIBS 15288 fi 15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 15290 $as_echo "$ac_cv_lib_m_cos" >&6; } 15291 if test "x$ac_cv_lib_m_cos" = xyes; then : 15292 LIBM="$LIBM -lm" 15293 fi 15294 15295 ;; 15296 *) 15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 15298 $as_echo_n "checking for cos in -lm... " >&6; } 15299 if ${ac_cv_lib_m_cos+:} false; then : 15300 $as_echo_n "(cached) " >&6 15301 else 15302 ac_check_lib_save_LIBS=$LIBS 15303 LIBS="-lm $LIBS" 15304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15305 /* end confdefs.h. */ 15306 15307 /* Override any GCC internal prototype to avoid an error. 15308 Use char because int might match the return type of a GCC 15309 builtin and then its argument prototype would still apply. */ 15310 #ifdef __cplusplus 15311 extern "C" 15312 #endif 15313 char cos (); 15314 int 15315 main () 15316 { 15317 return cos (); 15318 ; 15319 return 0; 15320 } 15321 _ACEOF 15322 if ac_fn_c_try_link "$LINENO"; then : 15323 ac_cv_lib_m_cos=yes 15324 else 15325 ac_cv_lib_m_cos=no 15326 fi 15327 rm -f core conftest.err conftest.$ac_objext \ 15328 conftest$ac_exeext conftest.$ac_ext 15329 LIBS=$ac_check_lib_save_LIBS 15330 fi 15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 15332 $as_echo "$ac_cv_lib_m_cos" >&6; } 15333 if test "x$ac_cv_lib_m_cos" = xyes; then : 15334 LIBM="-lm" 15335 fi 15336 15337 ;; 15338 esac 15339 15340 15341 15342 # When building a shared libbfd, link against the pic version of libiberty 15343 # so that apps that use libbfd won't need libiberty just to satisfy any 15344 # libbfd references. 15345 # We can't do that if a pic libiberty is unavailable since including non-pic 15346 # code would insert text relocations into libbfd. 15347 SHARED_LIBADD= 15348 SHARED_LDFLAGS= 15349 if test "$enable_shared" = "yes"; then 15350 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` 15351 if test -n "$x"; then 15352 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" 15353 fi 15354 fi 15355 15356 SHARED_LIBADD="$SHARED_LIBADD $LTLIBINTL" 15357 15358 if test "$enable_shared" = "yes"; then 15359 case "${host}" in 15360 # More hacks to build DLLs on Windows. 15361 *-*-cygwin*) 15362 SHARED_LDFLAGS="-no-undefined" 15363 SHARED_LIBADD="-L`pwd`/../libiberty -liberty $SHARED_LIBADD -lcygwin -lkernel32" 15364 ;; 15365 esac 15366 15367 if test -n "$SHARED_LIBADD"; then 15368 if test -n "$LIBM"; then 15369 if test x"$bfd_cv_ld_as_needed" = xyes; then 15370 # Link against libm only when needed. Put -lc, -lm inside -Wl 15371 # to stop libtool reordering these options. 15372 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed" 15373 else 15374 SHARED_LIBADD="$SHARED_LIBADD $LIBM" 15375 fi 15376 fi 15377 fi 15378 fi 15379 15380 15381 15382 # target stuff: 15383 15384 # Canonicalize the secondary target names. 15385 if test -n "$enable_targets" ; then 15386 for targ in `echo $enable_targets | sed 's/,/ /g'` 15387 do 15388 result=`$ac_config_sub $targ 2>/dev/null` 15389 if test -n "$result" ; then 15390 canon_targets="$canon_targets $result" 15391 else 15392 # Allow targets that config.sub doesn't recognize, like "all". 15393 canon_targets="$canon_targets $targ" 15394 fi 15395 done 15396 fi 15397 15398 all_targets=false 15399 defvec= 15400 selvecs= 15401 assocvecs= 15402 selarchs= 15403 TDEFINES= 15404 for targ in $target $canon_targets 15405 do 15406 if test $targ = all; then 15407 all_targets=true 15408 assocvecs="$assocvecs $targ_defvec $targ_selvecs" 15409 elif test $targ != plugin; then 15410 . $srcdir/config.bfd 15411 if test $targ = $target; then 15412 defvec=$targ_defvec 15413 fi 15414 selvecs="$selvecs $targ_defvec $targ_selvecs" 15415 selarchs="$selarchs $targ_archs" 15416 TDEFINES="$TDEFINES $targ_cflags" 15417 fi 15418 done 15419 15420 15421 # This processing still needs to be done if we're to decide properly whether 15422 # 64-bit support needs to be compiled in. Currently, it will be included if 15423 # the default or any other explicitly requested target requires it; it 15424 # will not be included on a 32-bit host if no 64-bit target is requested, and 15425 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is 15426 # used. 15427 15428 # uniq the default and selected vectors in all the configured targets. 15429 f="" 15430 for i in $selvecs ; do 15431 case " $f " in 15432 *" $i "*) ;; 15433 *) f="$f $i" ;; 15434 esac 15435 done 15436 selvecs="$f" 15437 15438 15439 # uniq the associated vectors in all the configured targets. 15440 f="" 15441 for i in $assocvecs ; do 15442 case " $f " in 15443 *" $i "*) ;; 15444 *) f="$f $i" ;; 15445 esac 15446 done 15447 assocvecs="$f" 15448 15449 15450 # uniq the architectures in all the configured targets. 15451 f="" 15452 for i in $selarchs ; do 15453 case " $f " in 15454 *" $i "*) ;; 15455 *) f="$f $i" ;; 15456 esac 15457 done 15458 selarchs="$f" 15459 15460 # Target backend .o files. 15461 tb= 15462 15463 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo 15464 elf-sframe.lo dwarf1.lo dwarf2.lo" 15465 coffgen="coffgen.lo dwarf2.lo" 15466 coff="cofflink.lo $coffgen" 15467 ecoff="ecofflink.lo $coffgen" 15468 xcoff="xcofflink.lo $coffgen" 15469 15470 elfxx_x86="elfxx-x86.lo elf-ifunc.lo elf-vxworks.lo" 15471 for vec in $selvecs 15472 do 15473 target_size=32 15474 case "$vec" in 15475 # This list is alphabetized to make it easy to compare 15476 # with the two vector lists in targets.c. For the same reason, 15477 # use one entry per line, even though this leads to long lines. 15478 aarch64_elf32_be_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; 15479 aarch64_elf32_le_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; 15480 aarch64_elf64_be_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; 15481 aarch64_elf64_be_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; 15482 aarch64_elf64_le_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; 15483 aarch64_elf64_le_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; 15484 aarch64_mach_o_vec) tb="$tb mach-o-aarch64.lo"; target_size=64 ;; 15485 aarch64_pei_le_vec) tb="$tb pei-aarch64.lo pe-aarch64igen.lo $coff"; target_size=64 ;; 15486 aarch64_pe_le_vec) tb="$tb pe-aarch64.lo pe-aarch64igen.lo $coff"; target_size=64 ;; 15487 alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;; 15488 alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; 15489 alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; 15490 alpha_vms_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;; 15491 alpha_vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;; 15492 am33_elf32_linux_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;; 15493 amdgcn_elf64_le_vec) tb="$tb elf64-amdgcn.lo elf64.lo $elf"; target_size=64 ;; 15494 aout0_be_vec) tb="$tb aout0.lo aout32.lo" ;; 15495 aout64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;; 15496 aout_vec) tb="$tb host-aout.lo aout32.lo" ;; 15497 arc_elf32_be_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 15498 arc_elf32_le_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 15499 arm_elf32_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 15500 arm_elf32_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 15501 arm_elf32_fdpic_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 15502 arm_elf32_fdpic_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 15503 arm_elf32_nacl_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 15504 arm_elf32_nacl_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 15505 arm_elf32_vxworks_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 15506 arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 15507 arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;; 15508 arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;; 15509 arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;; 15510 arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;; 15511 arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;; 15512 arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;; 15513 arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;; 15514 arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;; 15515 arm_mach_o_vec) tb="$tb mach-o-arm.lo" ;; 15516 avr_elf32_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; 15517 bfin_elf32_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; 15518 bfin_elf32_fdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; 15519 cr16_elf32_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;; 15520 cris_aout_vec) tb="$tb aout-cris.lo" ;; 15521 cris_elf32_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; 15522 cris_elf32_us_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; 15523 crx_elf32_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;; 15524 csky_elf32_be_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;; 15525 csky_elf32_le_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;; 15526 d10v_elf32_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; 15527 d30v_elf32_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; 15528 dlx_elf32_be_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;; 15529 elf32_be_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 15530 elf32_le_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 15531 elf64_be_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 15532 elf64_le_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 15533 bpf_elf64_le_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64;; 15534 bpf_elf64_be_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64 ;; 15535 epiphany_elf32_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;; 15536 fr30_elf32_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; 15537 frv_elf32_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; 15538 frv_elf32_fdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; 15539 h8300_elf32_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; 15540 h8300_elf32_linux_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; 15541 hppa_elf32_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 15542 hppa_elf32_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 15543 hppa_elf32_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 15544 hppa_elf64_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; 15545 hppa_elf64_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; 15546 hppa_som_vec) tb="$tb som.lo" ;; 15547 i386_aout_vec) tb="$tb i386aout.lo aout32.lo" ;; 15548 i386_aout_bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; 15549 i386_aout_lynx_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; 15550 i386_aout_nbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; 15551 i386_coff_vec) tb="$tb coff-i386.lo $coff" ;; 15552 i386_coff_go32_vec) tb="$tb coff-go32.lo $coff" ;; 15553 i386_coff_go32stubbed_vec) tb="$tb coff-stgo32.lo $coff" ;; 15554 i386_coff_lynx_vec) tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;; 15555 i386_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;; 15556 i386_elf32_fbsd_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;; 15557 i386_elf32_sol2_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;; 15558 i386_elf32_vxworks_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;; 15559 i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;; 15560 i386_msdos_vec) tb="$tb i386msdos.lo" ;; 15561 i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;; 15562 i386_pe_big_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;; 15563 i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;; 15564 iamcu_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;; 15565 ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;; 15566 ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;; 15567 ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; 15568 ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; 15569 ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; 15570 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 ;; 15571 ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;; 15572 ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;; 15573 iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;; 15574 kvx_elf32_vec) tb="$tb elf32-kvx.lo elfxx-kvx.lo elf32.lo $elf $ipa" ;; 15575 kvx_elf64_vec) tb="$tb elf64-kvx.lo elfxx-kvx.lo elf64.lo $elf $ipa"; target_size=64 ;; 15576 lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;; 15577 lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;; 15578 loongarch_elf32_vec) tb="$tb elf32-loongarch.lo elfxx-loongarch.lo elf32.lo elf-ifunc.lo $elf" ;; 15579 loongarch_elf64_vec) tb="$tb elf64-loongarch.lo elf64.lo elfxx-loongarch.lo elf32.lo elf-ifunc.lo $elf"; target_size=64 ;; 15580 loongarch64_pei_vec) tb="$tb pei-loongarch64.lo pe-loongarch64igen.lo $coff"; target_size=64 ;; 15581 m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;; 15582 m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 15583 m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 15584 m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 15585 m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 15586 m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;; 15587 m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;; 15588 m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; 15589 s12z_elf32_vec) tb="$tb elf32-s12z.lo elf32.lo $elf" ;; 15590 mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;; 15591 mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;; 15592 mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;; 15593 mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 15594 mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 15595 mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;; 15596 mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;; 15597 mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;; 15598 mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;; 15599 mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; 15600 mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; 15601 metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;; 15602 microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;; 15603 microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;; 15604 mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;; 15605 mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;; 15606 mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;; 15607 mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15608 mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15609 mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15610 mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15611 mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; ;; 15612 mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; ;; 15613 mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15614 mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15615 mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15616 mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15617 mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15618 mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15619 mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15620 mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15621 mips_elf64_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15622 mips_elf64_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15623 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 ;; 15624 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 ;; 15625 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 ;; 15626 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 ;; 15627 mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;; 15628 mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;; 15629 mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; 15630 mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; 15631 moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;; 15632 moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;; 15633 msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; 15634 msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; 15635 mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;; 15636 nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; 15637 nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; 15638 nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; 15639 nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; 15640 nfp_elf64_vec) tb="$tb elf64-nfp.lo elf64.lo $elf" ;; 15641 ns32k_aout_pc532mach_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; 15642 ns32k_aout_pc532nbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; 15643 or1k_elf32_vec) tb="$tb elf32-or1k.lo elf32.lo $elf" ;; 15644 pdb_vec) tb="$tb pdb.lo" ;; 15645 pdp11_aout_vec) tb="$tb pdp11.lo" ;; 15646 pef_vec) tb="$tb pef.lo" ;; 15647 pef_xlib_vec) tb="$tb pef.lo" ;; 15648 pj_elf32_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;; 15649 pj_elf32_le_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;; 15650 powerpc_boot_vec) tb="$tb ppcboot.lo" ;; 15651 powerpc_elf32_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 15652 powerpc_elf32_le_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 15653 powerpc_elf32_fbsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 15654 powerpc_elf32_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 15655 powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 15656 powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; 15657 powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; 15658 powerpc_elf64_fbsd_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; 15659 powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;; 15660 pru_elf32_vec) tb="$tb elf32-pru.lo elf32.lo $elf" ;; 15661 riscv_elf32_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf" ;; 15662 riscv_elf64_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; 15663 riscv_elf32_be_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf" ;; 15664 riscv_elf64_be_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; 15665 riscv64_pei_vec) tb="$tb pei-riscv64.lo pe-riscv64igen.lo $coff"; target_size=64 ;; 15666 rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;; 15667 rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;; 15668 rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;; 15669 rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;; 15670 rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; 15671 rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; 15672 rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; 15673 rx_elf32_linux_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; 15674 s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; 15675 s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; 15676 score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;; 15677 score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;; 15678 sh_coff_vec) tb="$tb coff-sh.lo $coff" ;; 15679 sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;; 15680 sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;; 15681 sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;; 15682 sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15683 sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15684 sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15685 sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15686 sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15687 sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15688 sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15689 sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15690 sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15691 sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15692 sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;; 15693 sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;; 15694 sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; 15695 sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; 15696 sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; 15697 sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; 15698 sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; 15699 sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; 15700 spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;; 15701 sym_vec) tb="$tb xsym.lo" ;; 15702 tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;; 15703 tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 15704 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 15705 tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 15706 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 15707 tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 15708 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 15709 tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 15710 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 15711 tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 15712 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 15713 tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 15714 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 15715 tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 15716 tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 15717 tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 15718 tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 15719 tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 15720 tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 15721 tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;; 15722 tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;; 15723 tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;; 15724 tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;; 15725 tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;; 15726 v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; 15727 v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; 15728 vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;; 15729 vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;; 15730 vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;; 15731 ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;; 15732 visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;; 15733 wasm_vec) tb="$tb wasm-module.lo" ;; 15734 wasm32_elf32_vec) tb="$tb elf32-wasm32.lo elf32.lo $elf" ;; 15735 x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;; 15736 x86_64_elf32_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo elf32.lo $elf"; target_size=64 ;; 15737 x86_64_elf64_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;; 15738 x86_64_elf64_cloudabi_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;; 15739 x86_64_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;; 15740 x86_64_elf64_sol2_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;; 15741 x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;; 15742 x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;; 15743 x86_64_pe_big_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;; 15744 x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;; 15745 xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;; 15746 xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;; 15747 xtensa_elf32_be_vec) tb="$tb xtensa-dynconfig.lo xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; 15748 xtensa_elf32_le_vec) tb="$tb xtensa-dynconfig.lo xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; 15749 z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;; 15750 z80_elf32_vec) tb="$tb elf32-z80.lo elf32.lo $elf" ;; 15751 z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;; 15752 15753 # These appear out of order in targets.c 15754 srec_vec) tb="$tb srec.lo" ;; 15755 symbolsrec_vec) tb="$tb srec.lo" ;; 15756 tekhex_vec) tb="$tb tekhex.lo" ;; 15757 core_cisco_be_vec) tb="$tb cisco-core.lo" ;; 15758 core_cisco_le_vec) tb="$tb cisco-core.lo" ;; 15759 15760 "") ;; 15761 *) as_fn_error $? "*** unknown target vector $vec" "$LINENO" 5 ;; 15762 esac 15763 15764 if test ${target_size} = 64; then 15765 target64=true 15766 fi 15767 if test x"${vec}" = x"${defvec}"; then 15768 bfd_default_target_size=${target_size} 15769 fi 15770 done 15771 15772 if test "$plugins" = "yes"; then 15773 tb="$tb plugin.lo" 15774 fi 15775 15776 # Target architecture .o files. 15777 # A couple of CPUs use shorter file names to avoid problems on DOS 15778 # filesystems. 15779 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` 15780 15781 # Weed out duplicate .o files. 15782 f="" 15783 for i in $tb ; do 15784 case " $f " in 15785 *" $i "*) ;; 15786 *) f="$f $i" ;; 15787 esac 15788 done 15789 tb="$f" 15790 15791 f="" 15792 for i in $ta ; do 15793 case " $f " in 15794 *" $i "*) ;; 15795 *) f="$f $i" ;; 15796 esac 15797 done 15798 ta="$f" 15799 15800 bfd_backends="$tb" 15801 bfd_machines="$ta" 15802 15803 if test x${all_targets} = xtrue ; then 15804 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' 15805 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' 15806 selvecs= 15807 havevecs=-DHAVE_all_vecs 15808 selarchs= 15809 test -n "$assocvecs" && 15810 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 15811 else # all_targets is true 15812 # Only set these if they will be nonempty, for the clever echo. 15813 havevecs= 15814 assocvecs= 15815 test -n "$selvecs" && 15816 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` 15817 test -n "$selvecs" && 15818 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 15819 test -n "$selarchs" && 15820 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 15821 fi # all_targets is true 15822 15823 # 64-bit archives need a 64-bit bfd_vma. 15824 if test "x$want_64_bit_archive" = xtrue; then 15825 want64=true 15826 15827 $as_echo "#define USE_64_BIT_ARCHIVE 1" >>confdefs.h 15828 15829 fi 15830 15831 case ${host64}-${target64}-${want64} in 15832 *true*) 15833 wordsize=64 15834 bfd64_libs='$(BFD64_LIBS)' 15835 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' 15836 if test -n "$GCC" ; then 15837 bad_64bit_gcc=no; 15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5 15839 $as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; } 15840 # Add more tests for gcc versions with non-working 64-bit support here. 15841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15842 /* end confdefs.h. */ 15843 :__GNUC__:__GNUC_MINOR__:__i386__: 15844 _ACEOF 15845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15846 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then : 15847 bad_64bit_gcc=yes; 15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5 15849 $as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; } 15850 else 15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15852 $as_echo "no" >&6; } 15853 fi 15854 rm -f conftest* 15855 15856 if test $bad_64bit_gcc = yes ; then 15857 as_fn_error $? "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5 15858 fi 15859 fi 15860 ;; 15861 false-false-false) 15862 wordsize=32 15863 all_backends='$(BFD32_BACKENDS)' 15864 ;; 15865 esac 15866 15867 tdefaults="" 15868 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" 15869 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" 15870 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'" 15871 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 # If we are configured native, pick a core file support file. 15883 COREFILE= 15884 COREFLAG= 15885 CORE_HEADER= 15886 TRAD_HEADER= 15887 if test "${target}" = "${host}"; then 15888 case "${host}" in 15889 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*) 15890 COREFILE='' 15891 ;; 15892 alpha*-*-linux-*) 15893 COREFILE=trad-core.lo 15894 TRAD_HEADER='"hosts/alphalinux.h"' 15895 ;; 15896 alpha*-*-netbsd* | alpha*-*-openbsd*) 15897 COREFILE=netbsd-core.lo 15898 ;; 15899 alpha*-*-*) 15900 COREFILE=osf-core.lo 15901 ;; 15902 arm-*-freebsd* | arm-*-kfreebsd*-gnu) 15903 COREFILE='' ;; 15904 arm*-*-netbsd* | arm-*-openbsd*) 15905 COREFILE=netbsd-core.lo 15906 ;; 15907 hppa*-*-hpux*) COREFILE=hpux-core.lo ;; 15908 hppa*-*-hiux*) COREFILE=hpux-core.lo ;; 15909 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; 15910 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" 15911 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; 15912 hppa*-*-netbsd* | hppa*-*-openbsd*) 15913 COREFILE=netbsd-core.lo 15914 ;; 15915 15916 i[3-7]86-*-bsdi) 15917 COREFILE= 15918 ;; 15919 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]\.*) 15920 COREFILE=trad-core.lo 15921 TRAD_HEADER='"hosts/i386bsd.h"' 15922 ;; 15923 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*) 15924 COREFILE='' 15925 TRAD_HEADER='"hosts/i386bsd.h"' 15926 ;; 15927 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*) 15928 COREFILE=netbsd-core.lo 15929 ;; 15930 i[3-7]86-esix-sysv3*) 15931 COREFILE=trad-core.lo 15932 TRAD_HEADER='"hosts/esix.h"' 15933 ;; 15934 i[3-7]86-*-mach3*) 15935 COREFILE=trad-core.lo 15936 TRAD_HEADER='"hosts/i386mach3.h"' 15937 ;; 15938 i[3-7]86-*-linux-*) 15939 COREFILE=trad-core.lo 15940 TRAD_HEADER='"hosts/i386linux.h"' 15941 case "$enable_targets"-"$want64" in 15942 *x86_64-*linux*|*-true) 15943 CORE_HEADER='"hosts/x86-64linux.h"' 15944 esac 15945 ;; 15946 mips*-*-netbsd* | mips*-*-openbsd*) 15947 COREFILE=netbsd-core.lo 15948 ;; 15949 mips-*-irix*) 15950 COREFILE=irix-core.lo 15951 ;; 15952 m68*-*-linux-*) 15953 COREFILE=trad-core.lo 15954 TRAD_HEADER='"hosts/m68klinux.h"' 15955 ;; 15956 m68*-*-netbsd*) 15957 COREFILE=netbsd-core.lo 15958 ;; 15959 ns32k-pc532-mach) 15960 COREFILE=trad-core.lo 15961 TRAD_HEADER='"hosts/pc532mach.h"' 15962 ;; 15963 ns32k-*-netbsd* | ns32k-*-openbsd*) 15964 COREFILE=netbsd-core.lo 15965 ;; 15966 rs6000-*-lynx*) 15967 COREFILE=lynx-core.lo 15968 ;; 15969 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*) 15970 COREFILE=rs6000-core.lo 15971 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE" 15972 ;; 15973 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) 15974 COREFILE=rs6000-core.lo 15975 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" 15976 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE 15977 # have c_impl as a member of struct core_dumpx 15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5 15979 $as_echo_n "checking for c_impl in struct core_dumpx... " >&6; } 15980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15981 /* end confdefs.h. */ 15982 #include <core.h> 15983 int 15984 main () 15985 { 15986 struct core_dumpx c; c.c_impl = 0; 15987 ; 15988 return 0; 15989 } 15990 _ACEOF 15991 if ac_fn_c_try_compile "$LINENO"; then : 15992 15993 $as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h 15994 15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15996 $as_echo "yes" >&6; } 15997 else 15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15999 $as_echo "no" >&6; } 16000 fi 16001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16002 ;; 16003 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; 16004 rs6000-*-*) COREFILE=rs6000-core.lo ;; 16005 powerpc64-*-aix*) COREFILE=rs6000-core.lo ;; 16006 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; 16007 powerpc-*-aix*) COREFILE=rs6000-core.lo ;; 16008 powerpc-*-beos*) ;; 16009 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu) 16010 COREFILE='' ;; 16011 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; 16012 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; 16013 s390*-*-*) COREFILE=trad-core.lo ;; 16014 sh*-*-netbsd* | sh*-*-openbsd*) 16015 COREFILE=netbsd-core.lo 16016 ;; 16017 sparc-*-netbsd* | sparc*-*-openbsd*) 16018 COREFILE=netbsd-core.lo 16019 ;; 16020 vax-*-netbsd* | vax-*-openbsd*) 16021 COREFILE=netbsd-core.lo 16022 ;; 16023 vax-*-linux-*) 16024 COREFILE=trad-core.lo 16025 TRAD_HEADER='"hosts/vaxlinux.h"' 16026 ;; 16027 vax-*-*) 16028 COREFILE=trad-core.lo 16029 TRAD_HEADER='"hosts/vaxbsd.h"' 16030 ;; 16031 x86_64-*-linux*) 16032 CORE_HEADER='"hosts/x86-64linux.h"' 16033 ;; 16034 x86_64-*-netbsd* | x86_64-*-openbsd*) 16035 COREFILE=netbsd-core.lo 16036 ;; 16037 esac 16038 16039 case "$COREFILE" in 16040 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; 16041 hpux-core.lo) COREFLAG=-DHPUX_CORE ;; 16042 irix-core.lo) COREFLAG=-DIRIX_CORE ;; 16043 lynx-core.lo) COREFLAG=-DLYNX_CORE ;; 16044 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; 16045 osf-core.lo) COREFLAG=-DOSF_CORE ;; 16046 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; 16047 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; 16048 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; 16049 esac 16050 16051 # ELF corefile support has several flavors, but all of 16052 # them use something called <sys/procfs.h> 16053 16054 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h 16055 16056 for ac_header in sys/procfs.h 16057 do : 16058 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default" 16059 if test "x$ac_cv_header_sys_procfs_h" = xyes; then : 16060 cat >>confdefs.h <<_ACEOF 16061 #define HAVE_SYS_PROCFS_H 1 16062 _ACEOF 16063 16064 fi 16065 16066 done 16067 16068 if test "$ac_cv_header_sys_procfs_h" = yes; then 16069 16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5 16071 $as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; } 16072 if ${bfd_cv_have_sys_procfs_type_prstatus_t+:} false; then : 16073 $as_echo_n "(cached) " >&6 16074 else 16075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16076 /* end confdefs.h. */ 16077 16078 #define _SYSCALL32 16079 #include <sys/procfs.h> 16080 int 16081 main () 16082 { 16083 prstatus_t avar 16084 ; 16085 return 0; 16086 } 16087 _ACEOF 16088 if ac_fn_c_try_compile "$LINENO"; then : 16089 bfd_cv_have_sys_procfs_type_prstatus_t=yes 16090 else 16091 bfd_cv_have_sys_procfs_type_prstatus_t=no 16092 16093 fi 16094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16095 fi 16096 16097 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then 16098 16099 $as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h 16100 16101 fi 16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5 16103 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; } 16104 16105 16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5 16107 $as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; } 16108 if ${bfd_cv_have_sys_procfs_type_prstatus32_t+:} false; then : 16109 $as_echo_n "(cached) " >&6 16110 else 16111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16112 /* end confdefs.h. */ 16113 16114 #define _SYSCALL32 16115 #include <sys/procfs.h> 16116 int 16117 main () 16118 { 16119 prstatus32_t avar 16120 ; 16121 return 0; 16122 } 16123 _ACEOF 16124 if ac_fn_c_try_compile "$LINENO"; then : 16125 bfd_cv_have_sys_procfs_type_prstatus32_t=yes 16126 else 16127 bfd_cv_have_sys_procfs_type_prstatus32_t=no 16128 16129 fi 16130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16131 fi 16132 16133 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then 16134 16135 $as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h 16136 16137 fi 16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5 16139 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; } 16140 16141 16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5 16143 $as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; } 16144 if ${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+:} false; then : 16145 $as_echo_n "(cached) " >&6 16146 else 16147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16148 /* end confdefs.h. */ 16149 16150 #define _SYSCALL32 16151 #include <sys/procfs.h> 16152 int 16153 main () 16154 { 16155 prstatus_t avar; void* aref = (void*) &avar.pr_who 16156 ; 16157 return 0; 16158 } 16159 _ACEOF 16160 if ac_fn_c_try_compile "$LINENO"; then : 16161 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes 16162 else 16163 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no 16164 16165 fi 16166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16167 fi 16168 16169 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then 16170 16171 $as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h 16172 16173 fi 16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5 16175 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; } 16176 16177 16178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 16179 $as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; } 16180 if ${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+:} false; then : 16181 $as_echo_n "(cached) " >&6 16182 else 16183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16184 /* end confdefs.h. */ 16185 16186 #define _SYSCALL32 16187 #include <sys/procfs.h> 16188 int 16189 main () 16190 { 16191 prstatus32_t avar; void* aref = (void*) &avar.pr_who 16192 ; 16193 return 0; 16194 } 16195 _ACEOF 16196 if ac_fn_c_try_compile "$LINENO"; then : 16197 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes 16198 else 16199 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no 16200 16201 fi 16202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16203 fi 16204 16205 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then 16206 16207 $as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h 16208 16209 fi 16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5 16211 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; } 16212 16213 16214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5 16215 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; } 16216 if ${bfd_cv_have_sys_procfs_type_pstatus_t+:} false; then : 16217 $as_echo_n "(cached) " >&6 16218 else 16219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16220 /* end confdefs.h. */ 16221 16222 #define _SYSCALL32 16223 #include <sys/procfs.h> 16224 int 16225 main () 16226 { 16227 pstatus_t avar 16228 ; 16229 return 0; 16230 } 16231 _ACEOF 16232 if ac_fn_c_try_compile "$LINENO"; then : 16233 bfd_cv_have_sys_procfs_type_pstatus_t=yes 16234 else 16235 bfd_cv_have_sys_procfs_type_pstatus_t=no 16236 16237 fi 16238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16239 fi 16240 16241 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then 16242 16243 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h 16244 16245 fi 16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 16247 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; } 16248 16249 16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5 16251 $as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; } 16252 if ${bfd_cv_have_sys_procfs_type_pxstatus_t+:} false; then : 16253 $as_echo_n "(cached) " >&6 16254 else 16255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16256 /* end confdefs.h. */ 16257 16258 #define _SYSCALL32 16259 #include <sys/procfs.h> 16260 int 16261 main () 16262 { 16263 pxstatus_t avar 16264 ; 16265 return 0; 16266 } 16267 _ACEOF 16268 if ac_fn_c_try_compile "$LINENO"; then : 16269 bfd_cv_have_sys_procfs_type_pxstatus_t=yes 16270 else 16271 bfd_cv_have_sys_procfs_type_pxstatus_t=no 16272 16273 fi 16274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16275 fi 16276 16277 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then 16278 16279 $as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h 16280 16281 fi 16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5 16283 $as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; } 16284 16285 16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5 16287 $as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; } 16288 if ${bfd_cv_have_sys_procfs_type_pstatus32_t+:} false; then : 16289 $as_echo_n "(cached) " >&6 16290 else 16291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16292 /* end confdefs.h. */ 16293 16294 #define _SYSCALL32 16295 #include <sys/procfs.h> 16296 int 16297 main () 16298 { 16299 pstatus32_t avar 16300 ; 16301 return 0; 16302 } 16303 _ACEOF 16304 if ac_fn_c_try_compile "$LINENO"; then : 16305 bfd_cv_have_sys_procfs_type_pstatus32_t=yes 16306 else 16307 bfd_cv_have_sys_procfs_type_pstatus32_t=no 16308 16309 fi 16310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16311 fi 16312 16313 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then 16314 16315 $as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h 16316 16317 fi 16318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5 16319 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; } 16320 16321 16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5 16323 $as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; } 16324 if ${bfd_cv_have_sys_procfs_type_prpsinfo_t+:} false; then : 16325 $as_echo_n "(cached) " >&6 16326 else 16327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16328 /* end confdefs.h. */ 16329 16330 #define _SYSCALL32 16331 #include <sys/procfs.h> 16332 int 16333 main () 16334 { 16335 prpsinfo_t avar 16336 ; 16337 return 0; 16338 } 16339 _ACEOF 16340 if ac_fn_c_try_compile "$LINENO"; then : 16341 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes 16342 else 16343 bfd_cv_have_sys_procfs_type_prpsinfo_t=no 16344 16345 fi 16346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16347 fi 16348 16349 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then 16350 16351 $as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h 16352 16353 fi 16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5 16355 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; } 16356 16357 16358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t.pr_pid in sys/procfs.h" >&5 16359 $as_echo_n "checking for prpsinfo_t.pr_pid in sys/procfs.h... " >&6; } 16360 if ${bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid+:} false; then : 16361 $as_echo_n "(cached) " >&6 16362 else 16363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16364 /* end confdefs.h. */ 16365 16366 #define _SYSCALL32 16367 #include <sys/procfs.h> 16368 int 16369 main () 16370 { 16371 prpsinfo_t avar; void* aref = (void*) &avar.pr_pid 16372 ; 16373 return 0; 16374 } 16375 _ACEOF 16376 if ac_fn_c_try_compile "$LINENO"; then : 16377 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=yes 16378 else 16379 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=no 16380 16381 fi 16382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16383 fi 16384 16385 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid = yes; then 16386 16387 $as_echo "#define HAVE_PRPSINFO_T_PR_PID 1" >>confdefs.h 16388 16389 fi 16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&5 16391 $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&6; } 16392 16393 16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5 16395 $as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; } 16396 if ${bfd_cv_have_sys_procfs_type_prpsinfo32_t+:} false; then : 16397 $as_echo_n "(cached) " >&6 16398 else 16399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16400 /* end confdefs.h. */ 16401 16402 #define _SYSCALL32 16403 #include <sys/procfs.h> 16404 int 16405 main () 16406 { 16407 prpsinfo32_t avar 16408 ; 16409 return 0; 16410 } 16411 _ACEOF 16412 if ac_fn_c_try_compile "$LINENO"; then : 16413 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes 16414 else 16415 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no 16416 16417 fi 16418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16419 fi 16420 16421 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then 16422 16423 $as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h 16424 16425 fi 16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5 16427 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; } 16428 16429 16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t.pr_pid in sys/procfs.h" >&5 16431 $as_echo_n "checking for prpsinfo32_t.pr_pid in sys/procfs.h... " >&6; } 16432 if ${bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid+:} false; then : 16433 $as_echo_n "(cached) " >&6 16434 else 16435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16436 /* end confdefs.h. */ 16437 16438 #define _SYSCALL32 16439 #include <sys/procfs.h> 16440 int 16441 main () 16442 { 16443 prpsinfo32_t avar; void* aref = (void*) &avar.pr_pid 16444 ; 16445 return 0; 16446 } 16447 _ACEOF 16448 if ac_fn_c_try_compile "$LINENO"; then : 16449 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=yes 16450 else 16451 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=no 16452 16453 fi 16454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16455 fi 16456 16457 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid = yes; then 16458 16459 $as_echo "#define HAVE_PRPSINFO32_T_PR_PID 1" >>confdefs.h 16460 16461 fi 16462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&5 16463 $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&6; } 16464 16465 16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5 16467 $as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; } 16468 if ${bfd_cv_have_sys_procfs_type_psinfo_t+:} false; then : 16469 $as_echo_n "(cached) " >&6 16470 else 16471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16472 /* end confdefs.h. */ 16473 16474 #define _SYSCALL32 16475 #include <sys/procfs.h> 16476 int 16477 main () 16478 { 16479 psinfo_t avar 16480 ; 16481 return 0; 16482 } 16483 _ACEOF 16484 if ac_fn_c_try_compile "$LINENO"; then : 16485 bfd_cv_have_sys_procfs_type_psinfo_t=yes 16486 else 16487 bfd_cv_have_sys_procfs_type_psinfo_t=no 16488 16489 fi 16490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16491 fi 16492 16493 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then 16494 16495 $as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h 16496 16497 fi 16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5 16499 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; } 16500 16501 16502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t.pr_pid in sys/procfs.h" >&5 16503 $as_echo_n "checking for psinfo_t.pr_pid in sys/procfs.h... " >&6; } 16504 if ${bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid+:} false; then : 16505 $as_echo_n "(cached) " >&6 16506 else 16507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16508 /* end confdefs.h. */ 16509 16510 #define _SYSCALL32 16511 #include <sys/procfs.h> 16512 int 16513 main () 16514 { 16515 psinfo_t avar; void* aref = (void*) &avar.pr_pid 16516 ; 16517 return 0; 16518 } 16519 _ACEOF 16520 if ac_fn_c_try_compile "$LINENO"; then : 16521 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=yes 16522 else 16523 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=no 16524 16525 fi 16526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16527 fi 16528 16529 if test $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid = yes; then 16530 16531 $as_echo "#define HAVE_PSINFO_T_PR_PID 1" >>confdefs.h 16532 16533 fi 16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&5 16535 $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&6; } 16536 16537 16538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5 16539 $as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; } 16540 if ${bfd_cv_have_sys_procfs_type_psinfo32_t+:} false; then : 16541 $as_echo_n "(cached) " >&6 16542 else 16543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16544 /* end confdefs.h. */ 16545 16546 #define _SYSCALL32 16547 #include <sys/procfs.h> 16548 int 16549 main () 16550 { 16551 psinfo32_t avar 16552 ; 16553 return 0; 16554 } 16555 _ACEOF 16556 if ac_fn_c_try_compile "$LINENO"; then : 16557 bfd_cv_have_sys_procfs_type_psinfo32_t=yes 16558 else 16559 bfd_cv_have_sys_procfs_type_psinfo32_t=no 16560 16561 fi 16562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16563 fi 16564 16565 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then 16566 16567 $as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h 16568 16569 fi 16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5 16571 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; } 16572 16573 16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t.pr_pid in sys/procfs.h" >&5 16575 $as_echo_n "checking for psinfo32_t.pr_pid in sys/procfs.h... " >&6; } 16576 if ${bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid+:} false; then : 16577 $as_echo_n "(cached) " >&6 16578 else 16579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16580 /* end confdefs.h. */ 16581 16582 #define _SYSCALL32 16583 #include <sys/procfs.h> 16584 int 16585 main () 16586 { 16587 psinfo32_t avar; void* aref = (void*) &avar.pr_pid 16588 ; 16589 return 0; 16590 } 16591 _ACEOF 16592 if ac_fn_c_try_compile "$LINENO"; then : 16593 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=yes 16594 else 16595 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=no 16596 16597 fi 16598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16599 fi 16600 16601 if test $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid = yes; then 16602 16603 $as_echo "#define HAVE_PSINFO32_T_PR_PID 1" >>confdefs.h 16604 16605 fi 16606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&5 16607 $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&6; } 16608 16609 16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5 16611 $as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; } 16612 if ${bfd_cv_have_sys_procfs_type_lwpstatus_t+:} false; then : 16613 $as_echo_n "(cached) " >&6 16614 else 16615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16616 /* end confdefs.h. */ 16617 16618 #define _SYSCALL32 16619 #include <sys/procfs.h> 16620 int 16621 main () 16622 { 16623 lwpstatus_t avar 16624 ; 16625 return 0; 16626 } 16627 _ACEOF 16628 if ac_fn_c_try_compile "$LINENO"; then : 16629 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes 16630 else 16631 bfd_cv_have_sys_procfs_type_lwpstatus_t=no 16632 16633 fi 16634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16635 fi 16636 16637 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then 16638 16639 $as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h 16640 16641 fi 16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5 16643 $as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; } 16644 16645 16646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5 16647 $as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; } 16648 if ${bfd_cv_have_sys_procfs_type_lwpxstatus_t+:} false; then : 16649 $as_echo_n "(cached) " >&6 16650 else 16651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16652 /* end confdefs.h. */ 16653 16654 #define _SYSCALL32 16655 #include <sys/procfs.h> 16656 int 16657 main () 16658 { 16659 lwpxstatus_t avar 16660 ; 16661 return 0; 16662 } 16663 _ACEOF 16664 if ac_fn_c_try_compile "$LINENO"; then : 16665 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes 16666 else 16667 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no 16668 16669 fi 16670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16671 fi 16672 16673 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then 16674 16675 $as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h 16676 16677 fi 16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5 16679 $as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; } 16680 16681 16682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 16683 $as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; } 16684 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+:} false; then : 16685 $as_echo_n "(cached) " >&6 16686 else 16687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16688 /* end confdefs.h. */ 16689 16690 #define _SYSCALL32 16691 #include <sys/procfs.h> 16692 int 16693 main () 16694 { 16695 lwpstatus_t avar; void* aref = (void*) &avar.pr_context 16696 ; 16697 return 0; 16698 } 16699 _ACEOF 16700 if ac_fn_c_try_compile "$LINENO"; then : 16701 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes 16702 else 16703 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no 16704 16705 fi 16706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16707 fi 16708 16709 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then 16710 16711 $as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h 16712 16713 fi 16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5 16715 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; } 16716 16717 16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 16719 $as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; } 16720 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+:} false; then : 16721 $as_echo_n "(cached) " >&6 16722 else 16723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16724 /* end confdefs.h. */ 16725 16726 #define _SYSCALL32 16727 #include <sys/procfs.h> 16728 int 16729 main () 16730 { 16731 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg 16732 ; 16733 return 0; 16734 } 16735 _ACEOF 16736 if ac_fn_c_try_compile "$LINENO"; then : 16737 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes 16738 else 16739 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no 16740 16741 fi 16742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16743 fi 16744 16745 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then 16746 16747 $as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h 16748 16749 fi 16750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5 16751 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; } 16752 16753 16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5 16755 $as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; } 16756 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+:} false; then : 16757 $as_echo_n "(cached) " >&6 16758 else 16759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16760 /* end confdefs.h. */ 16761 16762 #define _SYSCALL32 16763 #include <sys/procfs.h> 16764 int 16765 main () 16766 { 16767 lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg 16768 ; 16769 return 0; 16770 } 16771 _ACEOF 16772 if ac_fn_c_try_compile "$LINENO"; then : 16773 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes 16774 else 16775 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no 16776 16777 fi 16778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16779 fi 16780 16781 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then 16782 16783 $as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h 16784 16785 fi 16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5 16787 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; } 16788 16789 16790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5 16791 $as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; } 16792 if ${bfd_cv_have_sys_procfs_type_win32_pstatus_t+:} false; then : 16793 $as_echo_n "(cached) " >&6 16794 else 16795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16796 /* end confdefs.h. */ 16797 16798 #define _SYSCALL32 16799 #include <sys/procfs.h> 16800 int 16801 main () 16802 { 16803 win32_pstatus_t avar 16804 ; 16805 return 0; 16806 } 16807 _ACEOF 16808 if ac_fn_c_try_compile "$LINENO"; then : 16809 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes 16810 else 16811 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no 16812 16813 fi 16814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16815 fi 16816 16817 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then 16818 16819 $as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h 16820 16821 fi 16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5 16823 $as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; } 16824 16825 fi 16826 fi 16827 16828 16829 if test -n "$CORE_HEADER"; then 16830 16831 cat >>confdefs.h <<_ACEOF 16832 #define CORE_HEADER $CORE_HEADER 16833 _ACEOF 16834 16835 fi 16836 if test -n "$TRAD_HEADER"; then 16837 16838 cat >>confdefs.h <<_ACEOF 16839 #define TRAD_HEADER $TRAD_HEADER 16840 _ACEOF 16841 16842 fi 16843 16844 if test "$plugins" = "yes"; then 16845 supports_plugins=1 16846 else 16847 supports_plugins=0 16848 fi 16849 16850 16851 16852 # Determine the host dependent file_ptr a.k.a. off_t type. In order 16853 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and 16854 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long. 16855 # Hopefully a reasonable assumption since fseeko et.al. should be 16856 # upward compatible. 16857 for ac_func in ftello ftello64 fseeko fseeko64 fopen64 16858 do : 16859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16860 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16861 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16862 cat >>confdefs.h <<_ACEOF 16863 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16864 _ACEOF 16865 16866 fi 16867 done 16868 16869 ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default" 16870 if test "x$ac_cv_have_decl_ftello" = xyes; then : 16871 ac_have_decl=1 16872 else 16873 ac_have_decl=0 16874 fi 16875 16876 cat >>confdefs.h <<_ACEOF 16877 #define HAVE_DECL_FTELLO $ac_have_decl 16878 _ACEOF 16879 ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default" 16880 if test "x$ac_cv_have_decl_ftello64" = xyes; then : 16881 ac_have_decl=1 16882 else 16883 ac_have_decl=0 16884 fi 16885 16886 cat >>confdefs.h <<_ACEOF 16887 #define HAVE_DECL_FTELLO64 $ac_have_decl 16888 _ACEOF 16889 ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default" 16890 if test "x$ac_cv_have_decl_fseeko" = xyes; then : 16891 ac_have_decl=1 16892 else 16893 ac_have_decl=0 16894 fi 16895 16896 cat >>confdefs.h <<_ACEOF 16897 #define HAVE_DECL_FSEEKO $ac_have_decl 16898 _ACEOF 16899 ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default" 16900 if test "x$ac_cv_have_decl_fseeko64" = xyes; then : 16901 ac_have_decl=1 16902 else 16903 ac_have_decl=0 16904 fi 16905 16906 cat >>confdefs.h <<_ACEOF 16907 #define HAVE_DECL_FSEEKO64 $ac_have_decl 16908 _ACEOF 16909 ac_fn_c_check_decl "$LINENO" "fopen64" "ac_cv_have_decl_fopen64" "$ac_includes_default" 16910 if test "x$ac_cv_have_decl_fopen64" = xyes; then : 16911 ac_have_decl=1 16912 else 16913 ac_have_decl=0 16914 fi 16915 16916 cat >>confdefs.h <<_ACEOF 16917 #define HAVE_DECL_FOPEN64 $ac_have_decl 16918 _ACEOF 16919 16920 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then 16921 # The cast to long int works around a bug in the HP C Compiler 16922 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16923 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16924 # This bug is HP SR number 8606223364. 16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 16926 $as_echo_n "checking size of off_t... " >&6; } 16927 if ${ac_cv_sizeof_off_t+:} false; then : 16928 $as_echo_n "(cached) " >&6 16929 else 16930 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 16931 16932 else 16933 if test "$ac_cv_type_off_t" = yes; then 16934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16936 as_fn_error 77 "cannot compute sizeof (off_t) 16937 See \`config.log' for more details" "$LINENO" 5; } 16938 else 16939 ac_cv_sizeof_off_t=0 16940 fi 16941 fi 16942 16943 fi 16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 16945 $as_echo "$ac_cv_sizeof_off_t" >&6; } 16946 16947 16948 16949 cat >>confdefs.h <<_ACEOF 16950 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t 16951 _ACEOF 16952 16953 16954 fi 16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5 16956 $as_echo_n "checking file_ptr type... " >&6; } 16957 bfd_file_ptr="long" 16958 bfd_ufile_ptr="unsigned long" 16959 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \ 16960 -o x"${ac_cv_sizeof_off_t}" = x8; then 16961 bfd_file_ptr=int64_t 16962 bfd_ufile_ptr=uint64_t 16963 fi 16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5 16965 $as_echo "$bfd_file_ptr" >&6; } 16966 16967 16968 16969 16970 16971 16972 for ac_header in $ac_header_list 16973 do : 16974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16975 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 16976 " 16977 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16978 cat >>confdefs.h <<_ACEOF 16979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16980 _ACEOF 16981 16982 fi 16983 16984 done 16985 16986 16987 16988 16989 16990 16991 16992 save_ASAN_OPTIONS="$ASAN_OPTIONS" 16993 ASAN_OPTIONS=detect_leaks=0 16994 export ASAN_OPTIONS 16995 16996 for ac_func in getpagesize 16997 do : 16998 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 16999 if test "x$ac_cv_func_getpagesize" = xyes; then : 17000 cat >>confdefs.h <<_ACEOF 17001 #define HAVE_GETPAGESIZE 1 17002 _ACEOF 17003 17004 fi 17005 done 17006 17007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 17008 $as_echo_n "checking for working mmap... " >&6; } 17009 if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 17010 $as_echo_n "(cached) " >&6 17011 else 17012 if test "$cross_compiling" = yes; then : 17013 ac_cv_func_mmap_fixed_mapped=no 17014 else 17015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17016 /* end confdefs.h. */ 17017 $ac_includes_default 17018 /* malloc might have been renamed as rpl_malloc. */ 17019 #undef malloc 17020 17021 /* Thanks to Mike Haertel and Jim Avera for this test. 17022 Here is a matrix of mmap possibilities: 17023 mmap private not fixed 17024 mmap private fixed at somewhere currently unmapped 17025 mmap private fixed at somewhere already mapped 17026 mmap shared not fixed 17027 mmap shared fixed at somewhere currently unmapped 17028 mmap shared fixed at somewhere already mapped 17029 For private mappings, we should verify that changes cannot be read() 17030 back from the file, nor mmap's back from the file at a different 17031 address. (There have been systems where private was not correctly 17032 implemented like the infamous i386 svr4.0, and systems where the 17033 VM page cache was not coherent with the file system buffer cache 17034 like early versions of FreeBSD and possibly contemporary NetBSD.) 17035 For shared mappings, we should conversely verify that changes get 17036 propagated back to all the places they're supposed to be. 17037 17038 Grep wants private fixed already mapped. 17039 The main things grep needs to know about mmap are: 17040 * does it exist and is it safe to write into the mmap'd area 17041 * how to use it (BSD variants) */ 17042 17043 #include <fcntl.h> 17044 #include <sys/mman.h> 17045 17046 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 17047 char *malloc (); 17048 #endif 17049 17050 /* This mess was copied from the GNU getpagesize.h. */ 17051 #ifndef HAVE_GETPAGESIZE 17052 # ifdef _SC_PAGESIZE 17053 # define getpagesize() sysconf(_SC_PAGESIZE) 17054 # else /* no _SC_PAGESIZE */ 17055 # ifdef HAVE_SYS_PARAM_H 17056 # include <sys/param.h> 17057 # ifdef EXEC_PAGESIZE 17058 # define getpagesize() EXEC_PAGESIZE 17059 # else /* no EXEC_PAGESIZE */ 17060 # ifdef NBPG 17061 # define getpagesize() NBPG * CLSIZE 17062 # ifndef CLSIZE 17063 # define CLSIZE 1 17064 # endif /* no CLSIZE */ 17065 # else /* no NBPG */ 17066 # ifdef NBPC 17067 # define getpagesize() NBPC 17068 # else /* no NBPC */ 17069 # ifdef PAGESIZE 17070 # define getpagesize() PAGESIZE 17071 # endif /* PAGESIZE */ 17072 # endif /* no NBPC */ 17073 # endif /* no NBPG */ 17074 # endif /* no EXEC_PAGESIZE */ 17075 # else /* no HAVE_SYS_PARAM_H */ 17076 # define getpagesize() 8192 /* punt totally */ 17077 # endif /* no HAVE_SYS_PARAM_H */ 17078 # endif /* no _SC_PAGESIZE */ 17079 17080 #endif /* no HAVE_GETPAGESIZE */ 17081 17082 int 17083 main () 17084 { 17085 char *data, *data2, *data3; 17086 const char *cdata2; 17087 int i, pagesize; 17088 int fd, fd2; 17089 17090 pagesize = getpagesize (); 17091 17092 /* First, make a file with some known garbage in it. */ 17093 data = (char *) malloc (pagesize); 17094 if (!data) 17095 return 1; 17096 for (i = 0; i < pagesize; ++i) 17097 *(data + i) = rand (); 17098 umask (0); 17099 fd = creat ("conftest.mmap", 0600); 17100 if (fd < 0) 17101 return 2; 17102 if (write (fd, data, pagesize) != pagesize) 17103 return 3; 17104 close (fd); 17105 17106 /* Next, check that the tail of a page is zero-filled. File must have 17107 non-zero length, otherwise we risk SIGBUS for entire page. */ 17108 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 17109 if (fd2 < 0) 17110 return 4; 17111 cdata2 = ""; 17112 if (write (fd2, cdata2, 1) != 1) 17113 return 5; 17114 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 17115 if (data2 == MAP_FAILED) 17116 return 6; 17117 for (i = 0; i < pagesize; ++i) 17118 if (*(data2 + i)) 17119 return 7; 17120 close (fd2); 17121 if (munmap (data2, pagesize)) 17122 return 8; 17123 17124 /* Next, try to mmap the file at a fixed address which already has 17125 something else allocated at it. If we can, also make sure that 17126 we see the same garbage. */ 17127 fd = open ("conftest.mmap", O_RDWR); 17128 if (fd < 0) 17129 return 9; 17130 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 17131 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 17132 return 10; 17133 for (i = 0; i < pagesize; ++i) 17134 if (*(data + i) != *(data2 + i)) 17135 return 11; 17136 17137 /* Finally, make sure that changes to the mapped area do not 17138 percolate back to the file as seen by read(). (This is a bug on 17139 some variants of i386 svr4.0.) */ 17140 for (i = 0; i < pagesize; ++i) 17141 *(data2 + i) = *(data2 + i) + 1; 17142 data3 = (char *) malloc (pagesize); 17143 if (!data3) 17144 return 12; 17145 if (read (fd, data3, pagesize) != pagesize) 17146 return 13; 17147 for (i = 0; i < pagesize; ++i) 17148 if (*(data + i) != *(data3 + i)) 17149 return 14; 17150 close (fd); 17151 return 0; 17152 } 17153 _ACEOF 17154 if ac_fn_c_try_run "$LINENO"; then : 17155 ac_cv_func_mmap_fixed_mapped=yes 17156 else 17157 ac_cv_func_mmap_fixed_mapped=no 17158 fi 17159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17160 conftest.$ac_objext conftest.beam conftest.$ac_ext 17161 fi 17162 17163 fi 17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 17165 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 17166 if test $ac_cv_func_mmap_fixed_mapped = yes; then 17167 17168 $as_echo "#define HAVE_MMAP 1" >>confdefs.h 17169 17170 fi 17171 rm -f conftest.mmap conftest.txt 17172 17173 ASAN_OPTIONS="$save_ASAN_OPTIONS" 17174 17175 for ac_func in madvise mprotect 17176 do : 17177 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17178 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17179 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17180 cat >>confdefs.h <<_ACEOF 17181 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17182 _ACEOF 17183 17184 fi 17185 done 17186 17187 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in 17188 true+yes ) 17189 $as_echo "#define USE_MMAP 1" >>confdefs.h 17190 ;; 17191 esac 17192 17193 ac_config_files="$ac_config_files Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in" 17194 17195 17196 ac_config_commands="$ac_config_commands default" 17197 17198 17199 17200 17201 17202 17203 17204 cat >confcache <<\_ACEOF 17205 # This file is a shell script that caches the results of configure 17206 # tests run on this system so they can be shared between configure 17207 # scripts and configure runs, see configure's option --config-cache. 17208 # It is not useful on other systems. If it contains results you don't 17209 # want to keep, you may remove or edit it. 17210 # 17211 # config.status only pays attention to the cache file if you give it 17212 # the --recheck option to rerun configure. 17213 # 17214 # `ac_cv_env_foo' variables (set or unset) will be overridden when 17215 # loading this file, other *unset* `ac_cv_foo' will be assigned the 17216 # following values. 17217 17218 _ACEOF 17219 17220 # The following way of writing the cache mishandles newlines in values, 17221 # but we know of no workaround that is simple, portable, and efficient. 17222 # So, we kill variables containing newlines. 17223 # Ultrix sh set writes to stderr and can't be redirected directly, 17224 # and sets the high bit in the cache file unless we assign to the vars. 17225 ( 17226 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17227 eval ac_val=\$$ac_var 17228 case $ac_val in #( 17229 *${as_nl}*) 17230 case $ac_var in #( 17231 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17232 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17233 esac 17234 case $ac_var in #( 17235 _ | IFS | as_nl) ;; #( 17236 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17237 *) { eval $ac_var=; unset $ac_var;} ;; 17238 esac ;; 17239 esac 17240 done 17241 17242 (set) 2>&1 | 17243 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17244 *${as_nl}ac_space=\ *) 17245 # `set' does not quote correctly, so add quotes: double-quote 17246 # substitution turns \\\\ into \\, and sed turns \\ into \. 17247 sed -n \ 17248 "s/'/'\\\\''/g; 17249 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17250 ;; #( 17251 *) 17252 # `set' quotes correctly as required by POSIX, so do not add quotes. 17253 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17254 ;; 17255 esac | 17256 sort 17257 ) | 17258 sed ' 17259 /^ac_cv_env_/b end 17260 t clear 17261 :clear 17262 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17263 t end 17264 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17265 :end' >>confcache 17266 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17267 if test -w "$cache_file"; then 17268 if test "x$cache_file" != "x/dev/null"; then 17269 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17270 $as_echo "$as_me: updating cache $cache_file" >&6;} 17271 if test ! -f "$cache_file" || test -h "$cache_file"; then 17272 cat confcache >"$cache_file" 17273 else 17274 case $cache_file in #( 17275 */* | ?:*) 17276 mv -f confcache "$cache_file"$$ && 17277 mv -f "$cache_file"$$ "$cache_file" ;; #( 17278 *) 17279 mv -f confcache "$cache_file" ;; 17280 esac 17281 fi 17282 fi 17283 else 17284 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17285 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17286 fi 17287 fi 17288 rm -f confcache 17289 17290 test "x$prefix" = xNONE && prefix=$ac_default_prefix 17291 # Let make expand exec_prefix. 17292 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17293 17294 DEFS=-DHAVE_CONFIG_H 17295 17296 ac_libobjs= 17297 ac_ltlibobjs= 17298 U= 17299 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17300 # 1. Remove the extension, and $U if already installed. 17301 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17302 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17303 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17304 # will be set to the directory where LIBOBJS objects are built. 17305 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17306 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17307 done 17308 LIBOBJS=$ac_libobjs 17309 17310 LTLIBOBJS=$ac_ltlibobjs 17311 17312 17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17314 $as_echo_n "checking that generated files are newer than configure... " >&6; } 17315 if test -n "$am_sleep_pid"; then 17316 # Hide warnings about reused PIDs. 17317 wait $am_sleep_pid 2>/dev/null 17318 fi 17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17320 $as_echo "done" >&6; } 17321 if test -n "$EXEEXT"; then 17322 am__EXEEXT_TRUE= 17323 am__EXEEXT_FALSE='#' 17324 else 17325 am__EXEEXT_TRUE='#' 17326 am__EXEEXT_FALSE= 17327 fi 17328 17329 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17330 as_fn_error $? "conditional \"AMDEP\" was never defined. 17331 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17332 fi 17333 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17334 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17335 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17336 fi 17337 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then 17338 as_fn_error $? "conditional \"PLUGINS\" was never defined. 17339 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17340 fi 17341 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17342 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 17343 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17344 fi 17345 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then 17346 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined. 17347 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17348 fi 17349 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then 17350 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined. 17351 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17352 fi 17353 17354 17355 : "${CONFIG_STATUS=./config.status}" 17356 ac_write_fail=0 17357 ac_clean_files_save=$ac_clean_files 17358 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17359 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17360 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17361 as_write_fail=0 17362 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17363 #! $SHELL 17364 # Generated by $as_me. 17365 # Run this file to recreate the current configuration. 17366 # Compiler output produced by configure, useful for debugging 17367 # configure, is in config.log if it exists. 17368 17369 debug=false 17370 ac_cs_recheck=false 17371 ac_cs_silent=false 17372 17373 SHELL=\${CONFIG_SHELL-$SHELL} 17374 export SHELL 17375 _ASEOF 17376 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17377 ## -------------------- ## 17378 ## M4sh Initialization. ## 17379 ## -------------------- ## 17380 17381 # Be more Bourne compatible 17382 DUALCASE=1; export DUALCASE # for MKS sh 17383 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17384 emulate sh 17385 NULLCMD=: 17386 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17387 # is contrary to our usage. Disable this feature. 17388 alias -g '${1+"$@"}'='"$@"' 17389 setopt NO_GLOB_SUBST 17390 else 17391 case `(set -o) 2>/dev/null` in #( 17392 *posix*) : 17393 set -o posix ;; #( 17394 *) : 17395 ;; 17396 esac 17397 fi 17398 17399 17400 as_nl=' 17401 ' 17402 export as_nl 17403 # Printing a long string crashes Solaris 7 /usr/bin/printf. 17404 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17405 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17406 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17407 # Prefer a ksh shell builtin over an external printf program on Solaris, 17408 # but without wasting forks for bash or zsh. 17409 if test -z "$BASH_VERSION$ZSH_VERSION" \ 17410 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17411 as_echo='print -r --' 17412 as_echo_n='print -rn --' 17413 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17414 as_echo='printf %s\n' 17415 as_echo_n='printf %s' 17416 else 17417 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17418 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17419 as_echo_n='/usr/ucb/echo -n' 17420 else 17421 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17422 as_echo_n_body='eval 17423 arg=$1; 17424 case $arg in #( 17425 *"$as_nl"*) 17426 expr "X$arg" : "X\\(.*\\)$as_nl"; 17427 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17428 esac; 17429 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17430 ' 17431 export as_echo_n_body 17432 as_echo_n='sh -c $as_echo_n_body as_echo' 17433 fi 17434 export as_echo_body 17435 as_echo='sh -c $as_echo_body as_echo' 17436 fi 17437 17438 # The user is always right. 17439 if test "${PATH_SEPARATOR+set}" != set; then 17440 PATH_SEPARATOR=: 17441 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17442 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17443 PATH_SEPARATOR=';' 17444 } 17445 fi 17446 17447 17448 # IFS 17449 # We need space, tab and new line, in precisely that order. Quoting is 17450 # there to prevent editors from complaining about space-tab. 17451 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 17452 # splitting by setting IFS to empty value.) 17453 IFS=" "" $as_nl" 17454 17455 # Find who we are. Look in the path if we contain no directory separator. 17456 as_myself= 17457 case $0 in #(( 17458 *[\\/]* ) as_myself=$0 ;; 17459 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17460 for as_dir in $PATH 17461 do 17462 IFS=$as_save_IFS 17463 test -z "$as_dir" && as_dir=. 17464 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17465 done 17466 IFS=$as_save_IFS 17467 17468 ;; 17469 esac 17470 # We did not find ourselves, most probably we were run as `sh COMMAND' 17471 # in which case we are not to be found in the path. 17472 if test "x$as_myself" = x; then 17473 as_myself=$0 17474 fi 17475 if test ! -f "$as_myself"; then 17476 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17477 exit 1 17478 fi 17479 17480 # Unset variables that we do not need and which cause bugs (e.g. in 17481 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17482 # suppresses any "Segmentation fault" message there. '((' could 17483 # trigger a bug in pdksh 5.2.14. 17484 for as_var in BASH_ENV ENV MAIL MAILPATH 17485 do eval test x\${$as_var+set} = xset \ 17486 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17487 done 17488 PS1='$ ' 17489 PS2='> ' 17490 PS4='+ ' 17491 17492 # NLS nuisances. 17493 LC_ALL=C 17494 export LC_ALL 17495 LANGUAGE=C 17496 export LANGUAGE 17497 17498 # CDPATH. 17499 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17500 17501 17502 # as_fn_error STATUS ERROR [LINENO LOG_FD] 17503 # ---------------------------------------- 17504 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17505 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17506 # script with STATUS, using 1 if that was 0. 17507 as_fn_error () 17508 { 17509 as_status=$1; test $as_status -eq 0 && as_status=1 17510 if test "$4"; then 17511 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17512 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17513 fi 17514 $as_echo "$as_me: error: $2" >&2 17515 as_fn_exit $as_status 17516 } # as_fn_error 17517 17518 17519 # as_fn_set_status STATUS 17520 # ----------------------- 17521 # Set $? to STATUS, without forking. 17522 as_fn_set_status () 17523 { 17524 return $1 17525 } # as_fn_set_status 17526 17527 # as_fn_exit STATUS 17528 # ----------------- 17529 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17530 as_fn_exit () 17531 { 17532 set +e 17533 as_fn_set_status $1 17534 exit $1 17535 } # as_fn_exit 17536 17537 # as_fn_unset VAR 17538 # --------------- 17539 # Portably unset VAR. 17540 as_fn_unset () 17541 { 17542 { eval $1=; unset $1;} 17543 } 17544 as_unset=as_fn_unset 17545 # as_fn_append VAR VALUE 17546 # ---------------------- 17547 # Append the text in VALUE to the end of the definition contained in VAR. Take 17548 # advantage of any shell optimizations that allow amortized linear growth over 17549 # repeated appends, instead of the typical quadratic growth present in naive 17550 # implementations. 17551 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17552 eval 'as_fn_append () 17553 { 17554 eval $1+=\$2 17555 }' 17556 else 17557 as_fn_append () 17558 { 17559 eval $1=\$$1\$2 17560 } 17561 fi # as_fn_append 17562 17563 # as_fn_arith ARG... 17564 # ------------------ 17565 # Perform arithmetic evaluation on the ARGs, and store the result in the 17566 # global $as_val. Take advantage of shells that can avoid forks. The arguments 17567 # must be portable across $(()) and expr. 17568 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17569 eval 'as_fn_arith () 17570 { 17571 as_val=$(( $* )) 17572 }' 17573 else 17574 as_fn_arith () 17575 { 17576 as_val=`expr "$@" || test $? -eq 1` 17577 } 17578 fi # as_fn_arith 17579 17580 17581 if expr a : '\(a\)' >/dev/null 2>&1 && 17582 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17583 as_expr=expr 17584 else 17585 as_expr=false 17586 fi 17587 17588 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17589 as_basename=basename 17590 else 17591 as_basename=false 17592 fi 17593 17594 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17595 as_dirname=dirname 17596 else 17597 as_dirname=false 17598 fi 17599 17600 as_me=`$as_basename -- "$0" || 17601 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17602 X"$0" : 'X\(//\)$' \| \ 17603 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17604 $as_echo X/"$0" | 17605 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17606 s//\1/ 17607 q 17608 } 17609 /^X\/\(\/\/\)$/{ 17610 s//\1/ 17611 q 17612 } 17613 /^X\/\(\/\).*/{ 17614 s//\1/ 17615 q 17616 } 17617 s/.*/./; q'` 17618 17619 # Avoid depending upon Character Ranges. 17620 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17621 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17622 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17623 as_cr_digits='0123456789' 17624 as_cr_alnum=$as_cr_Letters$as_cr_digits 17625 17626 ECHO_C= ECHO_N= ECHO_T= 17627 case `echo -n x` in #((((( 17628 -n*) 17629 case `echo 'xy\c'` in 17630 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17631 xy) ECHO_C='\c';; 17632 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17633 ECHO_T=' ';; 17634 esac;; 17635 *) 17636 ECHO_N='-n';; 17637 esac 17638 17639 rm -f conf$$ conf$$.exe conf$$.file 17640 if test -d conf$$.dir; then 17641 rm -f conf$$.dir/conf$$.file 17642 else 17643 rm -f conf$$.dir 17644 mkdir conf$$.dir 2>/dev/null 17645 fi 17646 if (echo >conf$$.file) 2>/dev/null; then 17647 if ln -s conf$$.file conf$$ 2>/dev/null; then 17648 as_ln_s='ln -s' 17649 # ... but there are two gotchas: 17650 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17651 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17652 # In both cases, we have to default to `cp -pR'. 17653 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17654 as_ln_s='cp -pR' 17655 elif ln conf$$.file conf$$ 2>/dev/null; then 17656 as_ln_s=ln 17657 else 17658 as_ln_s='cp -pR' 17659 fi 17660 else 17661 as_ln_s='cp -pR' 17662 fi 17663 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17664 rmdir conf$$.dir 2>/dev/null 17665 17666 17667 # as_fn_mkdir_p 17668 # ------------- 17669 # Create "$as_dir" as a directory, including parents if necessary. 17670 as_fn_mkdir_p () 17671 { 17672 17673 case $as_dir in #( 17674 -*) as_dir=./$as_dir;; 17675 esac 17676 test -d "$as_dir" || eval $as_mkdir_p || { 17677 as_dirs= 17678 while :; do 17679 case $as_dir in #( 17680 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17681 *) as_qdir=$as_dir;; 17682 esac 17683 as_dirs="'$as_qdir' $as_dirs" 17684 as_dir=`$as_dirname -- "$as_dir" || 17685 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17686 X"$as_dir" : 'X\(//\)[^/]' \| \ 17687 X"$as_dir" : 'X\(//\)$' \| \ 17688 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17689 $as_echo X"$as_dir" | 17690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17691 s//\1/ 17692 q 17693 } 17694 /^X\(\/\/\)[^/].*/{ 17695 s//\1/ 17696 q 17697 } 17698 /^X\(\/\/\)$/{ 17699 s//\1/ 17700 q 17701 } 17702 /^X\(\/\).*/{ 17703 s//\1/ 17704 q 17705 } 17706 s/.*/./; q'` 17707 test -d "$as_dir" && break 17708 done 17709 test -z "$as_dirs" || eval "mkdir $as_dirs" 17710 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17711 17712 17713 } # as_fn_mkdir_p 17714 if mkdir -p . 2>/dev/null; then 17715 as_mkdir_p='mkdir -p "$as_dir"' 17716 else 17717 test -d ./-p && rmdir ./-p 17718 as_mkdir_p=false 17719 fi 17720 17721 17722 # as_fn_executable_p FILE 17723 # ----------------------- 17724 # Test if FILE is an executable regular file. 17725 as_fn_executable_p () 17726 { 17727 test -f "$1" && test -x "$1" 17728 } # as_fn_executable_p 17729 as_test_x='test -x' 17730 as_executable_p=as_fn_executable_p 17731 17732 # Sed expression to map a string onto a valid CPP name. 17733 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17734 17735 # Sed expression to map a string onto a valid variable name. 17736 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17737 17738 17739 exec 6>&1 17740 ## ----------------------------------- ## 17741 ## Main body of $CONFIG_STATUS script. ## 17742 ## ----------------------------------- ## 17743 _ASEOF 17744 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17745 17746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17747 # Save the log message, to keep $0 and so on meaningful, and to 17748 # report actual input values of CONFIG_FILES etc. instead of their 17749 # values after options handling. 17750 ac_log=" 17751 This file was extended by bfd $as_me 2.45, which was 17752 generated by GNU Autoconf 2.69. Invocation command line was 17753 17754 CONFIG_FILES = $CONFIG_FILES 17755 CONFIG_HEADERS = $CONFIG_HEADERS 17756 CONFIG_LINKS = $CONFIG_LINKS 17757 CONFIG_COMMANDS = $CONFIG_COMMANDS 17758 $ $0 $@ 17759 17760 on `(hostname || uname -n) 2>/dev/null | sed 1q` 17761 " 17762 17763 _ACEOF 17764 17765 case $ac_config_files in *" 17766 "*) set x $ac_config_files; shift; ac_config_files=$*;; 17767 esac 17768 17769 case $ac_config_headers in *" 17770 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17771 esac 17772 17773 17774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17775 # Files that config.status was made for. 17776 config_files="$ac_config_files" 17777 config_headers="$ac_config_headers" 17778 config_commands="$ac_config_commands" 17779 17780 _ACEOF 17781 17782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17783 ac_cs_usage="\ 17784 \`$as_me' instantiates files and other configuration actions 17785 from templates according to the current configuration. Unless the files 17786 and actions are specified as TAGs, all are instantiated by default. 17787 17788 Usage: $0 [OPTION]... [TAG]... 17789 17790 -h, --help print this help, then exit 17791 -V, --version print version number and configuration settings, then exit 17792 --config print configuration, then exit 17793 -q, --quiet, --silent 17794 do not print progress messages 17795 -d, --debug don't remove temporary files 17796 --recheck update $as_me by reconfiguring in the same conditions 17797 --file=FILE[:TEMPLATE] 17798 instantiate the configuration file FILE 17799 --header=FILE[:TEMPLATE] 17800 instantiate the configuration header FILE 17801 17802 Configuration files: 17803 $config_files 17804 17805 Configuration headers: 17806 $config_headers 17807 17808 Configuration commands: 17809 $config_commands 17810 17811 Report bugs to the package provider." 17812 17813 _ACEOF 17814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17815 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17816 ac_cs_version="\\ 17817 bfd config.status 2.45 17818 configured by $0, generated by GNU Autoconf 2.69, 17819 with options \\"\$ac_cs_config\\" 17820 17821 Copyright (C) 2012 Free Software Foundation, Inc. 17822 This config.status script is free software; the Free Software Foundation 17823 gives unlimited permission to copy, distribute and modify it." 17824 17825 ac_pwd='$ac_pwd' 17826 srcdir='$srcdir' 17827 INSTALL='$INSTALL' 17828 MKDIR_P='$MKDIR_P' 17829 AWK='$AWK' 17830 test -n "\$AWK" || AWK=awk 17831 _ACEOF 17832 17833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17834 # The default lists apply if the user does not specify any file. 17835 ac_need_defaults=: 17836 while test $# != 0 17837 do 17838 case $1 in 17839 --*=?*) 17840 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17841 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17842 ac_shift=: 17843 ;; 17844 --*=) 17845 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17846 ac_optarg= 17847 ac_shift=: 17848 ;; 17849 *) 17850 ac_option=$1 17851 ac_optarg=$2 17852 ac_shift=shift 17853 ;; 17854 esac 17855 17856 case $ac_option in 17857 # Handling of the options. 17858 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17859 ac_cs_recheck=: ;; 17860 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17861 $as_echo "$ac_cs_version"; exit ;; 17862 --config | --confi | --conf | --con | --co | --c ) 17863 $as_echo "$ac_cs_config"; exit ;; 17864 --debug | --debu | --deb | --de | --d | -d ) 17865 debug=: ;; 17866 --file | --fil | --fi | --f ) 17867 $ac_shift 17868 case $ac_optarg in 17869 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17870 '') as_fn_error $? "missing file argument" ;; 17871 esac 17872 as_fn_append CONFIG_FILES " '$ac_optarg'" 17873 ac_need_defaults=false;; 17874 --header | --heade | --head | --hea ) 17875 $ac_shift 17876 case $ac_optarg in 17877 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17878 esac 17879 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17880 ac_need_defaults=false;; 17881 --he | --h) 17882 # Conflict between --help and --header 17883 as_fn_error $? "ambiguous option: \`$1' 17884 Try \`$0 --help' for more information.";; 17885 --help | --hel | -h ) 17886 $as_echo "$ac_cs_usage"; exit ;; 17887 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17888 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17889 ac_cs_silent=: ;; 17890 17891 # This is an error. 17892 -*) as_fn_error $? "unrecognized option: \`$1' 17893 Try \`$0 --help' for more information." ;; 17894 17895 *) as_fn_append ac_config_targets " $1" 17896 ac_need_defaults=false ;; 17897 17898 esac 17899 shift 17900 done 17901 17902 ac_configure_extra_args= 17903 17904 if $ac_cs_silent; then 17905 exec 6>/dev/null 17906 ac_configure_extra_args="$ac_configure_extra_args --silent" 17907 fi 17908 17909 _ACEOF 17910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17911 if \$ac_cs_recheck; then 17912 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17913 shift 17914 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17915 CONFIG_SHELL='$SHELL' 17916 export CONFIG_SHELL 17917 exec "\$@" 17918 fi 17919 17920 _ACEOF 17921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17922 exec 5>>config.log 17923 { 17924 echo 17925 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17926 ## Running $as_me. ## 17927 _ASBOX 17928 $as_echo "$ac_log" 17929 } >&5 17930 17931 _ACEOF 17932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17933 # 17934 # INIT-COMMANDS 17935 # 17936 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17937 17938 17939 # The HP-UX ksh and POSIX shell print the target directory to stdout 17940 # if CDPATH is set. 17941 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17942 17943 sed_quote_subst='$sed_quote_subst' 17944 double_quote_subst='$double_quote_subst' 17945 delay_variable_subst='$delay_variable_subst' 17946 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17947 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17948 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17949 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17950 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17951 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17952 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17953 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17954 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17955 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17956 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17957 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17958 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17959 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17960 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17961 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17962 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17963 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17964 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17965 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17966 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17967 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17968 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17969 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17970 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17971 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17972 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17973 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17974 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17975 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17976 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17977 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17978 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17979 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17980 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17981 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17982 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17983 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17984 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17985 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17986 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17987 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17988 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17989 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17990 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17991 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17992 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17993 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17994 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"`' 17995 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17996 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17997 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17998 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17999 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18000 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18001 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18002 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18003 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18004 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18005 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18006 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18007 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18008 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18009 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18010 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18011 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18012 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18013 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18014 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18015 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18016 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18017 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18018 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18019 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18020 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18021 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18022 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18023 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18024 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18025 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18026 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 18027 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18028 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18029 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18030 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18031 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18032 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18033 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18034 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18035 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 18036 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18037 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18038 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18039 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18040 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18041 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18042 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18043 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18044 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18045 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18046 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18047 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18048 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18049 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18050 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18051 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18052 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18053 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18054 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18055 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18056 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18057 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18058 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18059 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18060 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18061 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18062 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18063 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18064 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18065 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18066 18067 LTCC='$LTCC' 18068 LTCFLAGS='$LTCFLAGS' 18069 compiler='$compiler_DEFAULT' 18070 18071 # A function that is used when there is no print builtin or printf. 18072 func_fallback_echo () 18073 { 18074 eval 'cat <<_LTECHO_EOF 18075 \$1 18076 _LTECHO_EOF' 18077 } 18078 18079 # Quote evaled strings. 18080 for var in SHELL \ 18081 ECHO \ 18082 SED \ 18083 GREP \ 18084 EGREP \ 18085 FGREP \ 18086 LD \ 18087 NM \ 18088 LN_S \ 18089 lt_SP2NL \ 18090 lt_NL2SP \ 18091 reload_flag \ 18092 OBJDUMP \ 18093 deplibs_check_method \ 18094 file_magic_cmd \ 18095 AR \ 18096 AR_FLAGS \ 18097 STRIP \ 18098 RANLIB \ 18099 CC \ 18100 CFLAGS \ 18101 compiler \ 18102 lt_cv_sys_global_symbol_pipe \ 18103 lt_cv_sys_global_symbol_to_cdecl \ 18104 lt_cv_sys_global_symbol_to_c_name_address \ 18105 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18106 lt_prog_compiler_no_builtin_flag \ 18107 lt_prog_compiler_wl \ 18108 lt_prog_compiler_pic \ 18109 lt_prog_compiler_static \ 18110 lt_cv_prog_compiler_c_o \ 18111 need_locks \ 18112 DSYMUTIL \ 18113 NMEDIT \ 18114 LIPO \ 18115 OTOOL \ 18116 OTOOL64 \ 18117 shrext_cmds \ 18118 export_dynamic_flag_spec \ 18119 whole_archive_flag_spec \ 18120 compiler_needs_object \ 18121 with_gnu_ld \ 18122 allow_undefined_flag \ 18123 no_undefined_flag \ 18124 hardcode_libdir_flag_spec \ 18125 hardcode_libdir_flag_spec_ld \ 18126 hardcode_libdir_separator \ 18127 fix_srcfile_path \ 18128 exclude_expsyms \ 18129 include_expsyms \ 18130 file_list_spec \ 18131 variables_saved_for_relink \ 18132 libname_spec \ 18133 library_names_spec \ 18134 soname_spec \ 18135 install_override_mode \ 18136 finish_eval \ 18137 old_striplib \ 18138 striplib; do 18139 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18140 *[\\\\\\\`\\"\\\$]*) 18141 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18142 ;; 18143 *) 18144 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18145 ;; 18146 esac 18147 done 18148 18149 # Double-quote double-evaled strings. 18150 for var in reload_cmds \ 18151 old_postinstall_cmds \ 18152 old_postuninstall_cmds \ 18153 old_archive_cmds \ 18154 extract_expsyms_cmds \ 18155 old_archive_from_new_cmds \ 18156 old_archive_from_expsyms_cmds \ 18157 archive_cmds \ 18158 archive_expsym_cmds \ 18159 module_cmds \ 18160 module_expsym_cmds \ 18161 export_symbols_cmds \ 18162 prelink_cmds \ 18163 postinstall_cmds \ 18164 postuninstall_cmds \ 18165 finish_cmds \ 18166 sys_lib_search_path_spec \ 18167 sys_lib_dlsearch_path_spec; do 18168 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18169 *[\\\\\\\`\\"\\\$]*) 18170 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18171 ;; 18172 *) 18173 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18174 ;; 18175 esac 18176 done 18177 18178 ac_aux_dir='$ac_aux_dir' 18179 xsi_shell='$xsi_shell' 18180 lt_shell_append='$lt_shell_append' 18181 18182 # See if we are running on zsh, and set the options which allow our 18183 # commands through without removal of \ escapes INIT. 18184 if test -n "\${ZSH_VERSION+set}" ; then 18185 setopt NO_GLOB_SUBST 18186 fi 18187 18188 18189 PACKAGE='$PACKAGE' 18190 VERSION='$VERSION' 18191 TIMESTAMP='$TIMESTAMP' 18192 RM='$RM' 18193 ofile='$ofile' 18194 18195 18196 18197 # Capture the value of obsolete ALL_LINGUAS because we need it to compute 18198 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 18199 # from automake. 18200 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 18201 # Capture the value of LINGUAS because we need it to compute CATALOGS. 18202 LINGUAS="${LINGUAS-%UNSET%}" 18203 18204 18205 18206 _ACEOF 18207 18208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18209 18210 # Handling of arguments. 18211 for ac_config_target in $ac_config_targets 18212 do 18213 case $ac_config_target in 18214 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18215 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18216 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 18217 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 18218 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18219 "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;; 18220 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; 18221 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 18222 18223 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18224 esac 18225 done 18226 18227 18228 # If the user did not use the arguments to specify the items to instantiate, 18229 # then the envvar interface is used. Set only those that are not. 18230 # We use the long form for the default assignment because of an extremely 18231 # bizarre bug on SunOS 4.1.3. 18232 if $ac_need_defaults; then 18233 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18234 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18235 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18236 fi 18237 18238 # Have a temporary directory for convenience. Make it in the build tree 18239 # simply because there is no reason against having it here, and in addition, 18240 # creating and moving files from /tmp can sometimes cause problems. 18241 # Hook for its removal unless debugging. 18242 # Note that there is a small window in which the directory will not be cleaned: 18243 # after its creation but before its name has been assigned to `$tmp'. 18244 $debug || 18245 { 18246 tmp= ac_tmp= 18247 trap 'exit_status=$? 18248 : "${ac_tmp:=$tmp}" 18249 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18250 ' 0 18251 trap 'as_fn_exit 1' 1 2 13 15 18252 } 18253 # Create a (secure) tmp directory for tmp files. 18254 18255 { 18256 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18257 test -d "$tmp" 18258 } || 18259 { 18260 tmp=./conf$$-$RANDOM 18261 (umask 077 && mkdir "$tmp") 18262 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18263 ac_tmp=$tmp 18264 18265 # Set up the scripts for CONFIG_FILES section. 18266 # No need to generate them if there are no CONFIG_FILES. 18267 # This happens for instance with `./config.status config.h'. 18268 if test -n "$CONFIG_FILES"; then 18269 18270 18271 ac_cr=`echo X | tr X '\015'` 18272 # On cygwin, bash can eat \r inside `` if the user requested igncr. 18273 # But we know of no other shell where ac_cr would be empty at this 18274 # point, so we can use a bashism as a fallback. 18275 if test "x$ac_cr" = x; then 18276 eval ac_cr=\$\'\\r\' 18277 fi 18278 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18279 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18280 ac_cs_awk_cr='\\r' 18281 else 18282 ac_cs_awk_cr=$ac_cr 18283 fi 18284 18285 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18286 _ACEOF 18287 18288 18289 { 18290 echo "cat >conf$$subs.awk <<_ACEOF" && 18291 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18292 echo "_ACEOF" 18293 } >conf$$subs.sh || 18294 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18295 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18296 ac_delim='%!_!# ' 18297 for ac_last_try in false false false false false :; do 18298 . ./conf$$subs.sh || 18299 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18300 18301 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18302 if test $ac_delim_n = $ac_delim_num; then 18303 break 18304 elif $ac_last_try; then 18305 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18306 else 18307 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18308 fi 18309 done 18310 rm -f conf$$subs.sh 18311 18312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18313 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18314 _ACEOF 18315 sed -n ' 18316 h 18317 s/^/S["/; s/!.*/"]=/ 18318 p 18319 g 18320 s/^[^!]*!// 18321 :repl 18322 t repl 18323 s/'"$ac_delim"'$// 18324 t delim 18325 :nl 18326 h 18327 s/\(.\{148\}\)..*/\1/ 18328 t more1 18329 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18330 p 18331 n 18332 b repl 18333 :more1 18334 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18335 p 18336 g 18337 s/.\{148\}// 18338 t nl 18339 :delim 18340 h 18341 s/\(.\{148\}\)..*/\1/ 18342 t more2 18343 s/["\\]/\\&/g; s/^/"/; s/$/"/ 18344 p 18345 b 18346 :more2 18347 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18348 p 18349 g 18350 s/.\{148\}// 18351 t delim 18352 ' <conf$$subs.awk | sed ' 18353 /^[^""]/{ 18354 N 18355 s/\n// 18356 } 18357 ' >>$CONFIG_STATUS || ac_write_fail=1 18358 rm -f conf$$subs.awk 18359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18360 _ACAWK 18361 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18362 for (key in S) S_is_set[key] = 1 18363 FS = "" 18364 18365 } 18366 { 18367 line = $ 0 18368 nfields = split(line, field, "@") 18369 substed = 0 18370 len = length(field[1]) 18371 for (i = 2; i < nfields; i++) { 18372 key = field[i] 18373 keylen = length(key) 18374 if (S_is_set[key]) { 18375 value = S[key] 18376 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18377 len += length(value) + length(field[++i]) 18378 substed = 1 18379 } else 18380 len += 1 + keylen 18381 } 18382 18383 print line 18384 } 18385 18386 _ACAWK 18387 _ACEOF 18388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18389 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18390 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18391 else 18392 cat 18393 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18394 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18395 _ACEOF 18396 18397 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18398 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18399 # trailing colons and then remove the whole line if VPATH becomes empty 18400 # (actually we leave an empty line to preserve line numbers). 18401 if test "x$srcdir" = x.; then 18402 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18403 h 18404 s/// 18405 s/^/:/ 18406 s/[ ]*$/:/ 18407 s/:\$(srcdir):/:/g 18408 s/:\${srcdir}:/:/g 18409 s/:@srcdir@:/:/g 18410 s/^:*// 18411 s/:*$// 18412 x 18413 s/\(=[ ]*\).*/\1/ 18414 G 18415 s/\n// 18416 s/^[^=]*=[ ]*$// 18417 }' 18418 fi 18419 18420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18421 fi # test -n "$CONFIG_FILES" 18422 18423 # Set up the scripts for CONFIG_HEADERS section. 18424 # No need to generate them if there are no CONFIG_HEADERS. 18425 # This happens for instance with `./config.status Makefile'. 18426 if test -n "$CONFIG_HEADERS"; then 18427 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18428 BEGIN { 18429 _ACEOF 18430 18431 # Transform confdefs.h into an awk script `defines.awk', embedded as 18432 # here-document in config.status, that substitutes the proper values into 18433 # config.h.in to produce config.h. 18434 18435 # Create a delimiter string that does not exist in confdefs.h, to ease 18436 # handling of long lines. 18437 ac_delim='%!_!# ' 18438 for ac_last_try in false false :; do 18439 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18440 if test -z "$ac_tt"; then 18441 break 18442 elif $ac_last_try; then 18443 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18444 else 18445 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18446 fi 18447 done 18448 18449 # For the awk script, D is an array of macro values keyed by name, 18450 # likewise P contains macro parameters if any. Preserve backslash 18451 # newline sequences. 18452 18453 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18454 sed -n ' 18455 s/.\{148\}/&'"$ac_delim"'/g 18456 t rset 18457 :rset 18458 s/^[ ]*#[ ]*define[ ][ ]*/ / 18459 t def 18460 d 18461 :def 18462 s/\\$// 18463 t bsnl 18464 s/["\\]/\\&/g 18465 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18466 D["\1"]=" \3"/p 18467 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18468 d 18469 :bsnl 18470 s/["\\]/\\&/g 18471 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18472 D["\1"]=" \3\\\\\\n"\\/p 18473 t cont 18474 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18475 t cont 18476 d 18477 :cont 18478 n 18479 s/.\{148\}/&'"$ac_delim"'/g 18480 t clear 18481 :clear 18482 s/\\$// 18483 t bsnlc 18484 s/["\\]/\\&/g; s/^/"/; s/$/"/p 18485 d 18486 :bsnlc 18487 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18488 b cont 18489 ' <confdefs.h | sed ' 18490 s/'"$ac_delim"'/"\\\ 18491 "/g' >>$CONFIG_STATUS || ac_write_fail=1 18492 18493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18494 for (key in D) D_is_set[key] = 1 18495 FS = "" 18496 } 18497 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18498 line = \$ 0 18499 split(line, arg, " ") 18500 if (arg[1] == "#") { 18501 defundef = arg[2] 18502 mac1 = arg[3] 18503 } else { 18504 defundef = substr(arg[1], 2) 18505 mac1 = arg[2] 18506 } 18507 split(mac1, mac2, "(") #) 18508 macro = mac2[1] 18509 prefix = substr(line, 1, index(line, defundef) - 1) 18510 if (D_is_set[macro]) { 18511 # Preserve the white space surrounding the "#". 18512 print prefix "define", macro P[macro] D[macro] 18513 next 18514 } else { 18515 # Replace #undef with comments. This is necessary, for example, 18516 # in the case of _POSIX_SOURCE, which is predefined and required 18517 # on some systems where configure will not decide to define it. 18518 if (defundef == "undef") { 18519 print "/*", prefix defundef, macro, "*/" 18520 next 18521 } 18522 } 18523 } 18524 { print } 18525 _ACAWK 18526 _ACEOF 18527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18528 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18529 fi # test -n "$CONFIG_HEADERS" 18530 18531 18532 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18533 shift 18534 for ac_tag 18535 do 18536 case $ac_tag in 18537 :[FHLC]) ac_mode=$ac_tag; continue;; 18538 esac 18539 case $ac_mode$ac_tag in 18540 :[FHL]*:*);; 18541 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18542 :[FH]-) ac_tag=-:-;; 18543 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18544 esac 18545 ac_save_IFS=$IFS 18546 IFS=: 18547 set x $ac_tag 18548 IFS=$ac_save_IFS 18549 shift 18550 ac_file=$1 18551 shift 18552 18553 case $ac_mode in 18554 :L) ac_source=$1;; 18555 :[FH]) 18556 ac_file_inputs= 18557 for ac_f 18558 do 18559 case $ac_f in 18560 -) ac_f="$ac_tmp/stdin";; 18561 *) # Look for the file first in the build tree, then in the source tree 18562 # (if the path is not absolute). The absolute path cannot be DOS-style, 18563 # because $ac_f cannot contain `:'. 18564 test -f "$ac_f" || 18565 case $ac_f in 18566 [\\/$]*) false;; 18567 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18568 esac || 18569 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18570 esac 18571 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18572 as_fn_append ac_file_inputs " '$ac_f'" 18573 done 18574 18575 # Let's still pretend it is `configure' which instantiates (i.e., don't 18576 # use $as_me), people would be surprised to read: 18577 # /* config.h. Generated by config.status. */ 18578 configure_input='Generated from '` 18579 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18580 `' by configure.' 18581 if test x"$ac_file" != x-; then 18582 configure_input="$ac_file. $configure_input" 18583 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18584 $as_echo "$as_me: creating $ac_file" >&6;} 18585 fi 18586 # Neutralize special characters interpreted by sed in replacement strings. 18587 case $configure_input in #( 18588 *\&* | *\|* | *\\* ) 18589 ac_sed_conf_input=`$as_echo "$configure_input" | 18590 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18591 *) ac_sed_conf_input=$configure_input;; 18592 esac 18593 18594 case $ac_tag in 18595 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18596 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18597 esac 18598 ;; 18599 esac 18600 18601 ac_dir=`$as_dirname -- "$ac_file" || 18602 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18603 X"$ac_file" : 'X\(//\)[^/]' \| \ 18604 X"$ac_file" : 'X\(//\)$' \| \ 18605 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18606 $as_echo X"$ac_file" | 18607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18608 s//\1/ 18609 q 18610 } 18611 /^X\(\/\/\)[^/].*/{ 18612 s//\1/ 18613 q 18614 } 18615 /^X\(\/\/\)$/{ 18616 s//\1/ 18617 q 18618 } 18619 /^X\(\/\).*/{ 18620 s//\1/ 18621 q 18622 } 18623 s/.*/./; q'` 18624 as_dir="$ac_dir"; as_fn_mkdir_p 18625 ac_builddir=. 18626 18627 case "$ac_dir" in 18628 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18629 *) 18630 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18631 # A ".." for each directory in $ac_dir_suffix. 18632 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18633 case $ac_top_builddir_sub in 18634 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18635 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18636 esac ;; 18637 esac 18638 ac_abs_top_builddir=$ac_pwd 18639 ac_abs_builddir=$ac_pwd$ac_dir_suffix 18640 # for backward compatibility: 18641 ac_top_builddir=$ac_top_build_prefix 18642 18643 case $srcdir in 18644 .) # We are building in place. 18645 ac_srcdir=. 18646 ac_top_srcdir=$ac_top_builddir_sub 18647 ac_abs_top_srcdir=$ac_pwd ;; 18648 [\\/]* | ?:[\\/]* ) # Absolute name. 18649 ac_srcdir=$srcdir$ac_dir_suffix; 18650 ac_top_srcdir=$srcdir 18651 ac_abs_top_srcdir=$srcdir ;; 18652 *) # Relative name. 18653 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18654 ac_top_srcdir=$ac_top_build_prefix$srcdir 18655 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18656 esac 18657 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18658 18659 18660 case $ac_mode in 18661 :F) 18662 # 18663 # CONFIG_FILE 18664 # 18665 18666 case $INSTALL in 18667 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18668 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18669 esac 18670 ac_MKDIR_P=$MKDIR_P 18671 case $MKDIR_P in 18672 [\\/$]* | ?:[\\/]* ) ;; 18673 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18674 esac 18675 _ACEOF 18676 18677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18678 # If the template does not know about datarootdir, expand it. 18679 # FIXME: This hack should be removed a few years after 2.60. 18680 ac_datarootdir_hack=; ac_datarootdir_seen= 18681 ac_sed_dataroot=' 18682 /datarootdir/ { 18683 p 18684 q 18685 } 18686 /@datadir@/p 18687 /@docdir@/p 18688 /@infodir@/p 18689 /@localedir@/p 18690 /@mandir@/p' 18691 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18692 *datarootdir*) ac_datarootdir_seen=yes;; 18693 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18695 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18696 _ACEOF 18697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18698 ac_datarootdir_hack=' 18699 s&@datadir@&$datadir&g 18700 s&@docdir@&$docdir&g 18701 s&@infodir@&$infodir&g 18702 s&@localedir@&$localedir&g 18703 s&@mandir@&$mandir&g 18704 s&\\\${datarootdir}&$datarootdir&g' ;; 18705 esac 18706 _ACEOF 18707 18708 # Neutralize VPATH when `$srcdir' = `.'. 18709 # Shell code in configure.ac might set extrasub. 18710 # FIXME: do we really want to maintain this feature? 18711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18712 ac_sed_extra="$ac_vpsub 18713 $extrasub 18714 _ACEOF 18715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18716 :t 18717 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18718 s|@configure_input@|$ac_sed_conf_input|;t t 18719 s&@top_builddir@&$ac_top_builddir_sub&;t t 18720 s&@top_build_prefix@&$ac_top_build_prefix&;t t 18721 s&@srcdir@&$ac_srcdir&;t t 18722 s&@abs_srcdir@&$ac_abs_srcdir&;t t 18723 s&@top_srcdir@&$ac_top_srcdir&;t t 18724 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18725 s&@builddir@&$ac_builddir&;t t 18726 s&@abs_builddir@&$ac_abs_builddir&;t t 18727 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18728 s&@INSTALL@&$ac_INSTALL&;t t 18729 s&@MKDIR_P@&$ac_MKDIR_P&;t t 18730 $ac_datarootdir_hack 18731 " 18732 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18733 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18734 18735 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18736 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18737 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18738 "$ac_tmp/out"`; test -z "$ac_out"; } && 18739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18740 which seems to be undefined. Please make sure it is defined" >&5 18741 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18742 which seems to be undefined. Please make sure it is defined" >&2;} 18743 18744 rm -f "$ac_tmp/stdin" 18745 case $ac_file in 18746 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18747 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18748 esac \ 18749 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18750 ;; 18751 :H) 18752 # 18753 # CONFIG_HEADER 18754 # 18755 if test x"$ac_file" != x-; then 18756 { 18757 $as_echo "/* $configure_input */" \ 18758 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18759 } >"$ac_tmp/config.h" \ 18760 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18761 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18762 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18763 $as_echo "$as_me: $ac_file is unchanged" >&6;} 18764 else 18765 rm -f "$ac_file" 18766 mv "$ac_tmp/config.h" "$ac_file" \ 18767 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18768 fi 18769 else 18770 $as_echo "/* $configure_input */" \ 18771 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18772 || as_fn_error $? "could not create -" "$LINENO" 5 18773 fi 18774 # Compute "$ac_file"'s index in $config_headers. 18775 _am_arg="$ac_file" 18776 _am_stamp_count=1 18777 for _am_header in $config_headers :; do 18778 case $_am_header in 18779 $_am_arg | $_am_arg:* ) 18780 break ;; 18781 * ) 18782 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18783 esac 18784 done 18785 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18786 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18787 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18788 X"$_am_arg" : 'X\(//\)$' \| \ 18789 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18790 $as_echo X"$_am_arg" | 18791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18792 s//\1/ 18793 q 18794 } 18795 /^X\(\/\/\)[^/].*/{ 18796 s//\1/ 18797 q 18798 } 18799 /^X\(\/\/\)$/{ 18800 s//\1/ 18801 q 18802 } 18803 /^X\(\/\).*/{ 18804 s//\1/ 18805 q 18806 } 18807 s/.*/./; q'`/stamp-h$_am_stamp_count 18808 ;; 18809 18810 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18811 $as_echo "$as_me: executing $ac_file commands" >&6;} 18812 ;; 18813 esac 18814 18815 18816 case $ac_file$ac_mode in 18817 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18818 # Older Autoconf quotes --file arguments for eval, but not when files 18819 # are listed without --file. Let's play safe and only enable the eval 18820 # if we detect the quoting. 18821 case $CONFIG_FILES in 18822 *\'*) eval set x "$CONFIG_FILES" ;; 18823 *) set x $CONFIG_FILES ;; 18824 esac 18825 shift 18826 for mf 18827 do 18828 # Strip MF so we end up with the name of the file. 18829 mf=`echo "$mf" | sed -e 's/:.*$//'` 18830 # Check whether this is an Automake generated Makefile or not. 18831 # We used to match only the files named 'Makefile.in', but 18832 # some people rename them; so instead we look at the file content. 18833 # Grep'ing the first line is not enough: some people post-process 18834 # each Makefile.in and add a new line on top of each file to say so. 18835 # Grep'ing the whole file is not good either: AIX grep has a line 18836 # limit of 2048, but all sed's we know have understand at least 4000. 18837 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18838 dirpart=`$as_dirname -- "$mf" || 18839 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18840 X"$mf" : 'X\(//\)[^/]' \| \ 18841 X"$mf" : 'X\(//\)$' \| \ 18842 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18843 $as_echo X"$mf" | 18844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18845 s//\1/ 18846 q 18847 } 18848 /^X\(\/\/\)[^/].*/{ 18849 s//\1/ 18850 q 18851 } 18852 /^X\(\/\/\)$/{ 18853 s//\1/ 18854 q 18855 } 18856 /^X\(\/\).*/{ 18857 s//\1/ 18858 q 18859 } 18860 s/.*/./; q'` 18861 else 18862 continue 18863 fi 18864 # Extract the definition of DEPDIR, am__include, and am__quote 18865 # from the Makefile without running 'make'. 18866 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18867 test -z "$DEPDIR" && continue 18868 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18869 test -z "$am__include" && continue 18870 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18871 # Find all dependency output files, they are included files with 18872 # $(DEPDIR) in their names. We invoke sed twice because it is the 18873 # simplest approach to changing $(DEPDIR) to its actual value in the 18874 # expansion. 18875 for file in `sed -n " 18876 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18877 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18878 # Make sure the directory exists. 18879 test -f "$dirpart/$file" && continue 18880 fdir=`$as_dirname -- "$file" || 18881 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18882 X"$file" : 'X\(//\)[^/]' \| \ 18883 X"$file" : 'X\(//\)$' \| \ 18884 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18885 $as_echo X"$file" | 18886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18887 s//\1/ 18888 q 18889 } 18890 /^X\(\/\/\)[^/].*/{ 18891 s//\1/ 18892 q 18893 } 18894 /^X\(\/\/\)$/{ 18895 s//\1/ 18896 q 18897 } 18898 /^X\(\/\).*/{ 18899 s//\1/ 18900 q 18901 } 18902 s/.*/./; q'` 18903 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18904 # echo "creating $dirpart/$file" 18905 echo '# dummy' > "$dirpart/$file" 18906 done 18907 done 18908 } 18909 ;; 18910 "libtool":C) 18911 18912 # See if we are running on zsh, and set the options which allow our 18913 # commands through without removal of \ escapes. 18914 if test -n "${ZSH_VERSION+set}" ; then 18915 setopt NO_GLOB_SUBST 18916 fi 18917 18918 cfgfile="${ofile}T" 18919 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18920 $RM "$cfgfile" 18921 18922 cat <<_LT_EOF >> "$cfgfile" 18923 #! $SHELL 18924 18925 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 18926 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 18927 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18928 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 18929 # 18930 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18931 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 18932 # Written by Gordon Matzigkeit, 1996 18933 # 18934 # This file is part of GNU Libtool. 18935 # 18936 # GNU Libtool is free software; you can redistribute it and/or 18937 # modify it under the terms of the GNU General Public License as 18938 # published by the Free Software Foundation; either version 2 of 18939 # the License, or (at your option) any later version. 18940 # 18941 # As a special exception to the GNU General Public License, 18942 # if you distribute this file as part of a program or library that 18943 # is built using GNU Libtool, you may include this file under the 18944 # same distribution terms that you use for the rest of that program. 18945 # 18946 # GNU Libtool is distributed in the hope that it will be useful, 18947 # but WITHOUT ANY WARRANTY; without even the implied warranty of 18948 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18949 # GNU General Public License for more details. 18950 # 18951 # You should have received a copy of the GNU General Public License 18952 # along with GNU Libtool; see the file COPYING. If not, a copy 18953 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 18954 # obtained by writing to the Free Software Foundation, Inc., 18955 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18956 18957 18958 # The names of the tagged configurations supported by this script. 18959 available_tags="" 18960 18961 # ### BEGIN LIBTOOL CONFIG 18962 18963 # Whether or not to build shared libraries. 18964 build_libtool_libs=$enable_shared 18965 18966 # Which release of libtool.m4 was used? 18967 macro_version=$macro_version 18968 macro_revision=$macro_revision 18969 18970 # Whether or not to build static libraries. 18971 build_old_libs=$enable_static 18972 18973 # What type of objects to build. 18974 pic_mode=$pic_mode 18975 18976 # Whether or not to optimize for fast installation. 18977 fast_install=$enable_fast_install 18978 18979 # Shell to use when invoking shell scripts. 18980 SHELL=$lt_SHELL 18981 18982 # An echo program that protects backslashes. 18983 ECHO=$lt_ECHO 18984 18985 # The host system. 18986 host_alias=$host_alias 18987 host=$host 18988 host_os=$host_os 18989 18990 # The build system. 18991 build_alias=$build_alias 18992 build=$build 18993 build_os=$build_os 18994 18995 # A sed program that does not truncate output. 18996 SED=$lt_SED 18997 18998 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 18999 Xsed="\$SED -e 1s/^X//" 19000 19001 # A grep program that handles long lines. 19002 GREP=$lt_GREP 19003 19004 # An ERE matcher. 19005 EGREP=$lt_EGREP 19006 19007 # A literal string matcher. 19008 FGREP=$lt_FGREP 19009 19010 # A BSD- or MS-compatible name lister. 19011 NM=$lt_NM 19012 19013 # Whether we need soft or hard links. 19014 LN_S=$lt_LN_S 19015 19016 # What is the maximum length of a command? 19017 max_cmd_len=$max_cmd_len 19018 19019 # Object file suffix (normally "o"). 19020 objext=$ac_objext 19021 19022 # Executable file suffix (normally ""). 19023 exeext=$exeext 19024 19025 # whether the shell understands "unset". 19026 lt_unset=$lt_unset 19027 19028 # turn spaces into newlines. 19029 SP2NL=$lt_lt_SP2NL 19030 19031 # turn newlines into spaces. 19032 NL2SP=$lt_lt_NL2SP 19033 19034 # An object symbol dumper. 19035 OBJDUMP=$lt_OBJDUMP 19036 19037 # Method to check whether dependent libraries are shared objects. 19038 deplibs_check_method=$lt_deplibs_check_method 19039 19040 # Command to use when deplibs_check_method == "file_magic". 19041 file_magic_cmd=$lt_file_magic_cmd 19042 19043 # The archiver. 19044 AR=$lt_AR 19045 AR_FLAGS=$lt_AR_FLAGS 19046 19047 # A symbol stripping program. 19048 STRIP=$lt_STRIP 19049 19050 # Commands used to install an old-style archive. 19051 RANLIB=$lt_RANLIB 19052 old_postinstall_cmds=$lt_old_postinstall_cmds 19053 old_postuninstall_cmds=$lt_old_postuninstall_cmds 19054 19055 # Whether to use a lock for old archive extraction. 19056 lock_old_archive_extraction=$lock_old_archive_extraction 19057 19058 # A C compiler. 19059 LTCC=$lt_CC 19060 19061 # LTCC compiler flags. 19062 LTCFLAGS=$lt_CFLAGS 19063 19064 # Take the output of nm and produce a listing of raw symbols and C names. 19065 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19066 19067 # Transform the output of nm in a proper C declaration. 19068 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19069 19070 # Transform the output of nm in a C name address pair. 19071 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19072 19073 # Transform the output of nm in a C name address pair when lib prefix is needed. 19074 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19075 19076 # The name of the directory that contains temporary libtool files. 19077 objdir=$objdir 19078 19079 # Used to examine libraries when file_magic_cmd begins with "file". 19080 MAGIC_CMD=$MAGIC_CMD 19081 19082 # Must we lock files when doing compilation? 19083 need_locks=$lt_need_locks 19084 19085 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19086 DSYMUTIL=$lt_DSYMUTIL 19087 19088 # Tool to change global to local symbols on Mac OS X. 19089 NMEDIT=$lt_NMEDIT 19090 19091 # Tool to manipulate fat objects and archives on Mac OS X. 19092 LIPO=$lt_LIPO 19093 19094 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 19095 OTOOL=$lt_OTOOL 19096 19097 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19098 OTOOL64=$lt_OTOOL64 19099 19100 # Old archive suffix (normally "a"). 19101 libext=$libext 19102 19103 # Shared library suffix (normally ".so"). 19104 shrext_cmds=$lt_shrext_cmds 19105 19106 # The commands to extract the exported symbol list from a shared archive. 19107 extract_expsyms_cmds=$lt_extract_expsyms_cmds 19108 19109 # Variables whose values should be saved in libtool wrapper scripts and 19110 # restored at link time. 19111 variables_saved_for_relink=$lt_variables_saved_for_relink 19112 19113 # Do we need the "lib" prefix for modules? 19114 need_lib_prefix=$need_lib_prefix 19115 19116 # Do we need a version for libraries? 19117 need_version=$need_version 19118 19119 # Library versioning type. 19120 version_type=$version_type 19121 19122 # Shared library runtime path variable. 19123 runpath_var=$runpath_var 19124 19125 # Shared library path variable. 19126 shlibpath_var=$shlibpath_var 19127 19128 # Is shlibpath searched before the hard-coded library search path? 19129 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19130 19131 # Format of library name prefix. 19132 libname_spec=$lt_libname_spec 19133 19134 # List of archive names. First name is the real one, the rest are links. 19135 # The last name is the one that the linker finds with -lNAME 19136 library_names_spec=$lt_library_names_spec 19137 19138 # The coded name of the library, if different from the real name. 19139 soname_spec=$lt_soname_spec 19140 19141 # Permission mode override for installation of shared libraries. 19142 install_override_mode=$lt_install_override_mode 19143 19144 # Command to use after installation of a shared archive. 19145 postinstall_cmds=$lt_postinstall_cmds 19146 19147 # Command to use after uninstallation of a shared archive. 19148 postuninstall_cmds=$lt_postuninstall_cmds 19149 19150 # Commands used to finish a libtool library installation in a directory. 19151 finish_cmds=$lt_finish_cmds 19152 19153 # As "finish_cmds", except a single script fragment to be evaled but 19154 # not shown. 19155 finish_eval=$lt_finish_eval 19156 19157 # Whether we should hardcode library paths into libraries. 19158 hardcode_into_libs=$hardcode_into_libs 19159 19160 # Compile-time system search path for libraries. 19161 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19162 19163 # Run-time system search path for libraries. 19164 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19165 19166 # Whether dlopen is supported. 19167 dlopen_support=$enable_dlopen 19168 19169 # Whether dlopen of programs is supported. 19170 dlopen_self=$enable_dlopen_self 19171 19172 # Whether dlopen of statically linked programs is supported. 19173 dlopen_self_static=$enable_dlopen_self_static 19174 19175 # Commands to strip libraries. 19176 old_striplib=$lt_old_striplib 19177 striplib=$lt_striplib 19178 19179 19180 # The linker used to build libraries. 19181 LD=$lt_LD 19182 19183 # How to create reloadable object files. 19184 reload_flag=$lt_reload_flag 19185 reload_cmds=$lt_reload_cmds 19186 19187 # Commands used to build an old-style archive. 19188 old_archive_cmds=$lt_old_archive_cmds 19189 19190 # A language specific compiler. 19191 CC=$lt_compiler 19192 19193 # Is the compiler the GNU compiler? 19194 with_gcc=$GCC 19195 19196 # Compiler flag to turn off builtin functions. 19197 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19198 19199 # How to pass a linker flag through the compiler. 19200 wl=$lt_lt_prog_compiler_wl 19201 19202 # Additional compiler flags for building library objects. 19203 pic_flag=$lt_lt_prog_compiler_pic 19204 19205 # Compiler flag to prevent dynamic linking. 19206 link_static_flag=$lt_lt_prog_compiler_static 19207 19208 # Does compiler simultaneously support -c and -o options? 19209 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19210 19211 # Whether or not to add -lc for building shared libraries. 19212 build_libtool_need_lc=$archive_cmds_need_lc 19213 19214 # Whether or not to disallow shared libs when runtime libs are static. 19215 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19216 19217 # Compiler flag to allow reflexive dlopens. 19218 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19219 19220 # Compiler flag to generate shared objects directly from archives. 19221 whole_archive_flag_spec=$lt_whole_archive_flag_spec 19222 19223 # Whether the compiler copes with passing no objects directly. 19224 compiler_needs_object=$lt_compiler_needs_object 19225 19226 # Create an old-style archive from a shared archive. 19227 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19228 19229 # Create a temporary old-style archive to link instead of a shared archive. 19230 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19231 19232 # Commands used to build a shared archive. 19233 archive_cmds=$lt_archive_cmds 19234 archive_expsym_cmds=$lt_archive_expsym_cmds 19235 19236 # Commands used to build a loadable module if different from building 19237 # a shared archive. 19238 module_cmds=$lt_module_cmds 19239 module_expsym_cmds=$lt_module_expsym_cmds 19240 19241 # Whether we are building with GNU ld or not. 19242 with_gnu_ld=$lt_with_gnu_ld 19243 19244 # Flag that allows shared libraries with undefined symbols to be built. 19245 allow_undefined_flag=$lt_allow_undefined_flag 19246 19247 # Flag that enforces no undefined symbols. 19248 no_undefined_flag=$lt_no_undefined_flag 19249 19250 # Flag to hardcode \$libdir into a binary during linking. 19251 # This must work even if \$libdir does not exist 19252 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19253 19254 # If ld is used when linking, flag to hardcode \$libdir into a binary 19255 # during linking. This must work even if \$libdir does not exist. 19256 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 19257 19258 # Whether we need a single "-rpath" flag with a separated argument. 19259 hardcode_libdir_separator=$lt_hardcode_libdir_separator 19260 19261 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19262 # DIR into the resulting binary. 19263 hardcode_direct=$hardcode_direct 19264 19265 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19266 # DIR into the resulting binary and the resulting library dependency is 19267 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19268 # library is relocated. 19269 hardcode_direct_absolute=$hardcode_direct_absolute 19270 19271 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19272 # into the resulting binary. 19273 hardcode_minus_L=$hardcode_minus_L 19274 19275 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19276 # into the resulting binary. 19277 hardcode_shlibpath_var=$hardcode_shlibpath_var 19278 19279 # Set to "yes" if building a shared library automatically hardcodes DIR 19280 # into the library and all subsequent libraries and executables linked 19281 # against it. 19282 hardcode_automatic=$hardcode_automatic 19283 19284 # Set to yes if linker adds runtime paths of dependent libraries 19285 # to runtime path list. 19286 inherit_rpath=$inherit_rpath 19287 19288 # Whether libtool must link a program against all its dependency libraries. 19289 link_all_deplibs=$link_all_deplibs 19290 19291 # Fix the shell variable \$srcfile for the compiler. 19292 fix_srcfile_path=$lt_fix_srcfile_path 19293 19294 # Set to "yes" if exported symbols are required. 19295 always_export_symbols=$always_export_symbols 19296 19297 # The commands to list exported symbols. 19298 export_symbols_cmds=$lt_export_symbols_cmds 19299 19300 # Symbols that should not be listed in the preloaded symbols. 19301 exclude_expsyms=$lt_exclude_expsyms 19302 19303 # Symbols that must always be exported. 19304 include_expsyms=$lt_include_expsyms 19305 19306 # Commands necessary for linking programs (against libraries) with templates. 19307 prelink_cmds=$lt_prelink_cmds 19308 19309 # Specify filename containing input files. 19310 file_list_spec=$lt_file_list_spec 19311 19312 # How to hardcode a shared library path into an executable. 19313 hardcode_action=$hardcode_action 19314 19315 # ### END LIBTOOL CONFIG 19316 19317 _LT_EOF 19318 19319 case $host_os in 19320 aix3*) 19321 cat <<\_LT_EOF >> "$cfgfile" 19322 # AIX sometimes has problems with the GCC collect2 program. For some 19323 # reason, if we set the COLLECT_NAMES environment variable, the problems 19324 # vanish in a puff of smoke. 19325 if test "X${COLLECT_NAMES+set}" != Xset; then 19326 COLLECT_NAMES= 19327 export COLLECT_NAMES 19328 fi 19329 _LT_EOF 19330 ;; 19331 esac 19332 19333 19334 ltmain="$ac_aux_dir/ltmain.sh" 19335 19336 19337 # We use sed instead of cat because bash on DJGPP gets confused if 19338 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19339 # text mode, it properly converts lines to CR/LF. This bash problem 19340 # is reportedly fixed, but why not run on old versions too? 19341 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 19342 || (rm -f "$cfgfile"; exit 1) 19343 19344 case $xsi_shell in 19345 yes) 19346 cat << \_LT_EOF >> "$cfgfile" 19347 19348 # func_dirname file append nondir_replacement 19349 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 19350 # otherwise set result to NONDIR_REPLACEMENT. 19351 func_dirname () 19352 { 19353 case ${1} in 19354 */*) func_dirname_result="${1%/*}${2}" ;; 19355 * ) func_dirname_result="${3}" ;; 19356 esac 19357 } 19358 19359 # func_basename file 19360 func_basename () 19361 { 19362 func_basename_result="${1##*/}" 19363 } 19364 19365 # func_dirname_and_basename file append nondir_replacement 19366 # perform func_basename and func_dirname in a single function 19367 # call: 19368 # dirname: Compute the dirname of FILE. If nonempty, 19369 # add APPEND to the result, otherwise set result 19370 # to NONDIR_REPLACEMENT. 19371 # value returned in "$func_dirname_result" 19372 # basename: Compute filename of FILE. 19373 # value retuned in "$func_basename_result" 19374 # Implementation must be kept synchronized with func_dirname 19375 # and func_basename. For efficiency, we do not delegate to 19376 # those functions but instead duplicate the functionality here. 19377 func_dirname_and_basename () 19378 { 19379 case ${1} in 19380 */*) func_dirname_result="${1%/*}${2}" ;; 19381 * ) func_dirname_result="${3}" ;; 19382 esac 19383 func_basename_result="${1##*/}" 19384 } 19385 19386 # func_stripname prefix suffix name 19387 # strip PREFIX and SUFFIX off of NAME. 19388 # PREFIX and SUFFIX must not contain globbing or regex special 19389 # characters, hashes, percent signs, but SUFFIX may contain a leading 19390 # dot (in which case that matches only a dot). 19391 func_stripname () 19392 { 19393 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 19394 # positional parameters, so assign one to ordinary parameter first. 19395 func_stripname_result=${3} 19396 func_stripname_result=${func_stripname_result#"${1}"} 19397 func_stripname_result=${func_stripname_result%"${2}"} 19398 } 19399 19400 # func_opt_split 19401 func_opt_split () 19402 { 19403 func_opt_split_opt=${1%%=*} 19404 func_opt_split_arg=${1#*=} 19405 } 19406 19407 # func_lo2o object 19408 func_lo2o () 19409 { 19410 case ${1} in 19411 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 19412 *) func_lo2o_result=${1} ;; 19413 esac 19414 } 19415 19416 # func_xform libobj-or-source 19417 func_xform () 19418 { 19419 func_xform_result=${1%.*}.lo 19420 } 19421 19422 # func_arith arithmetic-term... 19423 func_arith () 19424 { 19425 func_arith_result=$(( $* )) 19426 } 19427 19428 # func_len string 19429 # STRING may not start with a hyphen. 19430 func_len () 19431 { 19432 func_len_result=${#1} 19433 } 19434 19435 _LT_EOF 19436 ;; 19437 *) # Bourne compatible functions. 19438 cat << \_LT_EOF >> "$cfgfile" 19439 19440 # func_dirname file append nondir_replacement 19441 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 19442 # otherwise set result to NONDIR_REPLACEMENT. 19443 func_dirname () 19444 { 19445 # Extract subdirectory from the argument. 19446 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 19447 if test "X$func_dirname_result" = "X${1}"; then 19448 func_dirname_result="${3}" 19449 else 19450 func_dirname_result="$func_dirname_result${2}" 19451 fi 19452 } 19453 19454 # func_basename file 19455 func_basename () 19456 { 19457 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 19458 } 19459 19460 19461 # func_stripname prefix suffix name 19462 # strip PREFIX and SUFFIX off of NAME. 19463 # PREFIX and SUFFIX must not contain globbing or regex special 19464 # characters, hashes, percent signs, but SUFFIX may contain a leading 19465 # dot (in which case that matches only a dot). 19466 # func_strip_suffix prefix name 19467 func_stripname () 19468 { 19469 case ${2} in 19470 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 19471 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 19472 esac 19473 } 19474 19475 # sed scripts: 19476 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 19477 my_sed_long_arg='1s/^-[^=]*=//' 19478 19479 # func_opt_split 19480 func_opt_split () 19481 { 19482 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 19483 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 19484 } 19485 19486 # func_lo2o object 19487 func_lo2o () 19488 { 19489 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 19490 } 19491 19492 # func_xform libobj-or-source 19493 func_xform () 19494 { 19495 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 19496 } 19497 19498 # func_arith arithmetic-term... 19499 func_arith () 19500 { 19501 func_arith_result=`expr "$@"` 19502 } 19503 19504 # func_len string 19505 # STRING may not start with a hyphen. 19506 func_len () 19507 { 19508 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 19509 } 19510 19511 _LT_EOF 19512 esac 19513 19514 case $lt_shell_append in 19515 yes) 19516 cat << \_LT_EOF >> "$cfgfile" 19517 19518 # func_append var value 19519 # Append VALUE to the end of shell variable VAR. 19520 func_append () 19521 { 19522 eval "$1+=\$2" 19523 } 19524 _LT_EOF 19525 ;; 19526 *) 19527 cat << \_LT_EOF >> "$cfgfile" 19528 19529 # func_append var value 19530 # Append VALUE to the end of shell variable VAR. 19531 func_append () 19532 { 19533 eval "$1=\$$1\$2" 19534 } 19535 19536 _LT_EOF 19537 ;; 19538 esac 19539 19540 19541 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 19542 || (rm -f "$cfgfile"; exit 1) 19543 19544 mv -f "$cfgfile" "$ofile" || 19545 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19546 chmod +x "$ofile" 19547 19548 ;; 19549 "default-1":C) 19550 for ac_file in $CONFIG_FILES; do 19551 # Support "outfile[:infile[:infile...]]" 19552 case "$ac_file" in 19553 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 19554 esac 19555 # PO directories have a Makefile.in generated from Makefile.in.in. 19556 case "$ac_file" in */Makefile.in) 19557 # Adjust a relative srcdir. 19558 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 19559 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 19560 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 19561 # In autoconf-2.13 it is called $ac_given_srcdir. 19562 # In autoconf-2.50 it is called $srcdir. 19563 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 19564 case "$ac_given_srcdir" in 19565 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 19566 /*) top_srcdir="$ac_given_srcdir" ;; 19567 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 19568 esac 19569 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 19570 rm -f "$ac_dir/POTFILES" 19571 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 19572 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 19573 POMAKEFILEDEPS="POTFILES.in" 19574 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 19575 # on $ac_dir but don't depend on user-specified configuration 19576 # parameters. 19577 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 19578 # The LINGUAS file contains the set of available languages. 19579 if test -n "$OBSOLETE_ALL_LINGUAS"; then 19580 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" 19581 fi 19582 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 19583 # Hide the ALL_LINGUAS assigment from automake. 19584 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 19585 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 19586 else 19587 # The set of available languages was given in configure.ac. 19588 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 19589 fi 19590 case "$ac_given_srcdir" in 19591 .) srcdirpre= ;; 19592 *) srcdirpre='$(srcdir)/' ;; 19593 esac 19594 POFILES= 19595 GMOFILES= 19596 UPDATEPOFILES= 19597 DUMMYPOFILES= 19598 for lang in $ALL_LINGUAS; do 19599 POFILES="$POFILES $srcdirpre$lang.po" 19600 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 19601 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 19602 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 19603 done 19604 # CATALOGS depends on both $ac_dir and the user's LINGUAS 19605 # environment variable. 19606 INST_LINGUAS= 19607 if test -n "$ALL_LINGUAS"; then 19608 for presentlang in $ALL_LINGUAS; do 19609 useit=no 19610 if test "%UNSET%" != "$LINGUAS"; then 19611 desiredlanguages="$LINGUAS" 19612 else 19613 desiredlanguages="$ALL_LINGUAS" 19614 fi 19615 for desiredlang in $desiredlanguages; do 19616 # Use the presentlang catalog if desiredlang is 19617 # a. equal to presentlang, or 19618 # b. a variant of presentlang (because in this case, 19619 # presentlang can be used as a fallback for messages 19620 # which are not translated in the desiredlang catalog). 19621 case "$desiredlang" in 19622 "$presentlang"*) useit=yes;; 19623 esac 19624 done 19625 if test $useit = yes; then 19626 INST_LINGUAS="$INST_LINGUAS $presentlang" 19627 fi 19628 done 19629 fi 19630 CATALOGS= 19631 if test -n "$INST_LINGUAS"; then 19632 for lang in $INST_LINGUAS; do 19633 CATALOGS="$CATALOGS $lang.gmo" 19634 done 19635 fi 19636 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 19637 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" 19638 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 19639 if test -f "$f"; then 19640 case "$f" in 19641 *.orig | *.bak | *~) ;; 19642 *) cat "$f" >> "$ac_dir/Makefile" ;; 19643 esac 19644 fi 19645 done 19646 fi 19647 ;; 19648 esac 19649 done ;; 19650 "default":C) 19651 case "$srcdir" in 19652 .) srcdirpre= ;; 19653 *) srcdirpre='$(srcdir)/' ;; 19654 esac 19655 POFILES= 19656 GMOFILES= 19657 for lang in dummy $OBSOLETE_ALL_LINGUAS; do 19658 if test $lang != dummy; then 19659 POFILES="$POFILES $srcdirpre$lang.po" 19660 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 19661 fi 19662 done 19663 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \ 19664 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \ 19665 -e "s,@POFILES@,$POFILES," \ 19666 -e "s,@GMOFILES@,$GMOFILES," \ 19667 po/Makefile.in > po/Makefile ;; 19668 19669 esac 19670 done # for ac_tag 19671 19672 19673 as_fn_exit 0 19674 _ACEOF 19675 ac_clean_files=$ac_clean_files_save 19676 19677 test $ac_write_fail = 0 || 19678 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19679 19680 19681 # configure is writing to config.log, and then calls config.status. 19682 # config.status does its own redirection, appending to config.log. 19683 # Unfortunately, on DOS this fails, as config.log is still kept open 19684 # by configure, so config.status won't be able to write to it; its 19685 # output is simply discarded. So we exec the FD to /dev/null, 19686 # effectively closing config.log, so it can be properly (re)opened and 19687 # appended to by config.status. When coming back to configure, we 19688 # need to make the FD available again. 19689 if test "$no_create" != yes; then 19690 ac_cs_success=: 19691 ac_config_status_args= 19692 test "$silent" = yes && 19693 ac_config_status_args="$ac_config_status_args --quiet" 19694 exec 5>/dev/null 19695 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19696 exec 5>>config.log 19697 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19698 # would make configure fail if this is the last instruction. 19699 $ac_cs_success || as_fn_exit 1 19700 fi 19701 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19703 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19704 fi 19705 19706 19707 19708 touch config.status.tmp 19709 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then 19710 sed '/as_fn_exit 0/i \ 19711 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \ 19712 touch --reference=Makefile Makefile.tmp \ 19713 mv Makefile.tmp Makefile \ 19714 ' config.status > config.status.tmp 19715 touch --reference=config.status config.status.tmp 19716 mv config.status.tmp config.status 19717 chmod +x config.status 19718 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp 19719 touch --reference=Makefile Makefile.tmp 19720 mv Makefile.tmp Makefile 19721 else 19722 rm -f config.status.tmp 19723 fi 19724