1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.64 for bfd 2.25.51. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 7# Foundation, Inc. 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 16DUALCASE=1; export DUALCASE # for MKS sh 17if 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 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_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. 43if 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 --' 47elif (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' 50else 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' 70fi 71 72# The user is always right. 73if 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 } 79fi 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.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90case $0 in #(( 91 *[\\/]* ) as_myself=$0 ;; 92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 93for as_dir in $PATH 94do 95 IFS=$as_save_IFS 96 test -z "$as_dir" && as_dir=. 97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 98 done 99IFS=$as_save_IFS 100 101 ;; 102esac 103# We did not find ourselves, most probably we were run as `sh COMMAND' 104# in which case we are not to be found in the path. 105if test "x$as_myself" = x; then 106 as_myself=$0 107fi 108if test ! -f "$as_myself"; then 109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 110 exit 1 111fi 112 113# Unset variables that we do not need and which cause bugs (e.g. in 114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 115# suppresses any "Segmentation fault" message there. '((' could 116# trigger a bug in pdksh 5.2.14. 117for as_var in BASH_ENV ENV MAIL MAILPATH 118do eval test x\${$as_var+set} = xset \ 119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 120done 121PS1='$ ' 122PS2='> ' 123PS4='+ ' 124 125# NLS nuisances. 126LC_ALL=C 127export LC_ALL 128LANGUAGE=C 129export LANGUAGE 130 131# CDPATH. 132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 133 134if test "x$CONFIG_SHELL" = x; then 135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 136 emulate sh 137 NULLCMD=: 138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 139 # is contrary to our usage. Disable this feature. 140 alias -g '\${1+\"\$@\"}'='\"\$@\"' 141 setopt NO_GLOB_SUBST 142else 143 case \`(set -o) 2>/dev/null\` in #( 144 *posix*) : 145 set -o posix ;; #( 146 *) : 147 ;; 148esac 149fi 150" 151 as_required="as_fn_return () { (exit \$1); } 152as_fn_success () { as_fn_return 0; } 153as_fn_failure () { as_fn_return 1; } 154as_fn_ret_success () { return 0; } 155as_fn_ret_failure () { return 1; } 156 157exitcode=0 158as_fn_success || { exitcode=1; echo as_fn_success failed.; } 159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 163 164else 165 exitcode=1; echo positional parameters were not saved. 166fi 167test x\$exitcode = x0 || exit 1" 168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 172test \$(( 1 + 1 )) = 2 || exit 1 173 174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 178 PATH=/empty FPATH=/empty; export PATH FPATH 179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 181 if (eval "$as_required") 2>/dev/null; then : 182 as_have_required=yes 183else 184 as_have_required=no 185fi 186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 187 188else 189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 190as_found=false 191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 192do 193 IFS=$as_save_IFS 194 test -z "$as_dir" && as_dir=. 195 as_found=: 196 case $as_dir in #( 197 /*) 198 for as_base in sh bash ksh sh5; do 199 # Try only shells that exist, to save several forks. 200 as_shell=$as_dir/$as_base 201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 203 CONFIG_SHELL=$as_shell as_have_required=yes 204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 205 break 2 206fi 207fi 208 done;; 209 esac 210 as_found=false 211done 212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 214 CONFIG_SHELL=$SHELL as_have_required=yes 215fi; } 216IFS=$as_save_IFS 217 218 219 if test "x$CONFIG_SHELL" != x; then : 220 # We cannot yet assume a decent shell, so we have to provide a 221 # neutralization value for shells without unset; and this also 222 # works around shells that cannot unset nonexistent variables. 223 BASH_ENV=/dev/null 224 ENV=/dev/null 225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 226 export CONFIG_SHELL 227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 228fi 229 230 if test x$as_have_required = xno; then : 231 $as_echo "$0: This script requires a shell more modern than all" 232 $as_echo "$0: the shells that I found on your system." 233 if test x${ZSH_VERSION+set} = xset ; then 234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 235 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 236 else 237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 238$0: including any error possibly output before this 239$0: message. Then install a modern shell, or manually run 240$0: the script under such a shell if you do have one." 241 fi 242 exit 1 243fi 244fi 245fi 246SHELL=${CONFIG_SHELL-/bin/sh} 247export SHELL 248# Unset more variables known to interfere with behavior of common tools. 249CLICOLOR_FORCE= GREP_OPTIONS= 250unset CLICOLOR_FORCE GREP_OPTIONS 251 252## --------------------- ## 253## M4sh Shell Functions. ## 254## --------------------- ## 255# as_fn_unset VAR 256# --------------- 257# Portably unset VAR. 258as_fn_unset () 259{ 260 { eval $1=; unset $1;} 261} 262as_unset=as_fn_unset 263 264# as_fn_set_status STATUS 265# ----------------------- 266# Set $? to STATUS, without forking. 267as_fn_set_status () 268{ 269 return $1 270} # as_fn_set_status 271 272# as_fn_exit STATUS 273# ----------------- 274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 275as_fn_exit () 276{ 277 set +e 278 as_fn_set_status $1 279 exit $1 280} # as_fn_exit 281 282# as_fn_mkdir_p 283# ------------- 284# Create "$as_dir" as a directory, including parents if necessary. 285as_fn_mkdir_p () 286{ 287 288 case $as_dir in #( 289 -*) as_dir=./$as_dir;; 290 esac 291 test -d "$as_dir" || eval $as_mkdir_p || { 292 as_dirs= 293 while :; do 294 case $as_dir in #( 295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 296 *) as_qdir=$as_dir;; 297 esac 298 as_dirs="'$as_qdir' $as_dirs" 299 as_dir=`$as_dirname -- "$as_dir" || 300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 301 X"$as_dir" : 'X\(//\)[^/]' \| \ 302 X"$as_dir" : 'X\(//\)$' \| \ 303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 304$as_echo X"$as_dir" | 305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 306 s//\1/ 307 q 308 } 309 /^X\(\/\/\)[^/].*/{ 310 s//\1/ 311 q 312 } 313 /^X\(\/\/\)$/{ 314 s//\1/ 315 q 316 } 317 /^X\(\/\).*/{ 318 s//\1/ 319 q 320 } 321 s/.*/./; q'` 322 test -d "$as_dir" && break 323 done 324 test -z "$as_dirs" || eval "mkdir $as_dirs" 325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 326 327 328} # as_fn_mkdir_p 329# as_fn_append VAR VALUE 330# ---------------------- 331# Append the text in VALUE to the end of the definition contained in VAR. Take 332# advantage of any shell optimizations that allow amortized linear growth over 333# repeated appends, instead of the typical quadratic growth present in naive 334# implementations. 335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 336 eval 'as_fn_append () 337 { 338 eval $1+=\$2 339 }' 340else 341 as_fn_append () 342 { 343 eval $1=\$$1\$2 344 } 345fi # as_fn_append 346 347# as_fn_arith ARG... 348# ------------------ 349# Perform arithmetic evaluation on the ARGs, and store the result in the 350# global $as_val. Take advantage of shells that can avoid forks. The arguments 351# must be portable across $(()) and expr. 352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 353 eval 'as_fn_arith () 354 { 355 as_val=$(( $* )) 356 }' 357else 358 as_fn_arith () 359 { 360 as_val=`expr "$@" || test $? -eq 1` 361 } 362fi # as_fn_arith 363 364 365# as_fn_error ERROR [LINENO LOG_FD] 366# --------------------------------- 367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 369# script with status $?, using 1 if that was 0. 370as_fn_error () 371{ 372 as_status=$?; test $as_status -eq 0 && as_status=1 373 if test "$3"; then 374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 376 fi 377 $as_echo "$as_me: error: $1" >&2 378 as_fn_exit $as_status 379} # as_fn_error 380 381if expr a : '\(a\)' >/dev/null 2>&1 && 382 test "X`expr 00001 : '.*\(...\)'`" = X001; then 383 as_expr=expr 384else 385 as_expr=false 386fi 387 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 389 as_basename=basename 390else 391 as_basename=false 392fi 393 394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 395 as_dirname=dirname 396else 397 as_dirname=false 398fi 399 400as_me=`$as_basename -- "$0" || 401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 402 X"$0" : 'X\(//\)$' \| \ 403 X"$0" : 'X\(/\)' \| . 2>/dev/null || 404$as_echo X/"$0" | 405 sed '/^.*\/\([^/][^/]*\)\/*$/{ 406 s//\1/ 407 q 408 } 409 /^X\/\(\/\/\)$/{ 410 s//\1/ 411 q 412 } 413 /^X\/\(\/\).*/{ 414 s//\1/ 415 q 416 } 417 s/.*/./; q'` 418 419# Avoid depending upon Character Ranges. 420as_cr_letters='abcdefghijklmnopqrstuvwxyz' 421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 422as_cr_Letters=$as_cr_letters$as_cr_LETTERS 423as_cr_digits='0123456789' 424as_cr_alnum=$as_cr_Letters$as_cr_digits 425 426 427 as_lineno_1=$LINENO as_lineno_1a=$LINENO 428 as_lineno_2=$LINENO as_lineno_2a=$LINENO 429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 431 as_me=bfd_$as_me # XXX don't overwrite our caller's configure.lineno 432 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 433 sed -n ' 434 p 435 /[$]LINENO/= 436 ' <$as_myself | 437 sed ' 438 s/[$]LINENO.*/&-/ 439 t lineno 440 b 441 :lineno 442 N 443 :loop 444 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 445 t loop 446 s/-\n.*// 447 ' >$as_me.lineno && 448 chmod +x "$as_me.lineno" || 449 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 450 451 # Don't try to exec as it changes $[0], causing all sort of problems 452 # (the dirname of $[0] is not the place where we might find the 453 # original and so on. Autoconf is especially sensitive to this). 454 . "./$as_me.lineno" 455 # Exit status is that of the last command. 456 exit 457} 458 459ECHO_C= ECHO_N= ECHO_T= 460case `echo -n x` in #((((( 461-n*) 462 case `echo 'xy\c'` in 463 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 464 xy) ECHO_C='\c';; 465 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 466 ECHO_T=' ';; 467 esac;; 468*) 469 ECHO_N='-n';; 470esac 471 472rm -f conf$$ conf$$.exe conf$$.file 473if test -d conf$$.dir; then 474 rm -f conf$$.dir/conf$$.file 475else 476 rm -f conf$$.dir 477 mkdir conf$$.dir 2>/dev/null 478fi 479if (echo >conf$$.file) 2>/dev/null; then 480 if ln -s conf$$.file conf$$ 2>/dev/null; then 481 as_ln_s='ln -s' 482 # ... but there are two gotchas: 483 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 484 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 485 # In both cases, we have to default to `cp -p'. 486 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 487 as_ln_s='cp -p' 488 elif ln conf$$.file conf$$ 2>/dev/null; then 489 as_ln_s=ln 490 else 491 as_ln_s='cp -p' 492 fi 493else 494 as_ln_s='cp -p' 495fi 496rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 497rmdir conf$$.dir 2>/dev/null 498 499if mkdir -p . 2>/dev/null; then 500 as_mkdir_p='mkdir -p "$as_dir"' 501else 502 test -d ./-p && rmdir ./-p 503 as_mkdir_p=false 504fi 505 506if test -x / >/dev/null 2>&1; then 507 as_test_x='test -x' 508else 509 if ls -dL / >/dev/null 2>&1; then 510 as_ls_L_option=L 511 else 512 as_ls_L_option= 513 fi 514 as_test_x=' 515 eval sh -c '\'' 516 if test -d "$1"; then 517 test -d "$1/."; 518 else 519 case $1 in #( 520 -*)set "./$1";; 521 esac; 522 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 523 ???[sx]*):;;*)false;;esac;fi 524 '\'' sh 525 ' 526fi 527as_executable_p=$as_test_x 528 529# Sed expression to map a string onto a valid CPP name. 530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 531 532# Sed expression to map a string onto a valid variable name. 533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 534 535SHELL=${CONFIG_SHELL-/bin/sh} 536 537 538exec 7<&0 </dev/null 6>&1 539 540# Name of the host. 541# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 542# so uname gets run too. 543ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 544 545# 546# Initializations. 547# 548ac_default_prefix=/usr/local 549ac_clean_files= 550ac_config_libobj_dir=. 551LIBOBJS= 552cross_compiling=no 553subdirs= 554MFLAGS= 555MAKEFLAGS= 556 557# Identity of this package. 558PACKAGE_NAME='bfd' 559PACKAGE_TARNAME='bfd' 560PACKAGE_VERSION='2.25.51' 561PACKAGE_STRING='bfd 2.25.51' 562PACKAGE_BUGREPORT='' 563PACKAGE_URL='' 564 565ac_unique_file="libbfd.c" 566# Factoring default headers for most tests. 567ac_includes_default="\ 568#include <stdio.h> 569#ifdef HAVE_SYS_TYPES_H 570# include <sys/types.h> 571#endif 572#ifdef HAVE_SYS_STAT_H 573# include <sys/stat.h> 574#endif 575#ifdef STDC_HEADERS 576# include <stdlib.h> 577# include <stddef.h> 578#else 579# ifdef HAVE_STDLIB_H 580# include <stdlib.h> 581# endif 582#endif 583#ifdef HAVE_STRING_H 584# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 585# include <memory.h> 586# endif 587# include <string.h> 588#endif 589#ifdef HAVE_STRINGS_H 590# include <strings.h> 591#endif 592#ifdef HAVE_INTTYPES_H 593# include <inttypes.h> 594#endif 595#ifdef HAVE_STDINT_H 596# include <stdint.h> 597#endif 598#ifdef HAVE_UNISTD_H 599# include <unistd.h> 600#endif" 601 602ac_subst_vars='am__EXEEXT_FALSE 603am__EXEEXT_TRUE 604LTLIBOBJS 605LIBOBJS 606havevecs 607tdefaults 608bfd_ufile_ptr 609bfd_file_ptr 610lt_cv_dlopen_libs 611supports_plugins 612bfd_default_target_size 613bfd_machines 614bfd_backends 615all_backends 616bfd64_libs 617wordsize 618TDEFINES 619SHARED_LIBADD 620SHARED_LDFLAGS 621LIBM 622COREFLAG 623COREFILE 624zlibinc 625zlibdir 626EXEEXT_FOR_BUILD 627CC_FOR_BUILD 628BFD_HOSTPTR_T 629BFD_HOST_U_64_BIT 630BFD_HOST_64_BIT 631BFD_HOST_64_BIT_DEFINED 632BFD_HOST_64BIT_LONG_LONG 633BFD_HOST_64BIT_LONG 634HDEFINES 635MSGMERGE 636MSGFMT 637MKINSTALLDIRS 638CATOBJEXT 639GENCAT 640INSTOBJEXT 641DATADIRNAME 642CATALOGS 643POSUB 644GMSGFMT 645XGETTEXT 646INCINTL 647LIBINTL_DEP 648LIBINTL 649USE_NLS 650bfdincludedir 651bfdlibdir 652target_noncanonical 653host_noncanonical 654INSTALL_LIBBFD_FALSE 655INSTALL_LIBBFD_TRUE 656GENINSRC_NEVER_FALSE 657GENINSRC_NEVER_TRUE 658MAINT 659MAINTAINER_MODE_FALSE 660MAINTAINER_MODE_TRUE 661NO_WERROR 662WARN_CFLAGS 663REPORT_BUGS_TEXI 664REPORT_BUGS_TO 665PKGVERSION 666DEBUGDIR 667PLUGINS_FALSE 668PLUGINS_TRUE 669OTOOL64 670OTOOL 671LIPO 672NMEDIT 673DSYMUTIL 674OBJDUMP 675LN_S 676NM 677ac_ct_DUMPBIN 678DUMPBIN 679LD 680FGREP 681SED 682LIBTOOL 683EGREP 684GREP 685CPP 686RANLIB 687AR 688am__fastdepCC_FALSE 689am__fastdepCC_TRUE 690CCDEPMODE 691AMDEPBACKSLASH 692AMDEP_FALSE 693AMDEP_TRUE 694am__quote 695am__include 696DEPDIR 697am__untar 698am__tar 699AMTAR 700am__leading_dot 701SET_MAKE 702AWK 703mkdir_p 704MKDIR_P 705INSTALL_STRIP_PROGRAM 706STRIP 707install_sh 708MAKEINFO 709AUTOHEADER 710AUTOMAKE 711AUTOCONF 712ACLOCAL 713VERSION 714PACKAGE 715CYGPATH_W 716am__isrc 717INSTALL_DATA 718INSTALL_SCRIPT 719INSTALL_PROGRAM 720OBJEXT 721EXEEXT 722ac_ct_CC 723CPPFLAGS 724LDFLAGS 725CFLAGS 726CC 727target_os 728target_vendor 729target_cpu 730target 731host_os 732host_vendor 733host_cpu 734host 735build_os 736build_vendor 737build_cpu 738build 739target_alias 740host_alias 741build_alias 742LIBS 743ECHO_T 744ECHO_N 745ECHO_C 746DEFS 747mandir 748localedir 749libdir 750psdir 751pdfdir 752dvidir 753htmldir 754infodir 755docdir 756oldincludedir 757includedir 758localstatedir 759sharedstatedir 760sysconfdir 761datadir 762datarootdir 763libexecdir 764sbindir 765bindir 766program_transform_name 767prefix 768exec_prefix 769PACKAGE_URL 770PACKAGE_BUGREPORT 771PACKAGE_STRING 772PACKAGE_VERSION 773PACKAGE_TARNAME 774PACKAGE_NAME 775PATH_SEPARATOR 776SHELL' 777ac_subst_files='' 778ac_user_opts=' 779enable_option_checking 780enable_dependency_tracking 781enable_shared 782enable_static 783with_pic 784enable_fast_install 785with_gnu_ld 786enable_libtool_lock 787enable_plugins 788enable_largefile 789enable_64_bit_bfd 790enable_targets 791with_mmap 792enable_secureplt 793enable_leading_mingw64_underscores 794with_separate_debug_dir 795enable_elf_stt_common 796with_pkgversion 797with_bugurl 798enable_werror 799enable_build_warnings 800enable_maintainer_mode 801enable_install_libbfd 802enable_nls 803with_system_zlib 804' 805 ac_precious_vars='build_alias 806host_alias 807target_alias 808CC 809CFLAGS 810LDFLAGS 811LIBS 812CPPFLAGS 813CPP' 814 815 816# Initialize some variables set by options. 817ac_init_help= 818ac_init_version=false 819ac_unrecognized_opts= 820ac_unrecognized_sep= 821# The variables have the same names as the options, with 822# dashes changed to underlines. 823cache_file=/dev/null 824exec_prefix=NONE 825no_create= 826no_recursion= 827prefix=NONE 828program_prefix=NONE 829program_suffix=NONE 830program_transform_name=s,x,x, 831silent= 832site= 833srcdir= 834verbose= 835x_includes=NONE 836x_libraries=NONE 837 838# Installation directory options. 839# These are left unexpanded so users can "make install exec_prefix=/foo" 840# and all the variables that are supposed to be based on exec_prefix 841# by default will actually change. 842# Use braces instead of parens because sh, perl, etc. also accept them. 843# (The list follows the same order as the GNU Coding Standards.) 844bindir='${exec_prefix}/bin' 845sbindir='${exec_prefix}/sbin' 846libexecdir='${exec_prefix}/libexec' 847datarootdir='${prefix}/share' 848datadir='${datarootdir}' 849sysconfdir='${prefix}/etc' 850sharedstatedir='${prefix}/com' 851localstatedir='${prefix}/var' 852includedir='${prefix}/include' 853oldincludedir='/usr/include' 854docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 855infodir='${datarootdir}/info' 856htmldir='${docdir}' 857dvidir='${docdir}' 858pdfdir='${docdir}' 859psdir='${docdir}' 860libdir='${exec_prefix}/lib' 861localedir='${datarootdir}/locale' 862mandir='${datarootdir}/man' 863 864ac_prev= 865ac_dashdash= 866for ac_option 867do 868 # If the previous option needs an argument, assign it. 869 if test -n "$ac_prev"; then 870 eval $ac_prev=\$ac_option 871 ac_prev= 872 continue 873 fi 874 875 case $ac_option in 876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 877 *) ac_optarg=yes ;; 878 esac 879 880 # Accept the important Cygnus configure options, so we can diagnose typos. 881 882 case $ac_dashdash$ac_option in 883 --) 884 ac_dashdash=yes ;; 885 886 -bindir | --bindir | --bindi | --bind | --bin | --bi) 887 ac_prev=bindir ;; 888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 889 bindir=$ac_optarg ;; 890 891 -build | --build | --buil | --bui | --bu) 892 ac_prev=build_alias ;; 893 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 894 build_alias=$ac_optarg ;; 895 896 -cache-file | --cache-file | --cache-fil | --cache-fi \ 897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 898 ac_prev=cache_file ;; 899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 901 cache_file=$ac_optarg ;; 902 903 --config-cache | -C) 904 cache_file=config.cache ;; 905 906 -datadir | --datadir | --datadi | --datad) 907 ac_prev=datadir ;; 908 -datadir=* | --datadir=* | --datadi=* | --datad=*) 909 datadir=$ac_optarg ;; 910 911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 912 | --dataroo | --dataro | --datar) 913 ac_prev=datarootdir ;; 914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 916 datarootdir=$ac_optarg ;; 917 918 -disable-* | --disable-*) 919 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 920 # Reject names that are not valid shell variable names. 921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 922 as_fn_error "invalid feature name: $ac_useropt" 923 ac_useropt_orig=$ac_useropt 924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 925 case $ac_user_opts in 926 *" 927"enable_$ac_useropt" 928"*) ;; 929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 930 ac_unrecognized_sep=', ';; 931 esac 932 eval enable_$ac_useropt=no ;; 933 934 -docdir | --docdir | --docdi | --doc | --do) 935 ac_prev=docdir ;; 936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 937 docdir=$ac_optarg ;; 938 939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 940 ac_prev=dvidir ;; 941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 942 dvidir=$ac_optarg ;; 943 944 -enable-* | --enable-*) 945 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 946 # Reject names that are not valid shell variable names. 947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 948 as_fn_error "invalid feature name: $ac_useropt" 949 ac_useropt_orig=$ac_useropt 950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 951 case $ac_user_opts in 952 *" 953"enable_$ac_useropt" 954"*) ;; 955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 956 ac_unrecognized_sep=', ';; 957 esac 958 eval enable_$ac_useropt=\$ac_optarg ;; 959 960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 962 | --exec | --exe | --ex) 963 ac_prev=exec_prefix ;; 964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 966 | --exec=* | --exe=* | --ex=*) 967 exec_prefix=$ac_optarg ;; 968 969 -gas | --gas | --ga | --g) 970 # Obsolete; use --with-gas. 971 with_gas=yes ;; 972 973 -help | --help | --hel | --he | -h) 974 ac_init_help=long ;; 975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 976 ac_init_help=recursive ;; 977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 978 ac_init_help=short ;; 979 980 -host | --host | --hos | --ho) 981 ac_prev=host_alias ;; 982 -host=* | --host=* | --hos=* | --ho=*) 983 host_alias=$ac_optarg ;; 984 985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 986 ac_prev=htmldir ;; 987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 988 | --ht=*) 989 htmldir=$ac_optarg ;; 990 991 -includedir | --includedir | --includedi | --included | --include \ 992 | --includ | --inclu | --incl | --inc) 993 ac_prev=includedir ;; 994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 995 | --includ=* | --inclu=* | --incl=* | --inc=*) 996 includedir=$ac_optarg ;; 997 998 -infodir | --infodir | --infodi | --infod | --info | --inf) 999 ac_prev=infodir ;; 1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1001 infodir=$ac_optarg ;; 1002 1003 -libdir | --libdir | --libdi | --libd) 1004 ac_prev=libdir ;; 1005 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1006 libdir=$ac_optarg ;; 1007 1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1009 | --libexe | --libex | --libe) 1010 ac_prev=libexecdir ;; 1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1012 | --libexe=* | --libex=* | --libe=*) 1013 libexecdir=$ac_optarg ;; 1014 1015 -localedir | --localedir | --localedi | --localed | --locale) 1016 ac_prev=localedir ;; 1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1018 localedir=$ac_optarg ;; 1019 1020 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1021 | --localstate | --localstat | --localsta | --localst | --locals) 1022 ac_prev=localstatedir ;; 1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1025 localstatedir=$ac_optarg ;; 1026 1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1028 ac_prev=mandir ;; 1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1030 mandir=$ac_optarg ;; 1031 1032 -nfp | --nfp | --nf) 1033 # Obsolete; use --without-fp. 1034 with_fp=no ;; 1035 1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1037 | --no-cr | --no-c | -n) 1038 no_create=yes ;; 1039 1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1042 no_recursion=yes ;; 1043 1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1046 | --oldin | --oldi | --old | --ol | --o) 1047 ac_prev=oldincludedir ;; 1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1051 oldincludedir=$ac_optarg ;; 1052 1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1054 ac_prev=prefix ;; 1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1056 prefix=$ac_optarg ;; 1057 1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1059 | --program-pre | --program-pr | --program-p) 1060 ac_prev=program_prefix ;; 1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1063 program_prefix=$ac_optarg ;; 1064 1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1066 | --program-suf | --program-su | --program-s) 1067 ac_prev=program_suffix ;; 1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1070 program_suffix=$ac_optarg ;; 1071 1072 -program-transform-name | --program-transform-name \ 1073 | --program-transform-nam | --program-transform-na \ 1074 | --program-transform-n | --program-transform- \ 1075 | --program-transform | --program-transfor \ 1076 | --program-transfo | --program-transf \ 1077 | --program-trans | --program-tran \ 1078 | --progr-tra | --program-tr | --program-t) 1079 ac_prev=program_transform_name ;; 1080 -program-transform-name=* | --program-transform-name=* \ 1081 | --program-transform-nam=* | --program-transform-na=* \ 1082 | --program-transform-n=* | --program-transform-=* \ 1083 | --program-transform=* | --program-transfor=* \ 1084 | --program-transfo=* | --program-transf=* \ 1085 | --program-trans=* | --program-tran=* \ 1086 | --progr-tra=* | --program-tr=* | --program-t=*) 1087 program_transform_name=$ac_optarg ;; 1088 1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1090 ac_prev=pdfdir ;; 1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1092 pdfdir=$ac_optarg ;; 1093 1094 -psdir | --psdir | --psdi | --psd | --ps) 1095 ac_prev=psdir ;; 1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1097 psdir=$ac_optarg ;; 1098 1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1100 | -silent | --silent | --silen | --sile | --sil) 1101 silent=yes ;; 1102 1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1104 ac_prev=sbindir ;; 1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1106 | --sbi=* | --sb=*) 1107 sbindir=$ac_optarg ;; 1108 1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1111 | --sharedst | --shareds | --shared | --share | --shar \ 1112 | --sha | --sh) 1113 ac_prev=sharedstatedir ;; 1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1117 | --sha=* | --sh=*) 1118 sharedstatedir=$ac_optarg ;; 1119 1120 -site | --site | --sit) 1121 ac_prev=site ;; 1122 -site=* | --site=* | --sit=*) 1123 site=$ac_optarg ;; 1124 1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1126 ac_prev=srcdir ;; 1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1128 srcdir=$ac_optarg ;; 1129 1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1131 | --syscon | --sysco | --sysc | --sys | --sy) 1132 ac_prev=sysconfdir ;; 1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1135 sysconfdir=$ac_optarg ;; 1136 1137 -target | --target | --targe | --targ | --tar | --ta | --t) 1138 ac_prev=target_alias ;; 1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1140 target_alias=$ac_optarg ;; 1141 1142 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1143 verbose=yes ;; 1144 1145 -version | --version | --versio | --versi | --vers | -V) 1146 ac_init_version=: ;; 1147 1148 -with-* | --with-*) 1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1150 # Reject names that are not valid shell variable names. 1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1152 as_fn_error "invalid package name: $ac_useropt" 1153 ac_useropt_orig=$ac_useropt 1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1155 case $ac_user_opts in 1156 *" 1157"with_$ac_useropt" 1158"*) ;; 1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1160 ac_unrecognized_sep=', ';; 1161 esac 1162 eval with_$ac_useropt=\$ac_optarg ;; 1163 1164 -without-* | --without-*) 1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1166 # Reject names that are not valid shell variable names. 1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1168 as_fn_error "invalid package name: $ac_useropt" 1169 ac_useropt_orig=$ac_useropt 1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1171 case $ac_user_opts in 1172 *" 1173"with_$ac_useropt" 1174"*) ;; 1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1176 ac_unrecognized_sep=', ';; 1177 esac 1178 eval with_$ac_useropt=no ;; 1179 1180 --x) 1181 # Obsolete; use --with-x. 1182 with_x=yes ;; 1183 1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1185 | --x-incl | --x-inc | --x-in | --x-i) 1186 ac_prev=x_includes ;; 1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1189 x_includes=$ac_optarg ;; 1190 1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1193 ac_prev=x_libraries ;; 1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1196 x_libraries=$ac_optarg ;; 1197 1198 -*) as_fn_error "unrecognized option: \`$ac_option' 1199Try \`$0 --help' for more information." 1200 ;; 1201 1202 *=*) 1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1204 # Reject names that are not valid shell variable names. 1205 case $ac_envvar in #( 1206 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1207 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1208 esac 1209 eval $ac_envvar=\$ac_optarg 1210 export $ac_envvar ;; 1211 1212 *) 1213 # FIXME: should be removed in autoconf 3.0. 1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1217 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1218 ;; 1219 1220 esac 1221done 1222 1223if test -n "$ac_prev"; then 1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1225 as_fn_error "missing argument to $ac_option" 1226fi 1227 1228if test -n "$ac_unrecognized_opts"; then 1229 case $enable_option_checking in 1230 no) ;; 1231 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1233 esac 1234fi 1235 1236# Check all directory arguments for consistency. 1237for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1238 datadir sysconfdir sharedstatedir localstatedir includedir \ 1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1240 libdir localedir mandir 1241do 1242 eval ac_val=\$$ac_var 1243 # Remove trailing slashes. 1244 case $ac_val in 1245 */ ) 1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1247 eval $ac_var=\$ac_val;; 1248 esac 1249 # Be sure to have absolute directory names. 1250 case $ac_val in 1251 [\\/$]* | ?:[\\/]* ) continue;; 1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1253 esac 1254 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1255done 1256 1257# There might be people who depend on the old broken behavior: `$host' 1258# used to hold the argument of --host etc. 1259# FIXME: To remove some day. 1260build=$build_alias 1261host=$host_alias 1262target=$target_alias 1263 1264# FIXME: To remove some day. 1265if test "x$host_alias" != x; then 1266 if test "x$build_alias" = x; then 1267 cross_compiling=maybe 1268 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1269 If a cross compiler is detected then cross compile mode will be used." >&2 1270 elif test "x$build_alias" != "x$host_alias"; then 1271 cross_compiling=yes 1272 fi 1273fi 1274 1275ac_tool_prefix= 1276test -n "$host_alias" && ac_tool_prefix=$host_alias- 1277 1278test "$silent" = yes && exec 6>/dev/null 1279 1280 1281ac_pwd=`pwd` && test -n "$ac_pwd" && 1282ac_ls_di=`ls -di .` && 1283ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1284 as_fn_error "working directory cannot be determined" 1285test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1286 as_fn_error "pwd does not report name of working directory" 1287 1288 1289# Find the source files, if location was not specified. 1290if test -z "$srcdir"; then 1291 ac_srcdir_defaulted=yes 1292 # Try the directory containing this script, then the parent directory. 1293 ac_confdir=`$as_dirname -- "$as_myself" || 1294$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1295 X"$as_myself" : 'X\(//\)[^/]' \| \ 1296 X"$as_myself" : 'X\(//\)$' \| \ 1297 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1298$as_echo X"$as_myself" | 1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\/\)[^/].*/{ 1304 s//\1/ 1305 q 1306 } 1307 /^X\(\/\/\)$/{ 1308 s//\1/ 1309 q 1310 } 1311 /^X\(\/\).*/{ 1312 s//\1/ 1313 q 1314 } 1315 s/.*/./; q'` 1316 srcdir=$ac_confdir 1317 if test ! -r "$srcdir/$ac_unique_file"; then 1318 srcdir=.. 1319 fi 1320else 1321 ac_srcdir_defaulted=no 1322fi 1323if test ! -r "$srcdir/$ac_unique_file"; then 1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1325 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1326fi 1327ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1328ac_abs_confdir=`( 1329 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1330 pwd)` 1331# When building in place, set srcdir=. 1332if test "$ac_abs_confdir" = "$ac_pwd"; then 1333 srcdir=. 1334fi 1335# Remove unnecessary trailing slashes from srcdir. 1336# Double slashes in file names in object file debugging info 1337# mess up M-x gdb in Emacs. 1338case $srcdir in 1339*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1340esac 1341for ac_var in $ac_precious_vars; do 1342 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1343 eval ac_env_${ac_var}_value=\$${ac_var} 1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1345 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1346done 1347 1348# 1349# Report the --help message. 1350# 1351if test "$ac_init_help" = "long"; then 1352 # Omit some internal or obsolete options to make the list less imposing. 1353 # This message is too long to be a string in the A/UX 3.1 sh. 1354 cat <<_ACEOF 1355\`configure' configures bfd 2.25.51 to adapt to many kinds of systems. 1356 1357Usage: $0 [OPTION]... [VAR=VALUE]... 1358 1359To assign environment variables (e.g., CC, CFLAGS...), specify them as 1360VAR=VALUE. See below for descriptions of some of the useful variables. 1361 1362Defaults for the options are specified in brackets. 1363 1364Configuration: 1365 -h, --help display this help and exit 1366 --help=short display options specific to this package 1367 --help=recursive display the short help of all the included packages 1368 -V, --version display version information and exit 1369 -q, --quiet, --silent do not print \`checking...' messages 1370 --cache-file=FILE cache test results in FILE [disabled] 1371 -C, --config-cache alias for \`--cache-file=config.cache' 1372 -n, --no-create do not create output files 1373 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1374 1375Installation directories: 1376 --prefix=PREFIX install architecture-independent files in PREFIX 1377 [$ac_default_prefix] 1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1379 [PREFIX] 1380 1381By default, \`make install' will install all the files in 1382\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1383an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1384for instance \`--prefix=\$HOME'. 1385 1386For better control, use the options below. 1387 1388Fine tuning of the installation directories: 1389 --bindir=DIR user executables [EPREFIX/bin] 1390 --sbindir=DIR system admin executables [EPREFIX/sbin] 1391 --libexecdir=DIR program executables [EPREFIX/libexec] 1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1395 --libdir=DIR object code libraries [EPREFIX/lib] 1396 --includedir=DIR C header files [PREFIX/include] 1397 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1400 --infodir=DIR info documentation [DATAROOTDIR/info] 1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1402 --mandir=DIR man documentation [DATAROOTDIR/man] 1403 --docdir=DIR documentation root [DATAROOTDIR/doc/bfd] 1404 --htmldir=DIR html documentation [DOCDIR] 1405 --dvidir=DIR dvi documentation [DOCDIR] 1406 --pdfdir=DIR pdf documentation [DOCDIR] 1407 --psdir=DIR ps documentation [DOCDIR] 1408_ACEOF 1409 1410 cat <<\_ACEOF 1411 1412Program names: 1413 --program-prefix=PREFIX prepend PREFIX to installed program names 1414 --program-suffix=SUFFIX append SUFFIX to installed program names 1415 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1416 1417System types: 1418 --build=BUILD configure for building on BUILD [guessed] 1419 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1420 --target=TARGET configure for building compilers for TARGET [HOST] 1421_ACEOF 1422fi 1423 1424if test -n "$ac_init_help"; then 1425 case $ac_init_help in 1426 short | recursive ) echo "Configuration of bfd 2.25.51:";; 1427 esac 1428 cat <<\_ACEOF 1429 1430Optional Features: 1431 --disable-option-checking ignore unrecognized --enable/--with options 1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1434 --disable-dependency-tracking speeds up one-time build 1435 --enable-dependency-tracking do not reject slow dependency extractors 1436 --enable-shared[=PKGS] build shared libraries [default=no] 1437 --enable-static[=PKGS] build static libraries [default=yes] 1438 --enable-fast-install[=PKGS] 1439 optimize for fast installation [default=yes] 1440 --disable-libtool-lock avoid locking (might break parallel builds) 1441 --enable-plugins Enable support for plugins 1442 --disable-largefile omit support for large files 1443 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) 1444 --enable-targets alternative target configurations 1445 --enable-secureplt Default to creating read-only plt entries 1446 --enable-leading-mingw64-underscores 1447 Enable leading underscores on 64 bit mingw targets 1448 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type 1449 --enable-werror treat compile warnings as errors 1450 --enable-build-warnings enable build-time compiler warnings 1451 --enable-maintainer-mode enable make rules and dependencies not useful 1452 (and sometimes confusing) to the casual installer 1453 --enable-install-libbfd controls installation of libbfd and related headers 1454 --disable-nls do not use Native Language Support 1455 1456Optional Packages: 1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1459 --with-pic try to use only PIC/non-PIC objects [default=use 1460 both] 1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1462 --with-mmap try using mmap for BFD input files if available 1463 --with-separate-debug-dir=DIR 1464 Look for global separate debug info in DIR 1465 [default=LIBDIR/debug] 1466 --with-pkgversion=PKG Use PKG in the version string in place of "GNU 1467 Binutils" 1468 --with-bugurl=URL Direct users to URL to report a bug 1469 --with-system-zlib use installed libz 1470 1471Some influential environment variables: 1472 CC C compiler command 1473 CFLAGS C compiler flags 1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1475 nonstandard directory <lib dir> 1476 LIBS libraries to pass to the linker, e.g. -l<library> 1477 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1478 you have headers in a nonstandard directory <include dir> 1479 CPP C preprocessor 1480 1481Use these variables to override the choices made by `configure' or to help 1482it to find libraries and programs with nonstandard names/locations. 1483 1484Report bugs to the package provider. 1485_ACEOF 1486ac_status=$? 1487fi 1488 1489if test "$ac_init_help" = "recursive"; then 1490 # If there are subdirs, report their specific --help. 1491 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1492 test -d "$ac_dir" || 1493 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1494 continue 1495 ac_builddir=. 1496 1497case "$ac_dir" in 1498.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1499*) 1500 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1501 # A ".." for each directory in $ac_dir_suffix. 1502 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1503 case $ac_top_builddir_sub in 1504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1506 esac ;; 1507esac 1508ac_abs_top_builddir=$ac_pwd 1509ac_abs_builddir=$ac_pwd$ac_dir_suffix 1510# for backward compatibility: 1511ac_top_builddir=$ac_top_build_prefix 1512 1513case $srcdir in 1514 .) # We are building in place. 1515 ac_srcdir=. 1516 ac_top_srcdir=$ac_top_builddir_sub 1517 ac_abs_top_srcdir=$ac_pwd ;; 1518 [\\/]* | ?:[\\/]* ) # Absolute name. 1519 ac_srcdir=$srcdir$ac_dir_suffix; 1520 ac_top_srcdir=$srcdir 1521 ac_abs_top_srcdir=$srcdir ;; 1522 *) # Relative name. 1523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1524 ac_top_srcdir=$ac_top_build_prefix$srcdir 1525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1526esac 1527ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1528 1529 cd "$ac_dir" || { ac_status=$?; continue; } 1530 # Check for guested configure. 1531 if test -f "$ac_srcdir/configure.gnu"; then 1532 echo && 1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1534 elif test -f "$ac_srcdir/configure"; then 1535 echo && 1536 $SHELL "$ac_srcdir/configure" --help=recursive 1537 else 1538 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1539 fi || ac_status=$? 1540 cd "$ac_pwd" || { ac_status=$?; break; } 1541 done 1542fi 1543 1544test -n "$ac_init_help" && exit $ac_status 1545if $ac_init_version; then 1546 cat <<\_ACEOF 1547bfd configure 2.25.51 1548generated by GNU Autoconf 2.64 1549 1550Copyright (C) 2009 Free Software Foundation, Inc. 1551This configure script is free software; the Free Software Foundation 1552gives unlimited permission to copy, distribute and modify it. 1553_ACEOF 1554 exit 1555fi 1556 1557## ------------------------ ## 1558## Autoconf initialization. ## 1559## ------------------------ ## 1560 1561# ac_fn_c_try_compile LINENO 1562# -------------------------- 1563# Try to compile conftest.$ac_ext, and return whether this succeeded. 1564ac_fn_c_try_compile () 1565{ 1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1567 rm -f conftest.$ac_objext 1568 if { { ac_try="$ac_compile" 1569case "(($ac_try" in 1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1571 *) ac_try_echo=$ac_try;; 1572esac 1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1574$as_echo "$ac_try_echo"; } >&5 1575 (eval "$ac_compile") 2>conftest.err 1576 ac_status=$? 1577 if test -s conftest.err; then 1578 grep -v '^ *+' conftest.err >conftest.er1 1579 cat conftest.er1 >&5 1580 mv -f conftest.er1 conftest.err 1581 fi 1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1583 test $ac_status = 0; } && { 1584 test -z "$ac_c_werror_flag" || 1585 test ! -s conftest.err 1586 } && test -s conftest.$ac_objext; then : 1587 ac_retval=0 1588else 1589 $as_echo "$as_me: failed program was:" >&5 1590sed 's/^/| /' conftest.$ac_ext >&5 1591 1592 ac_retval=1 1593fi 1594 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1595 return $ac_retval 1596 1597} # ac_fn_c_try_compile 1598 1599# ac_fn_c_try_link LINENO 1600# ----------------------- 1601# Try to link conftest.$ac_ext, and return whether this succeeded. 1602ac_fn_c_try_link () 1603{ 1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1605 rm -f conftest.$ac_objext conftest$ac_exeext 1606 if { { ac_try="$ac_link" 1607case "(($ac_try" in 1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1609 *) ac_try_echo=$ac_try;; 1610esac 1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1612$as_echo "$ac_try_echo"; } >&5 1613 (eval "$ac_link") 2>conftest.err 1614 ac_status=$? 1615 if test -s conftest.err; then 1616 grep -v '^ *+' conftest.err >conftest.er1 1617 cat conftest.er1 >&5 1618 mv -f conftest.er1 conftest.err 1619 fi 1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1621 test $ac_status = 0; } && { 1622 test -z "$ac_c_werror_flag" || 1623 test ! -s conftest.err 1624 } && test -s conftest$ac_exeext && { 1625 test "$cross_compiling" = yes || 1626 $as_test_x conftest$ac_exeext 1627 }; then : 1628 ac_retval=0 1629else 1630 $as_echo "$as_me: failed program was:" >&5 1631sed 's/^/| /' conftest.$ac_ext >&5 1632 1633 ac_retval=1 1634fi 1635 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1636 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1637 # interfere with the next link command; also delete a directory that is 1638 # left behind by Apple's compiler. We do this before executing the actions. 1639 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1640 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1641 return $ac_retval 1642 1643} # ac_fn_c_try_link 1644 1645# ac_fn_c_try_cpp LINENO 1646# ---------------------- 1647# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1648ac_fn_c_try_cpp () 1649{ 1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1651 if { { ac_try="$ac_cpp conftest.$ac_ext" 1652case "(($ac_try" in 1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1654 *) ac_try_echo=$ac_try;; 1655esac 1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1657$as_echo "$ac_try_echo"; } >&5 1658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1659 ac_status=$? 1660 if test -s conftest.err; then 1661 grep -v '^ *+' conftest.err >conftest.er1 1662 cat conftest.er1 >&5 1663 mv -f conftest.er1 conftest.err 1664 fi 1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1666 test $ac_status = 0; } >/dev/null && { 1667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1668 test ! -s conftest.err 1669 }; then : 1670 ac_retval=0 1671else 1672 $as_echo "$as_me: failed program was:" >&5 1673sed 's/^/| /' conftest.$ac_ext >&5 1674 1675 ac_retval=1 1676fi 1677 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1678 return $ac_retval 1679 1680} # ac_fn_c_try_cpp 1681 1682# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1683# ------------------------------------------------------- 1684# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1685# the include files in INCLUDES and setting the cache variable VAR 1686# accordingly. 1687ac_fn_c_check_header_mongrel () 1688{ 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1692$as_echo_n "checking for $2... " >&6; } 1693if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1694 $as_echo_n "(cached) " >&6 1695fi 1696eval ac_res=\$$3 1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1698$as_echo "$ac_res" >&6; } 1699else 1700 # Is the header compilable? 1701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1702$as_echo_n "checking $2 usability... " >&6; } 1703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1704/* end confdefs.h. */ 1705$4 1706#include <$2> 1707_ACEOF 1708if ac_fn_c_try_compile "$LINENO"; then : 1709 ac_header_compiler=yes 1710else 1711 ac_header_compiler=no 1712fi 1713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1715$as_echo "$ac_header_compiler" >&6; } 1716 1717# Is the header present? 1718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1719$as_echo_n "checking $2 presence... " >&6; } 1720cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1721/* end confdefs.h. */ 1722#include <$2> 1723_ACEOF 1724if ac_fn_c_try_cpp "$LINENO"; then : 1725 ac_header_preproc=yes 1726else 1727 ac_header_preproc=no 1728fi 1729rm -f conftest.err conftest.$ac_ext 1730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1731$as_echo "$ac_header_preproc" >&6; } 1732 1733# So? What about this header? 1734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1735 yes:no: ) 1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1737$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1739$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1740 ;; 1741 no:yes:* ) 1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1743$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1745$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1747$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1749$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1751$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1752 ;; 1753esac 1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1755$as_echo_n "checking for $2... " >&6; } 1756if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1757 $as_echo_n "(cached) " >&6 1758else 1759 eval "$3=\$ac_header_compiler" 1760fi 1761eval ac_res=\$$3 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1763$as_echo "$ac_res" >&6; } 1764fi 1765 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1766 1767} # ac_fn_c_check_header_mongrel 1768 1769# ac_fn_c_try_run LINENO 1770# ---------------------- 1771# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1772# that executables *can* be run. 1773ac_fn_c_try_run () 1774{ 1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1776 if { { ac_try="$ac_link" 1777case "(($ac_try" in 1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1779 *) ac_try_echo=$ac_try;; 1780esac 1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1782$as_echo "$ac_try_echo"; } >&5 1783 (eval "$ac_link") 2>&5 1784 ac_status=$? 1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1786 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1787 { { case "(($ac_try" in 1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1789 *) ac_try_echo=$ac_try;; 1790esac 1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1792$as_echo "$ac_try_echo"; } >&5 1793 (eval "$ac_try") 2>&5 1794 ac_status=$? 1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1796 test $ac_status = 0; }; }; then : 1797 ac_retval=0 1798else 1799 $as_echo "$as_me: program exited with status $ac_status" >&5 1800 $as_echo "$as_me: failed program was:" >&5 1801sed 's/^/| /' conftest.$ac_ext >&5 1802 1803 ac_retval=$ac_status 1804fi 1805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1806 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1807 return $ac_retval 1808 1809} # ac_fn_c_try_run 1810 1811# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1812# ------------------------------------------------------- 1813# Tests whether HEADER exists and can be compiled using the include files in 1814# INCLUDES, setting the cache variable VAR accordingly. 1815ac_fn_c_check_header_compile () 1816{ 1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1819$as_echo_n "checking for $2... " >&6; } 1820if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1821 $as_echo_n "(cached) " >&6 1822else 1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1824/* end confdefs.h. */ 1825$4 1826#include <$2> 1827_ACEOF 1828if ac_fn_c_try_compile "$LINENO"; then : 1829 eval "$3=yes" 1830else 1831 eval "$3=no" 1832fi 1833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1834fi 1835eval ac_res=\$$3 1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1837$as_echo "$ac_res" >&6; } 1838 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1839 1840} # ac_fn_c_check_header_compile 1841 1842# ac_fn_c_check_func LINENO FUNC VAR 1843# ---------------------------------- 1844# Tests whether FUNC exists, setting the cache variable VAR accordingly 1845ac_fn_c_check_func () 1846{ 1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1849$as_echo_n "checking for $2... " >&6; } 1850if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1851 $as_echo_n "(cached) " >&6 1852else 1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1854/* end confdefs.h. */ 1855/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1856 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1857#define $2 innocuous_$2 1858 1859/* System header to define __stub macros and hopefully few prototypes, 1860 which can conflict with char $2 (); below. 1861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1862 <limits.h> exists even on freestanding compilers. */ 1863 1864#ifdef __STDC__ 1865# include <limits.h> 1866#else 1867# include <assert.h> 1868#endif 1869 1870#undef $2 1871 1872/* Override any GCC internal prototype to avoid an error. 1873 Use char because int might match the return type of a GCC 1874 builtin and then its argument prototype would still apply. */ 1875#ifdef __cplusplus 1876extern "C" 1877#endif 1878char $2 (); 1879/* The GNU C library defines this for functions which it implements 1880 to always fail with ENOSYS. Some functions are actually named 1881 something starting with __ and the normal name is an alias. */ 1882#if defined __stub_$2 || defined __stub___$2 1883choke me 1884#endif 1885 1886int 1887main () 1888{ 1889return $2 (); 1890 ; 1891 return 0; 1892} 1893_ACEOF 1894if ac_fn_c_try_link "$LINENO"; then : 1895 eval "$3=yes" 1896else 1897 eval "$3=no" 1898fi 1899rm -f core conftest.err conftest.$ac_objext \ 1900 conftest$ac_exeext conftest.$ac_ext 1901fi 1902eval ac_res=\$$3 1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1904$as_echo "$ac_res" >&6; } 1905 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1906 1907} # ac_fn_c_check_func 1908 1909# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1910# -------------------------------------------- 1911# Tries to find the compile-time value of EXPR in a program that includes 1912# INCLUDES, setting VAR accordingly. Returns whether the value could be 1913# computed 1914ac_fn_c_compute_int () 1915{ 1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1917 if test "$cross_compiling" = yes; then 1918 # Depending upon the size, compute the lo and hi bounds. 1919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1920/* end confdefs.h. */ 1921$4 1922int 1923main () 1924{ 1925static int test_array [1 - 2 * !(($2) >= 0)]; 1926test_array [0] = 0 1927 1928 ; 1929 return 0; 1930} 1931_ACEOF 1932if ac_fn_c_try_compile "$LINENO"; then : 1933 ac_lo=0 ac_mid=0 1934 while :; do 1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1936/* end confdefs.h. */ 1937$4 1938int 1939main () 1940{ 1941static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1942test_array [0] = 0 1943 1944 ; 1945 return 0; 1946} 1947_ACEOF 1948if ac_fn_c_try_compile "$LINENO"; then : 1949 ac_hi=$ac_mid; break 1950else 1951 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1952 if test $ac_lo -le $ac_mid; then 1953 ac_lo= ac_hi= 1954 break 1955 fi 1956 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1957fi 1958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1959 done 1960else 1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1962/* end confdefs.h. */ 1963$4 1964int 1965main () 1966{ 1967static int test_array [1 - 2 * !(($2) < 0)]; 1968test_array [0] = 0 1969 1970 ; 1971 return 0; 1972} 1973_ACEOF 1974if ac_fn_c_try_compile "$LINENO"; then : 1975 ac_hi=-1 ac_mid=-1 1976 while :; do 1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1978/* end confdefs.h. */ 1979$4 1980int 1981main () 1982{ 1983static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1984test_array [0] = 0 1985 1986 ; 1987 return 0; 1988} 1989_ACEOF 1990if ac_fn_c_try_compile "$LINENO"; then : 1991 ac_lo=$ac_mid; break 1992else 1993 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1994 if test $ac_mid -le $ac_hi; then 1995 ac_lo= ac_hi= 1996 break 1997 fi 1998 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1999fi 2000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2001 done 2002else 2003 ac_lo= ac_hi= 2004fi 2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2006fi 2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2008# Binary search between lo and hi bounds. 2009while test "x$ac_lo" != "x$ac_hi"; do 2010 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2012/* end confdefs.h. */ 2013$4 2014int 2015main () 2016{ 2017static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2018test_array [0] = 0 2019 2020 ; 2021 return 0; 2022} 2023_ACEOF 2024if ac_fn_c_try_compile "$LINENO"; then : 2025 ac_hi=$ac_mid 2026else 2027 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2028fi 2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2030done 2031case $ac_lo in #(( 2032?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2033'') ac_retval=1 ;; 2034esac 2035 else 2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2037/* end confdefs.h. */ 2038$4 2039static long int longval () { return $2; } 2040static unsigned long int ulongval () { return $2; } 2041#include <stdio.h> 2042#include <stdlib.h> 2043int 2044main () 2045{ 2046 2047 FILE *f = fopen ("conftest.val", "w"); 2048 if (! f) 2049 return 1; 2050 if (($2) < 0) 2051 { 2052 long int i = longval (); 2053 if (i != ($2)) 2054 return 1; 2055 fprintf (f, "%ld", i); 2056 } 2057 else 2058 { 2059 unsigned long int i = ulongval (); 2060 if (i != ($2)) 2061 return 1; 2062 fprintf (f, "%lu", i); 2063 } 2064 /* Do not output a trailing newline, as this causes \r\n confusion 2065 on some platforms. */ 2066 return ferror (f) || fclose (f) != 0; 2067 2068 ; 2069 return 0; 2070} 2071_ACEOF 2072if ac_fn_c_try_run "$LINENO"; then : 2073 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2074else 2075 ac_retval=1 2076fi 2077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2078 conftest.$ac_objext conftest.beam conftest.$ac_ext 2079rm -f conftest.val 2080 2081 fi 2082 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2083 return $ac_retval 2084 2085} # ac_fn_c_compute_int 2086 2087# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2088# ------------------------------------------- 2089# Tests whether TYPE exists after having included INCLUDES, setting cache 2090# variable VAR accordingly. 2091ac_fn_c_check_type () 2092{ 2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2095$as_echo_n "checking for $2... " >&6; } 2096if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2097 $as_echo_n "(cached) " >&6 2098else 2099 eval "$3=no" 2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2101/* end confdefs.h. */ 2102$4 2103int 2104main () 2105{ 2106if (sizeof ($2)) 2107 return 0; 2108 ; 2109 return 0; 2110} 2111_ACEOF 2112if ac_fn_c_try_compile "$LINENO"; then : 2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2114/* end confdefs.h. */ 2115$4 2116int 2117main () 2118{ 2119if (sizeof (($2))) 2120 return 0; 2121 ; 2122 return 0; 2123} 2124_ACEOF 2125if ac_fn_c_try_compile "$LINENO"; then : 2126 2127else 2128 eval "$3=yes" 2129fi 2130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2131fi 2132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2133fi 2134eval ac_res=\$$3 2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2136$as_echo "$ac_res" >&6; } 2137 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2138 2139} # ac_fn_c_check_type 2140 2141# ac_fn_c_check_decl LINENO SYMBOL VAR 2142# ------------------------------------ 2143# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 2144ac_fn_c_check_decl () 2145{ 2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2147 as_decl_name=`echo $2|sed 's/ *(.*//'` 2148 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2150$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2151if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2152 $as_echo_n "(cached) " >&6 2153else 2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2155/* end confdefs.h. */ 2156$4 2157int 2158main () 2159{ 2160#ifndef $as_decl_name 2161#ifdef __cplusplus 2162 (void) $as_decl_use; 2163#else 2164 (void) $as_decl_name; 2165#endif 2166#endif 2167 2168 ; 2169 return 0; 2170} 2171_ACEOF 2172if ac_fn_c_try_compile "$LINENO"; then : 2173 eval "$3=yes" 2174else 2175 eval "$3=no" 2176fi 2177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2178fi 2179eval ac_res=\$$3 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2181$as_echo "$ac_res" >&6; } 2182 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2183 2184} # ac_fn_c_check_decl 2185cat >config.log <<_ACEOF 2186This file contains any messages produced by compilers while 2187running configure, to aid debugging if configure makes a mistake. 2188 2189It was created by bfd $as_me 2.25.51, which was 2190generated by GNU Autoconf 2.64. Invocation command line was 2191 2192 $ $0 $@ 2193 2194_ACEOF 2195exec 5>>config.log 2196{ 2197cat <<_ASUNAME 2198## --------- ## 2199## Platform. ## 2200## --------- ## 2201 2202hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2203uname -m = `(uname -m) 2>/dev/null || echo unknown` 2204uname -r = `(uname -r) 2>/dev/null || echo unknown` 2205uname -s = `(uname -s) 2>/dev/null || echo unknown` 2206uname -v = `(uname -v) 2>/dev/null || echo unknown` 2207 2208/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2209/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2210 2211/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2212/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2213/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2214/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2215/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2216/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2217/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2218 2219_ASUNAME 2220 2221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2222for as_dir in $PATH 2223do 2224 IFS=$as_save_IFS 2225 test -z "$as_dir" && as_dir=. 2226 $as_echo "PATH: $as_dir" 2227 done 2228IFS=$as_save_IFS 2229 2230} >&5 2231 2232cat >&5 <<_ACEOF 2233 2234 2235## ----------- ## 2236## Core tests. ## 2237## ----------- ## 2238 2239_ACEOF 2240 2241 2242# Keep a trace of the command line. 2243# Strip out --no-create and --no-recursion so they do not pile up. 2244# Strip out --silent because we don't want to record it for future runs. 2245# Also quote any args containing shell meta-characters. 2246# Make two passes to allow for proper duplicate-argument suppression. 2247ac_configure_args= 2248ac_configure_args0= 2249ac_configure_args1= 2250ac_must_keep_next=false 2251for ac_pass in 1 2 2252do 2253 for ac_arg 2254 do 2255 case $ac_arg in 2256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2258 | -silent | --silent | --silen | --sile | --sil) 2259 continue ;; 2260 *\'*) 2261 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2262 esac 2263 case $ac_pass in 2264 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2265 2) 2266 as_fn_append ac_configure_args1 " '$ac_arg'" 2267 if test $ac_must_keep_next = true; then 2268 ac_must_keep_next=false # Got value, back to normal. 2269 else 2270 case $ac_arg in 2271 *=* | --config-cache | -C | -disable-* | --disable-* \ 2272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2274 | -with-* | --with-* | -without-* | --without-* | --x) 2275 case "$ac_configure_args0 " in 2276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2277 esac 2278 ;; 2279 -* ) ac_must_keep_next=true ;; 2280 esac 2281 fi 2282 as_fn_append ac_configure_args " '$ac_arg'" 2283 ;; 2284 esac 2285 done 2286done 2287{ ac_configure_args0=; unset ac_configure_args0;} 2288{ ac_configure_args1=; unset ac_configure_args1;} 2289 2290# When interrupted or exit'd, cleanup temporary files, and complete 2291# config.log. We remove comments because anyway the quotes in there 2292# would cause problems or look ugly. 2293# WARNING: Use '\'' to represent an apostrophe within the trap. 2294# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2295trap 'exit_status=$? 2296 # Save into config.log some information that might help in debugging. 2297 { 2298 echo 2299 2300 cat <<\_ASBOX 2301## ---------------- ## 2302## Cache variables. ## 2303## ---------------- ## 2304_ASBOX 2305 echo 2306 # The following way of writing the cache mishandles newlines in values, 2307( 2308 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2309 eval ac_val=\$$ac_var 2310 case $ac_val in #( 2311 *${as_nl}*) 2312 case $ac_var in #( 2313 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2314$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2315 esac 2316 case $ac_var in #( 2317 _ | IFS | as_nl) ;; #( 2318 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2319 *) { eval $ac_var=; unset $ac_var;} ;; 2320 esac ;; 2321 esac 2322 done 2323 (set) 2>&1 | 2324 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2325 *${as_nl}ac_space=\ *) 2326 sed -n \ 2327 "s/'\''/'\''\\\\'\'''\''/g; 2328 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2329 ;; #( 2330 *) 2331 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2332 ;; 2333 esac | 2334 sort 2335) 2336 echo 2337 2338 cat <<\_ASBOX 2339## ----------------- ## 2340## Output variables. ## 2341## ----------------- ## 2342_ASBOX 2343 echo 2344 for ac_var in $ac_subst_vars 2345 do 2346 eval ac_val=\$$ac_var 2347 case $ac_val in 2348 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2349 esac 2350 $as_echo "$ac_var='\''$ac_val'\''" 2351 done | sort 2352 echo 2353 2354 if test -n "$ac_subst_files"; then 2355 cat <<\_ASBOX 2356## ------------------- ## 2357## File substitutions. ## 2358## ------------------- ## 2359_ASBOX 2360 echo 2361 for ac_var in $ac_subst_files 2362 do 2363 eval ac_val=\$$ac_var 2364 case $ac_val in 2365 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2366 esac 2367 $as_echo "$ac_var='\''$ac_val'\''" 2368 done | sort 2369 echo 2370 fi 2371 2372 if test -s confdefs.h; then 2373 cat <<\_ASBOX 2374## ----------- ## 2375## confdefs.h. ## 2376## ----------- ## 2377_ASBOX 2378 echo 2379 cat confdefs.h 2380 echo 2381 fi 2382 test "$ac_signal" != 0 && 2383 $as_echo "$as_me: caught signal $ac_signal" 2384 $as_echo "$as_me: exit $exit_status" 2385 } >&5 2386 rm -f core *.core core.conftest.* && 2387 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2388 exit $exit_status 2389' 0 2390for ac_signal in 1 2 13 15; do 2391 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2392done 2393ac_signal=0 2394 2395# confdefs.h avoids OS command line length limits that DEFS can exceed. 2396rm -f -r conftest* confdefs.h 2397 2398$as_echo "/* confdefs.h */" > confdefs.h 2399 2400# Predefined preprocessor variables. 2401 2402cat >>confdefs.h <<_ACEOF 2403#define PACKAGE_NAME "$PACKAGE_NAME" 2404_ACEOF 2405 2406cat >>confdefs.h <<_ACEOF 2407#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2408_ACEOF 2409 2410cat >>confdefs.h <<_ACEOF 2411#define PACKAGE_VERSION "$PACKAGE_VERSION" 2412_ACEOF 2413 2414cat >>confdefs.h <<_ACEOF 2415#define PACKAGE_STRING "$PACKAGE_STRING" 2416_ACEOF 2417 2418cat >>confdefs.h <<_ACEOF 2419#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2420_ACEOF 2421 2422cat >>confdefs.h <<_ACEOF 2423#define PACKAGE_URL "$PACKAGE_URL" 2424_ACEOF 2425 2426 2427# Let the site file select an alternate cache file if it wants to. 2428# Prefer an explicitly selected file to automatically selected ones. 2429ac_site_file1=NONE 2430ac_site_file2=NONE 2431if test -n "$CONFIG_SITE"; then 2432 ac_site_file1=$CONFIG_SITE 2433elif test "x$prefix" != xNONE; then 2434 ac_site_file1=$prefix/share/config.site 2435 ac_site_file2=$prefix/etc/config.site 2436else 2437 ac_site_file1=$ac_default_prefix/share/config.site 2438 ac_site_file2=$ac_default_prefix/etc/config.site 2439fi 2440for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2441do 2442 test "x$ac_site_file" = xNONE && continue 2443 if test -r "$ac_site_file"; then 2444 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2445$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2446 sed 's/^/| /' "$ac_site_file" >&5 2447 . "$ac_site_file" 2448 fi 2449done 2450 2451if test -r "$cache_file"; then 2452 # Some versions of bash will fail to source /dev/null (special 2453 # files actually), so we avoid doing that. 2454 if test -f "$cache_file"; then 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2456$as_echo "$as_me: loading cache $cache_file" >&6;} 2457 case $cache_file in 2458 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2459 *) . "./$cache_file";; 2460 esac 2461 fi 2462else 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2464$as_echo "$as_me: creating cache $cache_file" >&6;} 2465 >$cache_file 2466fi 2467 2468# Check that the precious variables saved in the cache have kept the same 2469# value. 2470ac_cache_corrupted=false 2471for ac_var in $ac_precious_vars; do 2472 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2473 eval ac_new_set=\$ac_env_${ac_var}_set 2474 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2475 eval ac_new_val=\$ac_env_${ac_var}_value 2476 case $ac_old_set,$ac_new_set in 2477 set,) 2478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2479$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2480 ac_cache_corrupted=: ;; 2481 ,set) 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2483$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2484 ac_cache_corrupted=: ;; 2485 ,);; 2486 *) 2487 if test "x$ac_old_val" != "x$ac_new_val"; then 2488 # differences in whitespace do not lead to failure. 2489 ac_old_val_w=`echo x $ac_old_val` 2490 ac_new_val_w=`echo x $ac_new_val` 2491 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2493$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2494 ac_cache_corrupted=: 2495 else 2496 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2497$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2498 eval $ac_var=\$ac_old_val 2499 fi 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2501$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2502 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2503$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2504 fi;; 2505 esac 2506 # Pass precious variables to config.status. 2507 if test "$ac_new_set" = set; then 2508 case $ac_new_val in 2509 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2510 *) ac_arg=$ac_var=$ac_new_val ;; 2511 esac 2512 case " $ac_configure_args " in 2513 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2514 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2515 esac 2516 fi 2517done 2518if $ac_cache_corrupted; then 2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2522$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2523 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2524fi 2525## -------------------- ## 2526## Main body of script. ## 2527## -------------------- ## 2528 2529ac_ext=c 2530ac_cpp='$CPP $CPPFLAGS' 2531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2533ac_compiler_gnu=$ac_cv_c_compiler_gnu 2534 2535 2536 2537 2538 2539 2540 2541ac_aux_dir= 2542for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2543 for ac_t in install-sh install.sh shtool; do 2544 if test -f "$ac_dir/$ac_t"; then 2545 ac_aux_dir=$ac_dir 2546 ac_install_sh="$ac_aux_dir/$ac_t -c" 2547 break 2 2548 fi 2549 done 2550done 2551if test -z "$ac_aux_dir"; then 2552 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2553fi 2554 2555# These three variables are undocumented and unsupported, 2556# and are intended to be withdrawn in a future Autoconf release. 2557# They can cause serious problems if a builder's source tree is in a directory 2558# whose full name contains unusual characters. 2559ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2560ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2561ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2562 2563 2564# Make sure we can run config.sub. 2565$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2566 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2567 2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2569$as_echo_n "checking build system type... " >&6; } 2570if test "${ac_cv_build+set}" = set; then : 2571 $as_echo_n "(cached) " >&6 2572else 2573 ac_build_alias=$build_alias 2574test "x$ac_build_alias" = x && 2575 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2576test "x$ac_build_alias" = x && 2577 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2578ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2579 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2580 2581fi 2582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2583$as_echo "$ac_cv_build" >&6; } 2584case $ac_cv_build in 2585*-*-*) ;; 2586*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2587esac 2588build=$ac_cv_build 2589ac_save_IFS=$IFS; IFS='-' 2590set x $ac_cv_build 2591shift 2592build_cpu=$1 2593build_vendor=$2 2594shift; shift 2595# Remember, the first character of IFS is used to create $*, 2596# except with old shells: 2597build_os=$* 2598IFS=$ac_save_IFS 2599case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2600 2601 2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2603$as_echo_n "checking host system type... " >&6; } 2604if test "${ac_cv_host+set}" = set; then : 2605 $as_echo_n "(cached) " >&6 2606else 2607 if test "x$host_alias" = x; then 2608 ac_cv_host=$ac_cv_build 2609else 2610 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2611 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2612fi 2613 2614fi 2615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2616$as_echo "$ac_cv_host" >&6; } 2617case $ac_cv_host in 2618*-*-*) ;; 2619*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2620esac 2621host=$ac_cv_host 2622ac_save_IFS=$IFS; IFS='-' 2623set x $ac_cv_host 2624shift 2625host_cpu=$1 2626host_vendor=$2 2627shift; shift 2628# Remember, the first character of IFS is used to create $*, 2629# except with old shells: 2630host_os=$* 2631IFS=$ac_save_IFS 2632case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2633 2634 2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2636$as_echo_n "checking target system type... " >&6; } 2637if test "${ac_cv_target+set}" = set; then : 2638 $as_echo_n "(cached) " >&6 2639else 2640 if test "x$target_alias" = x; then 2641 ac_cv_target=$ac_cv_host 2642else 2643 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2644 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2645fi 2646 2647fi 2648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2649$as_echo "$ac_cv_target" >&6; } 2650case $ac_cv_target in 2651*-*-*) ;; 2652*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2653esac 2654target=$ac_cv_target 2655ac_save_IFS=$IFS; IFS='-' 2656set x $ac_cv_target 2657shift 2658target_cpu=$1 2659target_vendor=$2 2660shift; shift 2661# Remember, the first character of IFS is used to create $*, 2662# except with old shells: 2663target_os=$* 2664IFS=$ac_save_IFS 2665case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2666 2667 2668# The aliases save the names the user supplied, while $host etc. 2669# will get canonicalized. 2670test -n "$target_alias" && 2671 test "$program_prefix$program_suffix$program_transform_name" = \ 2672 NONENONEs,x,x, && 2673 program_prefix=${target_alias}- 2674ac_ext=c 2675ac_cpp='$CPP $CPPFLAGS' 2676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2678ac_compiler_gnu=$ac_cv_c_compiler_gnu 2679if test -n "$ac_tool_prefix"; then 2680 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2681set dummy ${ac_tool_prefix}gcc; ac_word=$2 2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2683$as_echo_n "checking for $ac_word... " >&6; } 2684if test "${ac_cv_prog_CC+set}" = set; then : 2685 $as_echo_n "(cached) " >&6 2686else 2687 if test -n "$CC"; then 2688 ac_cv_prog_CC="$CC" # Let the user override the test. 2689else 2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2691for as_dir in $PATH 2692do 2693 IFS=$as_save_IFS 2694 test -z "$as_dir" && as_dir=. 2695 for ac_exec_ext in '' $ac_executable_extensions; do 2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2697 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2699 break 2 2700 fi 2701done 2702 done 2703IFS=$as_save_IFS 2704 2705fi 2706fi 2707CC=$ac_cv_prog_CC 2708if test -n "$CC"; then 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2710$as_echo "$CC" >&6; } 2711else 2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2713$as_echo "no" >&6; } 2714fi 2715 2716 2717fi 2718if test -z "$ac_cv_prog_CC"; then 2719 ac_ct_CC=$CC 2720 # Extract the first word of "gcc", so it can be a program name with args. 2721set dummy gcc; ac_word=$2 2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2723$as_echo_n "checking for $ac_word... " >&6; } 2724if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2725 $as_echo_n "(cached) " >&6 2726else 2727 if test -n "$ac_ct_CC"; then 2728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2729else 2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2731for as_dir in $PATH 2732do 2733 IFS=$as_save_IFS 2734 test -z "$as_dir" && as_dir=. 2735 for ac_exec_ext in '' $ac_executable_extensions; do 2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2737 ac_cv_prog_ac_ct_CC="gcc" 2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2739 break 2 2740 fi 2741done 2742 done 2743IFS=$as_save_IFS 2744 2745fi 2746fi 2747ac_ct_CC=$ac_cv_prog_ac_ct_CC 2748if test -n "$ac_ct_CC"; then 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2750$as_echo "$ac_ct_CC" >&6; } 2751else 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2753$as_echo "no" >&6; } 2754fi 2755 2756 if test "x$ac_ct_CC" = x; then 2757 CC="" 2758 else 2759 case $cross_compiling:$ac_tool_warned in 2760yes:) 2761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2763ac_tool_warned=yes ;; 2764esac 2765 CC=$ac_ct_CC 2766 fi 2767else 2768 CC="$ac_cv_prog_CC" 2769fi 2770 2771if test -z "$CC"; then 2772 if test -n "$ac_tool_prefix"; then 2773 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2774set dummy ${ac_tool_prefix}cc; ac_word=$2 2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2776$as_echo_n "checking for $ac_word... " >&6; } 2777if test "${ac_cv_prog_CC+set}" = set; then : 2778 $as_echo_n "(cached) " >&6 2779else 2780 if test -n "$CC"; then 2781 ac_cv_prog_CC="$CC" # Let the user override the test. 2782else 2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2784for as_dir in $PATH 2785do 2786 IFS=$as_save_IFS 2787 test -z "$as_dir" && as_dir=. 2788 for ac_exec_ext in '' $ac_executable_extensions; do 2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2790 ac_cv_prog_CC="${ac_tool_prefix}cc" 2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2792 break 2 2793 fi 2794done 2795 done 2796IFS=$as_save_IFS 2797 2798fi 2799fi 2800CC=$ac_cv_prog_CC 2801if test -n "$CC"; then 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2803$as_echo "$CC" >&6; } 2804else 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2806$as_echo "no" >&6; } 2807fi 2808 2809 2810 fi 2811fi 2812if test -z "$CC"; then 2813 # Extract the first word of "cc", so it can be a program name with args. 2814set dummy cc; ac_word=$2 2815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2816$as_echo_n "checking for $ac_word... " >&6; } 2817if test "${ac_cv_prog_CC+set}" = set; then : 2818 $as_echo_n "(cached) " >&6 2819else 2820 if test -n "$CC"; then 2821 ac_cv_prog_CC="$CC" # Let the user override the test. 2822else 2823 ac_prog_rejected=no 2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2825for as_dir in $PATH 2826do 2827 IFS=$as_save_IFS 2828 test -z "$as_dir" && as_dir=. 2829 for ac_exec_ext in '' $ac_executable_extensions; do 2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2831 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2832 ac_prog_rejected=yes 2833 continue 2834 fi 2835 ac_cv_prog_CC="cc" 2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2837 break 2 2838 fi 2839done 2840 done 2841IFS=$as_save_IFS 2842 2843if test $ac_prog_rejected = yes; then 2844 # We found a bogon in the path, so make sure we never use it. 2845 set dummy $ac_cv_prog_CC 2846 shift 2847 if test $# != 0; then 2848 # We chose a different compiler from the bogus one. 2849 # However, it has the same basename, so the bogon will be chosen 2850 # first if we set CC to just the basename; use the full file name. 2851 shift 2852 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2853 fi 2854fi 2855fi 2856fi 2857CC=$ac_cv_prog_CC 2858if test -n "$CC"; then 2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2860$as_echo "$CC" >&6; } 2861else 2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2863$as_echo "no" >&6; } 2864fi 2865 2866 2867fi 2868if test -z "$CC"; then 2869 if test -n "$ac_tool_prefix"; then 2870 for ac_prog in cl.exe 2871 do 2872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2873set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2875$as_echo_n "checking for $ac_word... " >&6; } 2876if test "${ac_cv_prog_CC+set}" = set; then : 2877 $as_echo_n "(cached) " >&6 2878else 2879 if test -n "$CC"; then 2880 ac_cv_prog_CC="$CC" # Let the user override the test. 2881else 2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2883for as_dir in $PATH 2884do 2885 IFS=$as_save_IFS 2886 test -z "$as_dir" && as_dir=. 2887 for ac_exec_ext in '' $ac_executable_extensions; do 2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2889 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2891 break 2 2892 fi 2893done 2894 done 2895IFS=$as_save_IFS 2896 2897fi 2898fi 2899CC=$ac_cv_prog_CC 2900if test -n "$CC"; then 2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2902$as_echo "$CC" >&6; } 2903else 2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2905$as_echo "no" >&6; } 2906fi 2907 2908 2909 test -n "$CC" && break 2910 done 2911fi 2912if test -z "$CC"; then 2913 ac_ct_CC=$CC 2914 for ac_prog in cl.exe 2915do 2916 # Extract the first word of "$ac_prog", so it can be a program name with args. 2917set dummy $ac_prog; ac_word=$2 2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2919$as_echo_n "checking for $ac_word... " >&6; } 2920if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2921 $as_echo_n "(cached) " >&6 2922else 2923 if test -n "$ac_ct_CC"; then 2924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2925else 2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2927for as_dir in $PATH 2928do 2929 IFS=$as_save_IFS 2930 test -z "$as_dir" && as_dir=. 2931 for ac_exec_ext in '' $ac_executable_extensions; do 2932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2933 ac_cv_prog_ac_ct_CC="$ac_prog" 2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2935 break 2 2936 fi 2937done 2938 done 2939IFS=$as_save_IFS 2940 2941fi 2942fi 2943ac_ct_CC=$ac_cv_prog_ac_ct_CC 2944if test -n "$ac_ct_CC"; then 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2946$as_echo "$ac_ct_CC" >&6; } 2947else 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2949$as_echo "no" >&6; } 2950fi 2951 2952 2953 test -n "$ac_ct_CC" && break 2954done 2955 2956 if test "x$ac_ct_CC" = x; then 2957 CC="" 2958 else 2959 case $cross_compiling:$ac_tool_warned in 2960yes:) 2961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2963ac_tool_warned=yes ;; 2964esac 2965 CC=$ac_ct_CC 2966 fi 2967fi 2968 2969fi 2970 2971 2972test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2974as_fn_error "no acceptable C compiler found in \$PATH 2975See \`config.log' for more details." "$LINENO" 5; } 2976 2977# Provide some information about the compiler. 2978$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2979set X $ac_compile 2980ac_compiler=$2 2981for ac_option in --version -v -V -qversion; do 2982 { { ac_try="$ac_compiler $ac_option >&5" 2983case "(($ac_try" in 2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2985 *) ac_try_echo=$ac_try;; 2986esac 2987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2988$as_echo "$ac_try_echo"; } >&5 2989 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2990 ac_status=$? 2991 if test -s conftest.err; then 2992 sed '10a\ 2993... rest of stderr output deleted ... 2994 10q' conftest.err >conftest.er1 2995 cat conftest.er1 >&5 2996 rm -f conftest.er1 conftest.err 2997 fi 2998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2999 test $ac_status = 0; } 3000done 3001 3002cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3003/* end confdefs.h. */ 3004 3005int 3006main () 3007{ 3008 3009 ; 3010 return 0; 3011} 3012_ACEOF 3013ac_clean_files_save=$ac_clean_files 3014ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 3015# Try to create an executable without -o first, disregard a.out. 3016# It will help us diagnose broken compilers, and finding out an intuition 3017# of exeext. 3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3019$as_echo_n "checking for C compiler default output file name... " >&6; } 3020ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3021 3022# The possible output files: 3023ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3024 3025ac_rmfiles= 3026for ac_file in $ac_files 3027do 3028 case $ac_file in 3029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3030 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3031 esac 3032done 3033rm -f $ac_rmfiles 3034 3035if { { ac_try="$ac_link_default" 3036case "(($ac_try" in 3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3038 *) ac_try_echo=$ac_try;; 3039esac 3040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3041$as_echo "$ac_try_echo"; } >&5 3042 (eval "$ac_link_default") 2>&5 3043 ac_status=$? 3044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3045 test $ac_status = 0; }; then : 3046 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3047# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3048# in a Makefile. We should not override ac_cv_exeext if it was cached, 3049# so that the user can short-circuit this test for compilers unknown to 3050# Autoconf. 3051for ac_file in $ac_files '' 3052do 3053 test -f "$ac_file" || continue 3054 case $ac_file in 3055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3056 ;; 3057 [ab].out ) 3058 # We found the default executable, but exeext='' is most 3059 # certainly right. 3060 break;; 3061 *.* ) 3062 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3063 then :; else 3064 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3065 fi 3066 # We set ac_cv_exeext here because the later test for it is not 3067 # safe: cross compilers may not add the suffix if given an `-o' 3068 # argument, so we may need to know it at that point already. 3069 # Even if this section looks crufty: it has the advantage of 3070 # actually working. 3071 break;; 3072 * ) 3073 break;; 3074 esac 3075done 3076test "$ac_cv_exeext" = no && ac_cv_exeext= 3077 3078else 3079 ac_file='' 3080fi 3081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3082$as_echo "$ac_file" >&6; } 3083if test -z "$ac_file"; then : 3084 $as_echo "$as_me: failed program was:" >&5 3085sed 's/^/| /' conftest.$ac_ext >&5 3086 3087{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3089{ as_fn_set_status 77 3090as_fn_error "C compiler cannot create executables 3091See \`config.log' for more details." "$LINENO" 5; }; } 3092fi 3093ac_exeext=$ac_cv_exeext 3094 3095# Check that the compiler produces executables we can run. If not, either 3096# the compiler is broken, or we cross compile. 3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3098$as_echo_n "checking whether the C compiler works... " >&6; } 3099# If not cross compiling, check that we can run a simple program. 3100if test "$cross_compiling" != yes; then 3101 if { ac_try='./$ac_file' 3102 { { case "(($ac_try" in 3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3104 *) ac_try_echo=$ac_try;; 3105esac 3106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3107$as_echo "$ac_try_echo"; } >&5 3108 (eval "$ac_try") 2>&5 3109 ac_status=$? 3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3111 test $ac_status = 0; }; }; then 3112 cross_compiling=no 3113 else 3114 if test "$cross_compiling" = maybe; then 3115 cross_compiling=yes 3116 else 3117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3118$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3119as_fn_error "cannot run C compiled programs. 3120If you meant to cross compile, use \`--host'. 3121See \`config.log' for more details." "$LINENO" 5; } 3122 fi 3123 fi 3124fi 3125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3126$as_echo "yes" >&6; } 3127 3128rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3129ac_clean_files=$ac_clean_files_save 3130# Check that the compiler produces executables we can run. If not, either 3131# the compiler is broken, or we cross compile. 3132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3133$as_echo_n "checking whether we are cross compiling... " >&6; } 3134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3135$as_echo "$cross_compiling" >&6; } 3136 3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3138$as_echo_n "checking for suffix of executables... " >&6; } 3139if { { ac_try="$ac_link" 3140case "(($ac_try" in 3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3142 *) ac_try_echo=$ac_try;; 3143esac 3144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3145$as_echo "$ac_try_echo"; } >&5 3146 (eval "$ac_link") 2>&5 3147 ac_status=$? 3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3149 test $ac_status = 0; }; then : 3150 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3151# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3152# work properly (i.e., refer to `conftest.exe'), while it won't with 3153# `rm'. 3154for ac_file in conftest.exe conftest conftest.*; do 3155 test -f "$ac_file" || continue 3156 case $ac_file in 3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3158 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3159 break;; 3160 * ) break;; 3161 esac 3162done 3163else 3164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3166as_fn_error "cannot compute suffix of executables: cannot compile and link 3167See \`config.log' for more details." "$LINENO" 5; } 3168fi 3169rm -f conftest$ac_cv_exeext 3170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3171$as_echo "$ac_cv_exeext" >&6; } 3172 3173rm -f conftest.$ac_ext 3174EXEEXT=$ac_cv_exeext 3175ac_exeext=$EXEEXT 3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3177$as_echo_n "checking for suffix of object files... " >&6; } 3178if test "${ac_cv_objext+set}" = set; then : 3179 $as_echo_n "(cached) " >&6 3180else 3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3182/* end confdefs.h. */ 3183 3184int 3185main () 3186{ 3187 3188 ; 3189 return 0; 3190} 3191_ACEOF 3192rm -f conftest.o conftest.obj 3193if { { ac_try="$ac_compile" 3194case "(($ac_try" in 3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3196 *) ac_try_echo=$ac_try;; 3197esac 3198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3199$as_echo "$ac_try_echo"; } >&5 3200 (eval "$ac_compile") 2>&5 3201 ac_status=$? 3202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3203 test $ac_status = 0; }; then : 3204 for ac_file in conftest.o conftest.obj conftest.*; do 3205 test -f "$ac_file" || continue; 3206 case $ac_file in 3207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3208 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3209 break;; 3210 esac 3211done 3212else 3213 $as_echo "$as_me: failed program was:" >&5 3214sed 's/^/| /' conftest.$ac_ext >&5 3215 3216{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3218as_fn_error "cannot compute suffix of object files: cannot compile 3219See \`config.log' for more details." "$LINENO" 5; } 3220fi 3221rm -f conftest.$ac_cv_objext conftest.$ac_ext 3222fi 3223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3224$as_echo "$ac_cv_objext" >&6; } 3225OBJEXT=$ac_cv_objext 3226ac_objext=$OBJEXT 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3228$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3229if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3230 $as_echo_n "(cached) " >&6 3231else 3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3233/* end confdefs.h. */ 3234 3235int 3236main () 3237{ 3238#ifndef __GNUC__ 3239 choke me 3240#endif 3241 3242 ; 3243 return 0; 3244} 3245_ACEOF 3246if ac_fn_c_try_compile "$LINENO"; then : 3247 ac_compiler_gnu=yes 3248else 3249 ac_compiler_gnu=no 3250fi 3251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3252ac_cv_c_compiler_gnu=$ac_compiler_gnu 3253 3254fi 3255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3256$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3257if test $ac_compiler_gnu = yes; then 3258 GCC=yes 3259else 3260 GCC= 3261fi 3262ac_test_CFLAGS=${CFLAGS+set} 3263ac_save_CFLAGS=$CFLAGS 3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3265$as_echo_n "checking whether $CC accepts -g... " >&6; } 3266if test "${ac_cv_prog_cc_g+set}" = set; then : 3267 $as_echo_n "(cached) " >&6 3268else 3269 ac_save_c_werror_flag=$ac_c_werror_flag 3270 ac_c_werror_flag=yes 3271 ac_cv_prog_cc_g=no 3272 CFLAGS="-g" 3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3274/* end confdefs.h. */ 3275 3276int 3277main () 3278{ 3279 3280 ; 3281 return 0; 3282} 3283_ACEOF 3284if ac_fn_c_try_compile "$LINENO"; then : 3285 ac_cv_prog_cc_g=yes 3286else 3287 CFLAGS="" 3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3289/* end confdefs.h. */ 3290 3291int 3292main () 3293{ 3294 3295 ; 3296 return 0; 3297} 3298_ACEOF 3299if ac_fn_c_try_compile "$LINENO"; then : 3300 3301else 3302 ac_c_werror_flag=$ac_save_c_werror_flag 3303 CFLAGS="-g" 3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3305/* end confdefs.h. */ 3306 3307int 3308main () 3309{ 3310 3311 ; 3312 return 0; 3313} 3314_ACEOF 3315if ac_fn_c_try_compile "$LINENO"; then : 3316 ac_cv_prog_cc_g=yes 3317fi 3318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3319fi 3320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3321fi 3322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3323 ac_c_werror_flag=$ac_save_c_werror_flag 3324fi 3325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3326$as_echo "$ac_cv_prog_cc_g" >&6; } 3327if test "$ac_test_CFLAGS" = set; then 3328 CFLAGS=$ac_save_CFLAGS 3329elif test $ac_cv_prog_cc_g = yes; then 3330 if test "$GCC" = yes; then 3331 CFLAGS="-g -O2" 3332 else 3333 CFLAGS="-g" 3334 fi 3335else 3336 if test "$GCC" = yes; then 3337 CFLAGS="-O2" 3338 else 3339 CFLAGS= 3340 fi 3341fi 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3343$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3344if test "${ac_cv_prog_cc_c89+set}" = set; then : 3345 $as_echo_n "(cached) " >&6 3346else 3347 ac_cv_prog_cc_c89=no 3348ac_save_CC=$CC 3349cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3350/* end confdefs.h. */ 3351#include <stdarg.h> 3352#include <stdio.h> 3353#include <sys/types.h> 3354#include <sys/stat.h> 3355/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3356struct buf { int x; }; 3357FILE * (*rcsopen) (struct buf *, struct stat *, int); 3358static char *e (p, i) 3359 char **p; 3360 int i; 3361{ 3362 return p[i]; 3363} 3364static char *f (char * (*g) (char **, int), char **p, ...) 3365{ 3366 char *s; 3367 va_list v; 3368 va_start (v,p); 3369 s = g (p, va_arg (v,int)); 3370 va_end (v); 3371 return s; 3372} 3373 3374/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3375 function prototypes and stuff, but not '\xHH' hex character constants. 3376 These don't provoke an error unfortunately, instead are silently treated 3377 as 'x'. The following induces an error, until -std is added to get 3378 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3379 array size at least. It's necessary to write '\x00'==0 to get something 3380 that's true only with -std. */ 3381int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3382 3383/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3384 inside strings and character constants. */ 3385#define FOO(x) 'x' 3386int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3387 3388int test (int i, double x); 3389struct s1 {int (*f) (int a);}; 3390struct s2 {int (*f) (double a);}; 3391int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3392int argc; 3393char **argv; 3394int 3395main () 3396{ 3397return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3398 ; 3399 return 0; 3400} 3401_ACEOF 3402for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3403 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3404do 3405 CC="$ac_save_CC $ac_arg" 3406 if ac_fn_c_try_compile "$LINENO"; then : 3407 ac_cv_prog_cc_c89=$ac_arg 3408fi 3409rm -f core conftest.err conftest.$ac_objext 3410 test "x$ac_cv_prog_cc_c89" != "xno" && break 3411done 3412rm -f conftest.$ac_ext 3413CC=$ac_save_CC 3414 3415fi 3416# AC_CACHE_VAL 3417case "x$ac_cv_prog_cc_c89" in 3418 x) 3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3420$as_echo "none needed" >&6; } ;; 3421 xno) 3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3423$as_echo "unsupported" >&6; } ;; 3424 *) 3425 CC="$CC $ac_cv_prog_cc_c89" 3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3427$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3428esac 3429if test "x$ac_cv_prog_cc_c89" != xno; then : 3430 3431fi 3432 3433ac_ext=c 3434ac_cpp='$CPP $CPPFLAGS' 3435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3437ac_compiler_gnu=$ac_cv_c_compiler_gnu 3438 3439 3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3441$as_echo_n "checking for library containing strerror... " >&6; } 3442if test "${ac_cv_search_strerror+set}" = set; then : 3443 $as_echo_n "(cached) " >&6 3444else 3445 ac_func_search_save_LIBS=$LIBS 3446cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3447/* end confdefs.h. */ 3448 3449/* Override any GCC internal prototype to avoid an error. 3450 Use char because int might match the return type of a GCC 3451 builtin and then its argument prototype would still apply. */ 3452#ifdef __cplusplus 3453extern "C" 3454#endif 3455char strerror (); 3456int 3457main () 3458{ 3459return strerror (); 3460 ; 3461 return 0; 3462} 3463_ACEOF 3464for ac_lib in '' cposix; do 3465 if test -z "$ac_lib"; then 3466 ac_res="none required" 3467 else 3468 ac_res=-l$ac_lib 3469 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3470 fi 3471 if ac_fn_c_try_link "$LINENO"; then : 3472 ac_cv_search_strerror=$ac_res 3473fi 3474rm -f core conftest.err conftest.$ac_objext \ 3475 conftest$ac_exeext 3476 if test "${ac_cv_search_strerror+set}" = set; then : 3477 break 3478fi 3479done 3480if test "${ac_cv_search_strerror+set}" = set; then : 3481 3482else 3483 ac_cv_search_strerror=no 3484fi 3485rm conftest.$ac_ext 3486LIBS=$ac_func_search_save_LIBS 3487fi 3488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 3489$as_echo "$ac_cv_search_strerror" >&6; } 3490ac_res=$ac_cv_search_strerror 3491if test "$ac_res" != no; then : 3492 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3493 3494fi 3495 3496 3497am__api_version='1.11' 3498 3499# Find a good install program. We prefer a C program (faster), 3500# so one script is as good as another. But avoid the broken or 3501# incompatible versions: 3502# SysV /etc/install, /usr/sbin/install 3503# SunOS /usr/etc/install 3504# IRIX /sbin/install 3505# AIX /bin/install 3506# AmigaOS /C/install, which installs bootblocks on floppy discs 3507# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3508# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3509# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3510# OS/2's system install, which has a completely different semantic 3511# ./install, which can be erroneously created by make from ./install.sh. 3512# Reject install programs that cannot install multiple files. 3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3514$as_echo_n "checking for a BSD-compatible install... " >&6; } 3515if test -z "$INSTALL"; then 3516if test "${ac_cv_path_install+set}" = set; then : 3517 $as_echo_n "(cached) " >&6 3518else 3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3520for as_dir in $PATH 3521do 3522 IFS=$as_save_IFS 3523 test -z "$as_dir" && as_dir=. 3524 # Account for people who put trailing slashes in PATH elements. 3525case $as_dir/ in #(( 3526 ./ | .// | /[cC]/* | \ 3527 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3528 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3529 /usr/ucb/* ) ;; 3530 *) 3531 # OSF1 and SCO ODT 3.0 have their own names for install. 3532 # Don't use installbsd from OSF since it installs stuff as root 3533 # by default. 3534 for ac_prog in ginstall scoinst install; do 3535 for ac_exec_ext in '' $ac_executable_extensions; do 3536 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3537 if test $ac_prog = install && 3538 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3539 # AIX install. It has an incompatible calling convention. 3540 : 3541 elif test $ac_prog = install && 3542 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3543 # program-specific install script used by HP pwplus--don't use. 3544 : 3545 else 3546 rm -rf conftest.one conftest.two conftest.dir 3547 echo one > conftest.one 3548 echo two > conftest.two 3549 mkdir conftest.dir 3550 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3551 test -s conftest.one && test -s conftest.two && 3552 test -s conftest.dir/conftest.one && 3553 test -s conftest.dir/conftest.two 3554 then 3555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3556 break 3 3557 fi 3558 fi 3559 fi 3560 done 3561 done 3562 ;; 3563esac 3564 3565 done 3566IFS=$as_save_IFS 3567 3568rm -rf conftest.one conftest.two conftest.dir 3569 3570fi 3571 if test "${ac_cv_path_install+set}" = set; then 3572 INSTALL=$ac_cv_path_install 3573 else 3574 # As a last resort, use the slow shell script. Don't cache a 3575 # value for INSTALL within a source directory, because that will 3576 # break other packages using the cache if that directory is 3577 # removed, or if the value is a relative name. 3578 INSTALL=$ac_install_sh 3579 fi 3580fi 3581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3582$as_echo "$INSTALL" >&6; } 3583 3584# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3585# It thinks the first close brace ends the variable substitution. 3586test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3587 3588test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3589 3590test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3591 3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3593$as_echo_n "checking whether build environment is sane... " >&6; } 3594# Just in case 3595sleep 1 3596echo timestamp > conftest.file 3597# Reject unsafe characters in $srcdir or the absolute working directory 3598# name. Accept space and tab only in the latter. 3599am_lf=' 3600' 3601case `pwd` in 3602 *[\\\"\#\$\&\'\`$am_lf]*) 3603 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 3604esac 3605case $srcdir in 3606 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3607 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3608esac 3609 3610# Do `set' in a subshell so we don't clobber the current shell's 3611# arguments. Must try -L first in case configure is actually a 3612# symlink; some systems play weird games with the mod time of symlinks 3613# (eg FreeBSD returns the mod time of the symlink's containing 3614# directory). 3615if ( 3616 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3617 if test "$*" = "X"; then 3618 # -L didn't work. 3619 set X `ls -t "$srcdir/configure" conftest.file` 3620 fi 3621 rm -f conftest.file 3622 if test "$*" != "X $srcdir/configure conftest.file" \ 3623 && test "$*" != "X conftest.file $srcdir/configure"; then 3624 3625 # If neither matched, then we have a broken ls. This can happen 3626 # if, for instance, CONFIG_SHELL is bash and it inherits a 3627 # broken ls alias from the environment. This has actually 3628 # happened. Such a system could not be considered "sane". 3629 as_fn_error "ls -t appears to fail. Make sure there is not a broken 3630alias in your environment" "$LINENO" 5 3631 fi 3632 3633 test "$2" = conftest.file 3634 ) 3635then 3636 # Ok. 3637 : 3638else 3639 as_fn_error "newly created file is older than distributed files! 3640Check your system clock" "$LINENO" 5 3641fi 3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3643$as_echo "yes" >&6; } 3644test "$program_prefix" != NONE && 3645 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3646# Use a double $ so make ignores it. 3647test "$program_suffix" != NONE && 3648 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3649# Double any \ or $. 3650# By default was `s,x,x', remove it if useless. 3651ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3652program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3653 3654# expand $ac_aux_dir to an absolute path 3655am_aux_dir=`cd $ac_aux_dir && pwd` 3656 3657if test x"${MISSING+set}" != xset; then 3658 case $am_aux_dir in 3659 *\ * | *\ *) 3660 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3661 *) 3662 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3663 esac 3664fi 3665# Use eval to expand $SHELL 3666if eval "$MISSING --run true"; then 3667 am_missing_run="$MISSING --run " 3668else 3669 am_missing_run= 3670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3671$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3672fi 3673 3674if test x"${install_sh}" != xset; then 3675 case $am_aux_dir in 3676 *\ * | *\ *) 3677 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3678 *) 3679 install_sh="\${SHELL} $am_aux_dir/install-sh" 3680 esac 3681fi 3682 3683# Installed binaries are usually stripped using `strip' when the user 3684# run `make install-strip'. However `strip' might not be the right 3685# tool to use in cross-compilation environments, therefore Automake 3686# will honor the `STRIP' environment variable to overrule this program. 3687if test "$cross_compiling" != no; then 3688 if test -n "$ac_tool_prefix"; then 3689 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3690set dummy ${ac_tool_prefix}strip; ac_word=$2 3691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3692$as_echo_n "checking for $ac_word... " >&6; } 3693if test "${ac_cv_prog_STRIP+set}" = set; then : 3694 $as_echo_n "(cached) " >&6 3695else 3696 if test -n "$STRIP"; then 3697 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3698else 3699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3700for as_dir in $PATH 3701do 3702 IFS=$as_save_IFS 3703 test -z "$as_dir" && as_dir=. 3704 for ac_exec_ext in '' $ac_executable_extensions; do 3705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3706 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3708 break 2 3709 fi 3710done 3711 done 3712IFS=$as_save_IFS 3713 3714fi 3715fi 3716STRIP=$ac_cv_prog_STRIP 3717if test -n "$STRIP"; then 3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3719$as_echo "$STRIP" >&6; } 3720else 3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3722$as_echo "no" >&6; } 3723fi 3724 3725 3726fi 3727if test -z "$ac_cv_prog_STRIP"; then 3728 ac_ct_STRIP=$STRIP 3729 # Extract the first word of "strip", so it can be a program name with args. 3730set dummy strip; ac_word=$2 3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3732$as_echo_n "checking for $ac_word... " >&6; } 3733if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 3734 $as_echo_n "(cached) " >&6 3735else 3736 if test -n "$ac_ct_STRIP"; then 3737 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3738else 3739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3740for as_dir in $PATH 3741do 3742 IFS=$as_save_IFS 3743 test -z "$as_dir" && as_dir=. 3744 for ac_exec_ext in '' $ac_executable_extensions; do 3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3746 ac_cv_prog_ac_ct_STRIP="strip" 3747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3748 break 2 3749 fi 3750done 3751 done 3752IFS=$as_save_IFS 3753 3754fi 3755fi 3756ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3757if test -n "$ac_ct_STRIP"; then 3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3759$as_echo "$ac_ct_STRIP" >&6; } 3760else 3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3762$as_echo "no" >&6; } 3763fi 3764 3765 if test "x$ac_ct_STRIP" = x; then 3766 STRIP=":" 3767 else 3768 case $cross_compiling:$ac_tool_warned in 3769yes:) 3770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3772ac_tool_warned=yes ;; 3773esac 3774 STRIP=$ac_ct_STRIP 3775 fi 3776else 3777 STRIP="$ac_cv_prog_STRIP" 3778fi 3779 3780fi 3781INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3782 3783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3784$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3785if test -z "$MKDIR_P"; then 3786 if test "${ac_cv_path_mkdir+set}" = set; then : 3787 $as_echo_n "(cached) " >&6 3788else 3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3790for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3791do 3792 IFS=$as_save_IFS 3793 test -z "$as_dir" && as_dir=. 3794 for ac_prog in mkdir gmkdir; do 3795 for ac_exec_ext in '' $ac_executable_extensions; do 3796 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3797 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3798 'mkdir (GNU coreutils) '* | \ 3799 'mkdir (coreutils) '* | \ 3800 'mkdir (fileutils) '4.1*) 3801 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3802 break 3;; 3803 esac 3804 done 3805 done 3806 done 3807IFS=$as_save_IFS 3808 3809fi 3810 3811 if test "${ac_cv_path_mkdir+set}" = set; then 3812 MKDIR_P="$ac_cv_path_mkdir -p" 3813 else 3814 # As a last resort, use the slow shell script. Don't cache a 3815 # value for MKDIR_P within a source directory, because that will 3816 # break other packages using the cache if that directory is 3817 # removed, or if the value is a relative name. 3818 test -d ./--version && rmdir ./--version 3819 MKDIR_P="$ac_install_sh -d" 3820 fi 3821fi 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3823$as_echo "$MKDIR_P" >&6; } 3824 3825mkdir_p="$MKDIR_P" 3826case $mkdir_p in 3827 [\\/$]* | ?:[\\/]*) ;; 3828 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3829esac 3830 3831for ac_prog in gawk mawk nawk awk 3832do 3833 # Extract the first word of "$ac_prog", so it can be a program name with args. 3834set dummy $ac_prog; ac_word=$2 3835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3836$as_echo_n "checking for $ac_word... " >&6; } 3837if test "${ac_cv_prog_AWK+set}" = set; then : 3838 $as_echo_n "(cached) " >&6 3839else 3840 if test -n "$AWK"; then 3841 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3842else 3843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3844for as_dir in $PATH 3845do 3846 IFS=$as_save_IFS 3847 test -z "$as_dir" && as_dir=. 3848 for ac_exec_ext in '' $ac_executable_extensions; do 3849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3850 ac_cv_prog_AWK="$ac_prog" 3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3852 break 2 3853 fi 3854done 3855 done 3856IFS=$as_save_IFS 3857 3858fi 3859fi 3860AWK=$ac_cv_prog_AWK 3861if test -n "$AWK"; then 3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3863$as_echo "$AWK" >&6; } 3864else 3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3866$as_echo "no" >&6; } 3867fi 3868 3869 3870 test -n "$AWK" && break 3871done 3872 3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3874$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3875set x ${MAKE-make} 3876ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3877if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3878 $as_echo_n "(cached) " >&6 3879else 3880 cat >conftest.make <<\_ACEOF 3881SHELL = /bin/sh 3882all: 3883 @echo '@@@%%%=$(MAKE)=@@@%%%' 3884_ACEOF 3885# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3886case `${MAKE-make} -f conftest.make 2>/dev/null` in 3887 *@@@%%%=?*=@@@%%%*) 3888 eval ac_cv_prog_make_${ac_make}_set=yes;; 3889 *) 3890 eval ac_cv_prog_make_${ac_make}_set=no;; 3891esac 3892rm -f conftest.make 3893fi 3894if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3896$as_echo "yes" >&6; } 3897 SET_MAKE= 3898else 3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3900$as_echo "no" >&6; } 3901 SET_MAKE="MAKE=${MAKE-make}" 3902fi 3903 3904rm -rf .tst 2>/dev/null 3905mkdir .tst 2>/dev/null 3906if test -d .tst; then 3907 am__leading_dot=. 3908else 3909 am__leading_dot=_ 3910fi 3911rmdir .tst 2>/dev/null 3912 3913DEPDIR="${am__leading_dot}deps" 3914 3915ac_config_commands="$ac_config_commands depfiles" 3916 3917 3918am_make=${MAKE-make} 3919cat > confinc << 'END' 3920am__doit: 3921 @echo this is the am__doit target 3922.PHONY: am__doit 3923END 3924# If we don't find an include directive, just comment out the code. 3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3926$as_echo_n "checking for style of include used by $am_make... " >&6; } 3927am__include="#" 3928am__quote= 3929_am_result=none 3930# First try GNU make style include. 3931echo "include confinc" > confmf 3932# Ignore all kinds of additional output from `make'. 3933case `$am_make -s -f confmf 2> /dev/null` in #( 3934*the\ am__doit\ target*) 3935 am__include=include 3936 am__quote= 3937 _am_result=GNU 3938 ;; 3939esac 3940# Now try BSD make style include. 3941if test "$am__include" = "#"; then 3942 echo '.include "confinc"' > confmf 3943 case `$am_make -s -f confmf 2> /dev/null` in #( 3944 *the\ am__doit\ target*) 3945 am__include=.include 3946 am__quote="\"" 3947 _am_result=BSD 3948 ;; 3949 esac 3950fi 3951 3952 3953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3954$as_echo "$_am_result" >&6; } 3955rm -f confinc confmf 3956 3957# Check whether --enable-dependency-tracking was given. 3958if test "${enable_dependency_tracking+set}" = set; then : 3959 enableval=$enable_dependency_tracking; 3960fi 3961 3962if test "x$enable_dependency_tracking" != xno; then 3963 am_depcomp="$ac_aux_dir/depcomp" 3964 AMDEPBACKSLASH='\' 3965fi 3966 if test "x$enable_dependency_tracking" != xno; then 3967 AMDEP_TRUE= 3968 AMDEP_FALSE='#' 3969else 3970 AMDEP_TRUE='#' 3971 AMDEP_FALSE= 3972fi 3973 3974 3975if test "`cd $srcdir && pwd`" != "`pwd`"; then 3976 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3977 # is not polluted with repeated "-I." 3978 am__isrc=' -I$(srcdir)' 3979 # test to see if srcdir already configured 3980 if test -f $srcdir/config.status; then 3981 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3982 fi 3983fi 3984 3985# test whether we have cygpath 3986if test -z "$CYGPATH_W"; then 3987 if (cygpath --version) >/dev/null 2>/dev/null; then 3988 CYGPATH_W='cygpath -w' 3989 else 3990 CYGPATH_W=echo 3991 fi 3992fi 3993 3994 3995# Define the identity of the package. 3996 PACKAGE='bfd' 3997 VERSION='2.25.51' 3998 3999 4000cat >>confdefs.h <<_ACEOF 4001#define PACKAGE "$PACKAGE" 4002_ACEOF 4003 4004 4005cat >>confdefs.h <<_ACEOF 4006#define VERSION "$VERSION" 4007_ACEOF 4008 4009# Some tools Automake needs. 4010 4011ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4012 4013 4014AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4015 4016 4017AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4018 4019 4020AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4021 4022 4023MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4024 4025# We need awk for the "check" target. The system "awk" is bad on 4026# some platforms. 4027# Always define AMTAR for backward compatibility. 4028 4029AMTAR=${AMTAR-"${am_missing_run}tar"} 4030 4031am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 4032 4033 4034 4035 4036depcc="$CC" am_compiler_list= 4037 4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4039$as_echo_n "checking dependency style of $depcc... " >&6; } 4040if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4041 $as_echo_n "(cached) " >&6 4042else 4043 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4044 # We make a subdir and do the tests there. Otherwise we can end up 4045 # making bogus files that we don't know about and never remove. For 4046 # instance it was reported that on HP-UX the gcc test will end up 4047 # making a dummy file named `D' -- because `-MD' means `put the output 4048 # in D'. 4049 mkdir conftest.dir 4050 # Copy depcomp to subdir because otherwise we won't find it if we're 4051 # using a relative directory. 4052 cp "$am_depcomp" conftest.dir 4053 cd conftest.dir 4054 # We will build objects and dependencies in a subdirectory because 4055 # it helps to detect inapplicable dependency modes. For instance 4056 # both Tru64's cc and ICC support -MD to output dependencies as a 4057 # side effect of compilation, but ICC will put the dependencies in 4058 # the current directory while Tru64 will put them in the object 4059 # directory. 4060 mkdir sub 4061 4062 am_cv_CC_dependencies_compiler_type=none 4063 if test "$am_compiler_list" = ""; then 4064 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4065 fi 4066 am__universal=false 4067 case " $depcc " in #( 4068 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4069 esac 4070 4071 for depmode in $am_compiler_list; do 4072 # Setup a source with many dependencies, because some compilers 4073 # like to wrap large dependency lists on column 80 (with \), and 4074 # we should not choose a depcomp mode which is confused by this. 4075 # 4076 # We need to recreate these files for each test, as the compiler may 4077 # overwrite some of them when testing with obscure command lines. 4078 # This happens at least with the AIX C compiler. 4079 : > sub/conftest.c 4080 for i in 1 2 3 4 5 6; do 4081 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4082 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4083 # Solaris 8's {/usr,}/bin/sh. 4084 touch sub/conftst$i.h 4085 done 4086 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4087 4088 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4089 # mode. It turns out that the SunPro C++ compiler does not properly 4090 # handle `-M -o', and we need to detect this. Also, some Intel 4091 # versions had trouble with output in subdirs 4092 am__obj=sub/conftest.${OBJEXT-o} 4093 am__minus_obj="-o $am__obj" 4094 case $depmode in 4095 gcc) 4096 # This depmode causes a compiler race in universal mode. 4097 test "$am__universal" = false || continue 4098 ;; 4099 nosideeffect) 4100 # after this tag, mechanisms are not by side-effect, so they'll 4101 # only be used when explicitly requested 4102 if test "x$enable_dependency_tracking" = xyes; then 4103 continue 4104 else 4105 break 4106 fi 4107 ;; 4108 msvisualcpp | msvcmsys) 4109 # This compiler won't grok `-c -o', but also, the minuso test has 4110 # not run yet. These depmodes are late enough in the game, and 4111 # so weak that their functioning should not be impacted. 4112 am__obj=conftest.${OBJEXT-o} 4113 am__minus_obj= 4114 ;; 4115 none) break ;; 4116 esac 4117 if depmode=$depmode \ 4118 source=sub/conftest.c object=$am__obj \ 4119 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4120 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4121 >/dev/null 2>conftest.err && 4122 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4123 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4124 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4125 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4126 # icc doesn't choke on unknown options, it will just issue warnings 4127 # or remarks (even with -Werror). So we grep stderr for any message 4128 # that says an option was ignored or not supported. 4129 # When given -MP, icc 7.0 and 7.1 complain thusly: 4130 # icc: Command line warning: ignoring option '-M'; no argument required 4131 # The diagnosis changed in icc 8.0: 4132 # icc: Command line remark: option '-MP' not supported 4133 if (grep 'ignoring option' conftest.err || 4134 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4135 am_cv_CC_dependencies_compiler_type=$depmode 4136 break 4137 fi 4138 fi 4139 done 4140 4141 cd .. 4142 rm -rf conftest.dir 4143else 4144 am_cv_CC_dependencies_compiler_type=none 4145fi 4146 4147fi 4148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4149$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4150CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4151 4152 if 4153 test "x$enable_dependency_tracking" != xno \ 4154 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4155 am__fastdepCC_TRUE= 4156 am__fastdepCC_FALSE='#' 4157else 4158 am__fastdepCC_TRUE='#' 4159 am__fastdepCC_FALSE= 4160fi 4161 4162 4163 4164 4165if test -n "$ac_tool_prefix"; then 4166 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4167set dummy ${ac_tool_prefix}ar; ac_word=$2 4168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4169$as_echo_n "checking for $ac_word... " >&6; } 4170if test "${ac_cv_prog_AR+set}" = set; then : 4171 $as_echo_n "(cached) " >&6 4172else 4173 if test -n "$AR"; then 4174 ac_cv_prog_AR="$AR" # Let the user override the test. 4175else 4176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4177for as_dir in $PATH 4178do 4179 IFS=$as_save_IFS 4180 test -z "$as_dir" && as_dir=. 4181 for ac_exec_ext in '' $ac_executable_extensions; do 4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4183 ac_cv_prog_AR="${ac_tool_prefix}ar" 4184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4185 break 2 4186 fi 4187done 4188 done 4189IFS=$as_save_IFS 4190 4191fi 4192fi 4193AR=$ac_cv_prog_AR 4194if test -n "$AR"; then 4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4196$as_echo "$AR" >&6; } 4197else 4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4199$as_echo "no" >&6; } 4200fi 4201 4202 4203fi 4204if test -z "$ac_cv_prog_AR"; then 4205 ac_ct_AR=$AR 4206 # Extract the first word of "ar", so it can be a program name with args. 4207set dummy ar; ac_word=$2 4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4209$as_echo_n "checking for $ac_word... " >&6; } 4210if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 4211 $as_echo_n "(cached) " >&6 4212else 4213 if test -n "$ac_ct_AR"; then 4214 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4215else 4216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4217for as_dir in $PATH 4218do 4219 IFS=$as_save_IFS 4220 test -z "$as_dir" && as_dir=. 4221 for ac_exec_ext in '' $ac_executable_extensions; do 4222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4223 ac_cv_prog_ac_ct_AR="ar" 4224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4225 break 2 4226 fi 4227done 4228 done 4229IFS=$as_save_IFS 4230 4231fi 4232fi 4233ac_ct_AR=$ac_cv_prog_ac_ct_AR 4234if test -n "$ac_ct_AR"; then 4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4236$as_echo "$ac_ct_AR" >&6; } 4237else 4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4239$as_echo "no" >&6; } 4240fi 4241 4242 if test "x$ac_ct_AR" = x; then 4243 AR="" 4244 else 4245 case $cross_compiling:$ac_tool_warned in 4246yes:) 4247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4249ac_tool_warned=yes ;; 4250esac 4251 AR=$ac_ct_AR 4252 fi 4253else 4254 AR="$ac_cv_prog_AR" 4255fi 4256 4257if test -n "$ac_tool_prefix"; then 4258 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4259set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4261$as_echo_n "checking for $ac_word... " >&6; } 4262if test "${ac_cv_prog_RANLIB+set}" = set; then : 4263 $as_echo_n "(cached) " >&6 4264else 4265 if test -n "$RANLIB"; then 4266 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4267else 4268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4269for as_dir in $PATH 4270do 4271 IFS=$as_save_IFS 4272 test -z "$as_dir" && as_dir=. 4273 for ac_exec_ext in '' $ac_executable_extensions; do 4274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4275 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4277 break 2 4278 fi 4279done 4280 done 4281IFS=$as_save_IFS 4282 4283fi 4284fi 4285RANLIB=$ac_cv_prog_RANLIB 4286if test -n "$RANLIB"; then 4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4288$as_echo "$RANLIB" >&6; } 4289else 4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4291$as_echo "no" >&6; } 4292fi 4293 4294 4295fi 4296if test -z "$ac_cv_prog_RANLIB"; then 4297 ac_ct_RANLIB=$RANLIB 4298 # Extract the first word of "ranlib", so it can be a program name with args. 4299set dummy ranlib; ac_word=$2 4300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4301$as_echo_n "checking for $ac_word... " >&6; } 4302if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 4303 $as_echo_n "(cached) " >&6 4304else 4305 if test -n "$ac_ct_RANLIB"; then 4306 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4307else 4308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4309for as_dir in $PATH 4310do 4311 IFS=$as_save_IFS 4312 test -z "$as_dir" && as_dir=. 4313 for ac_exec_ext in '' $ac_executable_extensions; do 4314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4315 ac_cv_prog_ac_ct_RANLIB="ranlib" 4316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4317 break 2 4318 fi 4319done 4320 done 4321IFS=$as_save_IFS 4322 4323fi 4324fi 4325ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4326if test -n "$ac_ct_RANLIB"; then 4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4328$as_echo "$ac_ct_RANLIB" >&6; } 4329else 4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4331$as_echo "no" >&6; } 4332fi 4333 4334 if test "x$ac_ct_RANLIB" = x; then 4335 RANLIB=":" 4336 else 4337 case $cross_compiling:$ac_tool_warned in 4338yes:) 4339{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4341ac_tool_warned=yes ;; 4342esac 4343 RANLIB=$ac_ct_RANLIB 4344 fi 4345else 4346 RANLIB="$ac_cv_prog_RANLIB" 4347fi 4348 4349 4350# Check whether --enable-shared was given. 4351if test "${enable_shared+set}" = set; then : 4352 enableval=$enable_shared; p=${PACKAGE-default} 4353 case $enableval in 4354 yes) enable_shared=yes ;; 4355 no) enable_shared=no ;; 4356 *) 4357 enable_shared=no 4358 # Look at the argument we got. We use all the common list separators. 4359 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4360 for pkg in $enableval; do 4361 IFS="$lt_save_ifs" 4362 if test "X$pkg" = "X$p"; then 4363 enable_shared=yes 4364 fi 4365 done 4366 IFS="$lt_save_ifs" 4367 ;; 4368 esac 4369else 4370 enable_shared=no 4371fi 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382ac_ext=c 4383ac_cpp='$CPP $CPPFLAGS' 4384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4386ac_compiler_gnu=$ac_cv_c_compiler_gnu 4387if test -n "$ac_tool_prefix"; then 4388 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4389set dummy ${ac_tool_prefix}gcc; ac_word=$2 4390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4391$as_echo_n "checking for $ac_word... " >&6; } 4392if test "${ac_cv_prog_CC+set}" = set; then : 4393 $as_echo_n "(cached) " >&6 4394else 4395 if test -n "$CC"; then 4396 ac_cv_prog_CC="$CC" # Let the user override the test. 4397else 4398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4399for as_dir in $PATH 4400do 4401 IFS=$as_save_IFS 4402 test -z "$as_dir" && as_dir=. 4403 for ac_exec_ext in '' $ac_executable_extensions; do 4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4405 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4407 break 2 4408 fi 4409done 4410 done 4411IFS=$as_save_IFS 4412 4413fi 4414fi 4415CC=$ac_cv_prog_CC 4416if test -n "$CC"; then 4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4418$as_echo "$CC" >&6; } 4419else 4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4421$as_echo "no" >&6; } 4422fi 4423 4424 4425fi 4426if test -z "$ac_cv_prog_CC"; then 4427 ac_ct_CC=$CC 4428 # Extract the first word of "gcc", so it can be a program name with args. 4429set dummy gcc; ac_word=$2 4430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4431$as_echo_n "checking for $ac_word... " >&6; } 4432if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4433 $as_echo_n "(cached) " >&6 4434else 4435 if test -n "$ac_ct_CC"; then 4436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4437else 4438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4439for as_dir in $PATH 4440do 4441 IFS=$as_save_IFS 4442 test -z "$as_dir" && as_dir=. 4443 for ac_exec_ext in '' $ac_executable_extensions; do 4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4445 ac_cv_prog_ac_ct_CC="gcc" 4446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4447 break 2 4448 fi 4449done 4450 done 4451IFS=$as_save_IFS 4452 4453fi 4454fi 4455ac_ct_CC=$ac_cv_prog_ac_ct_CC 4456if test -n "$ac_ct_CC"; then 4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4458$as_echo "$ac_ct_CC" >&6; } 4459else 4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4461$as_echo "no" >&6; } 4462fi 4463 4464 if test "x$ac_ct_CC" = x; then 4465 CC="" 4466 else 4467 case $cross_compiling:$ac_tool_warned in 4468yes:) 4469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4471ac_tool_warned=yes ;; 4472esac 4473 CC=$ac_ct_CC 4474 fi 4475else 4476 CC="$ac_cv_prog_CC" 4477fi 4478 4479if test -z "$CC"; then 4480 if test -n "$ac_tool_prefix"; then 4481 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4482set dummy ${ac_tool_prefix}cc; ac_word=$2 4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4484$as_echo_n "checking for $ac_word... " >&6; } 4485if test "${ac_cv_prog_CC+set}" = set; then : 4486 $as_echo_n "(cached) " >&6 4487else 4488 if test -n "$CC"; then 4489 ac_cv_prog_CC="$CC" # Let the user override the test. 4490else 4491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4492for as_dir in $PATH 4493do 4494 IFS=$as_save_IFS 4495 test -z "$as_dir" && as_dir=. 4496 for ac_exec_ext in '' $ac_executable_extensions; do 4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4498 ac_cv_prog_CC="${ac_tool_prefix}cc" 4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4500 break 2 4501 fi 4502done 4503 done 4504IFS=$as_save_IFS 4505 4506fi 4507fi 4508CC=$ac_cv_prog_CC 4509if test -n "$CC"; then 4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4511$as_echo "$CC" >&6; } 4512else 4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4514$as_echo "no" >&6; } 4515fi 4516 4517 4518 fi 4519fi 4520if test -z "$CC"; then 4521 # Extract the first word of "cc", so it can be a program name with args. 4522set dummy cc; ac_word=$2 4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4524$as_echo_n "checking for $ac_word... " >&6; } 4525if test "${ac_cv_prog_CC+set}" = set; then : 4526 $as_echo_n "(cached) " >&6 4527else 4528 if test -n "$CC"; then 4529 ac_cv_prog_CC="$CC" # Let the user override the test. 4530else 4531 ac_prog_rejected=no 4532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4533for as_dir in $PATH 4534do 4535 IFS=$as_save_IFS 4536 test -z "$as_dir" && as_dir=. 4537 for ac_exec_ext in '' $ac_executable_extensions; do 4538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4539 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4540 ac_prog_rejected=yes 4541 continue 4542 fi 4543 ac_cv_prog_CC="cc" 4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4545 break 2 4546 fi 4547done 4548 done 4549IFS=$as_save_IFS 4550 4551if test $ac_prog_rejected = yes; then 4552 # We found a bogon in the path, so make sure we never use it. 4553 set dummy $ac_cv_prog_CC 4554 shift 4555 if test $# != 0; then 4556 # We chose a different compiler from the bogus one. 4557 # However, it has the same basename, so the bogon will be chosen 4558 # first if we set CC to just the basename; use the full file name. 4559 shift 4560 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4561 fi 4562fi 4563fi 4564fi 4565CC=$ac_cv_prog_CC 4566if test -n "$CC"; then 4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4568$as_echo "$CC" >&6; } 4569else 4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4571$as_echo "no" >&6; } 4572fi 4573 4574 4575fi 4576if test -z "$CC"; then 4577 if test -n "$ac_tool_prefix"; then 4578 for ac_prog in cl.exe 4579 do 4580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4581set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4583$as_echo_n "checking for $ac_word... " >&6; } 4584if test "${ac_cv_prog_CC+set}" = set; then : 4585 $as_echo_n "(cached) " >&6 4586else 4587 if test -n "$CC"; then 4588 ac_cv_prog_CC="$CC" # Let the user override the test. 4589else 4590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4591for as_dir in $PATH 4592do 4593 IFS=$as_save_IFS 4594 test -z "$as_dir" && as_dir=. 4595 for ac_exec_ext in '' $ac_executable_extensions; do 4596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4597 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4599 break 2 4600 fi 4601done 4602 done 4603IFS=$as_save_IFS 4604 4605fi 4606fi 4607CC=$ac_cv_prog_CC 4608if test -n "$CC"; then 4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4610$as_echo "$CC" >&6; } 4611else 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4613$as_echo "no" >&6; } 4614fi 4615 4616 4617 test -n "$CC" && break 4618 done 4619fi 4620if test -z "$CC"; then 4621 ac_ct_CC=$CC 4622 for ac_prog in cl.exe 4623do 4624 # Extract the first word of "$ac_prog", so it can be a program name with args. 4625set dummy $ac_prog; ac_word=$2 4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4627$as_echo_n "checking for $ac_word... " >&6; } 4628if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4629 $as_echo_n "(cached) " >&6 4630else 4631 if test -n "$ac_ct_CC"; then 4632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4633else 4634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4635for as_dir in $PATH 4636do 4637 IFS=$as_save_IFS 4638 test -z "$as_dir" && as_dir=. 4639 for ac_exec_ext in '' $ac_executable_extensions; do 4640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4641 ac_cv_prog_ac_ct_CC="$ac_prog" 4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4643 break 2 4644 fi 4645done 4646 done 4647IFS=$as_save_IFS 4648 4649fi 4650fi 4651ac_ct_CC=$ac_cv_prog_ac_ct_CC 4652if test -n "$ac_ct_CC"; then 4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4654$as_echo "$ac_ct_CC" >&6; } 4655else 4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4657$as_echo "no" >&6; } 4658fi 4659 4660 4661 test -n "$ac_ct_CC" && break 4662done 4663 4664 if test "x$ac_ct_CC" = x; then 4665 CC="" 4666 else 4667 case $cross_compiling:$ac_tool_warned in 4668yes:) 4669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4671ac_tool_warned=yes ;; 4672esac 4673 CC=$ac_ct_CC 4674 fi 4675fi 4676 4677fi 4678 4679 4680test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4682as_fn_error "no acceptable C compiler found in \$PATH 4683See \`config.log' for more details." "$LINENO" 5; } 4684 4685# Provide some information about the compiler. 4686$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4687set X $ac_compile 4688ac_compiler=$2 4689for ac_option in --version -v -V -qversion; do 4690 { { ac_try="$ac_compiler $ac_option >&5" 4691case "(($ac_try" in 4692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4693 *) ac_try_echo=$ac_try;; 4694esac 4695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4696$as_echo "$ac_try_echo"; } >&5 4697 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4698 ac_status=$? 4699 if test -s conftest.err; then 4700 sed '10a\ 4701... rest of stderr output deleted ... 4702 10q' conftest.err >conftest.er1 4703 cat conftest.er1 >&5 4704 rm -f conftest.er1 conftest.err 4705 fi 4706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4707 test $ac_status = 0; } 4708done 4709 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4711$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4712if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4713 $as_echo_n "(cached) " >&6 4714else 4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4716/* end confdefs.h. */ 4717 4718int 4719main () 4720{ 4721#ifndef __GNUC__ 4722 choke me 4723#endif 4724 4725 ; 4726 return 0; 4727} 4728_ACEOF 4729if ac_fn_c_try_compile "$LINENO"; then : 4730 ac_compiler_gnu=yes 4731else 4732 ac_compiler_gnu=no 4733fi 4734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4735ac_cv_c_compiler_gnu=$ac_compiler_gnu 4736 4737fi 4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4739$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4740if test $ac_compiler_gnu = yes; then 4741 GCC=yes 4742else 4743 GCC= 4744fi 4745ac_test_CFLAGS=${CFLAGS+set} 4746ac_save_CFLAGS=$CFLAGS 4747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4748$as_echo_n "checking whether $CC accepts -g... " >&6; } 4749if test "${ac_cv_prog_cc_g+set}" = set; then : 4750 $as_echo_n "(cached) " >&6 4751else 4752 ac_save_c_werror_flag=$ac_c_werror_flag 4753 ac_c_werror_flag=yes 4754 ac_cv_prog_cc_g=no 4755 CFLAGS="-g" 4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4757/* end confdefs.h. */ 4758 4759int 4760main () 4761{ 4762 4763 ; 4764 return 0; 4765} 4766_ACEOF 4767if ac_fn_c_try_compile "$LINENO"; then : 4768 ac_cv_prog_cc_g=yes 4769else 4770 CFLAGS="" 4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4772/* end confdefs.h. */ 4773 4774int 4775main () 4776{ 4777 4778 ; 4779 return 0; 4780} 4781_ACEOF 4782if ac_fn_c_try_compile "$LINENO"; then : 4783 4784else 4785 ac_c_werror_flag=$ac_save_c_werror_flag 4786 CFLAGS="-g" 4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4788/* end confdefs.h. */ 4789 4790int 4791main () 4792{ 4793 4794 ; 4795 return 0; 4796} 4797_ACEOF 4798if ac_fn_c_try_compile "$LINENO"; then : 4799 ac_cv_prog_cc_g=yes 4800fi 4801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4802fi 4803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4804fi 4805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4806 ac_c_werror_flag=$ac_save_c_werror_flag 4807fi 4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4809$as_echo "$ac_cv_prog_cc_g" >&6; } 4810if test "$ac_test_CFLAGS" = set; then 4811 CFLAGS=$ac_save_CFLAGS 4812elif test $ac_cv_prog_cc_g = yes; then 4813 if test "$GCC" = yes; then 4814 CFLAGS="-g -O2" 4815 else 4816 CFLAGS="-g" 4817 fi 4818else 4819 if test "$GCC" = yes; then 4820 CFLAGS="-O2" 4821 else 4822 CFLAGS= 4823 fi 4824fi 4825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4826$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4827if test "${ac_cv_prog_cc_c89+set}" = set; then : 4828 $as_echo_n "(cached) " >&6 4829else 4830 ac_cv_prog_cc_c89=no 4831ac_save_CC=$CC 4832cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4833/* end confdefs.h. */ 4834#include <stdarg.h> 4835#include <stdio.h> 4836#include <sys/types.h> 4837#include <sys/stat.h> 4838/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4839struct buf { int x; }; 4840FILE * (*rcsopen) (struct buf *, struct stat *, int); 4841static char *e (p, i) 4842 char **p; 4843 int i; 4844{ 4845 return p[i]; 4846} 4847static char *f (char * (*g) (char **, int), char **p, ...) 4848{ 4849 char *s; 4850 va_list v; 4851 va_start (v,p); 4852 s = g (p, va_arg (v,int)); 4853 va_end (v); 4854 return s; 4855} 4856 4857/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4858 function prototypes and stuff, but not '\xHH' hex character constants. 4859 These don't provoke an error unfortunately, instead are silently treated 4860 as 'x'. The following induces an error, until -std is added to get 4861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4862 array size at least. It's necessary to write '\x00'==0 to get something 4863 that's true only with -std. */ 4864int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4865 4866/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4867 inside strings and character constants. */ 4868#define FOO(x) 'x' 4869int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4870 4871int test (int i, double x); 4872struct s1 {int (*f) (int a);}; 4873struct s2 {int (*f) (double a);}; 4874int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4875int argc; 4876char **argv; 4877int 4878main () 4879{ 4880return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4881 ; 4882 return 0; 4883} 4884_ACEOF 4885for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4887do 4888 CC="$ac_save_CC $ac_arg" 4889 if ac_fn_c_try_compile "$LINENO"; then : 4890 ac_cv_prog_cc_c89=$ac_arg 4891fi 4892rm -f core conftest.err conftest.$ac_objext 4893 test "x$ac_cv_prog_cc_c89" != "xno" && break 4894done 4895rm -f conftest.$ac_ext 4896CC=$ac_save_CC 4897 4898fi 4899# AC_CACHE_VAL 4900case "x$ac_cv_prog_cc_c89" in 4901 x) 4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4903$as_echo "none needed" >&6; } ;; 4904 xno) 4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4906$as_echo "unsupported" >&6; } ;; 4907 *) 4908 CC="$CC $ac_cv_prog_cc_c89" 4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4910$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4911esac 4912if test "x$ac_cv_prog_cc_c89" != xno; then : 4913 4914fi 4915 4916ac_ext=c 4917ac_cpp='$CPP $CPPFLAGS' 4918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4920ac_compiler_gnu=$ac_cv_c_compiler_gnu 4921 4922ac_ext=c 4923ac_cpp='$CPP $CPPFLAGS' 4924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4926ac_compiler_gnu=$ac_cv_c_compiler_gnu 4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4928$as_echo_n "checking how to run the C preprocessor... " >&6; } 4929# On Suns, sometimes $CPP names a directory. 4930if test -n "$CPP" && test -d "$CPP"; then 4931 CPP= 4932fi 4933if test -z "$CPP"; then 4934 if test "${ac_cv_prog_CPP+set}" = set; then : 4935 $as_echo_n "(cached) " >&6 4936else 4937 # Double quotes because CPP needs to be expanded 4938 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4939 do 4940 ac_preproc_ok=false 4941for ac_c_preproc_warn_flag in '' yes 4942do 4943 # Use a header file that comes with gcc, so configuring glibc 4944 # with a fresh cross-compiler works. 4945 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4946 # <limits.h> exists even on freestanding compilers. 4947 # On the NeXT, cc -E runs the code through the compiler's parser, 4948 # not just through cpp. "Syntax error" is here to catch this case. 4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4950/* end confdefs.h. */ 4951#ifdef __STDC__ 4952# include <limits.h> 4953#else 4954# include <assert.h> 4955#endif 4956 Syntax error 4957_ACEOF 4958if ac_fn_c_try_cpp "$LINENO"; then : 4959 4960else 4961 # Broken: fails on valid input. 4962continue 4963fi 4964rm -f conftest.err conftest.$ac_ext 4965 4966 # OK, works on sane cases. Now check whether nonexistent headers 4967 # can be detected and how. 4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4969/* end confdefs.h. */ 4970#include <ac_nonexistent.h> 4971_ACEOF 4972if ac_fn_c_try_cpp "$LINENO"; then : 4973 # Broken: success on invalid input. 4974continue 4975else 4976 # Passes both tests. 4977ac_preproc_ok=: 4978break 4979fi 4980rm -f conftest.err conftest.$ac_ext 4981 4982done 4983# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4984rm -f conftest.err conftest.$ac_ext 4985if $ac_preproc_ok; then : 4986 break 4987fi 4988 4989 done 4990 ac_cv_prog_CPP=$CPP 4991 4992fi 4993 CPP=$ac_cv_prog_CPP 4994else 4995 ac_cv_prog_CPP=$CPP 4996fi 4997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4998$as_echo "$CPP" >&6; } 4999ac_preproc_ok=false 5000for ac_c_preproc_warn_flag in '' yes 5001do 5002 # Use a header file that comes with gcc, so configuring glibc 5003 # with a fresh cross-compiler works. 5004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5005 # <limits.h> exists even on freestanding compilers. 5006 # On the NeXT, cc -E runs the code through the compiler's parser, 5007 # not just through cpp. "Syntax error" is here to catch this case. 5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5009/* end confdefs.h. */ 5010#ifdef __STDC__ 5011# include <limits.h> 5012#else 5013# include <assert.h> 5014#endif 5015 Syntax error 5016_ACEOF 5017if ac_fn_c_try_cpp "$LINENO"; then : 5018 5019else 5020 # Broken: fails on valid input. 5021continue 5022fi 5023rm -f conftest.err conftest.$ac_ext 5024 5025 # OK, works on sane cases. Now check whether nonexistent headers 5026 # can be detected and how. 5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5028/* end confdefs.h. */ 5029#include <ac_nonexistent.h> 5030_ACEOF 5031if ac_fn_c_try_cpp "$LINENO"; then : 5032 # Broken: success on invalid input. 5033continue 5034else 5035 # Passes both tests. 5036ac_preproc_ok=: 5037break 5038fi 5039rm -f conftest.err conftest.$ac_ext 5040 5041done 5042# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5043rm -f conftest.err conftest.$ac_ext 5044if $ac_preproc_ok; then : 5045 5046else 5047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5049as_fn_error "C preprocessor \"$CPP\" fails sanity check 5050See \`config.log' for more details." "$LINENO" 5; } 5051fi 5052 5053ac_ext=c 5054ac_cpp='$CPP $CPPFLAGS' 5055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5057ac_compiler_gnu=$ac_cv_c_compiler_gnu 5058 5059 5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5061$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5062if test "${ac_cv_path_GREP+set}" = set; then : 5063 $as_echo_n "(cached) " >&6 5064else 5065 if test -z "$GREP"; then 5066 ac_path_GREP_found=false 5067 # Loop through the user's path and test for each of PROGNAME-LIST 5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5069for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5070do 5071 IFS=$as_save_IFS 5072 test -z "$as_dir" && as_dir=. 5073 for ac_prog in grep ggrep; do 5074 for ac_exec_ext in '' $ac_executable_extensions; do 5075 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5076 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 5077# Check for GNU ac_path_GREP and select it if it is found. 5078 # Check for GNU $ac_path_GREP 5079case `"$ac_path_GREP" --version 2>&1` in 5080*GNU*) 5081 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5082*) 5083 ac_count=0 5084 $as_echo_n 0123456789 >"conftest.in" 5085 while : 5086 do 5087 cat "conftest.in" "conftest.in" >"conftest.tmp" 5088 mv "conftest.tmp" "conftest.in" 5089 cp "conftest.in" "conftest.nl" 5090 $as_echo 'GREP' >> "conftest.nl" 5091 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5092 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5093 as_fn_arith $ac_count + 1 && ac_count=$as_val 5094 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5095 # Best one so far, save it but keep looking for a better one 5096 ac_cv_path_GREP="$ac_path_GREP" 5097 ac_path_GREP_max=$ac_count 5098 fi 5099 # 10*(2^10) chars as input seems more than enough 5100 test $ac_count -gt 10 && break 5101 done 5102 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5103esac 5104 5105 $ac_path_GREP_found && break 3 5106 done 5107 done 5108 done 5109IFS=$as_save_IFS 5110 if test -z "$ac_cv_path_GREP"; then 5111 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5112 fi 5113else 5114 ac_cv_path_GREP=$GREP 5115fi 5116 5117fi 5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5119$as_echo "$ac_cv_path_GREP" >&6; } 5120 GREP="$ac_cv_path_GREP" 5121 5122 5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5124$as_echo_n "checking for egrep... " >&6; } 5125if test "${ac_cv_path_EGREP+set}" = set; then : 5126 $as_echo_n "(cached) " >&6 5127else 5128 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5129 then ac_cv_path_EGREP="$GREP -E" 5130 else 5131 if test -z "$EGREP"; then 5132 ac_path_EGREP_found=false 5133 # Loop through the user's path and test for each of PROGNAME-LIST 5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5135for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5136do 5137 IFS=$as_save_IFS 5138 test -z "$as_dir" && as_dir=. 5139 for ac_prog in egrep; do 5140 for ac_exec_ext in '' $ac_executable_extensions; do 5141 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5142 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 5143# Check for GNU ac_path_EGREP and select it if it is found. 5144 # Check for GNU $ac_path_EGREP 5145case `"$ac_path_EGREP" --version 2>&1` in 5146*GNU*) 5147 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5148*) 5149 ac_count=0 5150 $as_echo_n 0123456789 >"conftest.in" 5151 while : 5152 do 5153 cat "conftest.in" "conftest.in" >"conftest.tmp" 5154 mv "conftest.tmp" "conftest.in" 5155 cp "conftest.in" "conftest.nl" 5156 $as_echo 'EGREP' >> "conftest.nl" 5157 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5158 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5159 as_fn_arith $ac_count + 1 && ac_count=$as_val 5160 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5161 # Best one so far, save it but keep looking for a better one 5162 ac_cv_path_EGREP="$ac_path_EGREP" 5163 ac_path_EGREP_max=$ac_count 5164 fi 5165 # 10*(2^10) chars as input seems more than enough 5166 test $ac_count -gt 10 && break 5167 done 5168 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5169esac 5170 5171 $ac_path_EGREP_found && break 3 5172 done 5173 done 5174 done 5175IFS=$as_save_IFS 5176 if test -z "$ac_cv_path_EGREP"; then 5177 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5178 fi 5179else 5180 ac_cv_path_EGREP=$EGREP 5181fi 5182 5183 fi 5184fi 5185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5186$as_echo "$ac_cv_path_EGREP" >&6; } 5187 EGREP="$ac_cv_path_EGREP" 5188 5189 5190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5191$as_echo_n "checking for ANSI C header files... " >&6; } 5192if test "${ac_cv_header_stdc+set}" = set; then : 5193 $as_echo_n "(cached) " >&6 5194else 5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5196/* end confdefs.h. */ 5197#include <stdlib.h> 5198#include <stdarg.h> 5199#include <string.h> 5200#include <float.h> 5201 5202int 5203main () 5204{ 5205 5206 ; 5207 return 0; 5208} 5209_ACEOF 5210if ac_fn_c_try_compile "$LINENO"; then : 5211 ac_cv_header_stdc=yes 5212else 5213 ac_cv_header_stdc=no 5214fi 5215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5216 5217if test $ac_cv_header_stdc = yes; then 5218 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5220/* end confdefs.h. */ 5221#include <string.h> 5222 5223_ACEOF 5224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5225 $EGREP "memchr" >/dev/null 2>&1; then : 5226 5227else 5228 ac_cv_header_stdc=no 5229fi 5230rm -f conftest* 5231 5232fi 5233 5234if test $ac_cv_header_stdc = yes; then 5235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5237/* end confdefs.h. */ 5238#include <stdlib.h> 5239 5240_ACEOF 5241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5242 $EGREP "free" >/dev/null 2>&1; then : 5243 5244else 5245 ac_cv_header_stdc=no 5246fi 5247rm -f conftest* 5248 5249fi 5250 5251if test $ac_cv_header_stdc = yes; then 5252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5253 if test "$cross_compiling" = yes; then : 5254 : 5255else 5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5257/* end confdefs.h. */ 5258#include <ctype.h> 5259#include <stdlib.h> 5260#if ((' ' & 0x0FF) == 0x020) 5261# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5262# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5263#else 5264# define ISLOWER(c) \ 5265 (('a' <= (c) && (c) <= 'i') \ 5266 || ('j' <= (c) && (c) <= 'r') \ 5267 || ('s' <= (c) && (c) <= 'z')) 5268# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5269#endif 5270 5271#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5272int 5273main () 5274{ 5275 int i; 5276 for (i = 0; i < 256; i++) 5277 if (XOR (islower (i), ISLOWER (i)) 5278 || toupper (i) != TOUPPER (i)) 5279 return 2; 5280 return 0; 5281} 5282_ACEOF 5283if ac_fn_c_try_run "$LINENO"; then : 5284 5285else 5286 ac_cv_header_stdc=no 5287fi 5288rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5289 conftest.$ac_objext conftest.beam conftest.$ac_ext 5290fi 5291 5292fi 5293fi 5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5295$as_echo "$ac_cv_header_stdc" >&6; } 5296if test $ac_cv_header_stdc = yes; then 5297 5298$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5299 5300fi 5301 5302# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5303for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5304 inttypes.h stdint.h unistd.h 5305do : 5306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5307ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5308" 5309eval as_val=\$$as_ac_Header 5310 if test "x$as_val" = x""yes; then : 5311 cat >>confdefs.h <<_ACEOF 5312#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5313_ACEOF 5314 5315fi 5316 5317done 5318 5319 5320 5321 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5322if test "x$ac_cv_header_minix_config_h" = x""yes; then : 5323 MINIX=yes 5324else 5325 MINIX= 5326fi 5327 5328 5329 if test "$MINIX" = yes; then 5330 5331$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5332 5333 5334$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5335 5336 5337$as_echo "#define _MINIX 1" >>confdefs.h 5338 5339 fi 5340 5341 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5343$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5344if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 5345 $as_echo_n "(cached) " >&6 5346else 5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5348/* end confdefs.h. */ 5349 5350# define __EXTENSIONS__ 1 5351 $ac_includes_default 5352int 5353main () 5354{ 5355 5356 ; 5357 return 0; 5358} 5359_ACEOF 5360if ac_fn_c_try_compile "$LINENO"; then : 5361 ac_cv_safe_to_define___extensions__=yes 5362else 5363 ac_cv_safe_to_define___extensions__=no 5364fi 5365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5366fi 5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5368$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5369 test $ac_cv_safe_to_define___extensions__ = yes && 5370 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5371 5372 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5373 5374 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5375 5376 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5377 5378 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5379 5380 5381 5382 5383 5384case `pwd` in 5385 *\ * | *\ *) 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5387$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5388esac 5389 5390 5391 5392macro_version='2.2.7a' 5393macro_revision='1.3134' 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407ltmain="$ac_aux_dir/ltmain.sh" 5408 5409# Backslashify metacharacters that are still active within 5410# double-quoted strings. 5411sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5412 5413# Same as above, but do not quote variable references. 5414double_quote_subst='s/\(["`\\]\)/\\\1/g' 5415 5416# Sed substitution to delay expansion of an escaped shell variable in a 5417# double_quote_subst'ed string. 5418delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5419 5420# Sed substitution to delay expansion of an escaped single quote. 5421delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5422 5423# Sed substitution to avoid accidental globbing in evaled expressions 5424no_glob_subst='s/\*/\\\*/g' 5425 5426ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5427ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5428ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5429 5430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5431$as_echo_n "checking how to print strings... " >&6; } 5432# Test print first, because it will be a builtin if present. 5433if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 5434 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5435 ECHO='print -r --' 5436elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5437 ECHO='printf %s\n' 5438else 5439 # Use this function as a fallback that always works. 5440 func_fallback_echo () 5441 { 5442 eval 'cat <<_LTECHO_EOF 5443$1 5444_LTECHO_EOF' 5445 } 5446 ECHO='func_fallback_echo' 5447fi 5448 5449# func_echo_all arg... 5450# Invoke $ECHO with all args, space-separated. 5451func_echo_all () 5452{ 5453 $ECHO "" 5454} 5455 5456case "$ECHO" in 5457 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5458$as_echo "printf" >&6; } ;; 5459 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5460$as_echo "print -r" >&6; } ;; 5461 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5462$as_echo "cat" >&6; } ;; 5463esac 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5479$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5480if test "${ac_cv_path_SED+set}" = set; then : 5481 $as_echo_n "(cached) " >&6 5482else 5483 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5484 for ac_i in 1 2 3 4 5 6 7; do 5485 ac_script="$ac_script$as_nl$ac_script" 5486 done 5487 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5488 { ac_script=; unset ac_script;} 5489 if test -z "$SED"; then 5490 ac_path_SED_found=false 5491 # Loop through the user's path and test for each of PROGNAME-LIST 5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5493for as_dir in $PATH 5494do 5495 IFS=$as_save_IFS 5496 test -z "$as_dir" && as_dir=. 5497 for ac_prog in sed gsed; do 5498 for ac_exec_ext in '' $ac_executable_extensions; do 5499 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5500 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5501# Check for GNU ac_path_SED and select it if it is found. 5502 # Check for GNU $ac_path_SED 5503case `"$ac_path_SED" --version 2>&1` in 5504*GNU*) 5505 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5506*) 5507 ac_count=0 5508 $as_echo_n 0123456789 >"conftest.in" 5509 while : 5510 do 5511 cat "conftest.in" "conftest.in" >"conftest.tmp" 5512 mv "conftest.tmp" "conftest.in" 5513 cp "conftest.in" "conftest.nl" 5514 $as_echo '' >> "conftest.nl" 5515 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5516 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5517 as_fn_arith $ac_count + 1 && ac_count=$as_val 5518 if test $ac_count -gt ${ac_path_SED_max-0}; then 5519 # Best one so far, save it but keep looking for a better one 5520 ac_cv_path_SED="$ac_path_SED" 5521 ac_path_SED_max=$ac_count 5522 fi 5523 # 10*(2^10) chars as input seems more than enough 5524 test $ac_count -gt 10 && break 5525 done 5526 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5527esac 5528 5529 $ac_path_SED_found && break 3 5530 done 5531 done 5532 done 5533IFS=$as_save_IFS 5534 if test -z "$ac_cv_path_SED"; then 5535 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 5536 fi 5537else 5538 ac_cv_path_SED=$SED 5539fi 5540 5541fi 5542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5543$as_echo "$ac_cv_path_SED" >&6; } 5544 SED="$ac_cv_path_SED" 5545 rm -f conftest.sed 5546 5547test -z "$SED" && SED=sed 5548Xsed="$SED -e 1s/^X//" 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5561$as_echo_n "checking for fgrep... " >&6; } 5562if test "${ac_cv_path_FGREP+set}" = set; then : 5563 $as_echo_n "(cached) " >&6 5564else 5565 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5566 then ac_cv_path_FGREP="$GREP -F" 5567 else 5568 if test -z "$FGREP"; then 5569 ac_path_FGREP_found=false 5570 # Loop through the user's path and test for each of PROGNAME-LIST 5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5572for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5573do 5574 IFS=$as_save_IFS 5575 test -z "$as_dir" && as_dir=. 5576 for ac_prog in fgrep; do 5577 for ac_exec_ext in '' $ac_executable_extensions; do 5578 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5579 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5580# Check for GNU ac_path_FGREP and select it if it is found. 5581 # Check for GNU $ac_path_FGREP 5582case `"$ac_path_FGREP" --version 2>&1` in 5583*GNU*) 5584 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5585*) 5586 ac_count=0 5587 $as_echo_n 0123456789 >"conftest.in" 5588 while : 5589 do 5590 cat "conftest.in" "conftest.in" >"conftest.tmp" 5591 mv "conftest.tmp" "conftest.in" 5592 cp "conftest.in" "conftest.nl" 5593 $as_echo 'FGREP' >> "conftest.nl" 5594 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5595 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5596 as_fn_arith $ac_count + 1 && ac_count=$as_val 5597 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5598 # Best one so far, save it but keep looking for a better one 5599 ac_cv_path_FGREP="$ac_path_FGREP" 5600 ac_path_FGREP_max=$ac_count 5601 fi 5602 # 10*(2^10) chars as input seems more than enough 5603 test $ac_count -gt 10 && break 5604 done 5605 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5606esac 5607 5608 $ac_path_FGREP_found && break 3 5609 done 5610 done 5611 done 5612IFS=$as_save_IFS 5613 if test -z "$ac_cv_path_FGREP"; then 5614 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5615 fi 5616else 5617 ac_cv_path_FGREP=$FGREP 5618fi 5619 5620 fi 5621fi 5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5623$as_echo "$ac_cv_path_FGREP" >&6; } 5624 FGREP="$ac_cv_path_FGREP" 5625 5626 5627test -z "$GREP" && GREP=grep 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647# Check whether --with-gnu-ld was given. 5648if test "${with_gnu_ld+set}" = set; then : 5649 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5650else 5651 with_gnu_ld=no 5652fi 5653 5654ac_prog=ld 5655if test "$GCC" = yes; then 5656 # Check if gcc -print-prog-name=ld gives a path. 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5658$as_echo_n "checking for ld used by $CC... " >&6; } 5659 case $host in 5660 *-*-mingw*) 5661 # gcc leaves a trailing carriage return which upsets mingw 5662 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5663 *) 5664 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5665 esac 5666 case $ac_prog in 5667 # Accept absolute paths. 5668 [\\/]* | ?:[\\/]*) 5669 re_direlt='/[^/][^/]*/\.\./' 5670 # Canonicalize the pathname of ld 5671 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5672 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5673 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5674 done 5675 test -z "$LD" && LD="$ac_prog" 5676 ;; 5677 "") 5678 # If it fails, then pretend we aren't using GCC. 5679 ac_prog=ld 5680 ;; 5681 *) 5682 # If it is relative, then search for the first ld in PATH. 5683 with_gnu_ld=unknown 5684 ;; 5685 esac 5686elif test "$with_gnu_ld" = yes; then 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5688$as_echo_n "checking for GNU ld... " >&6; } 5689else 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5691$as_echo_n "checking for non-GNU ld... " >&6; } 5692fi 5693if test "${lt_cv_path_LD+set}" = set; then : 5694 $as_echo_n "(cached) " >&6 5695else 5696 if test -z "$LD"; then 5697 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5698 for ac_dir in $PATH; do 5699 IFS="$lt_save_ifs" 5700 test -z "$ac_dir" && ac_dir=. 5701 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5702 lt_cv_path_LD="$ac_dir/$ac_prog" 5703 # Check to see if the program is GNU ld. I'd rather use --version, 5704 # but apparently some variants of GNU ld only accept -v. 5705 # Break only if it was the GNU/non-GNU ld that we prefer. 5706 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5707 *GNU* | *'with BFD'*) 5708 test "$with_gnu_ld" != no && break 5709 ;; 5710 *) 5711 test "$with_gnu_ld" != yes && break 5712 ;; 5713 esac 5714 fi 5715 done 5716 IFS="$lt_save_ifs" 5717else 5718 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5719fi 5720fi 5721 5722LD="$lt_cv_path_LD" 5723if test -n "$LD"; then 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5725$as_echo "$LD" >&6; } 5726else 5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5728$as_echo "no" >&6; } 5729fi 5730test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5732$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5733if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5734 $as_echo_n "(cached) " >&6 5735else 5736 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5737case `$LD -v 2>&1 </dev/null` in 5738*GNU* | *'with BFD'*) 5739 lt_cv_prog_gnu_ld=yes 5740 ;; 5741*) 5742 lt_cv_prog_gnu_ld=no 5743 ;; 5744esac 5745fi 5746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5747$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5748with_gnu_ld=$lt_cv_prog_gnu_ld 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5759$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5760if test "${lt_cv_path_NM+set}" = set; then : 5761 $as_echo_n "(cached) " >&6 5762else 5763 if test -n "$NM"; then 5764 # Let the user override the test. 5765 lt_cv_path_NM="$NM" 5766else 5767 lt_nm_to_check="${ac_tool_prefix}nm" 5768 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5769 lt_nm_to_check="$lt_nm_to_check nm" 5770 fi 5771 for lt_tmp_nm in $lt_nm_to_check; do 5772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5773 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5774 IFS="$lt_save_ifs" 5775 test -z "$ac_dir" && ac_dir=. 5776 tmp_nm="$ac_dir/$lt_tmp_nm" 5777 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5778 # Check to see if the nm accepts a BSD-compat flag. 5779 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5780 # nm: unknown option "B" ignored 5781 # Tru64's nm complains that /dev/null is an invalid object file 5782 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5783 */dev/null* | *'Invalid file or object type'*) 5784 lt_cv_path_NM="$tmp_nm -B" 5785 break 5786 ;; 5787 *) 5788 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5789 */dev/null*) 5790 lt_cv_path_NM="$tmp_nm -p" 5791 break 5792 ;; 5793 *) 5794 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5795 continue # so that we can try to find one that supports BSD flags 5796 ;; 5797 esac 5798 ;; 5799 esac 5800 fi 5801 done 5802 IFS="$lt_save_ifs" 5803 done 5804 : ${lt_cv_path_NM=no} 5805fi 5806fi 5807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5808$as_echo "$lt_cv_path_NM" >&6; } 5809if test "$lt_cv_path_NM" != "no"; then 5810 NM="$lt_cv_path_NM" 5811else 5812 # Didn't find any BSD compatible name lister, look for dumpbin. 5813 if test -n "$DUMPBIN"; then : 5814 # Let the user override the test. 5815 else 5816 if test -n "$ac_tool_prefix"; then 5817 for ac_prog in dumpbin "link -dump" 5818 do 5819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5820set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5822$as_echo_n "checking for $ac_word... " >&6; } 5823if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5824 $as_echo_n "(cached) " >&6 5825else 5826 if test -n "$DUMPBIN"; then 5827 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5828else 5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5830for as_dir in $PATH 5831do 5832 IFS=$as_save_IFS 5833 test -z "$as_dir" && as_dir=. 5834 for ac_exec_ext in '' $ac_executable_extensions; do 5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5836 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5838 break 2 5839 fi 5840done 5841 done 5842IFS=$as_save_IFS 5843 5844fi 5845fi 5846DUMPBIN=$ac_cv_prog_DUMPBIN 5847if test -n "$DUMPBIN"; then 5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5849$as_echo "$DUMPBIN" >&6; } 5850else 5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5852$as_echo "no" >&6; } 5853fi 5854 5855 5856 test -n "$DUMPBIN" && break 5857 done 5858fi 5859if test -z "$DUMPBIN"; then 5860 ac_ct_DUMPBIN=$DUMPBIN 5861 for ac_prog in dumpbin "link -dump" 5862do 5863 # Extract the first word of "$ac_prog", so it can be a program name with args. 5864set dummy $ac_prog; ac_word=$2 5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5866$as_echo_n "checking for $ac_word... " >&6; } 5867if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5868 $as_echo_n "(cached) " >&6 5869else 5870 if test -n "$ac_ct_DUMPBIN"; then 5871 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5872else 5873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5874for as_dir in $PATH 5875do 5876 IFS=$as_save_IFS 5877 test -z "$as_dir" && as_dir=. 5878 for ac_exec_ext in '' $ac_executable_extensions; do 5879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5880 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5882 break 2 5883 fi 5884done 5885 done 5886IFS=$as_save_IFS 5887 5888fi 5889fi 5890ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5891if test -n "$ac_ct_DUMPBIN"; then 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5893$as_echo "$ac_ct_DUMPBIN" >&6; } 5894else 5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5896$as_echo "no" >&6; } 5897fi 5898 5899 5900 test -n "$ac_ct_DUMPBIN" && break 5901done 5902 5903 if test "x$ac_ct_DUMPBIN" = x; then 5904 DUMPBIN=":" 5905 else 5906 case $cross_compiling:$ac_tool_warned in 5907yes:) 5908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5910ac_tool_warned=yes ;; 5911esac 5912 DUMPBIN=$ac_ct_DUMPBIN 5913 fi 5914fi 5915 5916 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5917 *COFF*) 5918 DUMPBIN="$DUMPBIN -symbols" 5919 ;; 5920 *) 5921 DUMPBIN=: 5922 ;; 5923 esac 5924 fi 5925 5926 if test "$DUMPBIN" != ":"; then 5927 NM="$DUMPBIN" 5928 fi 5929fi 5930test -z "$NM" && NM=nm 5931 5932 5933 5934 5935 5936 5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5938$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5939if test "${lt_cv_nm_interface+set}" = set; then : 5940 $as_echo_n "(cached) " >&6 5941else 5942 lt_cv_nm_interface="BSD nm" 5943 echo "int some_variable = 0;" > conftest.$ac_ext 5944 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5945 (eval "$ac_compile" 2>conftest.err) 5946 cat conftest.err >&5 5947 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5948 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5949 cat conftest.err >&5 5950 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5951 cat conftest.out >&5 5952 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5953 lt_cv_nm_interface="MS dumpbin" 5954 fi 5955 rm -f conftest* 5956fi 5957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5958$as_echo "$lt_cv_nm_interface" >&6; } 5959 5960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5961$as_echo_n "checking whether ln -s works... " >&6; } 5962LN_S=$as_ln_s 5963if test "$LN_S" = "ln -s"; then 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5965$as_echo "yes" >&6; } 5966else 5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5968$as_echo "no, using $LN_S" >&6; } 5969fi 5970 5971# find the maximum length of command line arguments 5972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5973$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5974if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5975 $as_echo_n "(cached) " >&6 5976else 5977 i=0 5978 teststring="ABCD" 5979 5980 case $build_os in 5981 msdosdjgpp*) 5982 # On DJGPP, this test can blow up pretty badly due to problems in libc 5983 # (any single argument exceeding 2000 bytes causes a buffer overrun 5984 # during glob expansion). Even if it were fixed, the result of this 5985 # check would be larger than it should be. 5986 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5987 ;; 5988 5989 gnu*) 5990 # Under GNU Hurd, this test is not required because there is 5991 # no limit to the length of command line arguments. 5992 # Libtool will interpret -1 as no limit whatsoever 5993 lt_cv_sys_max_cmd_len=-1; 5994 ;; 5995 5996 cygwin* | mingw* | cegcc*) 5997 # On Win9x/ME, this test blows up -- it succeeds, but takes 5998 # about 5 minutes as the teststring grows exponentially. 5999 # Worse, since 9x/ME are not pre-emptively multitasking, 6000 # you end up with a "frozen" computer, even though with patience 6001 # the test eventually succeeds (with a max line length of 256k). 6002 # Instead, let's just punt: use the minimum linelength reported by 6003 # all of the supported platforms: 8192 (on NT/2K/XP). 6004 lt_cv_sys_max_cmd_len=8192; 6005 ;; 6006 6007 mint*) 6008 # On MiNT this can take a long time and run out of memory. 6009 lt_cv_sys_max_cmd_len=8192; 6010 ;; 6011 6012 amigaos*) 6013 # On AmigaOS with pdksh, this test takes hours, literally. 6014 # So we just punt and use a minimum line length of 8192. 6015 lt_cv_sys_max_cmd_len=8192; 6016 ;; 6017 6018 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6019 # This has been around since 386BSD, at least. Likely further. 6020 if test -x /sbin/sysctl; then 6021 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6022 elif test -x /usr/sbin/sysctl; then 6023 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6024 else 6025 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6026 fi 6027 # And add a safety zone 6028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6030 ;; 6031 6032 interix*) 6033 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6034 lt_cv_sys_max_cmd_len=196608 6035 ;; 6036 6037 osf*) 6038 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6039 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6040 # nice to cause kernel panics so lets avoid the loop below. 6041 # First set a reasonable default. 6042 lt_cv_sys_max_cmd_len=16384 6043 # 6044 if test -x /sbin/sysconfig; then 6045 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6046 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6047 esac 6048 fi 6049 ;; 6050 sco3.2v5*) 6051 lt_cv_sys_max_cmd_len=102400 6052 ;; 6053 sysv5* | sco5v6* | sysv4.2uw2*) 6054 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6055 if test -n "$kargmax"; then 6056 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6057 else 6058 lt_cv_sys_max_cmd_len=32768 6059 fi 6060 ;; 6061 *) 6062 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6063 if test -n "$lt_cv_sys_max_cmd_len"; then 6064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6066 else 6067 # Make teststring a little bigger before we do anything with it. 6068 # a 1K string should be a reasonable start. 6069 for i in 1 2 3 4 5 6 7 8 ; do 6070 teststring=$teststring$teststring 6071 done 6072 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6073 # If test is not a shell built-in, we'll probably end up computing a 6074 # maximum length that is only half of the actual maximum length, but 6075 # we can't tell. 6076 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 6077 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6078 test $i != 17 # 1/2 MB should be enough 6079 do 6080 i=`expr $i + 1` 6081 teststring=$teststring$teststring 6082 done 6083 # Only check the string length outside the loop. 6084 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6085 teststring= 6086 # Add a significant safety factor because C++ compilers can tack on 6087 # massive amounts of additional arguments before passing them to the 6088 # linker. It appears as though 1/2 is a usable value. 6089 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6090 fi 6091 ;; 6092 esac 6093 6094fi 6095 6096if test -n $lt_cv_sys_max_cmd_len ; then 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6098$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6099else 6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6101$as_echo "none" >&6; } 6102fi 6103max_cmd_len=$lt_cv_sys_max_cmd_len 6104 6105 6106 6107 6108 6109 6110: ${CP="cp -f"} 6111: ${MV="mv -f"} 6112: ${RM="rm -f"} 6113 6114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6115$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6116# Try some XSI features 6117xsi_shell=no 6118( _lt_dummy="a/b/c" 6119 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6120 = c,a/b,, \ 6121 && eval 'test $(( 1 + 1 )) -eq 2 \ 6122 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6123 && xsi_shell=yes 6124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6125$as_echo "$xsi_shell" >&6; } 6126 6127 6128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6129$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6130lt_shell_append=no 6131( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6132 >/dev/null 2>&1 \ 6133 && lt_shell_append=yes 6134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6135$as_echo "$lt_shell_append" >&6; } 6136 6137 6138if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6139 lt_unset=unset 6140else 6141 lt_unset=false 6142fi 6143 6144 6145 6146 6147 6148# test EBCDIC or ASCII 6149case `echo X|tr X '\101'` in 6150 A) # ASCII based system 6151 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6152 lt_SP2NL='tr \040 \012' 6153 lt_NL2SP='tr \015\012 \040\040' 6154 ;; 6155 *) # EBCDIC based system 6156 lt_SP2NL='tr \100 \n' 6157 lt_NL2SP='tr \r\n \100\100' 6158 ;; 6159esac 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6170$as_echo_n "checking for $LD option to reload object files... " >&6; } 6171if test "${lt_cv_ld_reload_flag+set}" = set; then : 6172 $as_echo_n "(cached) " >&6 6173else 6174 lt_cv_ld_reload_flag='-r' 6175fi 6176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6177$as_echo "$lt_cv_ld_reload_flag" >&6; } 6178reload_flag=$lt_cv_ld_reload_flag 6179case $reload_flag in 6180"" | " "*) ;; 6181*) reload_flag=" $reload_flag" ;; 6182esac 6183reload_cmds='$LD$reload_flag -o $output$reload_objs' 6184case $host_os in 6185 darwin*) 6186 if test "$GCC" = yes; then 6187 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6188 else 6189 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6190 fi 6191 ;; 6192esac 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202if test -n "$ac_tool_prefix"; then 6203 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6204set dummy ${ac_tool_prefix}objdump; ac_word=$2 6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6206$as_echo_n "checking for $ac_word... " >&6; } 6207if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 6208 $as_echo_n "(cached) " >&6 6209else 6210 if test -n "$OBJDUMP"; then 6211 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6212else 6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6214for as_dir in $PATH 6215do 6216 IFS=$as_save_IFS 6217 test -z "$as_dir" && as_dir=. 6218 for ac_exec_ext in '' $ac_executable_extensions; do 6219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6220 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6222 break 2 6223 fi 6224done 6225 done 6226IFS=$as_save_IFS 6227 6228fi 6229fi 6230OBJDUMP=$ac_cv_prog_OBJDUMP 6231if test -n "$OBJDUMP"; then 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6233$as_echo "$OBJDUMP" >&6; } 6234else 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6236$as_echo "no" >&6; } 6237fi 6238 6239 6240fi 6241if test -z "$ac_cv_prog_OBJDUMP"; then 6242 ac_ct_OBJDUMP=$OBJDUMP 6243 # Extract the first word of "objdump", so it can be a program name with args. 6244set dummy objdump; ac_word=$2 6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6246$as_echo_n "checking for $ac_word... " >&6; } 6247if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 6248 $as_echo_n "(cached) " >&6 6249else 6250 if test -n "$ac_ct_OBJDUMP"; then 6251 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6252else 6253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6254for as_dir in $PATH 6255do 6256 IFS=$as_save_IFS 6257 test -z "$as_dir" && as_dir=. 6258 for ac_exec_ext in '' $ac_executable_extensions; do 6259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6260 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6262 break 2 6263 fi 6264done 6265 done 6266IFS=$as_save_IFS 6267 6268fi 6269fi 6270ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6271if test -n "$ac_ct_OBJDUMP"; then 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6273$as_echo "$ac_ct_OBJDUMP" >&6; } 6274else 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6276$as_echo "no" >&6; } 6277fi 6278 6279 if test "x$ac_ct_OBJDUMP" = x; then 6280 OBJDUMP="false" 6281 else 6282 case $cross_compiling:$ac_tool_warned in 6283yes:) 6284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6286ac_tool_warned=yes ;; 6287esac 6288 OBJDUMP=$ac_ct_OBJDUMP 6289 fi 6290else 6291 OBJDUMP="$ac_cv_prog_OBJDUMP" 6292fi 6293 6294test -z "$OBJDUMP" && OBJDUMP=objdump 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6305$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6306if test "${lt_cv_deplibs_check_method+set}" = set; then : 6307 $as_echo_n "(cached) " >&6 6308else 6309 lt_cv_file_magic_cmd='$MAGIC_CMD' 6310lt_cv_file_magic_test_file= 6311lt_cv_deplibs_check_method='unknown' 6312# Need to set the preceding variable on all platforms that support 6313# interlibrary dependencies. 6314# 'none' -- dependencies not supported. 6315# `unknown' -- same as none, but documents that we really don't know. 6316# 'pass_all' -- all dependencies passed with no checks. 6317# 'test_compile' -- check by making test program. 6318# 'file_magic [[regex]]' -- check by looking for files in library path 6319# which responds to the $file_magic_cmd with a given extended regex. 6320# If you have `file' or equivalent on your system and you're not sure 6321# whether `pass_all' will *always* work, you probably want this one. 6322 6323case $host_os in 6324aix[4-9]*) 6325 lt_cv_deplibs_check_method=pass_all 6326 ;; 6327 6328beos*) 6329 lt_cv_deplibs_check_method=pass_all 6330 ;; 6331 6332bsdi[45]*) 6333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6334 lt_cv_file_magic_cmd='/usr/bin/file -L' 6335 lt_cv_file_magic_test_file=/shlib/libc.so 6336 ;; 6337 6338cygwin*) 6339 # func_win32_libid is a shell function defined in ltmain.sh 6340 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6341 lt_cv_file_magic_cmd='func_win32_libid' 6342 ;; 6343 6344mingw* | pw32*) 6345 # Base MSYS/MinGW do not provide the 'file' command needed by 6346 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6347 # unless we find 'file', for example because we are cross-compiling. 6348 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6349 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6350 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6351 lt_cv_file_magic_cmd='func_win32_libid' 6352 else 6353 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6354 lt_cv_file_magic_cmd='$OBJDUMP -f' 6355 fi 6356 ;; 6357 6358cegcc*) 6359 # use the weaker test based on 'objdump'. See mingw*. 6360 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6361 lt_cv_file_magic_cmd='$OBJDUMP -f' 6362 ;; 6363 6364darwin* | rhapsody*) 6365 lt_cv_deplibs_check_method=pass_all 6366 ;; 6367 6368freebsd* | dragonfly*) 6369 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6370 case $host_cpu in 6371 i*86 ) 6372 # Not sure whether the presence of OpenBSD here was a mistake. 6373 # Let's accept both of them until this is cleared up. 6374 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6375 lt_cv_file_magic_cmd=/usr/bin/file 6376 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6377 ;; 6378 esac 6379 else 6380 lt_cv_deplibs_check_method=pass_all 6381 fi 6382 ;; 6383 6384gnu*) 6385 lt_cv_deplibs_check_method=pass_all 6386 ;; 6387 6388haiku*) 6389 lt_cv_deplibs_check_method=pass_all 6390 ;; 6391 6392hpux10.20* | hpux11*) 6393 lt_cv_file_magic_cmd=/usr/bin/file 6394 case $host_cpu in 6395 ia64*) 6396 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6397 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6398 ;; 6399 hppa*64*) 6400 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]' 6401 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6402 ;; 6403 *) 6404 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6405 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6406 ;; 6407 esac 6408 ;; 6409 6410interix[3-9]*) 6411 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6412 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6413 ;; 6414 6415irix5* | irix6* | nonstopux*) 6416 case $LD in 6417 *-32|*"-32 ") libmagic=32-bit;; 6418 *-n32|*"-n32 ") libmagic=N32;; 6419 *-64|*"-64 ") libmagic=64-bit;; 6420 *) libmagic=never-match;; 6421 esac 6422 lt_cv_deplibs_check_method=pass_all 6423 ;; 6424 6425# This must be Linux ELF. 6426linux* | k*bsd*-gnu | kopensolaris*-gnu) 6427 lt_cv_deplibs_check_method=pass_all 6428 ;; 6429 6430netbsd*) 6431 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6432 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6433 else 6434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6435 fi 6436 ;; 6437 6438newos6*) 6439 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6440 lt_cv_file_magic_cmd=/usr/bin/file 6441 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6442 ;; 6443 6444*nto* | *qnx*) 6445 lt_cv_deplibs_check_method=pass_all 6446 ;; 6447 6448openbsd*) 6449 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6450 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6451 else 6452 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6453 fi 6454 ;; 6455 6456osf3* | osf4* | osf5*) 6457 lt_cv_deplibs_check_method=pass_all 6458 ;; 6459 6460rdos*) 6461 lt_cv_deplibs_check_method=pass_all 6462 ;; 6463 6464solaris*) 6465 lt_cv_deplibs_check_method=pass_all 6466 ;; 6467 6468sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6469 lt_cv_deplibs_check_method=pass_all 6470 ;; 6471 6472sysv4 | sysv4.3*) 6473 case $host_vendor in 6474 motorola) 6475 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]' 6476 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6477 ;; 6478 ncr) 6479 lt_cv_deplibs_check_method=pass_all 6480 ;; 6481 sequent) 6482 lt_cv_file_magic_cmd='/bin/file' 6483 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6484 ;; 6485 sni) 6486 lt_cv_file_magic_cmd='/bin/file' 6487 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6488 lt_cv_file_magic_test_file=/lib/libc.so 6489 ;; 6490 siemens) 6491 lt_cv_deplibs_check_method=pass_all 6492 ;; 6493 pc) 6494 lt_cv_deplibs_check_method=pass_all 6495 ;; 6496 esac 6497 ;; 6498 6499tpf*) 6500 lt_cv_deplibs_check_method=pass_all 6501 ;; 6502esac 6503 6504fi 6505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6506$as_echo "$lt_cv_deplibs_check_method" >&6; } 6507file_magic_cmd=$lt_cv_file_magic_cmd 6508deplibs_check_method=$lt_cv_deplibs_check_method 6509test -z "$deplibs_check_method" && deplibs_check_method=unknown 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522if test -n "$ac_tool_prefix"; then 6523 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6524set dummy ${ac_tool_prefix}ar; ac_word=$2 6525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6526$as_echo_n "checking for $ac_word... " >&6; } 6527if test "${ac_cv_prog_AR+set}" = set; then : 6528 $as_echo_n "(cached) " >&6 6529else 6530 if test -n "$AR"; then 6531 ac_cv_prog_AR="$AR" # Let the user override the test. 6532else 6533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6534for as_dir in $PATH 6535do 6536 IFS=$as_save_IFS 6537 test -z "$as_dir" && as_dir=. 6538 for ac_exec_ext in '' $ac_executable_extensions; do 6539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6540 ac_cv_prog_AR="${ac_tool_prefix}ar" 6541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6542 break 2 6543 fi 6544done 6545 done 6546IFS=$as_save_IFS 6547 6548fi 6549fi 6550AR=$ac_cv_prog_AR 6551if test -n "$AR"; then 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6553$as_echo "$AR" >&6; } 6554else 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6556$as_echo "no" >&6; } 6557fi 6558 6559 6560fi 6561if test -z "$ac_cv_prog_AR"; then 6562 ac_ct_AR=$AR 6563 # Extract the first word of "ar", so it can be a program name with args. 6564set dummy ar; ac_word=$2 6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6566$as_echo_n "checking for $ac_word... " >&6; } 6567if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6568 $as_echo_n "(cached) " >&6 6569else 6570 if test -n "$ac_ct_AR"; then 6571 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6572else 6573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6574for as_dir in $PATH 6575do 6576 IFS=$as_save_IFS 6577 test -z "$as_dir" && as_dir=. 6578 for ac_exec_ext in '' $ac_executable_extensions; do 6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6580 ac_cv_prog_ac_ct_AR="ar" 6581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6582 break 2 6583 fi 6584done 6585 done 6586IFS=$as_save_IFS 6587 6588fi 6589fi 6590ac_ct_AR=$ac_cv_prog_ac_ct_AR 6591if test -n "$ac_ct_AR"; then 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6593$as_echo "$ac_ct_AR" >&6; } 6594else 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6596$as_echo "no" >&6; } 6597fi 6598 6599 if test "x$ac_ct_AR" = x; then 6600 AR="false" 6601 else 6602 case $cross_compiling:$ac_tool_warned in 6603yes:) 6604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6606ac_tool_warned=yes ;; 6607esac 6608 AR=$ac_ct_AR 6609 fi 6610else 6611 AR="$ac_cv_prog_AR" 6612fi 6613 6614test -z "$AR" && AR=ar 6615test -z "$AR_FLAGS" && AR_FLAGS=cru 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627if test -n "$ac_tool_prefix"; then 6628 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6629set dummy ${ac_tool_prefix}strip; ac_word=$2 6630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6631$as_echo_n "checking for $ac_word... " >&6; } 6632if test "${ac_cv_prog_STRIP+set}" = set; then : 6633 $as_echo_n "(cached) " >&6 6634else 6635 if test -n "$STRIP"; then 6636 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6637else 6638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6639for as_dir in $PATH 6640do 6641 IFS=$as_save_IFS 6642 test -z "$as_dir" && as_dir=. 6643 for ac_exec_ext in '' $ac_executable_extensions; do 6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6645 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6647 break 2 6648 fi 6649done 6650 done 6651IFS=$as_save_IFS 6652 6653fi 6654fi 6655STRIP=$ac_cv_prog_STRIP 6656if test -n "$STRIP"; then 6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6658$as_echo "$STRIP" >&6; } 6659else 6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6661$as_echo "no" >&6; } 6662fi 6663 6664 6665fi 6666if test -z "$ac_cv_prog_STRIP"; then 6667 ac_ct_STRIP=$STRIP 6668 # Extract the first word of "strip", so it can be a program name with args. 6669set dummy strip; ac_word=$2 6670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6671$as_echo_n "checking for $ac_word... " >&6; } 6672if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6673 $as_echo_n "(cached) " >&6 6674else 6675 if test -n "$ac_ct_STRIP"; then 6676 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6677else 6678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6679for as_dir in $PATH 6680do 6681 IFS=$as_save_IFS 6682 test -z "$as_dir" && as_dir=. 6683 for ac_exec_ext in '' $ac_executable_extensions; do 6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6685 ac_cv_prog_ac_ct_STRIP="strip" 6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6687 break 2 6688 fi 6689done 6690 done 6691IFS=$as_save_IFS 6692 6693fi 6694fi 6695ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6696if test -n "$ac_ct_STRIP"; then 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6698$as_echo "$ac_ct_STRIP" >&6; } 6699else 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6701$as_echo "no" >&6; } 6702fi 6703 6704 if test "x$ac_ct_STRIP" = x; then 6705 STRIP=":" 6706 else 6707 case $cross_compiling:$ac_tool_warned in 6708yes:) 6709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6711ac_tool_warned=yes ;; 6712esac 6713 STRIP=$ac_ct_STRIP 6714 fi 6715else 6716 STRIP="$ac_cv_prog_STRIP" 6717fi 6718 6719test -z "$STRIP" && STRIP=: 6720 6721 6722 6723 6724 6725 6726if test -n "$ac_tool_prefix"; then 6727 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6728set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6730$as_echo_n "checking for $ac_word... " >&6; } 6731if test "${ac_cv_prog_RANLIB+set}" = set; then : 6732 $as_echo_n "(cached) " >&6 6733else 6734 if test -n "$RANLIB"; then 6735 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6736else 6737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6738for as_dir in $PATH 6739do 6740 IFS=$as_save_IFS 6741 test -z "$as_dir" && as_dir=. 6742 for ac_exec_ext in '' $ac_executable_extensions; do 6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6744 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6746 break 2 6747 fi 6748done 6749 done 6750IFS=$as_save_IFS 6751 6752fi 6753fi 6754RANLIB=$ac_cv_prog_RANLIB 6755if test -n "$RANLIB"; then 6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6757$as_echo "$RANLIB" >&6; } 6758else 6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6760$as_echo "no" >&6; } 6761fi 6762 6763 6764fi 6765if test -z "$ac_cv_prog_RANLIB"; then 6766 ac_ct_RANLIB=$RANLIB 6767 # Extract the first word of "ranlib", so it can be a program name with args. 6768set dummy ranlib; ac_word=$2 6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6770$as_echo_n "checking for $ac_word... " >&6; } 6771if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6772 $as_echo_n "(cached) " >&6 6773else 6774 if test -n "$ac_ct_RANLIB"; then 6775 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6776else 6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6778for as_dir in $PATH 6779do 6780 IFS=$as_save_IFS 6781 test -z "$as_dir" && as_dir=. 6782 for ac_exec_ext in '' $ac_executable_extensions; do 6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6784 ac_cv_prog_ac_ct_RANLIB="ranlib" 6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6786 break 2 6787 fi 6788done 6789 done 6790IFS=$as_save_IFS 6791 6792fi 6793fi 6794ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6795if test -n "$ac_ct_RANLIB"; then 6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6797$as_echo "$ac_ct_RANLIB" >&6; } 6798else 6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6800$as_echo "no" >&6; } 6801fi 6802 6803 if test "x$ac_ct_RANLIB" = x; then 6804 RANLIB=":" 6805 else 6806 case $cross_compiling:$ac_tool_warned in 6807yes:) 6808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6810ac_tool_warned=yes ;; 6811esac 6812 RANLIB=$ac_ct_RANLIB 6813 fi 6814else 6815 RANLIB="$ac_cv_prog_RANLIB" 6816fi 6817 6818test -z "$RANLIB" && RANLIB=: 6819 6820 6821 6822 6823 6824 6825# Determine commands to create old-style static archives. 6826old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6827old_postinstall_cmds='chmod 644 $oldlib' 6828old_postuninstall_cmds= 6829 6830if test -n "$RANLIB"; then 6831 case $host_os in 6832 openbsd*) 6833 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6834 ;; 6835 *) 6836 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6837 ;; 6838 esac 6839 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6840fi 6841 6842case $host_os in 6843 darwin*) 6844 lock_old_archive_extraction=yes ;; 6845 *) 6846 lock_old_archive_extraction=no ;; 6847esac 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887# If no C compiler was specified, use CC. 6888LTCC=${LTCC-"$CC"} 6889 6890# If no C compiler flags were specified, use CFLAGS. 6891LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6892 6893# Allow CC to be a program name with arguments. 6894compiler=$CC 6895 6896 6897# Check for command to grab the raw symbol name followed by C symbol from nm. 6898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6899$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6900if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6901 $as_echo_n "(cached) " >&6 6902else 6903 6904# These are sane defaults that work on at least a few old systems. 6905# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6906 6907# Character class describing NM global symbol codes. 6908symcode='[BCDEGRST]' 6909 6910# Regexp to match symbols that can be accessed directly from C. 6911sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6912 6913# Define system-specific variables. 6914case $host_os in 6915aix*) 6916 symcode='[BCDT]' 6917 ;; 6918cygwin* | mingw* | pw32* | cegcc*) 6919 symcode='[ABCDGISTW]' 6920 ;; 6921hpux*) 6922 if test "$host_cpu" = ia64; then 6923 symcode='[ABCDEGRST]' 6924 fi 6925 ;; 6926irix* | nonstopux*) 6927 symcode='[BCDEGRST]' 6928 ;; 6929osf*) 6930 symcode='[BCDEGQRST]' 6931 ;; 6932solaris*) 6933 symcode='[BDRT]' 6934 ;; 6935sco3.2v5*) 6936 symcode='[DT]' 6937 ;; 6938sysv4.2uw2*) 6939 symcode='[DT]' 6940 ;; 6941sysv5* | sco5v6* | unixware* | OpenUNIX*) 6942 symcode='[ABDT]' 6943 ;; 6944sysv4) 6945 symcode='[DFNSTU]' 6946 ;; 6947esac 6948 6949# If we're using GNU nm, then use its standard symbol codes. 6950case `$NM -V 2>&1` in 6951*GNU* | *'with BFD'*) 6952 symcode='[ABCDGIRSTW]' ;; 6953esac 6954 6955# Transform an extracted symbol line into a proper C declaration. 6956# Some systems (esp. on ia64) link data and code symbols differently, 6957# so use this general approach. 6958lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6959 6960# Transform an extracted symbol line into symbol name and symbol address 6961lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6962lt_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'" 6963 6964# Handle CRLF in mingw tool chain 6965opt_cr= 6966case $build_os in 6967mingw*) 6968 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6969 ;; 6970esac 6971 6972# Try without a prefix underscore, then with it. 6973for ac_symprfx in "" "_"; do 6974 6975 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6976 symxfrm="\\1 $ac_symprfx\\2 \\2" 6977 6978 # Write the raw and C identifiers. 6979 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6980 # Fake it for dumpbin and say T for any non-static function 6981 # and D for any global variable. 6982 # Also find C++ and __fastcall symbols from MSVC++, 6983 # which start with @ or ?. 6984 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6985" {last_section=section; section=\$ 3};"\ 6986" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6987" \$ 0!~/External *\|/{next};"\ 6988" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6989" {if(hide[section]) next};"\ 6990" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6991" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6992" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6993" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6994" ' prfx=^$ac_symprfx" 6995 else 6996 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6997 fi 6998 6999 # Check to see that the pipe works correctly. 7000 pipe_works=no 7001 7002 rm -f conftest* 7003 cat > conftest.$ac_ext <<_LT_EOF 7004#ifdef __cplusplus 7005extern "C" { 7006#endif 7007char nm_test_var; 7008void nm_test_func(void); 7009void nm_test_func(void){} 7010#ifdef __cplusplus 7011} 7012#endif 7013int main(){nm_test_var='a';nm_test_func();return(0);} 7014_LT_EOF 7015 7016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7017 (eval $ac_compile) 2>&5 7018 ac_status=$? 7019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7020 test $ac_status = 0; }; then 7021 # Now try to grab the symbols. 7022 nlist=conftest.nm 7023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7024 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7025 ac_status=$? 7026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7027 test $ac_status = 0; } && test -s "$nlist"; then 7028 # Try sorting and uniquifying the output. 7029 if sort "$nlist" | uniq > "$nlist"T; then 7030 mv -f "$nlist"T "$nlist" 7031 else 7032 rm -f "$nlist"T 7033 fi 7034 7035 # Make sure that we snagged all the symbols we need. 7036 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7037 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7038 cat <<_LT_EOF > conftest.$ac_ext 7039#ifdef __cplusplus 7040extern "C" { 7041#endif 7042 7043_LT_EOF 7044 # Now generate the symbol file. 7045 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7046 7047 cat <<_LT_EOF >> conftest.$ac_ext 7048 7049/* The mapping between symbol names and symbols. */ 7050const struct { 7051 const char *name; 7052 void *address; 7053} 7054lt__PROGRAM__LTX_preloaded_symbols[] = 7055{ 7056 { "@PROGRAM@", (void *) 0 }, 7057_LT_EOF 7058 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7059 cat <<\_LT_EOF >> conftest.$ac_ext 7060 {0, (void *) 0} 7061}; 7062 7063/* This works around a problem in FreeBSD linker */ 7064#ifdef FREEBSD_WORKAROUND 7065static const void *lt_preloaded_setup() { 7066 return lt__PROGRAM__LTX_preloaded_symbols; 7067} 7068#endif 7069 7070#ifdef __cplusplus 7071} 7072#endif 7073_LT_EOF 7074 # Now try linking the two files. 7075 mv conftest.$ac_objext conftstm.$ac_objext 7076 lt_save_LIBS="$LIBS" 7077 lt_save_CFLAGS="$CFLAGS" 7078 LIBS="conftstm.$ac_objext" 7079 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7081 (eval $ac_link) 2>&5 7082 ac_status=$? 7083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7084 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7085 pipe_works=yes 7086 fi 7087 LIBS="$lt_save_LIBS" 7088 CFLAGS="$lt_save_CFLAGS" 7089 else 7090 echo "cannot find nm_test_func in $nlist" >&5 7091 fi 7092 else 7093 echo "cannot find nm_test_var in $nlist" >&5 7094 fi 7095 else 7096 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7097 fi 7098 else 7099 echo "$progname: failed program was:" >&5 7100 cat conftest.$ac_ext >&5 7101 fi 7102 rm -rf conftest* conftst* 7103 7104 # Do not use the global_symbol_pipe unless it works. 7105 if test "$pipe_works" = yes; then 7106 break 7107 else 7108 lt_cv_sys_global_symbol_pipe= 7109 fi 7110done 7111 7112fi 7113 7114if test -z "$lt_cv_sys_global_symbol_pipe"; then 7115 lt_cv_sys_global_symbol_to_cdecl= 7116fi 7117if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7119$as_echo "failed" >&6; } 7120else 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7122$as_echo "ok" >&6; } 7123fi 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146# Check whether --enable-libtool-lock was given. 7147if test "${enable_libtool_lock+set}" = set; then : 7148 enableval=$enable_libtool_lock; 7149fi 7150 7151test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7152 7153# Some flags need to be propagated to the compiler or linker for good 7154# libtool support. 7155case $host in 7156ia64-*-hpux*) 7157 # Find out which ABI we are using. 7158 echo 'int i;' > conftest.$ac_ext 7159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7160 (eval $ac_compile) 2>&5 7161 ac_status=$? 7162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7163 test $ac_status = 0; }; then 7164 case `/usr/bin/file conftest.$ac_objext` in 7165 *ELF-32*) 7166 HPUX_IA64_MODE="32" 7167 ;; 7168 *ELF-64*) 7169 HPUX_IA64_MODE="64" 7170 ;; 7171 esac 7172 fi 7173 rm -rf conftest* 7174 ;; 7175*-*-irix6*) 7176 # Find out which ABI we are using. 7177 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7179 (eval $ac_compile) 2>&5 7180 ac_status=$? 7181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7182 test $ac_status = 0; }; then 7183 if test "$lt_cv_prog_gnu_ld" = yes; then 7184 case `/usr/bin/file conftest.$ac_objext` in 7185 *32-bit*) 7186 LD="${LD-ld} -melf32bsmip" 7187 ;; 7188 *N32*) 7189 LD="${LD-ld} -melf32bmipn32" 7190 ;; 7191 *64-bit*) 7192 LD="${LD-ld} -melf64bmip" 7193 ;; 7194 esac 7195 else 7196 case `/usr/bin/file conftest.$ac_objext` in 7197 *32-bit*) 7198 LD="${LD-ld} -32" 7199 ;; 7200 *N32*) 7201 LD="${LD-ld} -n32" 7202 ;; 7203 *64-bit*) 7204 LD="${LD-ld} -64" 7205 ;; 7206 esac 7207 fi 7208 fi 7209 rm -rf conftest* 7210 ;; 7211 7212x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7213s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7214 # Find out which ABI we are using. 7215 echo 'int i;' > conftest.$ac_ext 7216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7217 (eval $ac_compile) 2>&5 7218 ac_status=$? 7219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7220 test $ac_status = 0; }; then 7221 case `/usr/bin/file conftest.o` in 7222 *32-bit*) 7223 case $host in 7224 x86_64-*kfreebsd*-gnu) 7225 LD="${LD-ld} -m elf_i386_fbsd" 7226 ;; 7227 x86_64-*linux*) 7228 case `/usr/bin/file conftest.o` in 7229 *x86-64*) 7230 LD="${LD-ld} -m elf32_x86_64" 7231 ;; 7232 *) 7233 LD="${LD-ld} -m elf_i386" 7234 ;; 7235 esac 7236 ;; 7237 powerpc64le-*linux*) 7238 LD="${LD-ld} -m elf32lppclinux" 7239 ;; 7240 powerpc64-*linux*) 7241 LD="${LD-ld} -m elf32ppclinux" 7242 ;; 7243 s390x-*linux*) 7244 LD="${LD-ld} -m elf_s390" 7245 ;; 7246 sparc64-*linux*) 7247 LD="${LD-ld} -m elf32_sparc" 7248 ;; 7249 esac 7250 ;; 7251 *64-bit*) 7252 case $host in 7253 x86_64-*kfreebsd*-gnu) 7254 LD="${LD-ld} -m elf_x86_64_fbsd" 7255 ;; 7256 x86_64-*linux*) 7257 LD="${LD-ld} -m elf_x86_64" 7258 ;; 7259 powerpcle-*linux*) 7260 LD="${LD-ld} -m elf64lppc" 7261 ;; 7262 powerpc-*linux*) 7263 LD="${LD-ld} -m elf64ppc" 7264 ;; 7265 s390*-*linux*|s390*-*tpf*) 7266 LD="${LD-ld} -m elf64_s390" 7267 ;; 7268 sparc*-*linux*) 7269 LD="${LD-ld} -m elf64_sparc" 7270 ;; 7271 esac 7272 ;; 7273 esac 7274 fi 7275 rm -rf conftest* 7276 ;; 7277 7278*-*-sco3.2v5*) 7279 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7280 SAVE_CFLAGS="$CFLAGS" 7281 CFLAGS="$CFLAGS -belf" 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7283$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7284if test "${lt_cv_cc_needs_belf+set}" = set; then : 7285 $as_echo_n "(cached) " >&6 7286else 7287 ac_ext=c 7288ac_cpp='$CPP $CPPFLAGS' 7289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7291ac_compiler_gnu=$ac_cv_c_compiler_gnu 7292 7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7294/* end confdefs.h. */ 7295 7296int 7297main () 7298{ 7299 7300 ; 7301 return 0; 7302} 7303_ACEOF 7304if ac_fn_c_try_link "$LINENO"; then : 7305 lt_cv_cc_needs_belf=yes 7306else 7307 lt_cv_cc_needs_belf=no 7308fi 7309rm -f core conftest.err conftest.$ac_objext \ 7310 conftest$ac_exeext conftest.$ac_ext 7311 ac_ext=c 7312ac_cpp='$CPP $CPPFLAGS' 7313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7315ac_compiler_gnu=$ac_cv_c_compiler_gnu 7316 7317fi 7318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7319$as_echo "$lt_cv_cc_needs_belf" >&6; } 7320 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7321 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7322 CFLAGS="$SAVE_CFLAGS" 7323 fi 7324 ;; 7325sparc*-*solaris*) 7326 # Find out which ABI we are using. 7327 echo 'int i;' > conftest.$ac_ext 7328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7329 (eval $ac_compile) 2>&5 7330 ac_status=$? 7331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7332 test $ac_status = 0; }; then 7333 case `/usr/bin/file conftest.o` in 7334 *64-bit*) 7335 case $lt_cv_prog_gnu_ld in 7336 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7337 *) 7338 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7339 LD="${LD-ld} -64" 7340 fi 7341 ;; 7342 esac 7343 ;; 7344 esac 7345 fi 7346 rm -rf conftest* 7347 ;; 7348esac 7349 7350need_locks="$enable_libtool_lock" 7351 7352 7353 case $host_os in 7354 rhapsody* | darwin*) 7355 if test -n "$ac_tool_prefix"; then 7356 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7357set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7359$as_echo_n "checking for $ac_word... " >&6; } 7360if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 7361 $as_echo_n "(cached) " >&6 7362else 7363 if test -n "$DSYMUTIL"; then 7364 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7365else 7366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7367for as_dir in $PATH 7368do 7369 IFS=$as_save_IFS 7370 test -z "$as_dir" && as_dir=. 7371 for ac_exec_ext in '' $ac_executable_extensions; do 7372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7373 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7375 break 2 7376 fi 7377done 7378 done 7379IFS=$as_save_IFS 7380 7381fi 7382fi 7383DSYMUTIL=$ac_cv_prog_DSYMUTIL 7384if test -n "$DSYMUTIL"; then 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7386$as_echo "$DSYMUTIL" >&6; } 7387else 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7389$as_echo "no" >&6; } 7390fi 7391 7392 7393fi 7394if test -z "$ac_cv_prog_DSYMUTIL"; then 7395 ac_ct_DSYMUTIL=$DSYMUTIL 7396 # Extract the first word of "dsymutil", so it can be a program name with args. 7397set dummy dsymutil; ac_word=$2 7398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7399$as_echo_n "checking for $ac_word... " >&6; } 7400if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7401 $as_echo_n "(cached) " >&6 7402else 7403 if test -n "$ac_ct_DSYMUTIL"; then 7404 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7405else 7406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7407for as_dir in $PATH 7408do 7409 IFS=$as_save_IFS 7410 test -z "$as_dir" && as_dir=. 7411 for ac_exec_ext in '' $ac_executable_extensions; do 7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7413 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7415 break 2 7416 fi 7417done 7418 done 7419IFS=$as_save_IFS 7420 7421fi 7422fi 7423ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7424if test -n "$ac_ct_DSYMUTIL"; then 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7426$as_echo "$ac_ct_DSYMUTIL" >&6; } 7427else 7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7429$as_echo "no" >&6; } 7430fi 7431 7432 if test "x$ac_ct_DSYMUTIL" = x; then 7433 DSYMUTIL=":" 7434 else 7435 case $cross_compiling:$ac_tool_warned in 7436yes:) 7437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7439ac_tool_warned=yes ;; 7440esac 7441 DSYMUTIL=$ac_ct_DSYMUTIL 7442 fi 7443else 7444 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7445fi 7446 7447 if test -n "$ac_tool_prefix"; then 7448 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7449set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7451$as_echo_n "checking for $ac_word... " >&6; } 7452if test "${ac_cv_prog_NMEDIT+set}" = set; then : 7453 $as_echo_n "(cached) " >&6 7454else 7455 if test -n "$NMEDIT"; then 7456 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7457else 7458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7459for as_dir in $PATH 7460do 7461 IFS=$as_save_IFS 7462 test -z "$as_dir" && as_dir=. 7463 for ac_exec_ext in '' $ac_executable_extensions; do 7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7465 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7467 break 2 7468 fi 7469done 7470 done 7471IFS=$as_save_IFS 7472 7473fi 7474fi 7475NMEDIT=$ac_cv_prog_NMEDIT 7476if test -n "$NMEDIT"; then 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7478$as_echo "$NMEDIT" >&6; } 7479else 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7481$as_echo "no" >&6; } 7482fi 7483 7484 7485fi 7486if test -z "$ac_cv_prog_NMEDIT"; then 7487 ac_ct_NMEDIT=$NMEDIT 7488 # Extract the first word of "nmedit", so it can be a program name with args. 7489set dummy nmedit; ac_word=$2 7490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7491$as_echo_n "checking for $ac_word... " >&6; } 7492if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 7493 $as_echo_n "(cached) " >&6 7494else 7495 if test -n "$ac_ct_NMEDIT"; then 7496 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7497else 7498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7499for as_dir in $PATH 7500do 7501 IFS=$as_save_IFS 7502 test -z "$as_dir" && as_dir=. 7503 for ac_exec_ext in '' $ac_executable_extensions; do 7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7505 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7507 break 2 7508 fi 7509done 7510 done 7511IFS=$as_save_IFS 7512 7513fi 7514fi 7515ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7516if test -n "$ac_ct_NMEDIT"; then 7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7518$as_echo "$ac_ct_NMEDIT" >&6; } 7519else 7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7521$as_echo "no" >&6; } 7522fi 7523 7524 if test "x$ac_ct_NMEDIT" = x; then 7525 NMEDIT=":" 7526 else 7527 case $cross_compiling:$ac_tool_warned in 7528yes:) 7529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7531ac_tool_warned=yes ;; 7532esac 7533 NMEDIT=$ac_ct_NMEDIT 7534 fi 7535else 7536 NMEDIT="$ac_cv_prog_NMEDIT" 7537fi 7538 7539 if test -n "$ac_tool_prefix"; then 7540 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7541set dummy ${ac_tool_prefix}lipo; ac_word=$2 7542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7543$as_echo_n "checking for $ac_word... " >&6; } 7544if test "${ac_cv_prog_LIPO+set}" = set; then : 7545 $as_echo_n "(cached) " >&6 7546else 7547 if test -n "$LIPO"; then 7548 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7549else 7550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7551for as_dir in $PATH 7552do 7553 IFS=$as_save_IFS 7554 test -z "$as_dir" && as_dir=. 7555 for ac_exec_ext in '' $ac_executable_extensions; do 7556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7557 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7559 break 2 7560 fi 7561done 7562 done 7563IFS=$as_save_IFS 7564 7565fi 7566fi 7567LIPO=$ac_cv_prog_LIPO 7568if test -n "$LIPO"; then 7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7570$as_echo "$LIPO" >&6; } 7571else 7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7573$as_echo "no" >&6; } 7574fi 7575 7576 7577fi 7578if test -z "$ac_cv_prog_LIPO"; then 7579 ac_ct_LIPO=$LIPO 7580 # Extract the first word of "lipo", so it can be a program name with args. 7581set dummy lipo; ac_word=$2 7582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7583$as_echo_n "checking for $ac_word... " >&6; } 7584if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 7585 $as_echo_n "(cached) " >&6 7586else 7587 if test -n "$ac_ct_LIPO"; then 7588 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7589else 7590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7591for as_dir in $PATH 7592do 7593 IFS=$as_save_IFS 7594 test -z "$as_dir" && as_dir=. 7595 for ac_exec_ext in '' $ac_executable_extensions; do 7596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7597 ac_cv_prog_ac_ct_LIPO="lipo" 7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7599 break 2 7600 fi 7601done 7602 done 7603IFS=$as_save_IFS 7604 7605fi 7606fi 7607ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7608if test -n "$ac_ct_LIPO"; then 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7610$as_echo "$ac_ct_LIPO" >&6; } 7611else 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7613$as_echo "no" >&6; } 7614fi 7615 7616 if test "x$ac_ct_LIPO" = x; then 7617 LIPO=":" 7618 else 7619 case $cross_compiling:$ac_tool_warned in 7620yes:) 7621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7623ac_tool_warned=yes ;; 7624esac 7625 LIPO=$ac_ct_LIPO 7626 fi 7627else 7628 LIPO="$ac_cv_prog_LIPO" 7629fi 7630 7631 if test -n "$ac_tool_prefix"; then 7632 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7633set dummy ${ac_tool_prefix}otool; ac_word=$2 7634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7635$as_echo_n "checking for $ac_word... " >&6; } 7636if test "${ac_cv_prog_OTOOL+set}" = set; then : 7637 $as_echo_n "(cached) " >&6 7638else 7639 if test -n "$OTOOL"; then 7640 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7641else 7642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7643for as_dir in $PATH 7644do 7645 IFS=$as_save_IFS 7646 test -z "$as_dir" && as_dir=. 7647 for ac_exec_ext in '' $ac_executable_extensions; do 7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7649 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7651 break 2 7652 fi 7653done 7654 done 7655IFS=$as_save_IFS 7656 7657fi 7658fi 7659OTOOL=$ac_cv_prog_OTOOL 7660if test -n "$OTOOL"; then 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7662$as_echo "$OTOOL" >&6; } 7663else 7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7665$as_echo "no" >&6; } 7666fi 7667 7668 7669fi 7670if test -z "$ac_cv_prog_OTOOL"; then 7671 ac_ct_OTOOL=$OTOOL 7672 # Extract the first word of "otool", so it can be a program name with args. 7673set dummy otool; ac_word=$2 7674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7675$as_echo_n "checking for $ac_word... " >&6; } 7676if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7677 $as_echo_n "(cached) " >&6 7678else 7679 if test -n "$ac_ct_OTOOL"; then 7680 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7681else 7682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7683for as_dir in $PATH 7684do 7685 IFS=$as_save_IFS 7686 test -z "$as_dir" && as_dir=. 7687 for ac_exec_ext in '' $ac_executable_extensions; do 7688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7689 ac_cv_prog_ac_ct_OTOOL="otool" 7690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7691 break 2 7692 fi 7693done 7694 done 7695IFS=$as_save_IFS 7696 7697fi 7698fi 7699ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7700if test -n "$ac_ct_OTOOL"; then 7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7702$as_echo "$ac_ct_OTOOL" >&6; } 7703else 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7705$as_echo "no" >&6; } 7706fi 7707 7708 if test "x$ac_ct_OTOOL" = x; then 7709 OTOOL=":" 7710 else 7711 case $cross_compiling:$ac_tool_warned in 7712yes:) 7713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7715ac_tool_warned=yes ;; 7716esac 7717 OTOOL=$ac_ct_OTOOL 7718 fi 7719else 7720 OTOOL="$ac_cv_prog_OTOOL" 7721fi 7722 7723 if test -n "$ac_tool_prefix"; then 7724 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7725set dummy ${ac_tool_prefix}otool64; ac_word=$2 7726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7727$as_echo_n "checking for $ac_word... " >&6; } 7728if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7729 $as_echo_n "(cached) " >&6 7730else 7731 if test -n "$OTOOL64"; then 7732 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7733else 7734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7735for as_dir in $PATH 7736do 7737 IFS=$as_save_IFS 7738 test -z "$as_dir" && as_dir=. 7739 for ac_exec_ext in '' $ac_executable_extensions; do 7740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7741 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7743 break 2 7744 fi 7745done 7746 done 7747IFS=$as_save_IFS 7748 7749fi 7750fi 7751OTOOL64=$ac_cv_prog_OTOOL64 7752if test -n "$OTOOL64"; then 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7754$as_echo "$OTOOL64" >&6; } 7755else 7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7757$as_echo "no" >&6; } 7758fi 7759 7760 7761fi 7762if test -z "$ac_cv_prog_OTOOL64"; then 7763 ac_ct_OTOOL64=$OTOOL64 7764 # Extract the first word of "otool64", so it can be a program name with args. 7765set dummy otool64; ac_word=$2 7766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7767$as_echo_n "checking for $ac_word... " >&6; } 7768if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7769 $as_echo_n "(cached) " >&6 7770else 7771 if test -n "$ac_ct_OTOOL64"; then 7772 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7773else 7774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7775for as_dir in $PATH 7776do 7777 IFS=$as_save_IFS 7778 test -z "$as_dir" && as_dir=. 7779 for ac_exec_ext in '' $ac_executable_extensions; do 7780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7781 ac_cv_prog_ac_ct_OTOOL64="otool64" 7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7783 break 2 7784 fi 7785done 7786 done 7787IFS=$as_save_IFS 7788 7789fi 7790fi 7791ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7792if test -n "$ac_ct_OTOOL64"; then 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7794$as_echo "$ac_ct_OTOOL64" >&6; } 7795else 7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7797$as_echo "no" >&6; } 7798fi 7799 7800 if test "x$ac_ct_OTOOL64" = x; then 7801 OTOOL64=":" 7802 else 7803 case $cross_compiling:$ac_tool_warned in 7804yes:) 7805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7807ac_tool_warned=yes ;; 7808esac 7809 OTOOL64=$ac_ct_OTOOL64 7810 fi 7811else 7812 OTOOL64="$ac_cv_prog_OTOOL64" 7813fi 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7842$as_echo_n "checking for -single_module linker flag... " >&6; } 7843if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7844 $as_echo_n "(cached) " >&6 7845else 7846 lt_cv_apple_cc_single_mod=no 7847 if test -z "${LT_MULTI_MODULE}"; then 7848 # By default we will add the -single_module flag. You can override 7849 # by either setting the environment variable LT_MULTI_MODULE 7850 # non-empty at configure time, or by adding -multi_module to the 7851 # link flags. 7852 rm -rf libconftest.dylib* 7853 echo "int foo(void){return 1;}" > conftest.c 7854 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7855-dynamiclib -Wl,-single_module conftest.c" >&5 7856 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7857 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7858 _lt_result=$? 7859 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7860 lt_cv_apple_cc_single_mod=yes 7861 else 7862 cat conftest.err >&5 7863 fi 7864 rm -rf libconftest.dylib* 7865 rm -f conftest.* 7866 fi 7867fi 7868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7869$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7871$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7872if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7873 $as_echo_n "(cached) " >&6 7874else 7875 lt_cv_ld_exported_symbols_list=no 7876 save_LDFLAGS=$LDFLAGS 7877 echo "_main" > conftest.sym 7878 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7880/* end confdefs.h. */ 7881 7882int 7883main () 7884{ 7885 7886 ; 7887 return 0; 7888} 7889_ACEOF 7890if ac_fn_c_try_link "$LINENO"; then : 7891 lt_cv_ld_exported_symbols_list=yes 7892else 7893 lt_cv_ld_exported_symbols_list=no 7894fi 7895rm -f core conftest.err conftest.$ac_objext \ 7896 conftest$ac_exeext conftest.$ac_ext 7897 LDFLAGS="$save_LDFLAGS" 7898 7899fi 7900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7901$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7903$as_echo_n "checking for -force_load linker flag... " >&6; } 7904if test "${lt_cv_ld_force_load+set}" = set; then : 7905 $as_echo_n "(cached) " >&6 7906else 7907 lt_cv_ld_force_load=no 7908 cat > conftest.c << _LT_EOF 7909int forced_loaded() { return 2;} 7910_LT_EOF 7911 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7912 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7913 echo "$AR cru libconftest.a conftest.o" >&5 7914 $AR cru libconftest.a conftest.o 2>&5 7915 cat > conftest.c << _LT_EOF 7916int main() { return 0;} 7917_LT_EOF 7918 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7919 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7920 _lt_result=$? 7921 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7922 lt_cv_ld_force_load=yes 7923 else 7924 cat conftest.err >&5 7925 fi 7926 rm -f conftest.err libconftest.a conftest conftest.c 7927 rm -rf conftest.dSYM 7928 7929fi 7930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7931$as_echo "$lt_cv_ld_force_load" >&6; } 7932 case $host_os in 7933 rhapsody* | darwin1.[012]) 7934 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7935 darwin1.*) 7936 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7937 darwin*) # darwin 5.x on 7938 # if running on 10.5 or later, the deployment target defaults 7939 # to the OS version, if on x86, and 10.4, the deployment 7940 # target defaults to 10.4. Don't you love it? 7941 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7942 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7943 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7944 10.[012][,.]*) 7945 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7946 10.*) 7947 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7948 esac 7949 ;; 7950 esac 7951 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7952 _lt_dar_single_mod='$single_module' 7953 fi 7954 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7955 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7956 else 7957 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7958 fi 7959 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7960 _lt_dsymutil='~$DSYMUTIL $lib || :' 7961 else 7962 _lt_dsymutil= 7963 fi 7964 ;; 7965 esac 7966 7967for ac_header in dlfcn.h 7968do : 7969 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7970" 7971if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7972 cat >>confdefs.h <<_ACEOF 7973#define HAVE_DLFCN_H 1 7974_ACEOF 7975 7976fi 7977 7978done 7979 7980 7981 7982 7983 7984# Set options 7985enable_dlopen=yes 7986 7987 7988 7989 7990 enable_win32_dll=no 7991 7992 7993 7994 # Check whether --enable-static was given. 7995if test "${enable_static+set}" = set; then : 7996 enableval=$enable_static; p=${PACKAGE-default} 7997 case $enableval in 7998 yes) enable_static=yes ;; 7999 no) enable_static=no ;; 8000 *) 8001 enable_static=no 8002 # Look at the argument we got. We use all the common list separators. 8003 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8004 for pkg in $enableval; do 8005 IFS="$lt_save_ifs" 8006 if test "X$pkg" = "X$p"; then 8007 enable_static=yes 8008 fi 8009 done 8010 IFS="$lt_save_ifs" 8011 ;; 8012 esac 8013else 8014 enable_static=yes 8015fi 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026# Check whether --with-pic was given. 8027if test "${with_pic+set}" = set; then : 8028 withval=$with_pic; pic_mode="$withval" 8029else 8030 pic_mode=default 8031fi 8032 8033 8034test -z "$pic_mode" && pic_mode=default 8035 8036 8037 8038 8039 8040 8041 8042 # Check whether --enable-fast-install was given. 8043if test "${enable_fast_install+set}" = set; then : 8044 enableval=$enable_fast_install; p=${PACKAGE-default} 8045 case $enableval in 8046 yes) enable_fast_install=yes ;; 8047 no) enable_fast_install=no ;; 8048 *) 8049 enable_fast_install=no 8050 # Look at the argument we got. We use all the common list separators. 8051 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8052 for pkg in $enableval; do 8053 IFS="$lt_save_ifs" 8054 if test "X$pkg" = "X$p"; then 8055 enable_fast_install=yes 8056 fi 8057 done 8058 IFS="$lt_save_ifs" 8059 ;; 8060 esac 8061else 8062 enable_fast_install=yes 8063fi 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075# This can be used to rebuild libtool when needed 8076LIBTOOL_DEPS="$ltmain" 8077 8078# Always use our own libtool. 8079LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106test -z "$LN_S" && LN_S="ln -s" 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121if test -n "${ZSH_VERSION+set}" ; then 8122 setopt NO_GLOB_SUBST 8123fi 8124 8125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8126$as_echo_n "checking for objdir... " >&6; } 8127if test "${lt_cv_objdir+set}" = set; then : 8128 $as_echo_n "(cached) " >&6 8129else 8130 rm -f .libs 2>/dev/null 8131mkdir .libs 2>/dev/null 8132if test -d .libs; then 8133 lt_cv_objdir=.libs 8134else 8135 # MS-DOS does not allow filenames that begin with a dot. 8136 lt_cv_objdir=_libs 8137fi 8138rmdir .libs 2>/dev/null 8139fi 8140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8141$as_echo "$lt_cv_objdir" >&6; } 8142objdir=$lt_cv_objdir 8143 8144 8145 8146 8147 8148cat >>confdefs.h <<_ACEOF 8149#define LT_OBJDIR "$lt_cv_objdir/" 8150_ACEOF 8151 8152 8153 8154 8155case $host_os in 8156aix3*) 8157 # AIX sometimes has problems with the GCC collect2 program. For some 8158 # reason, if we set the COLLECT_NAMES environment variable, the problems 8159 # vanish in a puff of smoke. 8160 if test "X${COLLECT_NAMES+set}" != Xset; then 8161 COLLECT_NAMES= 8162 export COLLECT_NAMES 8163 fi 8164 ;; 8165esac 8166 8167# Global variables: 8168ofile=libtool 8169can_build_shared=yes 8170 8171# All known linkers require a `.a' archive for static linking (except MSVC, 8172# which needs '.lib'). 8173libext=a 8174 8175with_gnu_ld="$lt_cv_prog_gnu_ld" 8176 8177old_CC="$CC" 8178old_CFLAGS="$CFLAGS" 8179 8180# Set sane defaults for various variables 8181test -z "$CC" && CC=cc 8182test -z "$LTCC" && LTCC=$CC 8183test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8184test -z "$LD" && LD=ld 8185test -z "$ac_objext" && ac_objext=o 8186 8187for cc_temp in $compiler""; do 8188 case $cc_temp in 8189 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8190 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8191 \-*) ;; 8192 *) break;; 8193 esac 8194done 8195cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8196 8197 8198# Only perform the check for file, if the check method requires it 8199test -z "$MAGIC_CMD" && MAGIC_CMD=file 8200case $deplibs_check_method in 8201file_magic*) 8202 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8204$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8205if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8206 $as_echo_n "(cached) " >&6 8207else 8208 case $MAGIC_CMD in 8209[\\/*] | ?:[\\/]*) 8210 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8211 ;; 8212*) 8213 lt_save_MAGIC_CMD="$MAGIC_CMD" 8214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8215 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8216 for ac_dir in $ac_dummy; do 8217 IFS="$lt_save_ifs" 8218 test -z "$ac_dir" && ac_dir=. 8219 if test -f $ac_dir/${ac_tool_prefix}file; then 8220 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8221 if test -n "$file_magic_test_file"; then 8222 case $deplibs_check_method in 8223 "file_magic "*) 8224 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8226 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8227 $EGREP "$file_magic_regex" > /dev/null; then 8228 : 8229 else 8230 cat <<_LT_EOF 1>&2 8231 8232*** Warning: the command libtool uses to detect shared libraries, 8233*** $file_magic_cmd, produces output that libtool cannot recognize. 8234*** The result is that libtool may fail to recognize shared libraries 8235*** as such. This will affect the creation of libtool libraries that 8236*** depend on shared libraries, but programs linked with such libtool 8237*** libraries will work regardless of this problem. Nevertheless, you 8238*** may want to report the problem to your system manager and/or to 8239*** bug-libtool@gnu.org 8240 8241_LT_EOF 8242 fi ;; 8243 esac 8244 fi 8245 break 8246 fi 8247 done 8248 IFS="$lt_save_ifs" 8249 MAGIC_CMD="$lt_save_MAGIC_CMD" 8250 ;; 8251esac 8252fi 8253 8254MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8255if test -n "$MAGIC_CMD"; then 8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8257$as_echo "$MAGIC_CMD" >&6; } 8258else 8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8260$as_echo "no" >&6; } 8261fi 8262 8263 8264 8265 8266 8267if test -z "$lt_cv_path_MAGIC_CMD"; then 8268 if test -n "$ac_tool_prefix"; then 8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8270$as_echo_n "checking for file... " >&6; } 8271if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8272 $as_echo_n "(cached) " >&6 8273else 8274 case $MAGIC_CMD in 8275[\\/*] | ?:[\\/]*) 8276 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8277 ;; 8278*) 8279 lt_save_MAGIC_CMD="$MAGIC_CMD" 8280 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8281 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8282 for ac_dir in $ac_dummy; do 8283 IFS="$lt_save_ifs" 8284 test -z "$ac_dir" && ac_dir=. 8285 if test -f $ac_dir/file; then 8286 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8287 if test -n "$file_magic_test_file"; then 8288 case $deplibs_check_method in 8289 "file_magic "*) 8290 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8291 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8292 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8293 $EGREP "$file_magic_regex" > /dev/null; then 8294 : 8295 else 8296 cat <<_LT_EOF 1>&2 8297 8298*** Warning: the command libtool uses to detect shared libraries, 8299*** $file_magic_cmd, produces output that libtool cannot recognize. 8300*** The result is that libtool may fail to recognize shared libraries 8301*** as such. This will affect the creation of libtool libraries that 8302*** depend on shared libraries, but programs linked with such libtool 8303*** libraries will work regardless of this problem. Nevertheless, you 8304*** may want to report the problem to your system manager and/or to 8305*** bug-libtool@gnu.org 8306 8307_LT_EOF 8308 fi ;; 8309 esac 8310 fi 8311 break 8312 fi 8313 done 8314 IFS="$lt_save_ifs" 8315 MAGIC_CMD="$lt_save_MAGIC_CMD" 8316 ;; 8317esac 8318fi 8319 8320MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8321if test -n "$MAGIC_CMD"; then 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8323$as_echo "$MAGIC_CMD" >&6; } 8324else 8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8326$as_echo "no" >&6; } 8327fi 8328 8329 8330 else 8331 MAGIC_CMD=: 8332 fi 8333fi 8334 8335 fi 8336 ;; 8337esac 8338 8339# Use C for the default configuration in the libtool script 8340 8341lt_save_CC="$CC" 8342ac_ext=c 8343ac_cpp='$CPP $CPPFLAGS' 8344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8346ac_compiler_gnu=$ac_cv_c_compiler_gnu 8347 8348 8349# Source file extension for C test sources. 8350ac_ext=c 8351 8352# Object file extension for compiled C test sources. 8353objext=o 8354objext=$objext 8355 8356# Code to be used in simple compile tests 8357lt_simple_compile_test_code="int some_variable = 0;" 8358 8359# Code to be used in simple link tests 8360lt_simple_link_test_code='int main(){return(0);}' 8361 8362 8363 8364 8365 8366 8367 8368# If no C compiler was specified, use CC. 8369LTCC=${LTCC-"$CC"} 8370 8371# If no C compiler flags were specified, use CFLAGS. 8372LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8373 8374# Allow CC to be a program name with arguments. 8375compiler=$CC 8376 8377# Save the default compiler, since it gets overwritten when the other 8378# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8379compiler_DEFAULT=$CC 8380 8381# save warnings/boilerplate of simple test code 8382ac_outfile=conftest.$ac_objext 8383echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8384eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8385_lt_compiler_boilerplate=`cat conftest.err` 8386$RM conftest* 8387 8388ac_outfile=conftest.$ac_objext 8389echo "$lt_simple_link_test_code" >conftest.$ac_ext 8390eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8391_lt_linker_boilerplate=`cat conftest.err` 8392$RM -r conftest* 8393 8394 8395## CAVEAT EMPTOR: 8396## There is no encapsulation within the following macros, do not change 8397## the running order or otherwise move them around unless you know exactly 8398## what you are doing... 8399if test -n "$compiler"; then 8400 8401lt_prog_compiler_no_builtin_flag= 8402 8403if test "$GCC" = yes; then 8404 case $cc_basename in 8405 nvcc*) 8406 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8407 *) 8408 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8409 esac 8410 8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8412$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8413if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8414 $as_echo_n "(cached) " >&6 8415else 8416 lt_cv_prog_compiler_rtti_exceptions=no 8417 ac_outfile=conftest.$ac_objext 8418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8419 lt_compiler_flag="-fno-rtti -fno-exceptions" 8420 # Insert the option either (1) after the last *FLAGS variable, or 8421 # (2) before a word containing "conftest.", or (3) at the end. 8422 # Note that $ac_compile itself does not contain backslashes and begins 8423 # with a dollar sign (not a hyphen), so the echo should work correctly. 8424 # The option is referenced via a variable to avoid confusing sed. 8425 lt_compile=`echo "$ac_compile" | $SED \ 8426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8428 -e 's:$: $lt_compiler_flag:'` 8429 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8430 (eval "$lt_compile" 2>conftest.err) 8431 ac_status=$? 8432 cat conftest.err >&5 8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8434 if (exit $ac_status) && test -s "$ac_outfile"; then 8435 # The compiler can only warn and ignore the option if not recognized 8436 # So say no if there are warnings other than the usual output. 8437 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8439 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8440 lt_cv_prog_compiler_rtti_exceptions=yes 8441 fi 8442 fi 8443 $RM conftest* 8444 8445fi 8446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8447$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8448 8449if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8450 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8451else 8452 : 8453fi 8454 8455fi 8456 8457 8458 8459 8460 8461 8462 lt_prog_compiler_wl= 8463lt_prog_compiler_pic= 8464lt_prog_compiler_static= 8465 8466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8467$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8468 8469 if test "$GCC" = yes; then 8470 lt_prog_compiler_wl='-Wl,' 8471 lt_prog_compiler_static='-static' 8472 8473 case $host_os in 8474 aix*) 8475 # All AIX code is PIC. 8476 if test "$host_cpu" = ia64; then 8477 # AIX 5 now supports IA64 processor 8478 lt_prog_compiler_static='-Bstatic' 8479 fi 8480 lt_prog_compiler_pic='-fPIC' 8481 ;; 8482 8483 amigaos*) 8484 case $host_cpu in 8485 powerpc) 8486 # see comment about AmigaOS4 .so support 8487 lt_prog_compiler_pic='-fPIC' 8488 ;; 8489 m68k) 8490 # FIXME: we need at least 68020 code to build shared libraries, but 8491 # adding the `-m68020' flag to GCC prevents building anything better, 8492 # like `-m68040'. 8493 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8494 ;; 8495 esac 8496 ;; 8497 8498 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8499 # PIC is the default for these OSes. 8500 ;; 8501 8502 mingw* | cygwin* | pw32* | os2* | cegcc*) 8503 # This hack is so that the source file can tell whether it is being 8504 # built for inclusion in a dll (and should export symbols for example). 8505 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8506 # (--disable-auto-import) libraries 8507 lt_prog_compiler_pic='-DDLL_EXPORT' 8508 ;; 8509 8510 darwin* | rhapsody*) 8511 # PIC is the default on this platform 8512 # Common symbols not allowed in MH_DYLIB files 8513 lt_prog_compiler_pic='-fno-common' 8514 ;; 8515 8516 haiku*) 8517 # PIC is the default for Haiku. 8518 # The "-static" flag exists, but is broken. 8519 lt_prog_compiler_static= 8520 ;; 8521 8522 hpux*) 8523 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8524 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8525 # sets the default TLS model and affects inlining. 8526 case $host_cpu in 8527 hppa*64*) 8528 # +Z the default 8529 ;; 8530 *) 8531 lt_prog_compiler_pic='-fPIC' 8532 ;; 8533 esac 8534 ;; 8535 8536 interix[3-9]*) 8537 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8538 # Instead, we relocate shared libraries at runtime. 8539 ;; 8540 8541 msdosdjgpp*) 8542 # Just because we use GCC doesn't mean we suddenly get shared libraries 8543 # on systems that don't support them. 8544 lt_prog_compiler_can_build_shared=no 8545 enable_shared=no 8546 ;; 8547 8548 *nto* | *qnx*) 8549 # QNX uses GNU C++, but need to define -shared option too, otherwise 8550 # it will coredump. 8551 lt_prog_compiler_pic='-fPIC -shared' 8552 ;; 8553 8554 sysv4*MP*) 8555 if test -d /usr/nec; then 8556 lt_prog_compiler_pic=-Kconform_pic 8557 fi 8558 ;; 8559 8560 *) 8561 lt_prog_compiler_pic='-fPIC' 8562 ;; 8563 esac 8564 8565 case $cc_basename in 8566 nvcc*) # Cuda Compiler Driver 2.2 8567 lt_prog_compiler_wl='-Xlinker ' 8568 lt_prog_compiler_pic='-Xcompiler -fPIC' 8569 ;; 8570 esac 8571 else 8572 # PORTME Check for flag to pass linker flags through the system compiler. 8573 case $host_os in 8574 aix*) 8575 lt_prog_compiler_wl='-Wl,' 8576 if test "$host_cpu" = ia64; then 8577 # AIX 5 now supports IA64 processor 8578 lt_prog_compiler_static='-Bstatic' 8579 else 8580 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8581 fi 8582 ;; 8583 8584 mingw* | cygwin* | pw32* | os2* | cegcc*) 8585 # This hack is so that the source file can tell whether it is being 8586 # built for inclusion in a dll (and should export symbols for example). 8587 lt_prog_compiler_pic='-DDLL_EXPORT' 8588 ;; 8589 8590 hpux9* | hpux10* | hpux11*) 8591 lt_prog_compiler_wl='-Wl,' 8592 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8593 # not for PA HP-UX. 8594 case $host_cpu in 8595 hppa*64*|ia64*) 8596 # +Z the default 8597 ;; 8598 *) 8599 lt_prog_compiler_pic='+Z' 8600 ;; 8601 esac 8602 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8603 lt_prog_compiler_static='${wl}-a ${wl}archive' 8604 ;; 8605 8606 irix5* | irix6* | nonstopux*) 8607 lt_prog_compiler_wl='-Wl,' 8608 # PIC (with -KPIC) is the default. 8609 lt_prog_compiler_static='-non_shared' 8610 ;; 8611 8612 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8613 case $cc_basename in 8614 # old Intel for x86_64 which still supported -KPIC. 8615 ecc*) 8616 lt_prog_compiler_wl='-Wl,' 8617 lt_prog_compiler_pic='-KPIC' 8618 lt_prog_compiler_static='-static' 8619 ;; 8620 # icc used to be incompatible with GCC. 8621 # ICC 10 doesn't accept -KPIC any more. 8622 icc* | ifort*) 8623 lt_prog_compiler_wl='-Wl,' 8624 lt_prog_compiler_pic='-fPIC' 8625 lt_prog_compiler_static='-static' 8626 ;; 8627 # Lahey Fortran 8.1. 8628 lf95*) 8629 lt_prog_compiler_wl='-Wl,' 8630 lt_prog_compiler_pic='--shared' 8631 lt_prog_compiler_static='--static' 8632 ;; 8633 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8634 # Portland Group compilers (*not* the Pentium gcc compiler, 8635 # which looks to be a dead project) 8636 lt_prog_compiler_wl='-Wl,' 8637 lt_prog_compiler_pic='-fpic' 8638 lt_prog_compiler_static='-Bstatic' 8639 ;; 8640 ccc*) 8641 lt_prog_compiler_wl='-Wl,' 8642 # All Alpha code is PIC. 8643 lt_prog_compiler_static='-non_shared' 8644 ;; 8645 xl* | bgxl* | bgf* | mpixl*) 8646 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8647 lt_prog_compiler_wl='-Wl,' 8648 lt_prog_compiler_pic='-qpic' 8649 lt_prog_compiler_static='-qstaticlink' 8650 ;; 8651 *) 8652 case `$CC -V 2>&1 | sed 5q` in 8653 *Sun\ F* | *Sun*Fortran*) 8654 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8655 lt_prog_compiler_pic='-KPIC' 8656 lt_prog_compiler_static='-Bstatic' 8657 lt_prog_compiler_wl='' 8658 ;; 8659 *Sun\ C*) 8660 # Sun C 5.9 8661 lt_prog_compiler_pic='-KPIC' 8662 lt_prog_compiler_static='-Bstatic' 8663 lt_prog_compiler_wl='-Wl,' 8664 ;; 8665 esac 8666 ;; 8667 esac 8668 ;; 8669 8670 newsos6) 8671 lt_prog_compiler_pic='-KPIC' 8672 lt_prog_compiler_static='-Bstatic' 8673 ;; 8674 8675 *nto* | *qnx*) 8676 # QNX uses GNU C++, but need to define -shared option too, otherwise 8677 # it will coredump. 8678 lt_prog_compiler_pic='-fPIC -shared' 8679 ;; 8680 8681 osf3* | osf4* | osf5*) 8682 lt_prog_compiler_wl='-Wl,' 8683 # All OSF/1 code is PIC. 8684 lt_prog_compiler_static='-non_shared' 8685 ;; 8686 8687 rdos*) 8688 lt_prog_compiler_static='-non_shared' 8689 ;; 8690 8691 solaris*) 8692 lt_prog_compiler_pic='-KPIC' 8693 lt_prog_compiler_static='-Bstatic' 8694 case $cc_basename in 8695 f77* | f90* | f95*) 8696 lt_prog_compiler_wl='-Qoption ld ';; 8697 *) 8698 lt_prog_compiler_wl='-Wl,';; 8699 esac 8700 ;; 8701 8702 sunos4*) 8703 lt_prog_compiler_wl='-Qoption ld ' 8704 lt_prog_compiler_pic='-PIC' 8705 lt_prog_compiler_static='-Bstatic' 8706 ;; 8707 8708 sysv4 | sysv4.2uw2* | sysv4.3*) 8709 lt_prog_compiler_wl='-Wl,' 8710 lt_prog_compiler_pic='-KPIC' 8711 lt_prog_compiler_static='-Bstatic' 8712 ;; 8713 8714 sysv4*MP*) 8715 if test -d /usr/nec ;then 8716 lt_prog_compiler_pic='-Kconform_pic' 8717 lt_prog_compiler_static='-Bstatic' 8718 fi 8719 ;; 8720 8721 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8722 lt_prog_compiler_wl='-Wl,' 8723 lt_prog_compiler_pic='-KPIC' 8724 lt_prog_compiler_static='-Bstatic' 8725 ;; 8726 8727 unicos*) 8728 lt_prog_compiler_wl='-Wl,' 8729 lt_prog_compiler_can_build_shared=no 8730 ;; 8731 8732 uts4*) 8733 lt_prog_compiler_pic='-pic' 8734 lt_prog_compiler_static='-Bstatic' 8735 ;; 8736 8737 *) 8738 lt_prog_compiler_can_build_shared=no 8739 ;; 8740 esac 8741 fi 8742 8743case $host_os in 8744 # For platforms which do not support PIC, -DPIC is meaningless: 8745 *djgpp*) 8746 lt_prog_compiler_pic= 8747 ;; 8748 *) 8749 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8750 ;; 8751esac 8752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8753$as_echo "$lt_prog_compiler_pic" >&6; } 8754 8755 8756 8757 8758 8759 8760# 8761# Check to make sure the PIC flag actually works. 8762# 8763if test -n "$lt_prog_compiler_pic"; then 8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8765$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8766if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8767 $as_echo_n "(cached) " >&6 8768else 8769 lt_cv_prog_compiler_pic_works=no 8770 ac_outfile=conftest.$ac_objext 8771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8772 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8773 # Insert the option either (1) after the last *FLAGS variable, or 8774 # (2) before a word containing "conftest.", or (3) at the end. 8775 # Note that $ac_compile itself does not contain backslashes and begins 8776 # with a dollar sign (not a hyphen), so the echo should work correctly. 8777 # The option is referenced via a variable to avoid confusing sed. 8778 lt_compile=`echo "$ac_compile" | $SED \ 8779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8781 -e 's:$: $lt_compiler_flag:'` 8782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8783 (eval "$lt_compile" 2>conftest.err) 8784 ac_status=$? 8785 cat conftest.err >&5 8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8787 if (exit $ac_status) && test -s "$ac_outfile"; then 8788 # The compiler can only warn and ignore the option if not recognized 8789 # So say no if there are warnings other than the usual output. 8790 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8792 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8793 lt_cv_prog_compiler_pic_works=yes 8794 fi 8795 fi 8796 $RM conftest* 8797 8798fi 8799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8800$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8801 8802if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8803 case $lt_prog_compiler_pic in 8804 "" | " "*) ;; 8805 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8806 esac 8807else 8808 lt_prog_compiler_pic= 8809 lt_prog_compiler_can_build_shared=no 8810fi 8811 8812fi 8813 8814 8815 8816 8817 8818 8819# 8820# Check to make sure the static flag actually works. 8821# 8822wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8824$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8825if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8826 $as_echo_n "(cached) " >&6 8827else 8828 lt_cv_prog_compiler_static_works=no 8829 save_LDFLAGS="$LDFLAGS" 8830 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8831 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8832 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8833 # The linker can only warn and ignore the option if not recognized 8834 # So say no if there are warnings 8835 if test -s conftest.err; then 8836 # Append any errors to the config.log. 8837 cat conftest.err 1>&5 8838 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8839 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8840 if diff conftest.exp conftest.er2 >/dev/null; then 8841 lt_cv_prog_compiler_static_works=yes 8842 fi 8843 else 8844 lt_cv_prog_compiler_static_works=yes 8845 fi 8846 fi 8847 $RM -r conftest* 8848 LDFLAGS="$save_LDFLAGS" 8849 8850fi 8851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8852$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8853 8854if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8855 : 8856else 8857 lt_prog_compiler_static= 8858fi 8859 8860 8861 8862 8863 8864 8865 8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8867$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8868if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8869 $as_echo_n "(cached) " >&6 8870else 8871 lt_cv_prog_compiler_c_o=no 8872 $RM -r conftest 2>/dev/null 8873 mkdir conftest 8874 cd conftest 8875 mkdir out 8876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8877 8878 lt_compiler_flag="-o out/conftest2.$ac_objext" 8879 # Insert the option either (1) after the last *FLAGS variable, or 8880 # (2) before a word containing "conftest.", or (3) at the end. 8881 # Note that $ac_compile itself does not contain backslashes and begins 8882 # with a dollar sign (not a hyphen), so the echo should work correctly. 8883 lt_compile=`echo "$ac_compile" | $SED \ 8884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8886 -e 's:$: $lt_compiler_flag:'` 8887 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8888 (eval "$lt_compile" 2>out/conftest.err) 8889 ac_status=$? 8890 cat out/conftest.err >&5 8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8892 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8893 then 8894 # The compiler can only warn and ignore the option if not recognized 8895 # So say no if there are warnings 8896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8897 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8898 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8899 lt_cv_prog_compiler_c_o=yes 8900 fi 8901 fi 8902 chmod u+w . 2>&5 8903 $RM conftest* 8904 # SGI C++ compiler will create directory out/ii_files/ for 8905 # template instantiation 8906 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8907 $RM out/* && rmdir out 8908 cd .. 8909 $RM -r conftest 8910 $RM conftest* 8911 8912fi 8913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8914$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8915 8916 8917 8918 8919 8920 8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8922$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8923if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8924 $as_echo_n "(cached) " >&6 8925else 8926 lt_cv_prog_compiler_c_o=no 8927 $RM -r conftest 2>/dev/null 8928 mkdir conftest 8929 cd conftest 8930 mkdir out 8931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8932 8933 lt_compiler_flag="-o out/conftest2.$ac_objext" 8934 # Insert the option either (1) after the last *FLAGS variable, or 8935 # (2) before a word containing "conftest.", or (3) at the end. 8936 # Note that $ac_compile itself does not contain backslashes and begins 8937 # with a dollar sign (not a hyphen), so the echo should work correctly. 8938 lt_compile=`echo "$ac_compile" | $SED \ 8939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8941 -e 's:$: $lt_compiler_flag:'` 8942 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8943 (eval "$lt_compile" 2>out/conftest.err) 8944 ac_status=$? 8945 cat out/conftest.err >&5 8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8947 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8948 then 8949 # The compiler can only warn and ignore the option if not recognized 8950 # So say no if there are warnings 8951 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8952 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8953 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8954 lt_cv_prog_compiler_c_o=yes 8955 fi 8956 fi 8957 chmod u+w . 2>&5 8958 $RM conftest* 8959 # SGI C++ compiler will create directory out/ii_files/ for 8960 # template instantiation 8961 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8962 $RM out/* && rmdir out 8963 cd .. 8964 $RM -r conftest 8965 $RM conftest* 8966 8967fi 8968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8969$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8970 8971 8972 8973 8974hard_links="nottested" 8975if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8976 # do not overwrite the value of need_locks provided by the user 8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8978$as_echo_n "checking if we can lock with hard links... " >&6; } 8979 hard_links=yes 8980 $RM conftest* 8981 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8982 touch conftest.a 8983 ln conftest.a conftest.b 2>&5 || hard_links=no 8984 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8986$as_echo "$hard_links" >&6; } 8987 if test "$hard_links" = no; then 8988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8989$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8990 need_locks=warn 8991 fi 8992else 8993 need_locks=no 8994fi 8995 8996 8997 8998 8999 9000 9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9002$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9003 9004 runpath_var= 9005 allow_undefined_flag= 9006 always_export_symbols=no 9007 archive_cmds= 9008 archive_expsym_cmds= 9009 compiler_needs_object=no 9010 enable_shared_with_static_runtimes=no 9011 export_dynamic_flag_spec= 9012 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9013 hardcode_automatic=no 9014 hardcode_direct=no 9015 hardcode_direct_absolute=no 9016 hardcode_libdir_flag_spec= 9017 hardcode_libdir_flag_spec_ld= 9018 hardcode_libdir_separator= 9019 hardcode_minus_L=no 9020 hardcode_shlibpath_var=unsupported 9021 inherit_rpath=no 9022 link_all_deplibs=unknown 9023 module_cmds= 9024 module_expsym_cmds= 9025 old_archive_from_new_cmds= 9026 old_archive_from_expsyms_cmds= 9027 thread_safe_flag_spec= 9028 whole_archive_flag_spec= 9029 # include_expsyms should be a list of space-separated symbols to be *always* 9030 # included in the symbol list 9031 include_expsyms= 9032 # exclude_expsyms can be an extended regexp of symbols to exclude 9033 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9034 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9035 # as well as any symbol that contains `d'. 9036 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9037 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9038 # platforms (ab)use it in PIC code, but their linkers get confused if 9039 # the symbol is explicitly referenced. Since portable code cannot 9040 # rely on this symbol name, it's probably fine to never include it in 9041 # preloaded symbol tables. 9042 # Exclude shared library initialization/finalization symbols. 9043 extract_expsyms_cmds= 9044 9045 case $host_os in 9046 cygwin* | mingw* | pw32* | cegcc*) 9047 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9048 # When not using gcc, we currently assume that we are using 9049 # Microsoft Visual C++. 9050 if test "$GCC" != yes; then 9051 with_gnu_ld=no 9052 fi 9053 ;; 9054 interix*) 9055 # we just hope/assume this is gcc and not c89 (= MSVC++) 9056 with_gnu_ld=yes 9057 ;; 9058 openbsd*) 9059 with_gnu_ld=no 9060 ;; 9061 esac 9062 9063 ld_shlibs=yes 9064 9065 # On some targets, GNU ld is compatible enough with the native linker 9066 # that we're better off using the native interface for both. 9067 lt_use_gnu_ld_interface=no 9068 if test "$with_gnu_ld" = yes; then 9069 case $host_os in 9070 aix*) 9071 # The AIX port of GNU ld has always aspired to compatibility 9072 # with the native linker. However, as the warning in the GNU ld 9073 # block says, versions before 2.19.5* couldn't really create working 9074 # shared libraries, regardless of the interface used. 9075 case `$LD -v 2>&1` in 9076 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9077 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9078 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9079 *) 9080 lt_use_gnu_ld_interface=yes 9081 ;; 9082 esac 9083 ;; 9084 *) 9085 lt_use_gnu_ld_interface=yes 9086 ;; 9087 esac 9088 fi 9089 9090 if test "$lt_use_gnu_ld_interface" = yes; then 9091 # If archive_cmds runs LD, not CC, wlarc should be empty 9092 wlarc='${wl}' 9093 9094 # Set some defaults for GNU ld with shared library support. These 9095 # are reset later if shared libraries are not supported. Putting them 9096 # here allows them to be overridden if necessary. 9097 runpath_var=LD_RUN_PATH 9098 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9099 export_dynamic_flag_spec='${wl}--export-dynamic' 9100 # ancient GNU ld didn't support --whole-archive et. al. 9101 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9102 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9103 else 9104 whole_archive_flag_spec= 9105 fi 9106 supports_anon_versioning=no 9107 case `$LD -v 2>&1` in 9108 *GNU\ gold*) supports_anon_versioning=yes ;; 9109 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9110 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9111 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9112 *\ 2.11.*) ;; # other 2.11 versions 9113 *) supports_anon_versioning=yes ;; 9114 esac 9115 9116 # See if GNU ld supports shared libraries. 9117 case $host_os in 9118 aix[3-9]*) 9119 # On AIX/PPC, the GNU linker is very broken 9120 if test "$host_cpu" != ia64; then 9121 ld_shlibs=no 9122 cat <<_LT_EOF 1>&2 9123 9124*** Warning: the GNU linker, at least up to release 2.19, is reported 9125*** to be unable to reliably create shared libraries on AIX. 9126*** Therefore, libtool is disabling shared libraries support. If you 9127*** really care for shared libraries, you may want to install binutils 9128*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9129*** You will then need to restart the configuration process. 9130 9131_LT_EOF 9132 fi 9133 ;; 9134 9135 amigaos*) 9136 case $host_cpu in 9137 powerpc) 9138 # see comment about AmigaOS4 .so support 9139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9140 archive_expsym_cmds='' 9141 ;; 9142 m68k) 9143 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)' 9144 hardcode_libdir_flag_spec='-L$libdir' 9145 hardcode_minus_L=yes 9146 ;; 9147 esac 9148 ;; 9149 9150 beos*) 9151 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9152 allow_undefined_flag=unsupported 9153 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9154 # support --undefined. This deserves some investigation. FIXME 9155 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9156 else 9157 ld_shlibs=no 9158 fi 9159 ;; 9160 9161 cygwin* | mingw* | pw32* | cegcc*) 9162 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9163 # as there is no search path for DLLs. 9164 hardcode_libdir_flag_spec='-L$libdir' 9165 export_dynamic_flag_spec='${wl}--export-all-symbols' 9166 allow_undefined_flag=unsupported 9167 always_export_symbols=no 9168 enable_shared_with_static_runtimes=yes 9169 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9170 9171 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9173 # If the export-symbols file already is a .def file (1st line 9174 # is EXPORTS), use it as is; otherwise, prepend... 9175 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9176 cp $export_symbols $output_objdir/$soname.def; 9177 else 9178 echo EXPORTS > $output_objdir/$soname.def; 9179 cat $export_symbols >> $output_objdir/$soname.def; 9180 fi~ 9181 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9182 else 9183 ld_shlibs=no 9184 fi 9185 ;; 9186 9187 haiku*) 9188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9189 link_all_deplibs=yes 9190 ;; 9191 9192 interix[3-9]*) 9193 hardcode_direct=no 9194 hardcode_shlibpath_var=no 9195 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9196 export_dynamic_flag_spec='${wl}-E' 9197 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9198 # Instead, shared libraries are loaded at an image base (0x10000000 by 9199 # default) and relocated if they conflict, which is a slow very memory 9200 # consuming and fragmenting process. To avoid this, we pick a random, 9201 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9202 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9203 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9204 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' 9205 ;; 9206 9207 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9208 tmp_diet=no 9209 if test "$host_os" = linux-dietlibc; then 9210 case $cc_basename in 9211 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9212 esac 9213 fi 9214 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9215 && test "$tmp_diet" = no 9216 then 9217 tmp_addflag=' $pic_flag' 9218 tmp_sharedflag='-shared' 9219 case $cc_basename,$host_cpu in 9220 pgcc*) # Portland Group C compiler 9221 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' 9222 tmp_addflag=' $pic_flag' 9223 ;; 9224 pgf77* | pgf90* | pgf95* | pgfortran*) 9225 # Portland Group f77 and f90 compilers 9226 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' 9227 tmp_addflag=' $pic_flag -Mnomain' ;; 9228 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9229 tmp_addflag=' -i_dynamic' ;; 9230 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9231 tmp_addflag=' -i_dynamic -nofor_main' ;; 9232 ifc* | ifort*) # Intel Fortran compiler 9233 tmp_addflag=' -nofor_main' ;; 9234 lf95*) # Lahey Fortran 8.1 9235 whole_archive_flag_spec= 9236 tmp_sharedflag='--shared' ;; 9237 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9238 tmp_sharedflag='-qmkshrobj' 9239 tmp_addflag= ;; 9240 nvcc*) # Cuda Compiler Driver 2.2 9241 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' 9242 compiler_needs_object=yes 9243 ;; 9244 esac 9245 case `$CC -V 2>&1 | sed 5q` in 9246 *Sun\ C*) # Sun C 5.9 9247 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' 9248 compiler_needs_object=yes 9249 tmp_sharedflag='-G' ;; 9250 *Sun\ F*) # Sun Fortran 8.3 9251 tmp_sharedflag='-G' ;; 9252 esac 9253 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9254 9255 if test "x$supports_anon_versioning" = xyes; then 9256 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9257 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9258 echo "local: *; };" >> $output_objdir/$libname.ver~ 9259 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9260 fi 9261 9262 case $cc_basename in 9263 xlf* | bgf* | bgxlf* | mpixlf*) 9264 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9265 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9266 hardcode_libdir_flag_spec= 9267 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9268 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9269 if test "x$supports_anon_versioning" = xyes; then 9270 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9271 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9272 echo "local: *; };" >> $output_objdir/$libname.ver~ 9273 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9274 fi 9275 ;; 9276 esac 9277 else 9278 ld_shlibs=no 9279 fi 9280 ;; 9281 9282 netbsd*) 9283 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9284 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9285 wlarc= 9286 else 9287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9289 fi 9290 ;; 9291 9292 solaris*) 9293 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9294 ld_shlibs=no 9295 cat <<_LT_EOF 1>&2 9296 9297*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9298*** create shared libraries on Solaris systems. Therefore, libtool 9299*** is disabling shared libraries support. We urge you to upgrade GNU 9300*** binutils to release 2.9.1 or newer. Another option is to modify 9301*** your PATH or compiler configuration so that the native linker is 9302*** used, and then restart. 9303 9304_LT_EOF 9305 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9307 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9308 else 9309 ld_shlibs=no 9310 fi 9311 ;; 9312 9313 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9314 case `$LD -v 2>&1` in 9315 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9316 ld_shlibs=no 9317 cat <<_LT_EOF 1>&2 9318 9319*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9320*** reliably create shared libraries on SCO systems. Therefore, libtool 9321*** is disabling shared libraries support. We urge you to upgrade GNU 9322*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9323*** your PATH or compiler configuration so that the native linker is 9324*** used, and then restart. 9325 9326_LT_EOF 9327 ;; 9328 *) 9329 # For security reasons, it is highly recommended that you always 9330 # use absolute paths for naming shared libraries, and exclude the 9331 # DT_RUNPATH tag from executables and libraries. But doing so 9332 # requires that you compile everything twice, which is a pain. 9333 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9334 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9336 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9337 else 9338 ld_shlibs=no 9339 fi 9340 ;; 9341 esac 9342 ;; 9343 9344 sunos4*) 9345 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9346 wlarc= 9347 hardcode_direct=yes 9348 hardcode_shlibpath_var=no 9349 ;; 9350 9351 *) 9352 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9354 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9355 else 9356 ld_shlibs=no 9357 fi 9358 ;; 9359 esac 9360 9361 if test "$ld_shlibs" = no; then 9362 runpath_var= 9363 hardcode_libdir_flag_spec= 9364 export_dynamic_flag_spec= 9365 whole_archive_flag_spec= 9366 fi 9367 else 9368 # PORTME fill in a description of your system's linker (not GNU ld) 9369 case $host_os in 9370 aix3*) 9371 allow_undefined_flag=unsupported 9372 always_export_symbols=yes 9373 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' 9374 # Note: this linker hardcodes the directories in LIBPATH if there 9375 # are no directories specified by -L. 9376 hardcode_minus_L=yes 9377 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9378 # Neither direct hardcoding nor static linking is supported with a 9379 # broken collect2. 9380 hardcode_direct=unsupported 9381 fi 9382 ;; 9383 9384 aix[4-9]*) 9385 if test "$host_cpu" = ia64; then 9386 # On IA64, the linker does run time linking by default, so we don't 9387 # have to do anything special. 9388 aix_use_runtimelinking=no 9389 exp_sym_flag='-Bexport' 9390 no_entry_flag="" 9391 else 9392 # If we're using GNU nm, then we don't want the "-C" option. 9393 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9394 # Also, AIX nm treats weak defined symbols like other global 9395 # defined symbols, whereas GNU nm marks them as "W". 9396 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9397 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' 9398 else 9399 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9400 fi 9401 aix_use_runtimelinking=no 9402 9403 # Test if we are trying to use run time linking or normal 9404 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9405 # need to do runtime linking. 9406 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9407 for ld_flag in $LDFLAGS; do 9408 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9409 aix_use_runtimelinking=yes 9410 break 9411 fi 9412 done 9413 ;; 9414 esac 9415 9416 exp_sym_flag='-bexport' 9417 no_entry_flag='-bnoentry' 9418 fi 9419 9420 # When large executables or shared objects are built, AIX ld can 9421 # have problems creating the table of contents. If linking a library 9422 # or program results in "error TOC overflow" add -mminimal-toc to 9423 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9424 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9425 9426 archive_cmds='' 9427 hardcode_direct=yes 9428 hardcode_direct_absolute=yes 9429 hardcode_libdir_separator=':' 9430 link_all_deplibs=yes 9431 file_list_spec='${wl}-f,' 9432 9433 if test "$GCC" = yes; then 9434 case $host_os in aix4.[012]|aix4.[012].*) 9435 # We only want to do this on AIX 4.2 and lower, the check 9436 # below for broken collect2 doesn't work under 4.3+ 9437 collect2name=`${CC} -print-prog-name=collect2` 9438 if test -f "$collect2name" && 9439 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9440 then 9441 # We have reworked collect2 9442 : 9443 else 9444 # We have old collect2 9445 hardcode_direct=unsupported 9446 # It fails to find uninstalled libraries when the uninstalled 9447 # path is not listed in the libpath. Setting hardcode_minus_L 9448 # to unsupported forces relinking 9449 hardcode_minus_L=yes 9450 hardcode_libdir_flag_spec='-L$libdir' 9451 hardcode_libdir_separator= 9452 fi 9453 ;; 9454 esac 9455 shared_flag='-shared' 9456 if test "$aix_use_runtimelinking" = yes; then 9457 shared_flag="$shared_flag "'${wl}-G' 9458 fi 9459 else 9460 # not using gcc 9461 if test "$host_cpu" = ia64; then 9462 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9463 # chokes on -Wl,-G. The following line is correct: 9464 shared_flag='-G' 9465 else 9466 if test "$aix_use_runtimelinking" = yes; then 9467 shared_flag='${wl}-G' 9468 else 9469 shared_flag='${wl}-bM:SRE' 9470 fi 9471 fi 9472 fi 9473 9474 export_dynamic_flag_spec='${wl}-bexpall' 9475 # It seems that -bexpall does not export symbols beginning with 9476 # underscore (_), so it is better to generate a list of symbols to export. 9477 always_export_symbols=yes 9478 if test "$aix_use_runtimelinking" = yes; then 9479 # Warning - without using the other runtime loading flags (-brtl), 9480 # -berok will link without error, but may produce a broken library. 9481 allow_undefined_flag='-berok' 9482 # Determine the default libpath from the value encoded in an 9483 # empty executable. 9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9485/* end confdefs.h. */ 9486 9487int 9488main () 9489{ 9490 9491 ; 9492 return 0; 9493} 9494_ACEOF 9495if ac_fn_c_try_link "$LINENO"; then : 9496 9497lt_aix_libpath_sed=' 9498 /Import File Strings/,/^$/ { 9499 /^0/ { 9500 s/^0 *\(.*\)$/\1/ 9501 p 9502 } 9503 }' 9504aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9505# Check for a 64-bit object if we didn't find anything. 9506if test -z "$aix_libpath"; then 9507 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9508fi 9509fi 9510rm -f core conftest.err conftest.$ac_objext \ 9511 conftest$ac_exeext conftest.$ac_ext 9512if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9513 9514 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9515 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" 9516 else 9517 if test "$host_cpu" = ia64; then 9518 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9519 allow_undefined_flag="-z nodefs" 9520 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" 9521 else 9522 # Determine the default libpath from the value encoded in an 9523 # empty executable. 9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9525/* end confdefs.h. */ 9526 9527int 9528main () 9529{ 9530 9531 ; 9532 return 0; 9533} 9534_ACEOF 9535if ac_fn_c_try_link "$LINENO"; then : 9536 9537lt_aix_libpath_sed=' 9538 /Import File Strings/,/^$/ { 9539 /^0/ { 9540 s/^0 *\(.*\)$/\1/ 9541 p 9542 } 9543 }' 9544aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9545# Check for a 64-bit object if we didn't find anything. 9546if test -z "$aix_libpath"; then 9547 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9548fi 9549fi 9550rm -f core conftest.err conftest.$ac_objext \ 9551 conftest$ac_exeext conftest.$ac_ext 9552if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9553 9554 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9555 # Warning - without using the other run time loading flags, 9556 # -berok will link without error, but may produce a broken library. 9557 no_undefined_flag=' ${wl}-bernotok' 9558 allow_undefined_flag=' ${wl}-berok' 9559 if test "$with_gnu_ld" = yes; then 9560 # We only use this code for GNU lds that support --whole-archive. 9561 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9562 else 9563 # Exported symbols can be pulled into shared objects from archives 9564 whole_archive_flag_spec='$convenience' 9565 fi 9566 archive_cmds_need_lc=yes 9567 # This is similar to how AIX traditionally builds its shared libraries. 9568 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' 9569 fi 9570 fi 9571 ;; 9572 9573 amigaos*) 9574 case $host_cpu in 9575 powerpc) 9576 # see comment about AmigaOS4 .so support 9577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9578 archive_expsym_cmds='' 9579 ;; 9580 m68k) 9581 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)' 9582 hardcode_libdir_flag_spec='-L$libdir' 9583 hardcode_minus_L=yes 9584 ;; 9585 esac 9586 ;; 9587 9588 bsdi[45]*) 9589 export_dynamic_flag_spec=-rdynamic 9590 ;; 9591 9592 cygwin* | mingw* | pw32* | cegcc*) 9593 # When not using gcc, we currently assume that we are using 9594 # Microsoft Visual C++. 9595 # hardcode_libdir_flag_spec is actually meaningless, as there is 9596 # no search path for DLLs. 9597 hardcode_libdir_flag_spec=' ' 9598 allow_undefined_flag=unsupported 9599 # Tell ltmain to make .lib files, not .a files. 9600 libext=lib 9601 # Tell ltmain to make .dll files, not .so files. 9602 shrext_cmds=".dll" 9603 # FIXME: Setting linknames here is a bad hack. 9604 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9605 # The linker will automatically build a .lib file if we build a DLL. 9606 old_archive_from_new_cmds='true' 9607 # FIXME: Should let the user specify the lib program. 9608 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9609 fix_srcfile_path='`cygpath -w "$srcfile"`' 9610 enable_shared_with_static_runtimes=yes 9611 ;; 9612 9613 darwin* | rhapsody*) 9614 9615 9616 archive_cmds_need_lc=no 9617 hardcode_direct=no 9618 hardcode_automatic=yes 9619 hardcode_shlibpath_var=unsupported 9620 if test "$lt_cv_ld_force_load" = "yes"; then 9621 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\"`' 9622 else 9623 whole_archive_flag_spec='' 9624 fi 9625 link_all_deplibs=yes 9626 allow_undefined_flag="$_lt_dar_allow_undefined" 9627 case $cc_basename in 9628 ifort*) _lt_dar_can_shared=yes ;; 9629 *) _lt_dar_can_shared=$GCC ;; 9630 esac 9631 if test "$_lt_dar_can_shared" = "yes"; then 9632 output_verbose_link_cmd=func_echo_all 9633 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9634 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9635 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}" 9636 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}" 9637 9638 else 9639 ld_shlibs=no 9640 fi 9641 9642 ;; 9643 9644 dgux*) 9645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9646 hardcode_libdir_flag_spec='-L$libdir' 9647 hardcode_shlibpath_var=no 9648 ;; 9649 9650 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9651 # support. Future versions do this automatically, but an explicit c++rt0.o 9652 # does not break anything, and helps significantly (at the cost of a little 9653 # extra space). 9654 freebsd2.2*) 9655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9656 hardcode_libdir_flag_spec='-R$libdir' 9657 hardcode_direct=yes 9658 hardcode_shlibpath_var=no 9659 ;; 9660 9661 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9662 freebsd2.*) 9663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9664 hardcode_direct=yes 9665 hardcode_minus_L=yes 9666 hardcode_shlibpath_var=no 9667 ;; 9668 9669 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9670 freebsd* | dragonfly*) 9671 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9672 hardcode_libdir_flag_spec='-R$libdir' 9673 hardcode_direct=yes 9674 hardcode_shlibpath_var=no 9675 ;; 9676 9677 hpux9*) 9678 if test "$GCC" = yes; then 9679 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' 9680 else 9681 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' 9682 fi 9683 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9684 hardcode_libdir_separator=: 9685 hardcode_direct=yes 9686 9687 # hardcode_minus_L: Not really in the search PATH, 9688 # but as the default location of the library. 9689 hardcode_minus_L=yes 9690 export_dynamic_flag_spec='${wl}-E' 9691 ;; 9692 9693 hpux10*) 9694 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9695 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9696 else 9697 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9698 fi 9699 if test "$with_gnu_ld" = no; then 9700 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9701 hardcode_libdir_flag_spec_ld='+b $libdir' 9702 hardcode_libdir_separator=: 9703 hardcode_direct=yes 9704 hardcode_direct_absolute=yes 9705 export_dynamic_flag_spec='${wl}-E' 9706 # hardcode_minus_L: Not really in the search PATH, 9707 # but as the default location of the library. 9708 hardcode_minus_L=yes 9709 fi 9710 ;; 9711 9712 hpux11*) 9713 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9714 case $host_cpu in 9715 hppa*64*) 9716 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9717 ;; 9718 ia64*) 9719 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9720 ;; 9721 *) 9722 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9723 ;; 9724 esac 9725 else 9726 case $host_cpu in 9727 hppa*64*) 9728 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9729 ;; 9730 ia64*) 9731 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9732 ;; 9733 *) 9734 9735 # Older versions of the 11.00 compiler do not understand -b yet 9736 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9738$as_echo_n "checking if $CC understands -b... " >&6; } 9739if test "${lt_cv_prog_compiler__b+set}" = set; then : 9740 $as_echo_n "(cached) " >&6 9741else 9742 lt_cv_prog_compiler__b=no 9743 save_LDFLAGS="$LDFLAGS" 9744 LDFLAGS="$LDFLAGS -b" 9745 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9746 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9747 # The linker can only warn and ignore the option if not recognized 9748 # So say no if there are warnings 9749 if test -s conftest.err; then 9750 # Append any errors to the config.log. 9751 cat conftest.err 1>&5 9752 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9754 if diff conftest.exp conftest.er2 >/dev/null; then 9755 lt_cv_prog_compiler__b=yes 9756 fi 9757 else 9758 lt_cv_prog_compiler__b=yes 9759 fi 9760 fi 9761 $RM -r conftest* 9762 LDFLAGS="$save_LDFLAGS" 9763 9764fi 9765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9766$as_echo "$lt_cv_prog_compiler__b" >&6; } 9767 9768if test x"$lt_cv_prog_compiler__b" = xyes; then 9769 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9770else 9771 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9772fi 9773 9774 ;; 9775 esac 9776 fi 9777 if test "$with_gnu_ld" = no; then 9778 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9779 hardcode_libdir_separator=: 9780 9781 case $host_cpu in 9782 hppa*64*|ia64*) 9783 hardcode_direct=no 9784 hardcode_shlibpath_var=no 9785 ;; 9786 *) 9787 hardcode_direct=yes 9788 hardcode_direct_absolute=yes 9789 export_dynamic_flag_spec='${wl}-E' 9790 9791 # hardcode_minus_L: Not really in the search PATH, 9792 # but as the default location of the library. 9793 hardcode_minus_L=yes 9794 ;; 9795 esac 9796 fi 9797 ;; 9798 9799 irix5* | irix6* | nonstopux*) 9800 if test "$GCC" = yes; then 9801 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' 9802 # Try to use the -exported_symbol ld option, if it does not 9803 # work, assume that -exports_file does not work either and 9804 # implicitly export all symbols. 9805 save_LDFLAGS="$LDFLAGS" 9806 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9808/* end confdefs.h. */ 9809int foo(void) {} 9810_ACEOF 9811if ac_fn_c_try_link "$LINENO"; then : 9812 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' 9813 9814fi 9815rm -f core conftest.err conftest.$ac_objext \ 9816 conftest$ac_exeext conftest.$ac_ext 9817 LDFLAGS="$save_LDFLAGS" 9818 else 9819 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' 9820 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' 9821 fi 9822 archive_cmds_need_lc='no' 9823 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9824 hardcode_libdir_separator=: 9825 inherit_rpath=yes 9826 link_all_deplibs=yes 9827 ;; 9828 9829 netbsd*) 9830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9831 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9832 else 9833 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9834 fi 9835 hardcode_libdir_flag_spec='-R$libdir' 9836 hardcode_direct=yes 9837 hardcode_shlibpath_var=no 9838 ;; 9839 9840 newsos6) 9841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9842 hardcode_direct=yes 9843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9844 hardcode_libdir_separator=: 9845 hardcode_shlibpath_var=no 9846 ;; 9847 9848 *nto* | *qnx*) 9849 ;; 9850 9851 openbsd*) 9852 if test -f /usr/libexec/ld.so; then 9853 hardcode_direct=yes 9854 hardcode_shlibpath_var=no 9855 hardcode_direct_absolute=yes 9856 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9857 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9858 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9859 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9860 export_dynamic_flag_spec='${wl}-E' 9861 else 9862 case $host_os in 9863 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9864 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9865 hardcode_libdir_flag_spec='-R$libdir' 9866 ;; 9867 *) 9868 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9869 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9870 ;; 9871 esac 9872 fi 9873 else 9874 ld_shlibs=no 9875 fi 9876 ;; 9877 9878 os2*) 9879 hardcode_libdir_flag_spec='-L$libdir' 9880 hardcode_minus_L=yes 9881 allow_undefined_flag=unsupported 9882 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' 9883 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9884 ;; 9885 9886 osf3*) 9887 if test "$GCC" = yes; then 9888 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9889 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' 9890 else 9891 allow_undefined_flag=' -expect_unresolved \*' 9892 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' 9893 fi 9894 archive_cmds_need_lc='no' 9895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9896 hardcode_libdir_separator=: 9897 ;; 9898 9899 osf4* | osf5*) # as osf3* with the addition of -msym flag 9900 if test "$GCC" = yes; then 9901 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9902 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' 9903 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9904 else 9905 allow_undefined_flag=' -expect_unresolved \*' 9906 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' 9907 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~ 9908 $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' 9909 9910 # Both c and cxx compiler support -rpath directly 9911 hardcode_libdir_flag_spec='-rpath $libdir' 9912 fi 9913 archive_cmds_need_lc='no' 9914 hardcode_libdir_separator=: 9915 ;; 9916 9917 solaris*) 9918 no_undefined_flag=' -z defs' 9919 if test "$GCC" = yes; then 9920 wlarc='${wl}' 9921 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9922 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9923 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9924 else 9925 case `$CC -V 2>&1` in 9926 *"Compilers 5.0"*) 9927 wlarc='' 9928 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9929 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9930 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9931 ;; 9932 *) 9933 wlarc='${wl}' 9934 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9935 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9936 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9937 ;; 9938 esac 9939 fi 9940 hardcode_libdir_flag_spec='-R$libdir' 9941 hardcode_shlibpath_var=no 9942 case $host_os in 9943 solaris2.[0-5] | solaris2.[0-5].*) ;; 9944 *) 9945 # The compiler driver will combine and reorder linker options, 9946 # but understands `-z linker_flag'. GCC discards it without `$wl', 9947 # but is careful enough not to reorder. 9948 # Supported since Solaris 2.6 (maybe 2.5.1?) 9949 if test "$GCC" = yes; then 9950 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9951 else 9952 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9953 fi 9954 ;; 9955 esac 9956 link_all_deplibs=yes 9957 ;; 9958 9959 sunos4*) 9960 if test "x$host_vendor" = xsequent; then 9961 # Use $CC to link under sequent, because it throws in some extra .o 9962 # files that make .init and .fini sections work. 9963 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9964 else 9965 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9966 fi 9967 hardcode_libdir_flag_spec='-L$libdir' 9968 hardcode_direct=yes 9969 hardcode_minus_L=yes 9970 hardcode_shlibpath_var=no 9971 ;; 9972 9973 sysv4) 9974 case $host_vendor in 9975 sni) 9976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9977 hardcode_direct=yes # is this really true??? 9978 ;; 9979 siemens) 9980 ## LD is ld it makes a PLAMLIB 9981 ## CC just makes a GrossModule. 9982 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9983 reload_cmds='$CC -r -o $output$reload_objs' 9984 hardcode_direct=no 9985 ;; 9986 motorola) 9987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9988 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9989 ;; 9990 esac 9991 runpath_var='LD_RUN_PATH' 9992 hardcode_shlibpath_var=no 9993 ;; 9994 9995 sysv4.3*) 9996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9997 hardcode_shlibpath_var=no 9998 export_dynamic_flag_spec='-Bexport' 9999 ;; 10000 10001 sysv4*MP*) 10002 if test -d /usr/nec; then 10003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10004 hardcode_shlibpath_var=no 10005 runpath_var=LD_RUN_PATH 10006 hardcode_runpath_var=yes 10007 ld_shlibs=yes 10008 fi 10009 ;; 10010 10011 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10012 no_undefined_flag='${wl}-z,text' 10013 archive_cmds_need_lc=no 10014 hardcode_shlibpath_var=no 10015 runpath_var='LD_RUN_PATH' 10016 10017 if test "$GCC" = yes; then 10018 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10019 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10020 else 10021 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10022 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10023 fi 10024 ;; 10025 10026 sysv5* | sco3.2v5* | sco5v6*) 10027 # Note: We can NOT use -z defs as we might desire, because we do not 10028 # link with -lc, and that would cause any symbols used from libc to 10029 # always be unresolved, which means just about no library would 10030 # ever link correctly. If we're not using GNU ld we use -z text 10031 # though, which does catch some bad symbols but isn't as heavy-handed 10032 # as -z defs. 10033 no_undefined_flag='${wl}-z,text' 10034 allow_undefined_flag='${wl}-z,nodefs' 10035 archive_cmds_need_lc=no 10036 hardcode_shlibpath_var=no 10037 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10038 hardcode_libdir_separator=':' 10039 link_all_deplibs=yes 10040 export_dynamic_flag_spec='${wl}-Bexport' 10041 runpath_var='LD_RUN_PATH' 10042 10043 if test "$GCC" = yes; then 10044 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10045 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10046 else 10047 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10048 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10049 fi 10050 ;; 10051 10052 uts4*) 10053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10054 hardcode_libdir_flag_spec='-L$libdir' 10055 hardcode_shlibpath_var=no 10056 ;; 10057 10058 *) 10059 ld_shlibs=no 10060 ;; 10061 esac 10062 10063 if test x$host_vendor = xsni; then 10064 case $host in 10065 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10066 export_dynamic_flag_spec='${wl}-Blargedynsym' 10067 ;; 10068 esac 10069 fi 10070 fi 10071 10072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10073$as_echo "$ld_shlibs" >&6; } 10074test "$ld_shlibs" = no && can_build_shared=no 10075 10076with_gnu_ld=$with_gnu_ld 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092# 10093# Do we need to explicitly link libc? 10094# 10095case "x$archive_cmds_need_lc" in 10096x|xyes) 10097 # Assume -lc should be added 10098 archive_cmds_need_lc=yes 10099 10100 if test "$enable_shared" = yes && test "$GCC" = yes; then 10101 case $archive_cmds in 10102 *'~'*) 10103 # FIXME: we may have to deal with multi-command sequences. 10104 ;; 10105 '$CC '*) 10106 # Test whether the compiler implicitly links with -lc since on some 10107 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10108 # to ld, don't add -lc before -lgcc. 10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10110$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10111if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 10112 $as_echo_n "(cached) " >&6 10113else 10114 $RM conftest* 10115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10116 10117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10118 (eval $ac_compile) 2>&5 10119 ac_status=$? 10120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10121 test $ac_status = 0; } 2>conftest.err; then 10122 soname=conftest 10123 lib=conftest 10124 libobjs=conftest.$ac_objext 10125 deplibs= 10126 wl=$lt_prog_compiler_wl 10127 pic_flag=$lt_prog_compiler_pic 10128 compiler_flags=-v 10129 linker_flags=-v 10130 verstring= 10131 output_objdir=. 10132 libname=conftest 10133 lt_save_allow_undefined_flag=$allow_undefined_flag 10134 allow_undefined_flag= 10135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10136 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10137 ac_status=$? 10138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10139 test $ac_status = 0; } 10140 then 10141 lt_cv_archive_cmds_need_lc=no 10142 else 10143 lt_cv_archive_cmds_need_lc=yes 10144 fi 10145 allow_undefined_flag=$lt_save_allow_undefined_flag 10146 else 10147 cat conftest.err 1>&5 10148 fi 10149 $RM conftest* 10150 10151fi 10152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10153$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10154 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10155 ;; 10156 esac 10157 fi 10158 ;; 10159esac 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10318$as_echo_n "checking dynamic linker characteristics... " >&6; } 10319 10320if test "$GCC" = yes; then 10321 case $host_os in 10322 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10323 *) lt_awk_arg="/^libraries:/" ;; 10324 esac 10325 case $host_os in 10326 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10327 *) lt_sed_strip_eq="s,=/,/,g" ;; 10328 esac 10329 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10330 case $lt_search_path_spec in 10331 *\;*) 10332 # if the path contains ";" then we assume it to be the separator 10333 # otherwise default to the standard path separator (i.e. ":") - it is 10334 # assumed that no part of a normal pathname contains ";" but that should 10335 # okay in the real world where ";" in dirpaths is itself problematic. 10336 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10337 ;; 10338 *) 10339 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10340 ;; 10341 esac 10342 # Ok, now we have the path, separated by spaces, we can step through it 10343 # and add multilib dir if necessary. 10344 lt_tmp_lt_search_path_spec= 10345 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10346 for lt_sys_path in $lt_search_path_spec; do 10347 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10348 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10349 else 10350 test -d "$lt_sys_path" && \ 10351 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10352 fi 10353 done 10354 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10355BEGIN {RS=" "; FS="/|\n";} { 10356 lt_foo=""; 10357 lt_count=0; 10358 for (lt_i = NF; lt_i > 0; lt_i--) { 10359 if ($lt_i != "" && $lt_i != ".") { 10360 if ($lt_i == "..") { 10361 lt_count++; 10362 } else { 10363 if (lt_count == 0) { 10364 lt_foo="/" $lt_i lt_foo; 10365 } else { 10366 lt_count--; 10367 } 10368 } 10369 } 10370 } 10371 if (lt_foo != "") { lt_freq[lt_foo]++; } 10372 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10373}'` 10374 # AWK program above erroneously prepends '/' to C:/dos/paths 10375 # for these hosts. 10376 case $host_os in 10377 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10378 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10379 esac 10380 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10381else 10382 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10383fi 10384library_names_spec= 10385libname_spec='lib$name' 10386soname_spec= 10387shrext_cmds=".so" 10388postinstall_cmds= 10389postuninstall_cmds= 10390finish_cmds= 10391finish_eval= 10392shlibpath_var= 10393shlibpath_overrides_runpath=unknown 10394version_type=none 10395dynamic_linker="$host_os ld.so" 10396sys_lib_dlsearch_path_spec="/lib /usr/lib" 10397need_lib_prefix=unknown 10398hardcode_into_libs=no 10399 10400# when you set need_version to no, make sure it does not cause -set_version 10401# flags to be left without arguments 10402need_version=unknown 10403 10404case $host_os in 10405aix3*) 10406 version_type=linux 10407 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10408 shlibpath_var=LIBPATH 10409 10410 # AIX 3 has no versioning support, so we append a major version to the name. 10411 soname_spec='${libname}${release}${shared_ext}$major' 10412 ;; 10413 10414aix[4-9]*) 10415 version_type=linux 10416 need_lib_prefix=no 10417 need_version=no 10418 hardcode_into_libs=yes 10419 if test "$host_cpu" = ia64; then 10420 # AIX 5 supports IA64 10421 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10422 shlibpath_var=LD_LIBRARY_PATH 10423 else 10424 # With GCC up to 2.95.x, collect2 would create an import file 10425 # for dependence libraries. The import file would start with 10426 # the line `#! .'. This would cause the generated library to 10427 # depend on `.', always an invalid library. This was fixed in 10428 # development snapshots of GCC prior to 3.0. 10429 case $host_os in 10430 aix4 | aix4.[01] | aix4.[01].*) 10431 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10432 echo ' yes ' 10433 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10434 : 10435 else 10436 can_build_shared=no 10437 fi 10438 ;; 10439 esac 10440 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10441 # soname into executable. Probably we can add versioning support to 10442 # collect2, so additional links can be useful in future. 10443 if test "$aix_use_runtimelinking" = yes; then 10444 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10445 # instead of lib<name>.a to let people know that these are not 10446 # typical AIX shared libraries. 10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10448 else 10449 # We preserve .a as extension for shared libraries through AIX4.2 10450 # and later when we are not doing run time linking. 10451 library_names_spec='${libname}${release}.a $libname.a' 10452 soname_spec='${libname}${release}${shared_ext}$major' 10453 fi 10454 shlibpath_var=LIBPATH 10455 fi 10456 ;; 10457 10458amigaos*) 10459 case $host_cpu in 10460 powerpc) 10461 # Since July 2007 AmigaOS4 officially supports .so libraries. 10462 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10464 ;; 10465 m68k) 10466 library_names_spec='$libname.ixlibrary $libname.a' 10467 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10468 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' 10469 ;; 10470 esac 10471 ;; 10472 10473beos*) 10474 library_names_spec='${libname}${shared_ext}' 10475 dynamic_linker="$host_os ld.so" 10476 shlibpath_var=LIBRARY_PATH 10477 ;; 10478 10479bsdi[45]*) 10480 version_type=linux 10481 need_version=no 10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10483 soname_spec='${libname}${release}${shared_ext}$major' 10484 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10485 shlibpath_var=LD_LIBRARY_PATH 10486 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10487 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10488 # the default ld.so.conf also contains /usr/contrib/lib and 10489 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10490 # libtool to hard-code these into programs 10491 ;; 10492 10493cygwin* | mingw* | pw32* | cegcc*) 10494 version_type=windows 10495 shrext_cmds=".dll" 10496 need_version=no 10497 need_lib_prefix=no 10498 10499 case $GCC,$host_os in 10500 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10501 library_names_spec='$libname.dll.a' 10502 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10503 postinstall_cmds='base_file=`basename \${file}`~ 10504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10505 dldir=$destdir/`dirname \$dlpath`~ 10506 test -d \$dldir || mkdir -p \$dldir~ 10507 $install_prog $dir/$dlname \$dldir/$dlname~ 10508 chmod a+x \$dldir/$dlname~ 10509 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10510 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10511 fi' 10512 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10513 dlpath=$dir/\$dldll~ 10514 $RM \$dlpath' 10515 shlibpath_overrides_runpath=yes 10516 10517 case $host_os in 10518 cygwin*) 10519 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10520 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10521 10522 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10523 ;; 10524 mingw* | cegcc*) 10525 # MinGW DLLs use traditional 'lib' prefix 10526 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10527 ;; 10528 pw32*) 10529 # pw32 DLLs use 'pw' prefix rather than 'lib' 10530 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10531 ;; 10532 esac 10533 ;; 10534 10535 *) 10536 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10537 ;; 10538 esac 10539 dynamic_linker='Win32 ld.exe' 10540 # FIXME: first we should search . and the directory the executable is in 10541 shlibpath_var=PATH 10542 ;; 10543 10544darwin* | rhapsody*) 10545 dynamic_linker="$host_os dyld" 10546 version_type=darwin 10547 need_lib_prefix=no 10548 need_version=no 10549 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10550 soname_spec='${libname}${release}${major}$shared_ext' 10551 shlibpath_overrides_runpath=yes 10552 shlibpath_var=DYLD_LIBRARY_PATH 10553 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10554 10555 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10556 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10557 ;; 10558 10559dgux*) 10560 version_type=linux 10561 need_lib_prefix=no 10562 need_version=no 10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10564 soname_spec='${libname}${release}${shared_ext}$major' 10565 shlibpath_var=LD_LIBRARY_PATH 10566 ;; 10567 10568freebsd* | dragonfly*) 10569 # DragonFly does not have aout. When/if they implement a new 10570 # versioning mechanism, adjust this. 10571 if test -x /usr/bin/objformat; then 10572 objformat=`/usr/bin/objformat` 10573 else 10574 case $host_os in 10575 freebsd[23].*) objformat=aout ;; 10576 *) objformat=elf ;; 10577 esac 10578 fi 10579 version_type=freebsd-$objformat 10580 case $version_type in 10581 freebsd-elf*) 10582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10583 need_version=no 10584 need_lib_prefix=no 10585 ;; 10586 freebsd-*) 10587 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10588 need_version=yes 10589 ;; 10590 esac 10591 shlibpath_var=LD_LIBRARY_PATH 10592 case $host_os in 10593 freebsd2.*) 10594 shlibpath_overrides_runpath=yes 10595 ;; 10596 freebsd3.[01]* | freebsdelf3.[01]*) 10597 shlibpath_overrides_runpath=yes 10598 hardcode_into_libs=yes 10599 ;; 10600 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10601 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10602 shlibpath_overrides_runpath=no 10603 hardcode_into_libs=yes 10604 ;; 10605 *) # from 4.6 on, and DragonFly 10606 shlibpath_overrides_runpath=yes 10607 hardcode_into_libs=yes 10608 ;; 10609 esac 10610 ;; 10611 10612gnu*) 10613 version_type=linux 10614 need_lib_prefix=no 10615 need_version=no 10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10617 soname_spec='${libname}${release}${shared_ext}$major' 10618 shlibpath_var=LD_LIBRARY_PATH 10619 hardcode_into_libs=yes 10620 ;; 10621 10622haiku*) 10623 version_type=linux 10624 need_lib_prefix=no 10625 need_version=no 10626 dynamic_linker="$host_os runtime_loader" 10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10628 soname_spec='${libname}${release}${shared_ext}$major' 10629 shlibpath_var=LIBRARY_PATH 10630 shlibpath_overrides_runpath=yes 10631 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 10632 hardcode_into_libs=yes 10633 ;; 10634 10635hpux9* | hpux10* | hpux11*) 10636 # Give a soname corresponding to the major version so that dld.sl refuses to 10637 # link against other versions. 10638 version_type=sunos 10639 need_lib_prefix=no 10640 need_version=no 10641 case $host_cpu in 10642 ia64*) 10643 shrext_cmds='.so' 10644 hardcode_into_libs=yes 10645 dynamic_linker="$host_os dld.so" 10646 shlibpath_var=LD_LIBRARY_PATH 10647 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10649 soname_spec='${libname}${release}${shared_ext}$major' 10650 if test "X$HPUX_IA64_MODE" = X32; then 10651 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10652 else 10653 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10654 fi 10655 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10656 ;; 10657 hppa*64*) 10658 shrext_cmds='.sl' 10659 hardcode_into_libs=yes 10660 dynamic_linker="$host_os dld.sl" 10661 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10664 soname_spec='${libname}${release}${shared_ext}$major' 10665 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10666 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10667 ;; 10668 *) 10669 shrext_cmds='.sl' 10670 dynamic_linker="$host_os dld.sl" 10671 shlibpath_var=SHLIB_PATH 10672 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10674 soname_spec='${libname}${release}${shared_ext}$major' 10675 ;; 10676 esac 10677 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10678 postinstall_cmds='chmod 555 $lib' 10679 # or fails outright, so override atomically: 10680 install_override_mode=555 10681 ;; 10682 10683interix[3-9]*) 10684 version_type=linux 10685 need_lib_prefix=no 10686 need_version=no 10687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10688 soname_spec='${libname}${release}${shared_ext}$major' 10689 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10690 shlibpath_var=LD_LIBRARY_PATH 10691 shlibpath_overrides_runpath=no 10692 hardcode_into_libs=yes 10693 ;; 10694 10695irix5* | irix6* | nonstopux*) 10696 case $host_os in 10697 nonstopux*) version_type=nonstopux ;; 10698 *) 10699 if test "$lt_cv_prog_gnu_ld" = yes; then 10700 version_type=linux 10701 else 10702 version_type=irix 10703 fi ;; 10704 esac 10705 need_lib_prefix=no 10706 need_version=no 10707 soname_spec='${libname}${release}${shared_ext}$major' 10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10709 case $host_os in 10710 irix5* | nonstopux*) 10711 libsuff= shlibsuff= 10712 ;; 10713 *) 10714 case $LD in # libtool.m4 will add one of these switches to LD 10715 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10716 libsuff= shlibsuff= libmagic=32-bit;; 10717 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10718 libsuff=32 shlibsuff=N32 libmagic=N32;; 10719 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10720 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10721 *) libsuff= shlibsuff= libmagic=never-match;; 10722 esac 10723 ;; 10724 esac 10725 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10726 shlibpath_overrides_runpath=no 10727 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10728 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10729 hardcode_into_libs=yes 10730 ;; 10731 10732# No shared lib support for Linux oldld, aout, or coff. 10733linux*oldld* | linux*aout* | linux*coff*) 10734 dynamic_linker=no 10735 ;; 10736 10737# This must be Linux ELF. 10738linux* | k*bsd*-gnu | kopensolaris*-gnu) 10739 version_type=linux 10740 need_lib_prefix=no 10741 need_version=no 10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10743 soname_spec='${libname}${release}${shared_ext}$major' 10744 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10745 shlibpath_var=LD_LIBRARY_PATH 10746 shlibpath_overrides_runpath=no 10747 10748 # Some binutils ld are patched to set DT_RUNPATH 10749 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 10750 $as_echo_n "(cached) " >&6 10751else 10752 lt_cv_shlibpath_overrides_runpath=no 10753 save_LDFLAGS=$LDFLAGS 10754 save_libdir=$libdir 10755 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10756 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10758/* end confdefs.h. */ 10759 10760int 10761main () 10762{ 10763 10764 ; 10765 return 0; 10766} 10767_ACEOF 10768if ac_fn_c_try_link "$LINENO"; then : 10769 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10770 lt_cv_shlibpath_overrides_runpath=yes 10771fi 10772fi 10773rm -f core conftest.err conftest.$ac_objext \ 10774 conftest$ac_exeext conftest.$ac_ext 10775 LDFLAGS=$save_LDFLAGS 10776 libdir=$save_libdir 10777 10778fi 10779 10780 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10781 10782 # This implies no fast_install, which is unacceptable. 10783 # Some rework will be needed to allow for fast_install 10784 # before this can be enabled. 10785 hardcode_into_libs=yes 10786 10787 # Append ld.so.conf contents to the search path 10788 if test -f /etc/ld.so.conf; then 10789 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' ' '` 10790 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10791 fi 10792 10793 # We used to test for /lib/ld.so.1 and disable shared libraries on 10794 # powerpc, because MkLinux only supported shared libraries with the 10795 # GNU dynamic linker. Since this was broken with cross compilers, 10796 # most powerpc-linux boxes support dynamic linking these days and 10797 # people can always --disable-shared, the test was removed, and we 10798 # assume the GNU/Linux dynamic linker is in use. 10799 dynamic_linker='GNU/Linux ld.so' 10800 ;; 10801 10802netbsd*) 10803 version_type=sunos 10804 need_lib_prefix=no 10805 need_version=no 10806 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10809 dynamic_linker='NetBSD (a.out) ld.so' 10810 else 10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10812 soname_spec='${libname}${release}${shared_ext}$major' 10813 dynamic_linker='NetBSD ld.elf_so' 10814 fi 10815 shlibpath_var=LD_LIBRARY_PATH 10816 shlibpath_overrides_runpath=yes 10817 hardcode_into_libs=yes 10818 ;; 10819 10820newsos6) 10821 version_type=linux 10822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10823 shlibpath_var=LD_LIBRARY_PATH 10824 shlibpath_overrides_runpath=yes 10825 ;; 10826 10827*nto* | *qnx*) 10828 version_type=qnx 10829 need_lib_prefix=no 10830 need_version=no 10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10832 soname_spec='${libname}${release}${shared_ext}$major' 10833 shlibpath_var=LD_LIBRARY_PATH 10834 shlibpath_overrides_runpath=no 10835 hardcode_into_libs=yes 10836 dynamic_linker='ldqnx.so' 10837 ;; 10838 10839openbsd*) 10840 version_type=sunos 10841 sys_lib_dlsearch_path_spec="/usr/lib" 10842 need_lib_prefix=no 10843 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10844 case $host_os in 10845 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10846 *) need_version=no ;; 10847 esac 10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10850 shlibpath_var=LD_LIBRARY_PATH 10851 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10852 case $host_os in 10853 openbsd2.[89] | openbsd2.[89].*) 10854 shlibpath_overrides_runpath=no 10855 ;; 10856 *) 10857 shlibpath_overrides_runpath=yes 10858 ;; 10859 esac 10860 else 10861 shlibpath_overrides_runpath=yes 10862 fi 10863 ;; 10864 10865os2*) 10866 libname_spec='$name' 10867 shrext_cmds=".dll" 10868 need_lib_prefix=no 10869 library_names_spec='$libname${shared_ext} $libname.a' 10870 dynamic_linker='OS/2 ld.exe' 10871 shlibpath_var=LIBPATH 10872 ;; 10873 10874osf3* | osf4* | osf5*) 10875 version_type=osf 10876 need_lib_prefix=no 10877 need_version=no 10878 soname_spec='${libname}${release}${shared_ext}$major' 10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10880 shlibpath_var=LD_LIBRARY_PATH 10881 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10882 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10883 ;; 10884 10885rdos*) 10886 dynamic_linker=no 10887 ;; 10888 10889solaris*) 10890 version_type=linux 10891 need_lib_prefix=no 10892 need_version=no 10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10894 soname_spec='${libname}${release}${shared_ext}$major' 10895 shlibpath_var=LD_LIBRARY_PATH 10896 shlibpath_overrides_runpath=yes 10897 hardcode_into_libs=yes 10898 # ldd complains unless libraries are executable 10899 postinstall_cmds='chmod +x $lib' 10900 ;; 10901 10902sunos4*) 10903 version_type=sunos 10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10905 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10906 shlibpath_var=LD_LIBRARY_PATH 10907 shlibpath_overrides_runpath=yes 10908 if test "$with_gnu_ld" = yes; then 10909 need_lib_prefix=no 10910 fi 10911 need_version=yes 10912 ;; 10913 10914sysv4 | sysv4.3*) 10915 version_type=linux 10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10917 soname_spec='${libname}${release}${shared_ext}$major' 10918 shlibpath_var=LD_LIBRARY_PATH 10919 case $host_vendor in 10920 sni) 10921 shlibpath_overrides_runpath=no 10922 need_lib_prefix=no 10923 runpath_var=LD_RUN_PATH 10924 ;; 10925 siemens) 10926 need_lib_prefix=no 10927 ;; 10928 motorola) 10929 need_lib_prefix=no 10930 need_version=no 10931 shlibpath_overrides_runpath=no 10932 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10933 ;; 10934 esac 10935 ;; 10936 10937sysv4*MP*) 10938 if test -d /usr/nec ;then 10939 version_type=linux 10940 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10941 soname_spec='$libname${shared_ext}.$major' 10942 shlibpath_var=LD_LIBRARY_PATH 10943 fi 10944 ;; 10945 10946sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10947 version_type=freebsd-elf 10948 need_lib_prefix=no 10949 need_version=no 10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10951 soname_spec='${libname}${release}${shared_ext}$major' 10952 shlibpath_var=LD_LIBRARY_PATH 10953 shlibpath_overrides_runpath=yes 10954 hardcode_into_libs=yes 10955 if test "$with_gnu_ld" = yes; then 10956 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10957 else 10958 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10959 case $host_os in 10960 sco3.2v5*) 10961 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10962 ;; 10963 esac 10964 fi 10965 sys_lib_dlsearch_path_spec='/usr/lib' 10966 ;; 10967 10968tpf*) 10969 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10970 version_type=linux 10971 need_lib_prefix=no 10972 need_version=no 10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10974 shlibpath_var=LD_LIBRARY_PATH 10975 shlibpath_overrides_runpath=no 10976 hardcode_into_libs=yes 10977 ;; 10978 10979uts4*) 10980 version_type=linux 10981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10982 soname_spec='${libname}${release}${shared_ext}$major' 10983 shlibpath_var=LD_LIBRARY_PATH 10984 ;; 10985 10986*) 10987 dynamic_linker=no 10988 ;; 10989esac 10990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10991$as_echo "$dynamic_linker" >&6; } 10992test "$dynamic_linker" = no && can_build_shared=no 10993 10994variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10995if test "$GCC" = yes; then 10996 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10997fi 10998 10999if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11000 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11001fi 11002if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11003 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11004fi 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11098$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11099hardcode_action= 11100if test -n "$hardcode_libdir_flag_spec" || 11101 test -n "$runpath_var" || 11102 test "X$hardcode_automatic" = "Xyes" ; then 11103 11104 # We can hardcode non-existent directories. 11105 if test "$hardcode_direct" != no && 11106 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11107 # have to relink, otherwise we might link with an installed library 11108 # when we should be linking with a yet-to-be-installed one 11109 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11110 test "$hardcode_minus_L" != no; then 11111 # Linking always hardcodes the temporary library directory. 11112 hardcode_action=relink 11113 else 11114 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11115 hardcode_action=immediate 11116 fi 11117else 11118 # We cannot hardcode anything, or else we can only hardcode existing 11119 # directories. 11120 hardcode_action=unsupported 11121fi 11122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11123$as_echo "$hardcode_action" >&6; } 11124 11125if test "$hardcode_action" = relink || 11126 test "$inherit_rpath" = yes; then 11127 # Fast installation is not supported 11128 enable_fast_install=no 11129elif test "$shlibpath_overrides_runpath" = yes || 11130 test "$enable_shared" = no; then 11131 # Fast installation is not necessary 11132 enable_fast_install=needless 11133fi 11134 11135 11136 11137 11138 11139 11140 if test "x$enable_dlopen" != xyes; then 11141 enable_dlopen=unknown 11142 enable_dlopen_self=unknown 11143 enable_dlopen_self_static=unknown 11144else 11145 lt_cv_dlopen=no 11146 lt_cv_dlopen_libs= 11147 11148 case $host_os in 11149 beos*) 11150 lt_cv_dlopen="load_add_on" 11151 lt_cv_dlopen_libs= 11152 lt_cv_dlopen_self=yes 11153 ;; 11154 11155 mingw* | pw32* | cegcc*) 11156 lt_cv_dlopen="LoadLibrary" 11157 lt_cv_dlopen_libs= 11158 ;; 11159 11160 cygwin*) 11161 lt_cv_dlopen="dlopen" 11162 lt_cv_dlopen_libs= 11163 ;; 11164 11165 darwin*) 11166 # if libdl is installed we need to link against it 11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11168$as_echo_n "checking for dlopen in -ldl... " >&6; } 11169if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11170 $as_echo_n "(cached) " >&6 11171else 11172 ac_check_lib_save_LIBS=$LIBS 11173LIBS="-ldl $LIBS" 11174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11175/* end confdefs.h. */ 11176 11177/* Override any GCC internal prototype to avoid an error. 11178 Use char because int might match the return type of a GCC 11179 builtin and then its argument prototype would still apply. */ 11180#ifdef __cplusplus 11181extern "C" 11182#endif 11183char dlopen (); 11184int 11185main () 11186{ 11187return dlopen (); 11188 ; 11189 return 0; 11190} 11191_ACEOF 11192if ac_fn_c_try_link "$LINENO"; then : 11193 ac_cv_lib_dl_dlopen=yes 11194else 11195 ac_cv_lib_dl_dlopen=no 11196fi 11197rm -f core conftest.err conftest.$ac_objext \ 11198 conftest$ac_exeext conftest.$ac_ext 11199LIBS=$ac_check_lib_save_LIBS 11200fi 11201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11202$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11203if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11204 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11205else 11206 11207 lt_cv_dlopen="dyld" 11208 lt_cv_dlopen_libs= 11209 lt_cv_dlopen_self=yes 11210 11211fi 11212 11213 ;; 11214 11215 *) 11216 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11217if test "x$ac_cv_func_shl_load" = x""yes; then : 11218 lt_cv_dlopen="shl_load" 11219else 11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11221$as_echo_n "checking for shl_load in -ldld... " >&6; } 11222if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 11223 $as_echo_n "(cached) " >&6 11224else 11225 ac_check_lib_save_LIBS=$LIBS 11226LIBS="-ldld $LIBS" 11227cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11228/* end confdefs.h. */ 11229 11230/* Override any GCC internal prototype to avoid an error. 11231 Use char because int might match the return type of a GCC 11232 builtin and then its argument prototype would still apply. */ 11233#ifdef __cplusplus 11234extern "C" 11235#endif 11236char shl_load (); 11237int 11238main () 11239{ 11240return shl_load (); 11241 ; 11242 return 0; 11243} 11244_ACEOF 11245if ac_fn_c_try_link "$LINENO"; then : 11246 ac_cv_lib_dld_shl_load=yes 11247else 11248 ac_cv_lib_dld_shl_load=no 11249fi 11250rm -f core conftest.err conftest.$ac_objext \ 11251 conftest$ac_exeext conftest.$ac_ext 11252LIBS=$ac_check_lib_save_LIBS 11253fi 11254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11255$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11256if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 11257 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11258else 11259 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11260if test "x$ac_cv_func_dlopen" = x""yes; then : 11261 lt_cv_dlopen="dlopen" 11262else 11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11264$as_echo_n "checking for dlopen in -ldl... " >&6; } 11265if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11266 $as_echo_n "(cached) " >&6 11267else 11268 ac_check_lib_save_LIBS=$LIBS 11269LIBS="-ldl $LIBS" 11270cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11271/* end confdefs.h. */ 11272 11273/* Override any GCC internal prototype to avoid an error. 11274 Use char because int might match the return type of a GCC 11275 builtin and then its argument prototype would still apply. */ 11276#ifdef __cplusplus 11277extern "C" 11278#endif 11279char dlopen (); 11280int 11281main () 11282{ 11283return dlopen (); 11284 ; 11285 return 0; 11286} 11287_ACEOF 11288if ac_fn_c_try_link "$LINENO"; then : 11289 ac_cv_lib_dl_dlopen=yes 11290else 11291 ac_cv_lib_dl_dlopen=no 11292fi 11293rm -f core conftest.err conftest.$ac_objext \ 11294 conftest$ac_exeext conftest.$ac_ext 11295LIBS=$ac_check_lib_save_LIBS 11296fi 11297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11298$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11299if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11301else 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11303$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11304if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 11305 $as_echo_n "(cached) " >&6 11306else 11307 ac_check_lib_save_LIBS=$LIBS 11308LIBS="-lsvld $LIBS" 11309cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11310/* end confdefs.h. */ 11311 11312/* Override any GCC internal prototype to avoid an error. 11313 Use char because int might match the return type of a GCC 11314 builtin and then its argument prototype would still apply. */ 11315#ifdef __cplusplus 11316extern "C" 11317#endif 11318char dlopen (); 11319int 11320main () 11321{ 11322return dlopen (); 11323 ; 11324 return 0; 11325} 11326_ACEOF 11327if ac_fn_c_try_link "$LINENO"; then : 11328 ac_cv_lib_svld_dlopen=yes 11329else 11330 ac_cv_lib_svld_dlopen=no 11331fi 11332rm -f core conftest.err conftest.$ac_objext \ 11333 conftest$ac_exeext conftest.$ac_ext 11334LIBS=$ac_check_lib_save_LIBS 11335fi 11336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11337$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11338if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11339 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11340else 11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11342$as_echo_n "checking for dld_link in -ldld... " >&6; } 11343if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11344 $as_echo_n "(cached) " >&6 11345else 11346 ac_check_lib_save_LIBS=$LIBS 11347LIBS="-ldld $LIBS" 11348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11349/* end confdefs.h. */ 11350 11351/* Override any GCC internal prototype to avoid an error. 11352 Use char because int might match the return type of a GCC 11353 builtin and then its argument prototype would still apply. */ 11354#ifdef __cplusplus 11355extern "C" 11356#endif 11357char dld_link (); 11358int 11359main () 11360{ 11361return dld_link (); 11362 ; 11363 return 0; 11364} 11365_ACEOF 11366if ac_fn_c_try_link "$LINENO"; then : 11367 ac_cv_lib_dld_dld_link=yes 11368else 11369 ac_cv_lib_dld_dld_link=no 11370fi 11371rm -f core conftest.err conftest.$ac_objext \ 11372 conftest$ac_exeext conftest.$ac_ext 11373LIBS=$ac_check_lib_save_LIBS 11374fi 11375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11376$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11377if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11378 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11379fi 11380 11381 11382fi 11383 11384 11385fi 11386 11387 11388fi 11389 11390 11391fi 11392 11393 11394fi 11395 11396 ;; 11397 esac 11398 11399 if test "x$lt_cv_dlopen" != xno; then 11400 enable_dlopen=yes 11401 else 11402 enable_dlopen=no 11403 fi 11404 11405 case $lt_cv_dlopen in 11406 dlopen) 11407 save_CPPFLAGS="$CPPFLAGS" 11408 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11409 11410 save_LDFLAGS="$LDFLAGS" 11411 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11412 11413 save_LIBS="$LIBS" 11414 LIBS="$lt_cv_dlopen_libs $LIBS" 11415 11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11417$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11418if test "${lt_cv_dlopen_self+set}" = set; then : 11419 $as_echo_n "(cached) " >&6 11420else 11421 if test "$cross_compiling" = yes; then : 11422 lt_cv_dlopen_self=cross 11423else 11424 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11425 lt_status=$lt_dlunknown 11426 cat > conftest.$ac_ext <<_LT_EOF 11427#line 11426 "configure" 11428#include "confdefs.h" 11429 11430#if HAVE_DLFCN_H 11431#include <dlfcn.h> 11432#endif 11433 11434#include <stdio.h> 11435 11436#ifdef RTLD_GLOBAL 11437# define LT_DLGLOBAL RTLD_GLOBAL 11438#else 11439# ifdef DL_GLOBAL 11440# define LT_DLGLOBAL DL_GLOBAL 11441# else 11442# define LT_DLGLOBAL 0 11443# endif 11444#endif 11445 11446/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11447 find out it does not work in some platform. */ 11448#ifndef LT_DLLAZY_OR_NOW 11449# ifdef RTLD_LAZY 11450# define LT_DLLAZY_OR_NOW RTLD_LAZY 11451# else 11452# ifdef DL_LAZY 11453# define LT_DLLAZY_OR_NOW DL_LAZY 11454# else 11455# ifdef RTLD_NOW 11456# define LT_DLLAZY_OR_NOW RTLD_NOW 11457# else 11458# ifdef DL_NOW 11459# define LT_DLLAZY_OR_NOW DL_NOW 11460# else 11461# define LT_DLLAZY_OR_NOW 0 11462# endif 11463# endif 11464# endif 11465# endif 11466#endif 11467 11468/* When -fvisbility=hidden is used, assume the code has been annotated 11469 correspondingly for the symbols needed. */ 11470#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11471void fnord () __attribute__((visibility("default"))); 11472#endif 11473 11474void fnord () { int i=42; } 11475int main () 11476{ 11477 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11478 int status = $lt_dlunknown; 11479 11480 if (self) 11481 { 11482 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11483 else 11484 { 11485 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11486 else puts (dlerror ()); 11487 } 11488 /* dlclose (self); */ 11489 } 11490 else 11491 puts (dlerror ()); 11492 11493 return status; 11494} 11495_LT_EOF 11496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11497 (eval $ac_link) 2>&5 11498 ac_status=$? 11499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11500 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11501 (./conftest; exit; ) >&5 2>/dev/null 11502 lt_status=$? 11503 case x$lt_status in 11504 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11505 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11506 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11507 esac 11508 else : 11509 # compilation failed 11510 lt_cv_dlopen_self=no 11511 fi 11512fi 11513rm -fr conftest* 11514 11515 11516fi 11517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11518$as_echo "$lt_cv_dlopen_self" >&6; } 11519 11520 if test "x$lt_cv_dlopen_self" = xyes; then 11521 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11523$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11524if test "${lt_cv_dlopen_self_static+set}" = set; then : 11525 $as_echo_n "(cached) " >&6 11526else 11527 if test "$cross_compiling" = yes; then : 11528 lt_cv_dlopen_self_static=cross 11529else 11530 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11531 lt_status=$lt_dlunknown 11532 cat > conftest.$ac_ext <<_LT_EOF 11533#line 11532 "configure" 11534#include "confdefs.h" 11535 11536#if HAVE_DLFCN_H 11537#include <dlfcn.h> 11538#endif 11539 11540#include <stdio.h> 11541 11542#ifdef RTLD_GLOBAL 11543# define LT_DLGLOBAL RTLD_GLOBAL 11544#else 11545# ifdef DL_GLOBAL 11546# define LT_DLGLOBAL DL_GLOBAL 11547# else 11548# define LT_DLGLOBAL 0 11549# endif 11550#endif 11551 11552/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11553 find out it does not work in some platform. */ 11554#ifndef LT_DLLAZY_OR_NOW 11555# ifdef RTLD_LAZY 11556# define LT_DLLAZY_OR_NOW RTLD_LAZY 11557# else 11558# ifdef DL_LAZY 11559# define LT_DLLAZY_OR_NOW DL_LAZY 11560# else 11561# ifdef RTLD_NOW 11562# define LT_DLLAZY_OR_NOW RTLD_NOW 11563# else 11564# ifdef DL_NOW 11565# define LT_DLLAZY_OR_NOW DL_NOW 11566# else 11567# define LT_DLLAZY_OR_NOW 0 11568# endif 11569# endif 11570# endif 11571# endif 11572#endif 11573 11574/* When -fvisbility=hidden is used, assume the code has been annotated 11575 correspondingly for the symbols needed. */ 11576#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11577void fnord () __attribute__((visibility("default"))); 11578#endif 11579 11580void fnord () { int i=42; } 11581int main () 11582{ 11583 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11584 int status = $lt_dlunknown; 11585 11586 if (self) 11587 { 11588 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11589 else 11590 { 11591 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11592 else puts (dlerror ()); 11593 } 11594 /* dlclose (self); */ 11595 } 11596 else 11597 puts (dlerror ()); 11598 11599 return status; 11600} 11601_LT_EOF 11602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11603 (eval $ac_link) 2>&5 11604 ac_status=$? 11605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11606 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11607 (./conftest; exit; ) >&5 2>/dev/null 11608 lt_status=$? 11609 case x$lt_status in 11610 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11611 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11612 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11613 esac 11614 else : 11615 # compilation failed 11616 lt_cv_dlopen_self_static=no 11617 fi 11618fi 11619rm -fr conftest* 11620 11621 11622fi 11623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11624$as_echo "$lt_cv_dlopen_self_static" >&6; } 11625 fi 11626 11627 CPPFLAGS="$save_CPPFLAGS" 11628 LDFLAGS="$save_LDFLAGS" 11629 LIBS="$save_LIBS" 11630 ;; 11631 esac 11632 11633 case $lt_cv_dlopen_self in 11634 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11635 *) enable_dlopen_self=unknown ;; 11636 esac 11637 11638 case $lt_cv_dlopen_self_static in 11639 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11640 *) enable_dlopen_self_static=unknown ;; 11641 esac 11642fi 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660striplib= 11661old_striplib= 11662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11663$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11664if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11665 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11666 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11668$as_echo "yes" >&6; } 11669else 11670# FIXME - insert some real tests, host_os isn't really good enough 11671 case $host_os in 11672 darwin*) 11673 if test -n "$STRIP" ; then 11674 striplib="$STRIP -x" 11675 old_striplib="$STRIP -S" 11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11677$as_echo "yes" >&6; } 11678 else 11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11680$as_echo "no" >&6; } 11681 fi 11682 ;; 11683 *) 11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11685$as_echo "no" >&6; } 11686 ;; 11687 esac 11688fi 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 # Report which library types will actually be built 11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11703$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11705$as_echo "$can_build_shared" >&6; } 11706 11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11708$as_echo_n "checking whether to build shared libraries... " >&6; } 11709 test "$can_build_shared" = "no" && enable_shared=no 11710 11711 # On AIX, shared libraries and static libraries use the same namespace, and 11712 # are all built from PIC. 11713 case $host_os in 11714 aix3*) 11715 test "$enable_shared" = yes && enable_static=no 11716 if test -n "$RANLIB"; then 11717 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11718 postinstall_cmds='$RANLIB $lib' 11719 fi 11720 ;; 11721 11722 aix[4-9]*) 11723 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11724 test "$enable_shared" = yes && enable_static=no 11725 fi 11726 ;; 11727 esac 11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11729$as_echo "$enable_shared" >&6; } 11730 11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11732$as_echo_n "checking whether to build static libraries... " >&6; } 11733 # Make sure either enable_shared or enable_static is yes. 11734 test "$enable_shared" = yes || enable_static=yes 11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11736$as_echo "$enable_static" >&6; } 11737 11738 11739 11740 11741fi 11742ac_ext=c 11743ac_cpp='$CPP $CPPFLAGS' 11744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11746ac_compiler_gnu=$ac_cv_c_compiler_gnu 11747 11748CC="$lt_save_CC" 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 ac_config_commands="$ac_config_commands libtool" 11763 11764 11765 11766 11767# Only expand once: 11768 11769 11770 11771# AC_PLUGINS setting $plugins is called by ACX_LARGEFILE. 11772 11773# The tests for host and target for $enable_largefile require 11774# canonical names. 11775 11776 11777 11778# As the $enable_largefile decision depends on --enable-plugins we must set it 11779# even in directories otherwise not depending on the $plugins option. 11780 11781 11782 maybe_plugins=no 11783 for ac_header in dlfcn.h 11784do : 11785 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 11786" 11787if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 11788 cat >>confdefs.h <<_ACEOF 11789#define HAVE_DLFCN_H 1 11790_ACEOF 11791 maybe_plugins=yes 11792fi 11793 11794done 11795 11796 for ac_header in windows.h 11797do : 11798 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 11799" 11800if test "x$ac_cv_header_windows_h" = x""yes; then : 11801 cat >>confdefs.h <<_ACEOF 11802#define HAVE_WINDOWS_H 1 11803_ACEOF 11804 maybe_plugins=yes 11805fi 11806 11807done 11808 11809 11810 # Check whether --enable-plugins was given. 11811if test "${enable_plugins+set}" = set; then : 11812 enableval=$enable_plugins; case "${enableval}" in 11813 no) plugins=no ;; 11814 *) plugins=yes 11815 if test "$maybe_plugins" != "yes" ; then 11816 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 11817 fi ;; 11818 esac 11819else 11820 plugins=$maybe_plugins 11821 11822fi 11823 11824 if test "$plugins" = "yes"; then 11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 11826$as_echo_n "checking for library containing dlopen... " >&6; } 11827if test "${ac_cv_search_dlopen+set}" = set; then : 11828 $as_echo_n "(cached) " >&6 11829else 11830 ac_func_search_save_LIBS=$LIBS 11831cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11832/* end confdefs.h. */ 11833 11834/* Override any GCC internal prototype to avoid an error. 11835 Use char because int might match the return type of a GCC 11836 builtin and then its argument prototype would still apply. */ 11837#ifdef __cplusplus 11838extern "C" 11839#endif 11840char dlopen (); 11841int 11842main () 11843{ 11844return dlopen (); 11845 ; 11846 return 0; 11847} 11848_ACEOF 11849for ac_lib in '' dl; do 11850 if test -z "$ac_lib"; then 11851 ac_res="none required" 11852 else 11853 ac_res=-l$ac_lib 11854 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11855 fi 11856 if ac_fn_c_try_link "$LINENO"; then : 11857 ac_cv_search_dlopen=$ac_res 11858fi 11859rm -f core conftest.err conftest.$ac_objext \ 11860 conftest$ac_exeext 11861 if test "${ac_cv_search_dlopen+set}" = set; then : 11862 break 11863fi 11864done 11865if test "${ac_cv_search_dlopen+set}" = set; then : 11866 11867else 11868 ac_cv_search_dlopen=no 11869fi 11870rm conftest.$ac_ext 11871LIBS=$ac_func_search_save_LIBS 11872fi 11873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 11874$as_echo "$ac_cv_search_dlopen" >&6; } 11875ac_res=$ac_cv_search_dlopen 11876if test "$ac_res" != no; then : 11877 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11878 11879fi 11880 11881 fi 11882 11883 11884case "${host}" in 11885 sparc-*-solaris*|i[3-7]86-*-solaris*) 11886 # On native 32bit sparc and ia32 solaris, large-file and procfs support 11887 # are mutually exclusive; and without procfs support, the bfd/ elf module 11888 # cannot provide certain routines such as elfcore_write_prpsinfo 11889 # or elfcore_write_prstatus. So unless the user explicitly requested 11890 # large-file support through the --enable-largefile switch, disable 11891 # large-file support in favor of procfs support. 11892 test "${target}" = "${host}" -a "x$plugins" = xno \ 11893 && : ${enable_largefile="no"} 11894 ;; 11895esac 11896 11897# Check whether --enable-largefile was given. 11898if test "${enable_largefile+set}" = set; then : 11899 enableval=$enable_largefile; 11900fi 11901 11902if test "$enable_largefile" != no; then 11903 11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 11905$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 11906if test "${ac_cv_sys_largefile_CC+set}" = set; then : 11907 $as_echo_n "(cached) " >&6 11908else 11909 ac_cv_sys_largefile_CC=no 11910 if test "$GCC" != yes; then 11911 ac_save_CC=$CC 11912 while :; do 11913 # IRIX 6.2 and later do not support large files by default, 11914 # so use the C compiler's -n32 option if that helps. 11915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11916/* end confdefs.h. */ 11917#include <sys/types.h> 11918 /* Check that off_t can represent 2**63 - 1 correctly. 11919 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11920 since some C++ compilers masquerading as C compilers 11921 incorrectly reject 9223372036854775807. */ 11922#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11923 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11924 && LARGE_OFF_T % 2147483647 == 1) 11925 ? 1 : -1]; 11926int 11927main () 11928{ 11929 11930 ; 11931 return 0; 11932} 11933_ACEOF 11934 if ac_fn_c_try_compile "$LINENO"; then : 11935 break 11936fi 11937rm -f core conftest.err conftest.$ac_objext 11938 CC="$CC -n32" 11939 if ac_fn_c_try_compile "$LINENO"; then : 11940 ac_cv_sys_largefile_CC=' -n32'; break 11941fi 11942rm -f core conftest.err conftest.$ac_objext 11943 break 11944 done 11945 CC=$ac_save_CC 11946 rm -f conftest.$ac_ext 11947 fi 11948fi 11949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 11950$as_echo "$ac_cv_sys_largefile_CC" >&6; } 11951 if test "$ac_cv_sys_largefile_CC" != no; then 11952 CC=$CC$ac_cv_sys_largefile_CC 11953 fi 11954 11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 11956$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 11957if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 11958 $as_echo_n "(cached) " >&6 11959else 11960 while :; do 11961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11962/* end confdefs.h. */ 11963#include <sys/types.h> 11964 /* Check that off_t can represent 2**63 - 1 correctly. 11965 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11966 since some C++ compilers masquerading as C compilers 11967 incorrectly reject 9223372036854775807. */ 11968#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11969 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11970 && LARGE_OFF_T % 2147483647 == 1) 11971 ? 1 : -1]; 11972int 11973main () 11974{ 11975 11976 ; 11977 return 0; 11978} 11979_ACEOF 11980if ac_fn_c_try_compile "$LINENO"; then : 11981 ac_cv_sys_file_offset_bits=no; break 11982fi 11983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11985/* end confdefs.h. */ 11986#define _FILE_OFFSET_BITS 64 11987#include <sys/types.h> 11988 /* Check that off_t can represent 2**63 - 1 correctly. 11989 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11990 since some C++ compilers masquerading as C compilers 11991 incorrectly reject 9223372036854775807. */ 11992#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11993 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11994 && LARGE_OFF_T % 2147483647 == 1) 11995 ? 1 : -1]; 11996int 11997main () 11998{ 11999 12000 ; 12001 return 0; 12002} 12003_ACEOF 12004if ac_fn_c_try_compile "$LINENO"; then : 12005 ac_cv_sys_file_offset_bits=64; break 12006fi 12007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12008 ac_cv_sys_file_offset_bits=unknown 12009 break 12010done 12011fi 12012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12013$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12014case $ac_cv_sys_file_offset_bits in #( 12015 no | unknown) ;; 12016 *) 12017cat >>confdefs.h <<_ACEOF 12018#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12019_ACEOF 12020;; 12021esac 12022rm -rf conftest* 12023 if test $ac_cv_sys_file_offset_bits = unknown; then 12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12025$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12026if test "${ac_cv_sys_large_files+set}" = set; then : 12027 $as_echo_n "(cached) " >&6 12028else 12029 while :; do 12030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12031/* end confdefs.h. */ 12032#include <sys/types.h> 12033 /* Check that off_t can represent 2**63 - 1 correctly. 12034 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12035 since some C++ compilers masquerading as C compilers 12036 incorrectly reject 9223372036854775807. */ 12037#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12038 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12039 && LARGE_OFF_T % 2147483647 == 1) 12040 ? 1 : -1]; 12041int 12042main () 12043{ 12044 12045 ; 12046 return 0; 12047} 12048_ACEOF 12049if ac_fn_c_try_compile "$LINENO"; then : 12050 ac_cv_sys_large_files=no; break 12051fi 12052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12054/* end confdefs.h. */ 12055#define _LARGE_FILES 1 12056#include <sys/types.h> 12057 /* Check that off_t can represent 2**63 - 1 correctly. 12058 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12059 since some C++ compilers masquerading as C compilers 12060 incorrectly reject 9223372036854775807. */ 12061#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12062 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12063 && LARGE_OFF_T % 2147483647 == 1) 12064 ? 1 : -1]; 12065int 12066main () 12067{ 12068 12069 ; 12070 return 0; 12071} 12072_ACEOF 12073if ac_fn_c_try_compile "$LINENO"; then : 12074 ac_cv_sys_large_files=1; break 12075fi 12076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12077 ac_cv_sys_large_files=unknown 12078 break 12079done 12080fi 12081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12082$as_echo "$ac_cv_sys_large_files" >&6; } 12083case $ac_cv_sys_large_files in #( 12084 no | unknown) ;; 12085 *) 12086cat >>confdefs.h <<_ACEOF 12087#define _LARGE_FILES $ac_cv_sys_large_files 12088_ACEOF 12089;; 12090esac 12091rm -rf conftest* 12092 fi 12093fi 12094 12095 12096 12097 if test "$plugins" = "yes"; then 12098 PLUGINS_TRUE= 12099 PLUGINS_FALSE='#' 12100else 12101 PLUGINS_TRUE='#' 12102 PLUGINS_FALSE= 12103fi 12104 12105 12106if test "$plugins" = "yes"; then 12107 enable_targets="$enable_targets plugin" 12108fi 12109 12110# Check whether --enable-64-bit-bfd was given. 12111if test "${enable_64_bit_bfd+set}" = set; then : 12112 enableval=$enable_64_bit_bfd; case "${enableval}" in 12113 yes) want64=true ;; 12114 no) want64=false ;; 12115 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; 12116esac 12117else 12118 want64=false 12119fi 12120 12121# Check whether --enable-targets was given. 12122if test "${enable_targets+set}" = set; then : 12123 enableval=$enable_targets; case "${enableval}" in 12124 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5 12125 ;; 12126 no) enable_targets= ;; 12127 *) enable_targets=$enableval ;; 12128esac 12129fi 12130 12131 12132# Check whether --with-mmap was given. 12133if test "${with_mmap+set}" = set; then : 12134 withval=$with_mmap; case "${withval}" in 12135 yes) want_mmap=true ;; 12136 no) want_mmap=false ;; 12137 *) as_fn_error "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;; 12138esac 12139else 12140 want_mmap=false 12141fi 12142 12143# Check whether --enable-secureplt was given. 12144if test "${enable_secureplt+set}" = set; then : 12145 enableval=$enable_secureplt; case "${enableval}" in 12146 yes) use_secureplt=true ;; 12147 no) use_secureplt=false ;; 12148 *) as_fn_error "bad value ${enableval} for secureplt option" "$LINENO" 5 ;; 12149esac 12150else 12151 use_secureplt=true 12152fi 12153if test $use_secureplt = true; then 12154 12155$as_echo "#define USE_SECUREPLT 1" >>confdefs.h 12156 12157fi 12158 12159# Check whether --enable-leading-mingw64-underscores was given. 12160if test "${enable_leading_mingw64_underscores+set}" = set; then : 12161 enableval=$enable_leading_mingw64_underscores; 12162fi 12163 12164if test x"$enable_leading_mingw64_underscores" = xyes ; then : 12165 12166$as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h 12167 12168fi 12169 12170DEBUGDIR=${libdir}/debug 12171 12172# Check whether --with-separate-debug-dir was given. 12173if test "${with_separate_debug_dir+set}" = set; then : 12174 withval=$with_separate_debug_dir; DEBUGDIR="${withval}" 12175fi 12176 12177 12178 12179# Check to see if we should allow the generation of 12180# symbols with the ELF standard's STT_COMMON type. 12181# Check whether --enable-elf-stt-common was given. 12182if test "${enable_elf_stt_common+set}" = set; then : 12183 enableval=$enable_elf_stt_common; case "${enableval}" in 12184 yes) want_elf_stt_common=true ;; 12185 no) want_elf_stt_common=false ;; 12186 *) as_fn_error "bad value ${enableval} for ELF STT_COMMON option" "$LINENO" 5 ;; 12187 esac 12188else 12189 # We have to choose a default behaviour. For native builds we could 12190# test whether the loader supports the STT_COMMON type, but that would 12191# mean that built binaries could not be exported to older systems where 12192# the loader does not support it. So by default we always choose to 12193# disable this feature. 12194 want_elf_stt_common=false 12195fi 12196if test $want_elf_stt_common = true; then 12197 12198$as_echo "#define USE_STT_COMMON 1" >>confdefs.h 12199 12200fi 12201 12202 12203 12204# Check whether --with-pkgversion was given. 12205if test "${with_pkgversion+set}" = set; then : 12206 withval=$with_pkgversion; case "$withval" in 12207 yes) as_fn_error "package version not specified" "$LINENO" 5 ;; 12208 no) PKGVERSION= ;; 12209 *) PKGVERSION="($withval) " ;; 12210 esac 12211else 12212 PKGVERSION="(GNU Binutils) " 12213 12214fi 12215 12216 12217 12218 12219 12220# Check whether --with-bugurl was given. 12221if test "${with_bugurl+set}" = set; then : 12222 withval=$with_bugurl; case "$withval" in 12223 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;; 12224 no) BUGURL= 12225 ;; 12226 *) BUGURL="$withval" 12227 ;; 12228 esac 12229else 12230 BUGURL="http://www.sourceware.org/bugzilla/" 12231 12232fi 12233 12234 case ${BUGURL} in 12235 "") 12236 REPORT_BUGS_TO= 12237 REPORT_BUGS_TEXI= 12238 ;; 12239 *) 12240 REPORT_BUGS_TO="<$BUGURL>" 12241 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} 12242 ;; 12243 esac; 12244 12245 12246 12247 12248 12249# Set the 'development' global. 12250. $srcdir/../bfd/development.sh 12251 12252GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 12253cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12254/* end confdefs.h. */ 12255__GNUC__ 12256_ACEOF 12257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12258 $EGREP "^[0-3]$" >/dev/null 2>&1; then : 12259 12260else 12261 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" 12262fi 12263rm -f conftest* 12264 12265 12266# Check whether --enable-werror was given. 12267if test "${enable_werror+set}" = set; then : 12268 enableval=$enable_werror; case "${enableval}" in 12269 yes | y) ERROR_ON_WARNING="yes" ;; 12270 no | n) ERROR_ON_WARNING="no" ;; 12271 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; 12272 esac 12273fi 12274 12275 12276# Disable -Wformat by default when using gcc on mingw 12277case "${host}" in 12278 *-*-mingw32*) 12279 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then 12280 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" 12281 fi 12282 ;; 12283 *) ;; 12284esac 12285 12286# Enable -Werror by default when using gcc. Turn it off for releases. 12287if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then 12288 ERROR_ON_WARNING=yes 12289fi 12290 12291NO_WERROR= 12292if test "${ERROR_ON_WARNING}" = yes ; then 12293 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" 12294 NO_WERROR="-Wno-error" 12295fi 12296 12297if test "${GCC}" = yes ; then 12298 WARN_CFLAGS="${GCC_WARN_CFLAGS}" 12299fi 12300 12301# Check whether --enable-build-warnings was given. 12302if test "${enable_build_warnings+set}" = set; then : 12303 enableval=$enable_build_warnings; case "${enableval}" in 12304 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; 12305 no) if test "${GCC}" = yes ; then 12306 WARN_CFLAGS="-w" 12307 fi;; 12308 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 12309 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; 12310 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 12311 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; 12312 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; 12313esac 12314fi 12315 12316 12317if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then 12318 echo "Setting warning flags = $WARN_CFLAGS" 6>&1 12319fi 12320 12321 12322 12323 12324 12325ac_config_headers="$ac_config_headers config.h:config.in" 12326 12327 12328# PR 14072 12329 12330 12331if test -z "$target" ; then 12332 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5 12333fi 12334 12335 12336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 12337$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 12338 # Check whether --enable-maintainer-mode was given. 12339if test "${enable_maintainer_mode+set}" = set; then : 12340 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 12341else 12342 USE_MAINTAINER_MODE=no 12343fi 12344 12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 12346$as_echo "$USE_MAINTAINER_MODE" >&6; } 12347 if test $USE_MAINTAINER_MODE = yes; then 12348 MAINTAINER_MODE_TRUE= 12349 MAINTAINER_MODE_FALSE='#' 12350else 12351 MAINTAINER_MODE_TRUE='#' 12352 MAINTAINER_MODE_FALSE= 12353fi 12354 12355 MAINT=$MAINTAINER_MODE_TRUE 12356 12357 12358 if false; then 12359 GENINSRC_NEVER_TRUE= 12360 GENINSRC_NEVER_FALSE='#' 12361else 12362 GENINSRC_NEVER_TRUE='#' 12363 GENINSRC_NEVER_FALSE= 12364fi 12365 12366 case ${build_alias} in 12367 "") build_noncanonical=${build} ;; 12368 *) build_noncanonical=${build_alias} ;; 12369esac 12370 12371 case ${host_alias} in 12372 "") host_noncanonical=${build_noncanonical} ;; 12373 *) host_noncanonical=${host_alias} ;; 12374esac 12375 12376 case ${target_alias} in 12377 "") target_noncanonical=${host_noncanonical} ;; 12378 *) target_noncanonical=${target_alias} ;; 12379esac 12380 12381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5 12382$as_echo_n "checking whether to install libbfd... " >&6; } 12383 # Check whether --enable-install-libbfd was given. 12384if test "${enable_install_libbfd+set}" = set; then : 12385 enableval=$enable_install_libbfd; install_libbfd_p=$enableval 12386else 12387 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then 12388 install_libbfd_p=yes 12389 else 12390 install_libbfd_p=no 12391 fi 12392fi 12393 12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5 12395$as_echo "$install_libbfd_p" >&6; } 12396 if test $install_libbfd_p = yes; then 12397 INSTALL_LIBBFD_TRUE= 12398 INSTALL_LIBBFD_FALSE='#' 12399else 12400 INSTALL_LIBBFD_TRUE='#' 12401 INSTALL_LIBBFD_FALSE= 12402fi 12403 12404 # Need _noncanonical variables for this. 12405 12406 12407 12408 12409 # libbfd.a is a host library containing target dependent code 12410 bfdlibdir='$(libdir)' 12411 bfdincludedir='$(includedir)' 12412 if test "${host}" != "${target}"; then 12413 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' 12414 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' 12415 fi 12416 12417 12418 12419 12420 12421 12422 12423 12424host64=false 12425target64=false 12426bfd_default_target_size=32 12427 12428# host stuff: 12429 12430ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id ru uk" 12431# If we haven't got the data from the intl directory, 12432# assume NLS is disabled. 12433USE_NLS=no 12434LIBINTL= 12435LIBINTL_DEP= 12436INCINTL= 12437XGETTEXT= 12438GMSGFMT= 12439POSUB= 12440 12441if test -f ../intl/config.intl; then 12442 . ../intl/config.intl 12443fi 12444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 12445$as_echo_n "checking whether NLS is requested... " >&6; } 12446if test x"$USE_NLS" != xyes; then 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12448$as_echo "no" >&6; } 12449else 12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12451$as_echo "yes" >&6; } 12452 12453$as_echo "#define ENABLE_NLS 1" >>confdefs.h 12454 12455 12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 12457$as_echo_n "checking for catalogs to be installed... " >&6; } 12458 # Look for .po and .gmo files in the source directory. 12459 CATALOGS= 12460 XLINGUAS= 12461 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 12462 # If there aren't any .gmo files the shell will give us the 12463 # literal string "../path/to/srcdir/po/*.gmo" which has to be 12464 # weeded out. 12465 case "$cat" in *\**) 12466 continue;; 12467 esac 12468 # The quadruple backslash is collapsed to a double backslash 12469 # by the backticks, then collapsed again by the double quotes, 12470 # leaving us with one backslash in the sed expression (right 12471 # before the dot that mustn't act as a wildcard). 12472 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 12473 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 12474 # The user is allowed to set LINGUAS to a list of languages to 12475 # install catalogs for. If it's empty that means "all of them." 12476 if test "x$LINGUAS" = x; then 12477 CATALOGS="$CATALOGS $cat" 12478 XLINGUAS="$XLINGUAS $lang" 12479 else 12480 case "$LINGUAS" in *$lang*) 12481 CATALOGS="$CATALOGS $cat" 12482 XLINGUAS="$XLINGUAS $lang" 12483 ;; 12484 esac 12485 fi 12486 done 12487 LINGUAS="$XLINGUAS" 12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 12489$as_echo "$LINGUAS" >&6; } 12490 12491 12492 DATADIRNAME=share 12493 12494 INSTOBJEXT=.mo 12495 12496 GENCAT=gencat 12497 12498 CATOBJEXT=.gmo 12499 12500fi 12501 12502 MKINSTALLDIRS= 12503 if test -n "$ac_aux_dir"; then 12504 case "$ac_aux_dir" in 12505 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 12506 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 12507 esac 12508 fi 12509 if test -z "$MKINSTALLDIRS"; then 12510 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 12511 fi 12512 12513 12514 12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 12516$as_echo_n "checking whether NLS is requested... " >&6; } 12517 # Check whether --enable-nls was given. 12518if test "${enable_nls+set}" = set; then : 12519 enableval=$enable_nls; USE_NLS=$enableval 12520else 12521 USE_NLS=yes 12522fi 12523 12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 12525$as_echo "$USE_NLS" >&6; } 12526 12527 12528 12529 12530 12531 12532# Prepare PATH_SEPARATOR. 12533# The user is always right. 12534if test "${PATH_SEPARATOR+set}" != set; then 12535 echo "#! /bin/sh" >conf$$.sh 12536 echo "exit 0" >>conf$$.sh 12537 chmod +x conf$$.sh 12538 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12539 PATH_SEPARATOR=';' 12540 else 12541 PATH_SEPARATOR=: 12542 fi 12543 rm -f conf$$.sh 12544fi 12545 12546# Find out how to test for executable files. Don't use a zero-byte file, 12547# as systems may use methods other than mode bits to determine executability. 12548cat >conf$$.file <<_ASEOF 12549#! /bin/sh 12550exit 0 12551_ASEOF 12552chmod +x conf$$.file 12553if test -x conf$$.file >/dev/null 2>&1; then 12554 ac_executable_p="test -x" 12555else 12556 ac_executable_p="test -f" 12557fi 12558rm -f conf$$.file 12559 12560# Extract the first word of "msgfmt", so it can be a program name with args. 12561set dummy msgfmt; ac_word=$2 12562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12563$as_echo_n "checking for $ac_word... " >&6; } 12564if test "${ac_cv_path_MSGFMT+set}" = set; then : 12565 $as_echo_n "(cached) " >&6 12566else 12567 case "$MSGFMT" in 12568 [\\/]* | ?:[\\/]*) 12569 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 12570 ;; 12571 *) 12572 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12573 for ac_dir in $PATH; do 12574 IFS="$ac_save_IFS" 12575 test -z "$ac_dir" && ac_dir=. 12576 for ac_exec_ext in '' $ac_executable_extensions; do 12577 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12578 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 12579 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12580 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 12581 break 2 12582 fi 12583 fi 12584 done 12585 done 12586 IFS="$ac_save_IFS" 12587 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 12588 ;; 12589esac 12590fi 12591MSGFMT="$ac_cv_path_MSGFMT" 12592if test "$MSGFMT" != ":"; then 12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 12594$as_echo "$MSGFMT" >&6; } 12595else 12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12597$as_echo "no" >&6; } 12598fi 12599 12600 # Extract the first word of "gmsgfmt", so it can be a program name with args. 12601set dummy gmsgfmt; ac_word=$2 12602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12603$as_echo_n "checking for $ac_word... " >&6; } 12604if test "${ac_cv_path_GMSGFMT+set}" = set; then : 12605 $as_echo_n "(cached) " >&6 12606else 12607 case $GMSGFMT in 12608 [\\/]* | ?:[\\/]*) 12609 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 12610 ;; 12611 *) 12612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12613for as_dir in $PATH 12614do 12615 IFS=$as_save_IFS 12616 test -z "$as_dir" && as_dir=. 12617 for ac_exec_ext in '' $ac_executable_extensions; do 12618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12619 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 12620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12621 break 2 12622 fi 12623done 12624 done 12625IFS=$as_save_IFS 12626 12627 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 12628 ;; 12629esac 12630fi 12631GMSGFMT=$ac_cv_path_GMSGFMT 12632if test -n "$GMSGFMT"; then 12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 12634$as_echo "$GMSGFMT" >&6; } 12635else 12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12637$as_echo "no" >&6; } 12638fi 12639 12640 12641 12642 12643# Prepare PATH_SEPARATOR. 12644# The user is always right. 12645if test "${PATH_SEPARATOR+set}" != set; then 12646 echo "#! /bin/sh" >conf$$.sh 12647 echo "exit 0" >>conf$$.sh 12648 chmod +x conf$$.sh 12649 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12650 PATH_SEPARATOR=';' 12651 else 12652 PATH_SEPARATOR=: 12653 fi 12654 rm -f conf$$.sh 12655fi 12656 12657# Find out how to test for executable files. Don't use a zero-byte file, 12658# as systems may use methods other than mode bits to determine executability. 12659cat >conf$$.file <<_ASEOF 12660#! /bin/sh 12661exit 0 12662_ASEOF 12663chmod +x conf$$.file 12664if test -x conf$$.file >/dev/null 2>&1; then 12665 ac_executable_p="test -x" 12666else 12667 ac_executable_p="test -f" 12668fi 12669rm -f conf$$.file 12670 12671# Extract the first word of "xgettext", so it can be a program name with args. 12672set dummy xgettext; ac_word=$2 12673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12674$as_echo_n "checking for $ac_word... " >&6; } 12675if test "${ac_cv_path_XGETTEXT+set}" = set; then : 12676 $as_echo_n "(cached) " >&6 12677else 12678 case "$XGETTEXT" in 12679 [\\/]* | ?:[\\/]*) 12680 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 12681 ;; 12682 *) 12683 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12684 for ac_dir in $PATH; do 12685 IFS="$ac_save_IFS" 12686 test -z "$ac_dir" && ac_dir=. 12687 for ac_exec_ext in '' $ac_executable_extensions; do 12688 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12689 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 12690 (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 12691 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 12692 break 2 12693 fi 12694 fi 12695 done 12696 done 12697 IFS="$ac_save_IFS" 12698 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 12699 ;; 12700esac 12701fi 12702XGETTEXT="$ac_cv_path_XGETTEXT" 12703if test "$XGETTEXT" != ":"; then 12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 12705$as_echo "$XGETTEXT" >&6; } 12706else 12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12708$as_echo "no" >&6; } 12709fi 12710 12711 rm -f messages.po 12712 12713 12714# Prepare PATH_SEPARATOR. 12715# The user is always right. 12716if test "${PATH_SEPARATOR+set}" != set; then 12717 echo "#! /bin/sh" >conf$$.sh 12718 echo "exit 0" >>conf$$.sh 12719 chmod +x conf$$.sh 12720 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12721 PATH_SEPARATOR=';' 12722 else 12723 PATH_SEPARATOR=: 12724 fi 12725 rm -f conf$$.sh 12726fi 12727 12728# Find out how to test for executable files. Don't use a zero-byte file, 12729# as systems may use methods other than mode bits to determine executability. 12730cat >conf$$.file <<_ASEOF 12731#! /bin/sh 12732exit 0 12733_ASEOF 12734chmod +x conf$$.file 12735if test -x conf$$.file >/dev/null 2>&1; then 12736 ac_executable_p="test -x" 12737else 12738 ac_executable_p="test -f" 12739fi 12740rm -f conf$$.file 12741 12742# Extract the first word of "msgmerge", so it can be a program name with args. 12743set dummy msgmerge; ac_word=$2 12744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12745$as_echo_n "checking for $ac_word... " >&6; } 12746if test "${ac_cv_path_MSGMERGE+set}" = set; then : 12747 $as_echo_n "(cached) " >&6 12748else 12749 case "$MSGMERGE" in 12750 [\\/]* | ?:[\\/]*) 12751 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 12752 ;; 12753 *) 12754 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12755 for ac_dir in $PATH; do 12756 IFS="$ac_save_IFS" 12757 test -z "$ac_dir" && ac_dir=. 12758 for ac_exec_ext in '' $ac_executable_extensions; do 12759 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12760 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 12761 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 12762 break 2 12763 fi 12764 fi 12765 done 12766 done 12767 IFS="$ac_save_IFS" 12768 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 12769 ;; 12770esac 12771fi 12772MSGMERGE="$ac_cv_path_MSGMERGE" 12773if test "$MSGMERGE" != ":"; then 12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 12775$as_echo "$MSGMERGE" >&6; } 12776else 12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12778$as_echo "no" >&6; } 12779fi 12780 12781 12782 if test "$GMSGFMT" != ":"; then 12783 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 12784 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12785 : ; 12786 else 12787 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 12789$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 12790 GMSGFMT=":" 12791 fi 12792 fi 12793 12794 if test "$XGETTEXT" != ":"; then 12795 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 12796 (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 12797 : ; 12798 else 12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 12800$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 12801 XGETTEXT=":" 12802 fi 12803 rm -f messages.po 12804 fi 12805 12806 ac_config_commands="$ac_config_commands default-1" 12807 12808 12809 12810# Permit host specific settings. 12811. ${srcdir}/configure.host 12812 12813 12814 12815 12816BFD_HOST_64BIT_LONG=0 12817BFD_HOST_64BIT_LONG_LONG=0 12818BFD_HOST_64_BIT_DEFINED=0 12819BFD_HOST_64_BIT= 12820BFD_HOST_U_64_BIT= 12821BFD_HOSTPTR_T="unsigned long" 12822 12823# The cast to long int works around a bug in the HP C Compiler 12824# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12825# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12826# This bug is HP SR number 8606223364. 12827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 12828$as_echo_n "checking size of long long... " >&6; } 12829if test "${ac_cv_sizeof_long_long+set}" = set; then : 12830 $as_echo_n "(cached) " >&6 12831else 12832 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 12833 12834else 12835 if test "$ac_cv_type_long_long" = yes; then 12836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12838{ as_fn_set_status 77 12839as_fn_error "cannot compute sizeof (long long) 12840See \`config.log' for more details." "$LINENO" 5; }; } 12841 else 12842 ac_cv_sizeof_long_long=0 12843 fi 12844fi 12845 12846fi 12847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 12848$as_echo "$ac_cv_sizeof_long_long" >&6; } 12849 12850 12851 12852cat >>confdefs.h <<_ACEOF 12853#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 12854_ACEOF 12855 12856 12857# The cast to long int works around a bug in the HP C Compiler 12858# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12859# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12860# This bug is HP SR number 8606223364. 12861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 12862$as_echo_n "checking size of void *... " >&6; } 12863if test "${ac_cv_sizeof_void_p+set}" = set; then : 12864 $as_echo_n "(cached) " >&6 12865else 12866 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 12867 12868else 12869 if test "$ac_cv_type_void_p" = yes; then 12870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12872{ as_fn_set_status 77 12873as_fn_error "cannot compute sizeof (void *) 12874See \`config.log' for more details." "$LINENO" 5; }; } 12875 else 12876 ac_cv_sizeof_void_p=0 12877 fi 12878fi 12879 12880fi 12881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 12882$as_echo "$ac_cv_sizeof_void_p" >&6; } 12883 12884 12885 12886cat >>confdefs.h <<_ACEOF 12887#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 12888_ACEOF 12889 12890 12891# The cast to long int works around a bug in the HP C Compiler 12892# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12893# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12894# This bug is HP SR number 8606223364. 12895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 12896$as_echo_n "checking size of long... " >&6; } 12897if test "${ac_cv_sizeof_long+set}" = set; then : 12898 $as_echo_n "(cached) " >&6 12899else 12900 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 12901 12902else 12903 if test "$ac_cv_type_long" = yes; then 12904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12906{ as_fn_set_status 77 12907as_fn_error "cannot compute sizeof (long) 12908See \`config.log' for more details." "$LINENO" 5; }; } 12909 else 12910 ac_cv_sizeof_long=0 12911 fi 12912fi 12913 12914fi 12915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 12916$as_echo "$ac_cv_sizeof_long" >&6; } 12917 12918 12919 12920cat >>confdefs.h <<_ACEOF 12921#define SIZEOF_LONG $ac_cv_sizeof_long 12922_ACEOF 12923 12924 12925 12926if test "x${ac_cv_sizeof_void_p}" = "x8"; then 12927 host64=true 12928fi 12929 12930if test "x${ac_cv_sizeof_long}" = "x8"; then 12931 BFD_HOST_64BIT_LONG=1 12932 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long" 12933 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long" 12934elif test "x${ac_cv_sizeof_long_long}" = "x8"; then 12935 BFD_HOST_64BIT_LONG_LONG=1 12936 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long" 12937 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long" 12938 if test "x${ac_cv_sizeof_void_p}" = "x8"; then 12939 BFD_HOSTPTR_T="unsigned long long" 12940 fi 12941fi 12942 12943if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then 12944 BFD_HOST_64_BIT_DEFINED=1 12945 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}" 12946 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}" 12947fi 12948 12949 12950 12951 12952 12953 12954 12955 12956# Put a plausible default for CC_FOR_BUILD in Makefile. 12957if test -z "$CC_FOR_BUILD"; then 12958 if test "x$cross_compiling" = "xno"; then 12959 CC_FOR_BUILD='$(CC)' 12960 else 12961 CC_FOR_BUILD=gcc 12962 fi 12963fi 12964 12965# Also set EXEEXT_FOR_BUILD. 12966if test "x$cross_compiling" = "xno"; then 12967 EXEEXT_FOR_BUILD='$(EXEEXT)' 12968else 12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5 12970$as_echo_n "checking for build system executable suffix... " >&6; } 12971if test "${bfd_cv_build_exeext+set}" = set; then : 12972 $as_echo_n "(cached) " >&6 12973else 12974 rm -f conftest* 12975 echo 'int main () { return 0; }' > conftest.c 12976 bfd_cv_build_exeext= 12977 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 12978 for file in conftest.*; do 12979 case $file in 12980 *.c | *.o | *.obj | *.ilk | *.pdb) ;; 12981 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 12982 esac 12983 done 12984 rm -f conftest* 12985 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no 12986fi 12987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5 12988$as_echo "$bfd_cv_build_exeext" >&6; } 12989 EXEEXT_FOR_BUILD="" 12990 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} 12991fi 12992 12993 12994for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h wchar.h wctype.h 12995do : 12996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12997ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12998eval as_val=\$$as_ac_Header 12999 if test "x$as_val" = x""yes; then : 13000 cat >>confdefs.h <<_ACEOF 13001#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13002_ACEOF 13003 13004fi 13005 13006done 13007 13008for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h sys/resource.h 13009do : 13010 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13011ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13012eval as_val=\$$as_ac_Header 13013 if test "x$as_val" = x""yes; then : 13014 cat >>confdefs.h <<_ACEOF 13015#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13016_ACEOF 13017 13018fi 13019 13020done 13021 13022 13023 13024inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` 13025 13026acx_cv_header_stdint=stddef.h 13027acx_cv_header_stdint_kind="(already complete)" 13028for i in stdint.h $inttype_headers; do 13029 unset ac_cv_type_uintptr_t 13030 unset ac_cv_type_uintmax_t 13031 unset ac_cv_type_int_least32_t 13032 unset ac_cv_type_int_fast32_t 13033 unset ac_cv_type_uint64_t 13034 $as_echo_n "looking for a compliant stdint.h in $i, " >&6 13035 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> 13036#include <$i> 13037" 13038if test "x$ac_cv_type_uintmax_t" = x""yes; then : 13039 acx_cv_header_stdint=$i 13040else 13041 continue 13042fi 13043 13044 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> 13045#include <$i> 13046" 13047if test "x$ac_cv_type_uintptr_t" = x""yes; then : 13048 13049else 13050 acx_cv_header_stdint_kind="(mostly complete)" 13051fi 13052 13053 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> 13054#include <$i> 13055" 13056if test "x$ac_cv_type_int_least32_t" = x""yes; then : 13057 13058else 13059 acx_cv_header_stdint_kind="(mostly complete)" 13060fi 13061 13062 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> 13063#include <$i> 13064" 13065if test "x$ac_cv_type_int_fast32_t" = x""yes; then : 13066 13067else 13068 acx_cv_header_stdint_kind="(mostly complete)" 13069fi 13070 13071 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> 13072#include <$i> 13073" 13074if test "x$ac_cv_type_uint64_t" = x""yes; then : 13075 13076else 13077 acx_cv_header_stdint_kind="(lacks uint64_t)" 13078fi 13079 13080 break 13081done 13082if test "$acx_cv_header_stdint" = stddef.h; then 13083 acx_cv_header_stdint_kind="(lacks uintmax_t)" 13084 for i in stdint.h $inttype_headers; do 13085 unset ac_cv_type_uintptr_t 13086 unset ac_cv_type_uint32_t 13087 unset ac_cv_type_uint64_t 13088 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 13089 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> 13090#include <$i> 13091" 13092if test "x$ac_cv_type_uint32_t" = x""yes; then : 13093 acx_cv_header_stdint=$i 13094else 13095 continue 13096fi 13097 13098 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> 13099#include <$i> 13100" 13101if test "x$ac_cv_type_uint64_t" = x""yes; then : 13102 13103fi 13104 13105 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> 13106#include <$i> 13107" 13108if test "x$ac_cv_type_uintptr_t" = x""yes; then : 13109 13110fi 13111 13112 break 13113 done 13114fi 13115if test "$acx_cv_header_stdint" = stddef.h; then 13116 acx_cv_header_stdint_kind="(u_intXX_t style)" 13117 for i in sys/types.h $inttype_headers; do 13118 unset ac_cv_type_u_int32_t 13119 unset ac_cv_type_u_int64_t 13120 $as_echo_n "looking for u_intXX_t types in $i, " >&6 13121 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> 13122#include <$i> 13123" 13124if test "x$ac_cv_type_u_int32_t" = x""yes; then : 13125 acx_cv_header_stdint=$i 13126else 13127 continue 13128fi 13129 13130 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> 13131#include <$i> 13132" 13133if test "x$ac_cv_type_u_int64_t" = x""yes; then : 13134 13135fi 13136 13137 break 13138 done 13139fi 13140if test "$acx_cv_header_stdint" = stddef.h; then 13141 acx_cv_header_stdint_kind="(using manual detection)" 13142fi 13143 13144test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no 13145test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no 13146test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no 13147test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no 13148test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no 13149 13150# ----------------- Summarize what we found so far 13151 13152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in bfd_stdint.h" >&5 13153$as_echo_n "checking what to include in bfd_stdint.h... " >&6; } 13154 13155case `$as_basename -- bfd_stdint.h || 13156$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \ 13157 Xbfd_stdint.h : 'X\(//\)$' \| \ 13158 Xbfd_stdint.h : 'X\(/\)' \| . 2>/dev/null || 13159$as_echo X/bfd_stdint.h | 13160 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13161 s//\1/ 13162 q 13163 } 13164 /^X\/\(\/\/\)$/{ 13165 s//\1/ 13166 q 13167 } 13168 /^X\/\(\/\).*/{ 13169 s//\1/ 13170 q 13171 } 13172 s/.*/./; q'` in 13173 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 13174$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; 13175 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 13176$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; 13177 *) ;; 13178esac 13179 13180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 13181$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } 13182 13183# ----------------- done included file, check C basic types -------- 13184 13185# Lacking an uintptr_t? Test size of void * 13186case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in 13187 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler 13188# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13189# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13190# This bug is HP SR number 8606223364. 13191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 13192$as_echo_n "checking size of void *... " >&6; } 13193if test "${ac_cv_sizeof_void_p+set}" = set; then : 13194 $as_echo_n "(cached) " >&6 13195else 13196 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 13197 13198else 13199 if test "$ac_cv_type_void_p" = yes; then 13200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13202{ as_fn_set_status 77 13203as_fn_error "cannot compute sizeof (void *) 13204See \`config.log' for more details." "$LINENO" 5; }; } 13205 else 13206 ac_cv_sizeof_void_p=0 13207 fi 13208fi 13209 13210fi 13211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 13212$as_echo "$ac_cv_sizeof_void_p" >&6; } 13213 13214 13215 13216cat >>confdefs.h <<_ACEOF 13217#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 13218_ACEOF 13219 13220 ;; 13221esac 13222 13223# Lacking an uint64_t? Test size of long 13224case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in 13225 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler 13226# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13227# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13228# This bug is HP SR number 8606223364. 13229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 13230$as_echo_n "checking size of long... " >&6; } 13231if test "${ac_cv_sizeof_long+set}" = set; then : 13232 $as_echo_n "(cached) " >&6 13233else 13234 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 13235 13236else 13237 if test "$ac_cv_type_long" = yes; then 13238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13240{ as_fn_set_status 77 13241as_fn_error "cannot compute sizeof (long) 13242See \`config.log' for more details." "$LINENO" 5; }; } 13243 else 13244 ac_cv_sizeof_long=0 13245 fi 13246fi 13247 13248fi 13249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 13250$as_echo "$ac_cv_sizeof_long" >&6; } 13251 13252 13253 13254cat >>confdefs.h <<_ACEOF 13255#define SIZEOF_LONG $ac_cv_sizeof_long 13256_ACEOF 13257 13258 ;; 13259esac 13260 13261if test $acx_cv_header_stdint = stddef.h; then 13262 # Lacking a good header? Test size of everything and deduce all types. 13263 # The cast to long int works around a bug in the HP C Compiler 13264# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13265# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13266# This bug is HP SR number 8606223364. 13267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 13268$as_echo_n "checking size of int... " >&6; } 13269if test "${ac_cv_sizeof_int+set}" = set; then : 13270 $as_echo_n "(cached) " >&6 13271else 13272 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 13273 13274else 13275 if test "$ac_cv_type_int" = yes; then 13276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13278{ as_fn_set_status 77 13279as_fn_error "cannot compute sizeof (int) 13280See \`config.log' for more details." "$LINENO" 5; }; } 13281 else 13282 ac_cv_sizeof_int=0 13283 fi 13284fi 13285 13286fi 13287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 13288$as_echo "$ac_cv_sizeof_int" >&6; } 13289 13290 13291 13292cat >>confdefs.h <<_ACEOF 13293#define SIZEOF_INT $ac_cv_sizeof_int 13294_ACEOF 13295 13296 13297 # The cast to long int works around a bug in the HP C Compiler 13298# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13299# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13300# This bug is HP SR number 8606223364. 13301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 13302$as_echo_n "checking size of short... " >&6; } 13303if test "${ac_cv_sizeof_short+set}" = set; then : 13304 $as_echo_n "(cached) " >&6 13305else 13306 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 13307 13308else 13309 if test "$ac_cv_type_short" = yes; then 13310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13312{ as_fn_set_status 77 13313as_fn_error "cannot compute sizeof (short) 13314See \`config.log' for more details." "$LINENO" 5; }; } 13315 else 13316 ac_cv_sizeof_short=0 13317 fi 13318fi 13319 13320fi 13321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 13322$as_echo "$ac_cv_sizeof_short" >&6; } 13323 13324 13325 13326cat >>confdefs.h <<_ACEOF 13327#define SIZEOF_SHORT $ac_cv_sizeof_short 13328_ACEOF 13329 13330 13331 # The cast to long int works around a bug in the HP C Compiler 13332# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13333# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13334# This bug is HP SR number 8606223364. 13335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 13336$as_echo_n "checking size of char... " >&6; } 13337if test "${ac_cv_sizeof_char+set}" = set; then : 13338 $as_echo_n "(cached) " >&6 13339else 13340 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : 13341 13342else 13343 if test "$ac_cv_type_char" = yes; then 13344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13346{ as_fn_set_status 77 13347as_fn_error "cannot compute sizeof (char) 13348See \`config.log' for more details." "$LINENO" 5; }; } 13349 else 13350 ac_cv_sizeof_char=0 13351 fi 13352fi 13353 13354fi 13355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 13356$as_echo "$ac_cv_sizeof_char" >&6; } 13357 13358 13359 13360cat >>confdefs.h <<_ACEOF 13361#define SIZEOF_CHAR $ac_cv_sizeof_char 13362_ACEOF 13363 13364 13365 13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 13367$as_echo_n "checking for type equivalent to int8_t... " >&6; } 13368 case "$ac_cv_sizeof_char" in 13369 1) acx_cv_type_int8_t=char ;; 13370 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5 13371 esac 13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 13373$as_echo "$acx_cv_type_int8_t" >&6; } 13374 13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 13376$as_echo_n "checking for type equivalent to int16_t... " >&6; } 13377 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in 13378 2:*) acx_cv_type_int16_t=int ;; 13379 *:2) acx_cv_type_int16_t=short ;; 13380 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5 13381 esac 13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 13383$as_echo "$acx_cv_type_int16_t" >&6; } 13384 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 13386$as_echo_n "checking for type equivalent to int32_t... " >&6; } 13387 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in 13388 4:*) acx_cv_type_int32_t=int ;; 13389 *:4) acx_cv_type_int32_t=long ;; 13390 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5 13391 esac 13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 13393$as_echo "$acx_cv_type_int32_t" >&6; } 13394fi 13395 13396# These tests are here to make the output prettier 13397 13398if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then 13399 case "$ac_cv_sizeof_long" in 13400 8) acx_cv_type_int64_t=long ;; 13401 esac 13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 13403$as_echo_n "checking for type equivalent to int64_t... " >&6; } 13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 13405$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } 13406fi 13407 13408# Now we can use the above types 13409 13410if test "$ac_cv_type_uintptr_t" != yes; then 13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 13412$as_echo_n "checking for type equivalent to intptr_t... " >&6; } 13413 case $ac_cv_sizeof_void_p in 13414 2) acx_cv_type_intptr_t=int16_t ;; 13415 4) acx_cv_type_intptr_t=int32_t ;; 13416 8) acx_cv_type_intptr_t=int64_t ;; 13417 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5 13418 esac 13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 13420$as_echo "$acx_cv_type_intptr_t" >&6; } 13421fi 13422 13423# ----------------- done all checks, emit header ------------- 13424ac_config_commands="$ac_config_commands bfd_stdint.h" 13425 13426 13427 13428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 13429$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 13430if test "${ac_cv_header_time+set}" = set; then : 13431 $as_echo_n "(cached) " >&6 13432else 13433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13434/* end confdefs.h. */ 13435#include <sys/types.h> 13436#include <sys/time.h> 13437#include <time.h> 13438 13439int 13440main () 13441{ 13442if ((struct tm *) 0) 13443return 0; 13444 ; 13445 return 0; 13446} 13447_ACEOF 13448if ac_fn_c_try_compile "$LINENO"; then : 13449 ac_cv_header_time=yes 13450else 13451 ac_cv_header_time=no 13452fi 13453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13454fi 13455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 13456$as_echo "$ac_cv_header_time" >&6; } 13457if test $ac_cv_header_time = yes; then 13458 13459$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 13460 13461fi 13462 13463ac_header_dirent=no 13464for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 13465 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 13466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 13467$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 13468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : 13469 $as_echo_n "(cached) " >&6 13470else 13471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13472/* end confdefs.h. */ 13473#include <sys/types.h> 13474#include <$ac_hdr> 13475 13476int 13477main () 13478{ 13479if ((DIR *) 0) 13480return 0; 13481 ; 13482 return 0; 13483} 13484_ACEOF 13485if ac_fn_c_try_compile "$LINENO"; then : 13486 eval "$as_ac_Header=yes" 13487else 13488 eval "$as_ac_Header=no" 13489fi 13490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13491fi 13492eval ac_res=\$$as_ac_Header 13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13494$as_echo "$ac_res" >&6; } 13495eval as_val=\$$as_ac_Header 13496 if test "x$as_val" = x""yes; then : 13497 cat >>confdefs.h <<_ACEOF 13498#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 13499_ACEOF 13500 13501ac_header_dirent=$ac_hdr; break 13502fi 13503 13504done 13505# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 13506if test $ac_header_dirent = dirent.h; then 13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 13508$as_echo_n "checking for library containing opendir... " >&6; } 13509if test "${ac_cv_search_opendir+set}" = set; then : 13510 $as_echo_n "(cached) " >&6 13511else 13512 ac_func_search_save_LIBS=$LIBS 13513cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13514/* end confdefs.h. */ 13515 13516/* Override any GCC internal prototype to avoid an error. 13517 Use char because int might match the return type of a GCC 13518 builtin and then its argument prototype would still apply. */ 13519#ifdef __cplusplus 13520extern "C" 13521#endif 13522char opendir (); 13523int 13524main () 13525{ 13526return opendir (); 13527 ; 13528 return 0; 13529} 13530_ACEOF 13531for ac_lib in '' dir; do 13532 if test -z "$ac_lib"; then 13533 ac_res="none required" 13534 else 13535 ac_res=-l$ac_lib 13536 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13537 fi 13538 if ac_fn_c_try_link "$LINENO"; then : 13539 ac_cv_search_opendir=$ac_res 13540fi 13541rm -f core conftest.err conftest.$ac_objext \ 13542 conftest$ac_exeext 13543 if test "${ac_cv_search_opendir+set}" = set; then : 13544 break 13545fi 13546done 13547if test "${ac_cv_search_opendir+set}" = set; then : 13548 13549else 13550 ac_cv_search_opendir=no 13551fi 13552rm conftest.$ac_ext 13553LIBS=$ac_func_search_save_LIBS 13554fi 13555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 13556$as_echo "$ac_cv_search_opendir" >&6; } 13557ac_res=$ac_cv_search_opendir 13558if test "$ac_res" != no; then : 13559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13560 13561fi 13562 13563else 13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 13565$as_echo_n "checking for library containing opendir... " >&6; } 13566if test "${ac_cv_search_opendir+set}" = set; then : 13567 $as_echo_n "(cached) " >&6 13568else 13569 ac_func_search_save_LIBS=$LIBS 13570cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13571/* end confdefs.h. */ 13572 13573/* Override any GCC internal prototype to avoid an error. 13574 Use char because int might match the return type of a GCC 13575 builtin and then its argument prototype would still apply. */ 13576#ifdef __cplusplus 13577extern "C" 13578#endif 13579char opendir (); 13580int 13581main () 13582{ 13583return opendir (); 13584 ; 13585 return 0; 13586} 13587_ACEOF 13588for ac_lib in '' x; do 13589 if test -z "$ac_lib"; then 13590 ac_res="none required" 13591 else 13592 ac_res=-l$ac_lib 13593 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13594 fi 13595 if ac_fn_c_try_link "$LINENO"; then : 13596 ac_cv_search_opendir=$ac_res 13597fi 13598rm -f core conftest.err conftest.$ac_objext \ 13599 conftest$ac_exeext 13600 if test "${ac_cv_search_opendir+set}" = set; then : 13601 break 13602fi 13603done 13604if test "${ac_cv_search_opendir+set}" = set; then : 13605 13606else 13607 ac_cv_search_opendir=no 13608fi 13609rm conftest.$ac_ext 13610LIBS=$ac_func_search_save_LIBS 13611fi 13612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 13613$as_echo "$ac_cv_search_opendir" >&6; } 13614ac_res=$ac_cv_search_opendir 13615if test "$ac_res" != no; then : 13616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13617 13618fi 13619 13620fi 13621 13622 13623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 13624$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } 13625if test "${gcc_cv_header_string+set}" = set; then : 13626 $as_echo_n "(cached) " >&6 13627else 13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13629/* end confdefs.h. */ 13630#include <string.h> 13631#include <strings.h> 13632int 13633main () 13634{ 13635 13636 ; 13637 return 0; 13638} 13639_ACEOF 13640if ac_fn_c_try_compile "$LINENO"; then : 13641 gcc_cv_header_string=yes 13642else 13643 gcc_cv_header_string=no 13644fi 13645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13646fi 13647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 13648$as_echo "$gcc_cv_header_string" >&6; } 13649if test $gcc_cv_header_string = yes; then 13650 13651$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h 13652 13653fi 13654 13655for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno 13656do : 13657 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13658ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13659eval as_val=\$$as_ac_var 13660 if test "x$as_val" = x""yes; then : 13661 cat >>confdefs.h <<_ACEOF 13662#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13663_ACEOF 13664 13665fi 13666done 13667 13668for ac_func in strtoull getrlimit 13669do : 13670 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13671ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13672eval as_val=\$$as_ac_var 13673 if test "x$as_val" = x""yes; then : 13674 cat >>confdefs.h <<_ACEOF 13675#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13676_ACEOF 13677 13678fi 13679done 13680 13681 13682ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" 13683if test "x$ac_cv_have_decl_basename" = x""yes; then : 13684 ac_have_decl=1 13685else 13686 ac_have_decl=0 13687fi 13688 13689cat >>confdefs.h <<_ACEOF 13690#define HAVE_DECL_BASENAME $ac_have_decl 13691_ACEOF 13692 13693ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default" 13694if test "x$ac_cv_have_decl_ftello" = x""yes; then : 13695 ac_have_decl=1 13696else 13697 ac_have_decl=0 13698fi 13699 13700cat >>confdefs.h <<_ACEOF 13701#define HAVE_DECL_FTELLO $ac_have_decl 13702_ACEOF 13703 13704ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default" 13705if test "x$ac_cv_have_decl_ftello64" = x""yes; then : 13706 ac_have_decl=1 13707else 13708 ac_have_decl=0 13709fi 13710 13711cat >>confdefs.h <<_ACEOF 13712#define HAVE_DECL_FTELLO64 $ac_have_decl 13713_ACEOF 13714 13715ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default" 13716if test "x$ac_cv_have_decl_fseeko" = x""yes; then : 13717 ac_have_decl=1 13718else 13719 ac_have_decl=0 13720fi 13721 13722cat >>confdefs.h <<_ACEOF 13723#define HAVE_DECL_FSEEKO $ac_have_decl 13724_ACEOF 13725 13726ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default" 13727if test "x$ac_cv_have_decl_fseeko64" = x""yes; then : 13728 ac_have_decl=1 13729else 13730 ac_have_decl=0 13731fi 13732 13733cat >>confdefs.h <<_ACEOF 13734#define HAVE_DECL_FSEEKO64 $ac_have_decl 13735_ACEOF 13736 13737 13738 13739case "${host}" in 13740*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) 13741 13742$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h 13743 ;; 13744esac 13745 13746ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" 13747if test "x$ac_cv_have_decl_ffs" = x""yes; then : 13748 ac_have_decl=1 13749else 13750 ac_have_decl=0 13751fi 13752 13753cat >>confdefs.h <<_ACEOF 13754#define HAVE_DECL_FFS $ac_have_decl 13755_ACEOF 13756 13757ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default" 13758if test "x$ac_cv_have_decl_free" = x""yes; then : 13759 ac_have_decl=1 13760else 13761 ac_have_decl=0 13762fi 13763 13764cat >>confdefs.h <<_ACEOF 13765#define HAVE_DECL_FREE $ac_have_decl 13766_ACEOF 13767 13768ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" 13769if test "x$ac_cv_have_decl_getenv" = x""yes; then : 13770 ac_have_decl=1 13771else 13772 ac_have_decl=0 13773fi 13774 13775cat >>confdefs.h <<_ACEOF 13776#define HAVE_DECL_GETENV $ac_have_decl 13777_ACEOF 13778 13779ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default" 13780if test "x$ac_cv_have_decl_malloc" = x""yes; then : 13781 ac_have_decl=1 13782else 13783 ac_have_decl=0 13784fi 13785 13786cat >>confdefs.h <<_ACEOF 13787#define HAVE_DECL_MALLOC $ac_have_decl 13788_ACEOF 13789 13790ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default" 13791if test "x$ac_cv_have_decl_realloc" = x""yes; then : 13792 ac_have_decl=1 13793else 13794 ac_have_decl=0 13795fi 13796 13797cat >>confdefs.h <<_ACEOF 13798#define HAVE_DECL_REALLOC $ac_have_decl 13799_ACEOF 13800 13801ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" 13802if test "x$ac_cv_have_decl_stpcpy" = x""yes; then : 13803 ac_have_decl=1 13804else 13805 ac_have_decl=0 13806fi 13807 13808cat >>confdefs.h <<_ACEOF 13809#define HAVE_DECL_STPCPY $ac_have_decl 13810_ACEOF 13811 13812ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" 13813if test "x$ac_cv_have_decl_strstr" = x""yes; then : 13814 ac_have_decl=1 13815else 13816 ac_have_decl=0 13817fi 13818 13819cat >>confdefs.h <<_ACEOF 13820#define HAVE_DECL_STRSTR $ac_have_decl 13821_ACEOF 13822 13823ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" 13824if test "x$ac_cv_have_decl_asprintf" = x""yes; then : 13825 ac_have_decl=1 13826else 13827 ac_have_decl=0 13828fi 13829 13830cat >>confdefs.h <<_ACEOF 13831#define HAVE_DECL_ASPRINTF $ac_have_decl 13832_ACEOF 13833 13834ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" 13835if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : 13836 ac_have_decl=1 13837else 13838 ac_have_decl=0 13839fi 13840 13841cat >>confdefs.h <<_ACEOF 13842#define HAVE_DECL_VASPRINTF $ac_have_decl 13843_ACEOF 13844 13845ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" 13846if test "x$ac_cv_have_decl_snprintf" = x""yes; then : 13847 ac_have_decl=1 13848else 13849 ac_have_decl=0 13850fi 13851 13852cat >>confdefs.h <<_ACEOF 13853#define HAVE_DECL_SNPRINTF $ac_have_decl 13854_ACEOF 13855 13856ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" 13857if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : 13858 ac_have_decl=1 13859else 13860 ac_have_decl=0 13861fi 13862 13863cat >>confdefs.h <<_ACEOF 13864#define HAVE_DECL_VSNPRINTF $ac_have_decl 13865_ACEOF 13866 13867ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" 13868if test "x$ac_cv_have_decl_strnlen" = x""yes; then : 13869 ac_have_decl=1 13870else 13871 ac_have_decl=0 13872fi 13873 13874cat >>confdefs.h <<_ACEOF 13875#define HAVE_DECL_STRNLEN $ac_have_decl 13876_ACEOF 13877 13878 13879# Link in zlib if we can. This allows us to read compressed debug sections. 13880# This is used only by compress.c. 13881 13882 # Use the system's zlib library. 13883 zlibdir="-L\$(top_builddir)/../zlib" 13884 zlibinc="-I\$(top_srcdir)/../zlib" 13885 13886# Check whether --with-system-zlib was given. 13887if test "${with_system_zlib+set}" = set; then : 13888 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then 13889 zlibdir= 13890 zlibinc= 13891 fi 13892 13893fi 13894 13895 13896 13897 13898 13899# If we are configured native, pick a core file support file. 13900COREFILE= 13901COREFLAG= 13902CORE_HEADER= 13903TRAD_HEADER= 13904if test "${target}" = "${host}"; then 13905 case "${host}" in 13906 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*) 13907 COREFILE='' 13908 ;; 13909 alpha*-*-linux-*) 13910 COREFILE=trad-core.lo 13911 TRAD_HEADER='"hosts/alphalinux.h"' 13912 ;; 13913 alpha*-*-netbsd* | alpha*-*-openbsd*) 13914 COREFILE=netbsd-core.lo 13915 ;; 13916 alpha*-*-*) 13917 COREFILE=osf-core.lo 13918 ;; 13919 arm-*-freebsd* | arm-*-kfreebsd*-gnu) 13920 COREFILE='' ;; 13921 arm-*-netbsd* | arm-*-openbsd*) 13922 COREFILE=netbsd-core.lo 13923 ;; 13924 arm-*-riscix) COREFILE=trad-core.lo ;; 13925 hppa*-*-hpux*) COREFILE=hpux-core.lo ;; 13926 hppa*-*-hiux*) COREFILE=hpux-core.lo ;; 13927 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; 13928 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" 13929 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; 13930 hppa*-*-netbsd* | hppa*-*-openbsd*) 13931 COREFILE=netbsd-core.lo 13932 ;; 13933 13934 i370-*-*) 13935 COREFILE=trad-core.lo 13936 TRAD_HEADER='"hosts/i370linux.h"' 13937 ;; 13938 13939 i[3-7]86-sequent-bsd*) 13940 COREFILE=trad-core.lo 13941 TRAD_HEADER='"hosts/symmetry.h"' 13942 ;; 13943 i[3-7]86-sequent-sysv4*) ;; 13944 i[3-7]86-sequent-sysv*) 13945 COREFILE=trad-core.lo 13946 TRAD_HEADER='"hosts/symmetry.h"' 13947 ;; 13948 i[3-7]86-*-bsdi) 13949 COREFILE= 13950 ;; 13951 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]\.* | i[3-7]86-*-freebsd*aout*) 13952 COREFILE=trad-core.lo 13953 TRAD_HEADER='"hosts/i386bsd.h"' 13954 ;; 13955 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*) 13956 COREFILE='' 13957 TRAD_HEADER='"hosts/i386bsd.h"' 13958 ;; 13959 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*) 13960 COREFILE=netbsd-core.lo 13961 ;; 13962 i[3-7]86-esix-sysv3*) 13963 COREFILE=trad-core.lo 13964 TRAD_HEADER='"hosts/esix.h"' 13965 ;; 13966 i[3-7]86-*-sco3.2v5*) 13967 COREFILE=sco5-core.lo 13968 ;; 13969 i[3-7]86-*-sco* | i[3-7]86-*-isc*) 13970 COREFILE=trad-core.lo 13971 TRAD_HEADER='"hosts/i386sco.h"' 13972 ;; 13973 i[3-7]86-*-mach3*) 13974 COREFILE=trad-core.lo 13975 TRAD_HEADER='"hosts/i386mach3.h"' 13976 ;; 13977 i[3-7]86-*-linux-*) 13978 COREFILE=trad-core.lo 13979 TRAD_HEADER='"hosts/i386linux.h"' 13980 case "$enable_targets"-"$want64" in 13981 *x86_64-*linux*|*-true) 13982 CORE_HEADER='"hosts/x86-64linux.h"' 13983 esac 13984 ;; 13985 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;; 13986 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;; 13987 i860-*-mach3* | i860-*-osf1*) 13988 COREFILE=trad-core.lo 13989 TRAD_HEADER='"hosts/i860mach3.h"' 13990 ;; 13991 mips*-*-netbsd* | mips*-*-openbsd*) 13992 COREFILE=netbsd-core.lo 13993 ;; 13994 mips-dec-*) 13995 COREFILE=trad-core.lo 13996 TRAD_HEADER='"hosts/decstation.h"' 13997 ;; 13998 mips-sgi-irix4*) COREFILE=irix-core.lo ;; 13999 mips-sgi-irix5*) COREFILE=irix-core.lo ;; 14000 mips-sgi-irix6*) COREFILE=irix-core.lo ;; 14001 mips-*-sysv4*) ;; 14002 mips-*-sysv* | mips-*-riscos*) 14003 COREFILE=trad-core.lo 14004 TRAD_HEADER='"hosts/riscos.h"' 14005 ;; 14006 mips-sony-bsd*) 14007 COREFILE=trad-core.lo 14008 TRAD_HEADER='"hosts/news-mips.h"' 14009 ;; 14010 m68*-bull*-sysv*) 14011 COREFILE=trad-core.lo 14012 TRAD_HEADER='"hosts/dpx2.h"' 14013 ;; 14014 m68*-hp-hpux*) COREFILE=hpux-core.lo ;; 14015 m68*-hp-bsd*) 14016 COREFILE=trad-core.lo 14017 TRAD_HEADER='"hosts/hp300bsd.h"' 14018 ;; 14019 m68*-*-linux-*) 14020 COREFILE=trad-core.lo 14021 TRAD_HEADER='"hosts/m68klinux.h"' 14022 ;; 14023 m68*-motorola-sysv*) 14024 COREFILE=trad-core.lo 14025 TRAD_HEADER='"hosts/delta68.h"' 14026 ;; 14027 m68*-sony-*) 14028 COREFILE=trad-core.lo 14029 TRAD_HEADER='"hosts/news.h"' 14030 ;; 14031 m68*-*-netbsd* | m68*-*-openbsd*) 14032 COREFILE=netbsd-core.lo 14033 ;; 14034 m68*-apple-aux*) 14035 COREFILE=trad-core.lo 14036 TRAD_HEADER='"hosts/m68kaux.h"' 14037 ;; 14038 m88*-*-sysv4*) 14039 ;; 14040 m88*-motorola-sysv*) 14041 COREFILE=ptrace-core.lo 14042 ;; 14043 m88*-*-mach3*) 14044 COREFILE=trad-core.lo 14045 TRAD_HEADER='"hosts/m88kmach3.h"' 14046 ;; 14047 m88*-*-openbsd*) 14048 COREFILE=netbsd-core.lo 14049 ;; 14050 ns32k-pc532-mach) 14051 COREFILE=trad-core.lo 14052 TRAD_HEADER='"hosts/pc532mach.h"' 14053 ;; 14054 ns32k-*-netbsd* | ns32k-*-openbsd*) 14055 COREFILE=netbsd-core.lo 14056 ;; 14057 rs6000-*-lynx*) 14058 COREFILE=lynx-core.lo 14059 ;; 14060 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*) 14061 COREFILE=rs6000-core.lo 14062 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE" 14063 ;; 14064 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) 14065 COREFILE=rs6000-core.lo 14066 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" 14067 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE 14068 # have c_impl as a member of struct core_dumpx 14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5 14070$as_echo_n "checking for c_impl in struct core_dumpx... " >&6; } 14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14072/* end confdefs.h. */ 14073#include <core.h> 14074int 14075main () 14076{ 14077struct core_dumpx c; c.c_impl = 0; 14078 ; 14079 return 0; 14080} 14081_ACEOF 14082if ac_fn_c_try_compile "$LINENO"; then : 14083 14084$as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h 14085 14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14087$as_echo "yes" >&6; } 14088else 14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14090$as_echo "no" >&6; } 14091fi 14092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14093 ;; 14094 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; 14095 rs6000-*-*) COREFILE=rs6000-core.lo ;; 14096 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; 14097 powerpc-*-aix*) COREFILE=rs6000-core.lo ;; 14098 powerpc-*-beos*) ;; 14099 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu) 14100 COREFILE='' ;; 14101 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; 14102 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; 14103 s390*-*-*) COREFILE=trad-core.lo ;; 14104 sh*-*-netbsd* | sh*-*-openbsd*) 14105 COREFILE=netbsd-core.lo 14106 ;; 14107 sparc-*-netbsd* | sparc*-*-openbsd*) 14108 COREFILE=netbsd-core.lo 14109 ;; 14110 tahoe-*-*) 14111 COREFILE=trad-core.lo 14112 TRAD_HEADER='"hosts/tahoe.h"' 14113 ;; 14114 vax-*-netbsd* | vax-*-openbsd*) 14115 COREFILE=netbsd-core.lo 14116 ;; 14117 vax-*-ultrix2*) 14118 COREFILE=trad-core.lo 14119 TRAD_HEADER='"hosts/vaxult2.h"' 14120 ;; 14121 vax-*-ultrix*) 14122 COREFILE=trad-core.lo 14123 TRAD_HEADER='"hosts/vaxult2.h"' 14124 ;; 14125 vax-*-linux-*) 14126 COREFILE=trad-core.lo 14127 TRAD_HEADER='"hosts/vaxlinux.h"' 14128 ;; 14129 vax-*-*) 14130 COREFILE=trad-core.lo 14131 TRAD_HEADER='"hosts/vaxbsd.h"' 14132 ;; 14133 x86_64-*-linux*) 14134 CORE_HEADER='"hosts/x86-64linux.h"' 14135 ;; 14136 x86_64-*-netbsd* | x86_64-*-openbsd*) 14137 COREFILE=netbsd-core.lo 14138 ;; 14139 esac 14140 14141 case "$COREFILE" in 14142 aix386-core.lo) COREFLAG=-DAIX386_CORE ;; 14143 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; 14144 hpux-core.lo) COREFLAG=-DHPUX_CORE ;; 14145 irix-core.lo) COREFLAG=-DIRIX_CORE ;; 14146 lynx-core.lo) COREFLAG=-DLYNX_CORE ;; 14147 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; 14148 osf-core.lo) COREFLAG=-DOSF_CORE ;; 14149 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; 14150 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; 14151 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; 14152 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; 14153 esac 14154 14155 # ELF corefile support has several flavors, but all of 14156 # them use something called <sys/procfs.h> 14157 for ac_header in sys/procfs.h 14158do : 14159 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default" 14160if test "x$ac_cv_header_sys_procfs_h" = x""yes; then : 14161 cat >>confdefs.h <<_ACEOF 14162#define HAVE_SYS_PROCFS_H 1 14163_ACEOF 14164 14165fi 14166 14167done 14168 14169 if test "$ac_cv_header_sys_procfs_h" = yes; then 14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5 14171$as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; } 14172 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then : 14173 $as_echo_n "(cached) " >&6 14174else 14175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14176/* end confdefs.h. */ 14177 14178#define _SYSCALL32 14179/* Needed for new procfs interface on sparc-solaris. */ 14180#define _STRUCTURED_PROC 1 14181#include <sys/procfs.h> 14182int 14183main () 14184{ 14185prstatus_t avar 14186 ; 14187 return 0; 14188} 14189_ACEOF 14190if ac_fn_c_try_compile "$LINENO"; then : 14191 bfd_cv_have_sys_procfs_type_prstatus_t=yes 14192else 14193 bfd_cv_have_sys_procfs_type_prstatus_t=no 14194 14195fi 14196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14197fi 14198 14199 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then 14200 14201$as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h 14202 14203 fi 14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5 14205$as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; } 14206 14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5 14208$as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; } 14209 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then : 14210 $as_echo_n "(cached) " >&6 14211else 14212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14213/* end confdefs.h. */ 14214 14215#define _SYSCALL32 14216/* Needed for new procfs interface on sparc-solaris. */ 14217#define _STRUCTURED_PROC 1 14218#include <sys/procfs.h> 14219int 14220main () 14221{ 14222prstatus32_t avar 14223 ; 14224 return 0; 14225} 14226_ACEOF 14227if ac_fn_c_try_compile "$LINENO"; then : 14228 bfd_cv_have_sys_procfs_type_prstatus32_t=yes 14229else 14230 bfd_cv_have_sys_procfs_type_prstatus32_t=no 14231 14232fi 14233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14234fi 14235 14236 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then 14237 14238$as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h 14239 14240 fi 14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5 14242$as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; } 14243 14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5 14245$as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; } 14246 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then : 14247 $as_echo_n "(cached) " >&6 14248else 14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14250/* end confdefs.h. */ 14251 14252#define _SYSCALL32 14253/* Needed for new procfs interface on sparc-solaris. */ 14254#define _STRUCTURED_PROC 1 14255#include <sys/procfs.h> 14256int 14257main () 14258{ 14259prstatus_t avar; void* aref = (void*) &avar.pr_who 14260 ; 14261 return 0; 14262} 14263_ACEOF 14264if ac_fn_c_try_compile "$LINENO"; then : 14265 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes 14266else 14267 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no 14268 14269fi 14270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14271fi 14272 14273 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then 14274 14275$as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h 14276 14277 fi 14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5 14279$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; } 14280 14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 14282$as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; } 14283 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then : 14284 $as_echo_n "(cached) " >&6 14285else 14286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14287/* end confdefs.h. */ 14288 14289#define _SYSCALL32 14290/* Needed for new procfs interface on sparc-solaris. */ 14291#define _STRUCTURED_PROC 1 14292#include <sys/procfs.h> 14293int 14294main () 14295{ 14296prstatus32_t avar; void* aref = (void*) &avar.pr_who 14297 ; 14298 return 0; 14299} 14300_ACEOF 14301if ac_fn_c_try_compile "$LINENO"; then : 14302 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes 14303else 14304 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no 14305 14306fi 14307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14308fi 14309 14310 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then 14311 14312$as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h 14313 14314 fi 14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5 14316$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; } 14317 14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5 14319$as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; } 14320 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then : 14321 $as_echo_n "(cached) " >&6 14322else 14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14324/* end confdefs.h. */ 14325 14326#define _SYSCALL32 14327/* Needed for new procfs interface on sparc-solaris. */ 14328#define _STRUCTURED_PROC 1 14329#include <sys/procfs.h> 14330int 14331main () 14332{ 14333pstatus_t avar 14334 ; 14335 return 0; 14336} 14337_ACEOF 14338if ac_fn_c_try_compile "$LINENO"; then : 14339 bfd_cv_have_sys_procfs_type_pstatus_t=yes 14340else 14341 bfd_cv_have_sys_procfs_type_pstatus_t=no 14342 14343fi 14344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14345fi 14346 14347 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then 14348 14349$as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h 14350 14351 fi 14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 14353$as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; } 14354 14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5 14356$as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; } 14357 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then : 14358 $as_echo_n "(cached) " >&6 14359else 14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14361/* end confdefs.h. */ 14362 14363#define _SYSCALL32 14364/* Needed for new procfs interface on sparc-solaris. */ 14365#define _STRUCTURED_PROC 1 14366#include <sys/procfs.h> 14367int 14368main () 14369{ 14370pxstatus_t avar 14371 ; 14372 return 0; 14373} 14374_ACEOF 14375if ac_fn_c_try_compile "$LINENO"; then : 14376 bfd_cv_have_sys_procfs_type_pxstatus_t=yes 14377else 14378 bfd_cv_have_sys_procfs_type_pxstatus_t=no 14379 14380fi 14381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14382fi 14383 14384 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then 14385 14386$as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h 14387 14388 fi 14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5 14390$as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; } 14391 14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5 14393$as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; } 14394 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then : 14395 $as_echo_n "(cached) " >&6 14396else 14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14398/* end confdefs.h. */ 14399 14400#define _SYSCALL32 14401/* Needed for new procfs interface on sparc-solaris. */ 14402#define _STRUCTURED_PROC 1 14403#include <sys/procfs.h> 14404int 14405main () 14406{ 14407pstatus32_t avar 14408 ; 14409 return 0; 14410} 14411_ACEOF 14412if ac_fn_c_try_compile "$LINENO"; then : 14413 bfd_cv_have_sys_procfs_type_pstatus32_t=yes 14414else 14415 bfd_cv_have_sys_procfs_type_pstatus32_t=no 14416 14417fi 14418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14419fi 14420 14421 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then 14422 14423$as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h 14424 14425 fi 14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5 14427$as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; } 14428 14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5 14430$as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; } 14431 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then : 14432 $as_echo_n "(cached) " >&6 14433else 14434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14435/* end confdefs.h. */ 14436 14437#define _SYSCALL32 14438/* Needed for new procfs interface on sparc-solaris. */ 14439#define _STRUCTURED_PROC 1 14440#include <sys/procfs.h> 14441int 14442main () 14443{ 14444prpsinfo_t avar 14445 ; 14446 return 0; 14447} 14448_ACEOF 14449if ac_fn_c_try_compile "$LINENO"; then : 14450 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes 14451else 14452 bfd_cv_have_sys_procfs_type_prpsinfo_t=no 14453 14454fi 14455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14456fi 14457 14458 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then 14459 14460$as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h 14461 14462 fi 14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5 14464$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; } 14465 14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t.pr_pid in sys/procfs.h" >&5 14467$as_echo_n "checking for prpsinfo_t.pr_pid in sys/procfs.h... " >&6; } 14468 if test "${bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid+set}" = set; then : 14469 $as_echo_n "(cached) " >&6 14470else 14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14472/* end confdefs.h. */ 14473 14474#define _SYSCALL32 14475/* Needed for new procfs interface on sparc-solaris. */ 14476#define _STRUCTURED_PROC 1 14477#include <sys/procfs.h> 14478int 14479main () 14480{ 14481prpsinfo_t avar; void* aref = (void*) &avar.pr_pid 14482 ; 14483 return 0; 14484} 14485_ACEOF 14486if ac_fn_c_try_compile "$LINENO"; then : 14487 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=yes 14488else 14489 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=no 14490 14491fi 14492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14493fi 14494 14495 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid = yes; then 14496 14497$as_echo "#define HAVE_PRPSINFO_T_PR_PID 1" >>confdefs.h 14498 14499 fi 14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&5 14501$as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&6; } 14502 14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5 14504$as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; } 14505 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then : 14506 $as_echo_n "(cached) " >&6 14507else 14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14509/* end confdefs.h. */ 14510 14511#define _SYSCALL32 14512/* Needed for new procfs interface on sparc-solaris. */ 14513#define _STRUCTURED_PROC 1 14514#include <sys/procfs.h> 14515int 14516main () 14517{ 14518prpsinfo32_t avar 14519 ; 14520 return 0; 14521} 14522_ACEOF 14523if ac_fn_c_try_compile "$LINENO"; then : 14524 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes 14525else 14526 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no 14527 14528fi 14529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14530fi 14531 14532 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then 14533 14534$as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h 14535 14536 fi 14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5 14538$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; } 14539 14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t.pr_pid in sys/procfs.h" >&5 14541$as_echo_n "checking for prpsinfo32_t.pr_pid in sys/procfs.h... " >&6; } 14542 if test "${bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid+set}" = set; then : 14543 $as_echo_n "(cached) " >&6 14544else 14545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14546/* end confdefs.h. */ 14547 14548#define _SYSCALL32 14549/* Needed for new procfs interface on sparc-solaris. */ 14550#define _STRUCTURED_PROC 1 14551#include <sys/procfs.h> 14552int 14553main () 14554{ 14555prpsinfo32_t avar; void* aref = (void*) &avar.pr_pid 14556 ; 14557 return 0; 14558} 14559_ACEOF 14560if ac_fn_c_try_compile "$LINENO"; then : 14561 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=yes 14562else 14563 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=no 14564 14565fi 14566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14567fi 14568 14569 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid = yes; then 14570 14571$as_echo "#define HAVE_PRPSINFO32_T_PR_PID 1" >>confdefs.h 14572 14573 fi 14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&5 14575$as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&6; } 14576 14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5 14578$as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; } 14579 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then : 14580 $as_echo_n "(cached) " >&6 14581else 14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14583/* end confdefs.h. */ 14584 14585#define _SYSCALL32 14586/* Needed for new procfs interface on sparc-solaris. */ 14587#define _STRUCTURED_PROC 1 14588#include <sys/procfs.h> 14589int 14590main () 14591{ 14592psinfo_t avar 14593 ; 14594 return 0; 14595} 14596_ACEOF 14597if ac_fn_c_try_compile "$LINENO"; then : 14598 bfd_cv_have_sys_procfs_type_psinfo_t=yes 14599else 14600 bfd_cv_have_sys_procfs_type_psinfo_t=no 14601 14602fi 14603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14604fi 14605 14606 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then 14607 14608$as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h 14609 14610 fi 14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5 14612$as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; } 14613 14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t.pr_pid in sys/procfs.h" >&5 14615$as_echo_n "checking for psinfo_t.pr_pid in sys/procfs.h... " >&6; } 14616 if test "${bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid+set}" = set; then : 14617 $as_echo_n "(cached) " >&6 14618else 14619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14620/* end confdefs.h. */ 14621 14622#define _SYSCALL32 14623/* Needed for new procfs interface on sparc-solaris. */ 14624#define _STRUCTURED_PROC 1 14625#include <sys/procfs.h> 14626int 14627main () 14628{ 14629psinfo_t avar; void* aref = (void*) &avar.pr_pid 14630 ; 14631 return 0; 14632} 14633_ACEOF 14634if ac_fn_c_try_compile "$LINENO"; then : 14635 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=yes 14636else 14637 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=no 14638 14639fi 14640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14641fi 14642 14643 if test $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid = yes; then 14644 14645$as_echo "#define HAVE_PSINFO_T_PR_PID 1" >>confdefs.h 14646 14647 fi 14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&5 14649$as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&6; } 14650 14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5 14652$as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; } 14653 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then : 14654 $as_echo_n "(cached) " >&6 14655else 14656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14657/* end confdefs.h. */ 14658 14659#define _SYSCALL32 14660/* Needed for new procfs interface on sparc-solaris. */ 14661#define _STRUCTURED_PROC 1 14662#include <sys/procfs.h> 14663int 14664main () 14665{ 14666psinfo32_t avar 14667 ; 14668 return 0; 14669} 14670_ACEOF 14671if ac_fn_c_try_compile "$LINENO"; then : 14672 bfd_cv_have_sys_procfs_type_psinfo32_t=yes 14673else 14674 bfd_cv_have_sys_procfs_type_psinfo32_t=no 14675 14676fi 14677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14678fi 14679 14680 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then 14681 14682$as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h 14683 14684 fi 14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5 14686$as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; } 14687 14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t.pr_pid in sys/procfs.h" >&5 14689$as_echo_n "checking for psinfo32_t.pr_pid in sys/procfs.h... " >&6; } 14690 if test "${bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid+set}" = set; then : 14691 $as_echo_n "(cached) " >&6 14692else 14693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14694/* end confdefs.h. */ 14695 14696#define _SYSCALL32 14697/* Needed for new procfs interface on sparc-solaris. */ 14698#define _STRUCTURED_PROC 1 14699#include <sys/procfs.h> 14700int 14701main () 14702{ 14703psinfo32_t avar; void* aref = (void*) &avar.pr_pid 14704 ; 14705 return 0; 14706} 14707_ACEOF 14708if ac_fn_c_try_compile "$LINENO"; then : 14709 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=yes 14710else 14711 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=no 14712 14713fi 14714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14715fi 14716 14717 if test $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid = yes; then 14718 14719$as_echo "#define HAVE_PSINFO32_T_PR_PID 1" >>confdefs.h 14720 14721 fi 14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&5 14723$as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&6; } 14724 14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5 14726$as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; } 14727 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then : 14728 $as_echo_n "(cached) " >&6 14729else 14730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14731/* end confdefs.h. */ 14732 14733#define _SYSCALL32 14734/* Needed for new procfs interface on sparc-solaris. */ 14735#define _STRUCTURED_PROC 1 14736#include <sys/procfs.h> 14737int 14738main () 14739{ 14740lwpstatus_t avar 14741 ; 14742 return 0; 14743} 14744_ACEOF 14745if ac_fn_c_try_compile "$LINENO"; then : 14746 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes 14747else 14748 bfd_cv_have_sys_procfs_type_lwpstatus_t=no 14749 14750fi 14751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14752fi 14753 14754 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then 14755 14756$as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h 14757 14758 fi 14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5 14760$as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; } 14761 14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5 14763$as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; } 14764 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then : 14765 $as_echo_n "(cached) " >&6 14766else 14767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14768/* end confdefs.h. */ 14769 14770#define _SYSCALL32 14771/* Needed for new procfs interface on sparc-solaris. */ 14772#define _STRUCTURED_PROC 1 14773#include <sys/procfs.h> 14774int 14775main () 14776{ 14777lwpxstatus_t avar 14778 ; 14779 return 0; 14780} 14781_ACEOF 14782if ac_fn_c_try_compile "$LINENO"; then : 14783 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes 14784else 14785 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no 14786 14787fi 14788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14789fi 14790 14791 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then 14792 14793$as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h 14794 14795 fi 14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5 14797$as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; } 14798 14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 14800$as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; } 14801 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then : 14802 $as_echo_n "(cached) " >&6 14803else 14804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14805/* end confdefs.h. */ 14806 14807#define _SYSCALL32 14808/* Needed for new procfs interface on sparc-solaris. */ 14809#define _STRUCTURED_PROC 1 14810#include <sys/procfs.h> 14811int 14812main () 14813{ 14814lwpstatus_t avar; void* aref = (void*) &avar.pr_context 14815 ; 14816 return 0; 14817} 14818_ACEOF 14819if ac_fn_c_try_compile "$LINENO"; then : 14820 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes 14821else 14822 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no 14823 14824fi 14825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14826fi 14827 14828 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then 14829 14830$as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h 14831 14832 fi 14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5 14834$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; } 14835 14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 14837$as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; } 14838 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then : 14839 $as_echo_n "(cached) " >&6 14840else 14841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14842/* end confdefs.h. */ 14843 14844#define _SYSCALL32 14845/* Needed for new procfs interface on sparc-solaris. */ 14846#define _STRUCTURED_PROC 1 14847#include <sys/procfs.h> 14848int 14849main () 14850{ 14851lwpstatus_t avar; void* aref = (void*) &avar.pr_reg 14852 ; 14853 return 0; 14854} 14855_ACEOF 14856if ac_fn_c_try_compile "$LINENO"; then : 14857 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes 14858else 14859 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no 14860 14861fi 14862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14863fi 14864 14865 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then 14866 14867$as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h 14868 14869 fi 14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5 14871$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; } 14872 14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5 14874$as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; } 14875 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+set}" = set; then : 14876 $as_echo_n "(cached) " >&6 14877else 14878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14879/* end confdefs.h. */ 14880 14881#define _SYSCALL32 14882/* Needed for new procfs interface on sparc-solaris. */ 14883#define _STRUCTURED_PROC 1 14884#include <sys/procfs.h> 14885int 14886main () 14887{ 14888lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg 14889 ; 14890 return 0; 14891} 14892_ACEOF 14893if ac_fn_c_try_compile "$LINENO"; then : 14894 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes 14895else 14896 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no 14897 14898fi 14899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14900fi 14901 14902 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then 14903 14904$as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h 14905 14906 fi 14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5 14908$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; } 14909 14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5 14911$as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; } 14912 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then : 14913 $as_echo_n "(cached) " >&6 14914else 14915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14916/* end confdefs.h. */ 14917 14918#define _SYSCALL32 14919/* Needed for new procfs interface on sparc-solaris. */ 14920#define _STRUCTURED_PROC 1 14921#include <sys/procfs.h> 14922int 14923main () 14924{ 14925win32_pstatus_t avar 14926 ; 14927 return 0; 14928} 14929_ACEOF 14930if ac_fn_c_try_compile "$LINENO"; then : 14931 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes 14932else 14933 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no 14934 14935fi 14936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14937fi 14938 14939 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then 14940 14941$as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h 14942 14943 fi 14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5 14945$as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; } 14946 14947 fi 14948fi 14949 14950 14951if test -n "$CORE_HEADER"; then 14952 14953cat >>confdefs.h <<_ACEOF 14954#define CORE_HEADER $CORE_HEADER 14955_ACEOF 14956 14957fi 14958if test -n "$TRAD_HEADER"; then 14959 14960cat >>confdefs.h <<_ACEOF 14961#define TRAD_HEADER $TRAD_HEADER 14962_ACEOF 14963 14964fi 14965 14966# Check if linker supports --as-needed and --no-as-needed options 14967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 14968$as_echo_n "checking linker --as-needed support... " >&6; } 14969if test "${bfd_cv_ld_as_needed+set}" = set; then : 14970 $as_echo_n "(cached) " >&6 14971else 14972 bfd_cv_ld_as_needed=no 14973 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then 14974 bfd_cv_ld_as_needed=yes 14975 fi 14976 14977fi 14978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5 14979$as_echo "$bfd_cv_ld_as_needed" >&6; } 14980 14981LIBM= 14982case $host in 14983*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 14984 # These system don't have libm, or don't need it 14985 ;; 14986*-ncr-sysv4.3*) 14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 14988$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } 14989if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then : 14990 $as_echo_n "(cached) " >&6 14991else 14992 ac_check_lib_save_LIBS=$LIBS 14993LIBS="-lmw $LIBS" 14994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14995/* end confdefs.h. */ 14996 14997/* Override any GCC internal prototype to avoid an error. 14998 Use char because int might match the return type of a GCC 14999 builtin and then its argument prototype would still apply. */ 15000#ifdef __cplusplus 15001extern "C" 15002#endif 15003char _mwvalidcheckl (); 15004int 15005main () 15006{ 15007return _mwvalidcheckl (); 15008 ; 15009 return 0; 15010} 15011_ACEOF 15012if ac_fn_c_try_link "$LINENO"; then : 15013 ac_cv_lib_mw__mwvalidcheckl=yes 15014else 15015 ac_cv_lib_mw__mwvalidcheckl=no 15016fi 15017rm -f core conftest.err conftest.$ac_objext \ 15018 conftest$ac_exeext conftest.$ac_ext 15019LIBS=$ac_check_lib_save_LIBS 15020fi 15021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 15022$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } 15023if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then : 15024 LIBM="-lmw" 15025fi 15026 15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 15028$as_echo_n "checking for cos in -lm... " >&6; } 15029if test "${ac_cv_lib_m_cos+set}" = set; then : 15030 $as_echo_n "(cached) " >&6 15031else 15032 ac_check_lib_save_LIBS=$LIBS 15033LIBS="-lm $LIBS" 15034cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15035/* end confdefs.h. */ 15036 15037/* Override any GCC internal prototype to avoid an error. 15038 Use char because int might match the return type of a GCC 15039 builtin and then its argument prototype would still apply. */ 15040#ifdef __cplusplus 15041extern "C" 15042#endif 15043char cos (); 15044int 15045main () 15046{ 15047return cos (); 15048 ; 15049 return 0; 15050} 15051_ACEOF 15052if ac_fn_c_try_link "$LINENO"; then : 15053 ac_cv_lib_m_cos=yes 15054else 15055 ac_cv_lib_m_cos=no 15056fi 15057rm -f core conftest.err conftest.$ac_objext \ 15058 conftest$ac_exeext conftest.$ac_ext 15059LIBS=$ac_check_lib_save_LIBS 15060fi 15061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 15062$as_echo "$ac_cv_lib_m_cos" >&6; } 15063if test "x$ac_cv_lib_m_cos" = x""yes; then : 15064 LIBM="$LIBM -lm" 15065fi 15066 15067 ;; 15068*) 15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 15070$as_echo_n "checking for cos in -lm... " >&6; } 15071if test "${ac_cv_lib_m_cos+set}" = set; then : 15072 $as_echo_n "(cached) " >&6 15073else 15074 ac_check_lib_save_LIBS=$LIBS 15075LIBS="-lm $LIBS" 15076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15077/* end confdefs.h. */ 15078 15079/* Override any GCC internal prototype to avoid an error. 15080 Use char because int might match the return type of a GCC 15081 builtin and then its argument prototype would still apply. */ 15082#ifdef __cplusplus 15083extern "C" 15084#endif 15085char cos (); 15086int 15087main () 15088{ 15089return cos (); 15090 ; 15091 return 0; 15092} 15093_ACEOF 15094if ac_fn_c_try_link "$LINENO"; then : 15095 ac_cv_lib_m_cos=yes 15096else 15097 ac_cv_lib_m_cos=no 15098fi 15099rm -f core conftest.err conftest.$ac_objext \ 15100 conftest$ac_exeext conftest.$ac_ext 15101LIBS=$ac_check_lib_save_LIBS 15102fi 15103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 15104$as_echo "$ac_cv_lib_m_cos" >&6; } 15105if test "x$ac_cv_lib_m_cos" = x""yes; then : 15106 LIBM="-lm" 15107fi 15108 15109 ;; 15110esac 15111 15112 15113 15114# When building a shared libbfd, link against the pic version of libiberty 15115# so that apps that use libbfd won't need libiberty just to satisfy any 15116# libbfd references. 15117# We can't do that if a pic libiberty is unavailable since including non-pic 15118# code would insert text relocations into libbfd. 15119SHARED_LIBADD= 15120SHARED_LDFLAGS= 15121if test "$enable_shared" = "yes"; then 15122 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` 15123 if test -n "$x"; then 15124 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" 15125 fi 15126 15127# More hacks to build DLLs on Windows. 15128 case "${host}" in 15129 *-*-cygwin*) 15130 SHARED_LDFLAGS="-no-undefined" 15131 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32" 15132 ;; 15133 15134 # Hack to build or1k-src on OSX 15135 or1k*-*-darwin*) 15136 SHARED_LIBADD="-L`pwd`/../libiberty/pic -L`pwd`/../intl -liberty -lintl" 15137 ;; 15138 esac 15139 15140 if test -n "$SHARED_LIBADD"; then 15141 if test -n "$LIBM"; then 15142 if test x"$bfd_cv_ld_as_needed" = xyes; then 15143 # Link against libm only when needed. Put -lc, -lm inside -Wl 15144 # to stop libtool reordering these options. 15145 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed" 15146 else 15147 SHARED_LIBADD="$SHARED_LIBADD $LIBM" 15148 fi 15149 fi 15150 fi 15151fi 15152 15153 15154 15155# target stuff: 15156 15157# Canonicalize the secondary target names. 15158if test -n "$enable_targets" ; then 15159 for targ in `echo $enable_targets | sed 's/,/ /g'` 15160 do 15161 result=`$ac_config_sub $targ 2>/dev/null` 15162 if test -n "$result" ; then 15163 canon_targets="$canon_targets $result" 15164 else 15165 # Allow targets that config.sub doesn't recognize, like "all". 15166 canon_targets="$canon_targets $targ" 15167 fi 15168 done 15169fi 15170 15171all_targets=false 15172defvec= 15173selvecs= 15174assocvecs= 15175selarchs= 15176TDEFINES= 15177for targ in $target $canon_targets 15178do 15179 if test "x$targ" = "xall"; then 15180 all_targets=true 15181 assocvecs="$assocvecs $targ_defvec $targ_selvecs" 15182 else 15183 . $srcdir/config.bfd 15184 if test "x$targ" = "x$target"; then 15185 defvec=$targ_defvec 15186 fi 15187 selvecs="$selvecs $targ_defvec $targ_selvecs" 15188 selarchs="$selarchs $targ_archs" 15189 TDEFINES="$TDEFINES $targ_cflags" 15190 fi 15191done 15192 15193 15194# This processing still needs to be done if we're to decide properly whether 15195# 64-bit support needs to be compiled in. Currently, it will be included if 15196# the default or any other explicitly requested target requires it; it 15197# will not be included on a 32-bit host if no 64-bit target is requested, and 15198# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is 15199# used. 15200 15201# uniq the default and selected vectors in all the configured targets. 15202f="" 15203for i in $selvecs ; do 15204 case " $f " in 15205 *" $i "*) ;; 15206 *) f="$f $i" ;; 15207 esac 15208done 15209selvecs="$f" 15210 15211 15212# uniq the associated vectors in all the configured targets. 15213f="" 15214for i in $assocvecs ; do 15215 case " $f " in 15216 *" $i "*) ;; 15217 *) f="$f $i" ;; 15218 esac 15219done 15220assocvecs="$f" 15221 15222 15223# uniq the architectures in all the configured targets. 15224f="" 15225for i in $selarchs ; do 15226 case " $f " in 15227 *" $i "*) ;; 15228 *) f="$f $i" ;; 15229 esac 15230done 15231selarchs="$f" 15232 15233# Target backend .o files. 15234tb= 15235 15236elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo 15237 elf-eh-frame.lo dwarf1.lo dwarf2.lo" 15238coffgen="coffgen.lo dwarf2.lo" 15239coff="cofflink.lo $coffgen" 15240ecoff="ecofflink.lo $coffgen" 15241xcoff="xcofflink.lo $coffgen" 15242 15243for vec in $selvecs 15244do 15245 target_size=32 15246 case "$vec" in 15247 # This list is alphabetized to make it easy to compare 15248 # with the two vector lists in targets.c. For the same reason, 15249 # use one entry per line, even though this leads to long lines. 15250 aarch64_elf32_be_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; 15251 aarch64_elf32_le_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; 15252 aarch64_elf64_be_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; 15253 aarch64_elf64_le_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; 15254 alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;; 15255 alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; 15256 alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; 15257 alpha_nlm32_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;; 15258 alpha_vms_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;; 15259 alpha_vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;; 15260 am33_elf32_linux_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;; 15261 aout0_be_vec) tb="$tb aout0.lo aout32.lo" ;; 15262 aout64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;; 15263 aout_vec) tb="$tb host-aout.lo aout32.lo" ;; 15264 aout_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; 15265 arc_elf32_be_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 15266 arc_elf32_le_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 15267 arm_aout_be_vec) tb="$tb aout-arm.lo aout32.lo" ;; 15268 arm_aout_le_vec) tb="$tb aout-arm.lo aout32.lo" ;; 15269 arm_aout_nbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;; 15270 arm_aout_riscix_vec) tb="$tb aout32.lo riscix.lo" ;; 15271 arm_coff_be_vec) tb="$tb coff-arm.lo $coff" ;; 15272 arm_coff_le_vec) tb="$tb coff-arm.lo $coff" ;; 15273 arm_elf32_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 15274 arm_elf32_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 15275 arm_elf32_nacl_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 15276 arm_elf32_nacl_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 15277 arm_elf32_symbian_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 15278 arm_elf32_symbian_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 15279 arm_elf32_vxworks_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 15280 arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 15281 arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;; 15282 arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;; 15283 arm_pe_epoc_be_vec) tb="$tb epoc-pe-arm.lo peigen.lo $coff" ;; 15284 arm_pe_epoc_le_vec) tb="$tb epoc-pe-arm.lo peigen.lo $coff" ;; 15285 arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;; 15286 arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;; 15287 arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;; 15288 arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;; 15289 arm_pei_epoc_be_vec) tb="$tb epoc-pei-arm.lo peigen.lo $coff" ;; 15290 arm_pei_epoc_le_vec) tb="$tb epoc-pei-arm.lo peigen.lo $coff" ;; 15291 arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;; 15292 arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;; 15293 avr_elf32_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; 15294 bfin_elf32_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; 15295 bfin_elf32_fdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; 15296 bout_be_vec) tb="$tb bout.lo aout32.lo" ;; 15297 bout_le_vec) tb="$tb bout.lo aout32.lo" ;; 15298 cr16_elf32_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;; 15299 cr16c_elf32_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;; 15300 cris_aout_vec) tb="$tb aout-cris.lo" ;; 15301 cris_elf32_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; 15302 cris_elf32_us_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; 15303 crx_elf32_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;; 15304 d10v_elf32_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; 15305 d30v_elf32_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; 15306 dlx_elf32_be_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;; 15307 elf32_be_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 15308 elf32_le_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 15309 elf64_be_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 15310 elf64_le_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 15311 epiphany_elf32_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;; 15312 fr30_elf32_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; 15313 frv_elf32_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; 15314 frv_elf32_fdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; 15315 h8300_coff_vec) tb="$tb coff-h8300.lo reloc16.lo $coffgen" ;; 15316 h8300_elf32_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; 15317 h8300_elf32_linux_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; 15318 h8500_coff_vec) tb="$tb coff-h8500.lo reloc16.lo $coffgen" ;; 15319 hppa_elf32_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 15320 hppa_elf32_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 15321 hppa_elf32_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 15322 hppa_elf64_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; 15323 hppa_elf64_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; 15324 hppa_som_vec) tb="$tb som.lo" ;; 15325 i370_elf32_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; 15326 i386_aout_vec) tb="$tb i386aout.lo aout32.lo" ;; 15327 i386_aout_bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; 15328 i386_aout_dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; 15329 i386_aout_fbsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; 15330 i386_aout_linux_vec) tb="$tb i386linux.lo aout32.lo" ;; 15331 i386_aout_lynx_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; 15332 i386_aout_mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; 15333 i386_aout_nbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; 15334 i386_aout_os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; 15335 i386_coff_vec) tb="$tb coff-i386.lo $coff" ;; 15336 i386_coff_go32_vec) tb="$tb coff-go32.lo $coff" ;; 15337 i386_coff_go32stubbed_vec) tb="$tb coff-stgo32.lo $coff" ;; 15338 i386_coff_lynx_vec) tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;; 15339 i386_elf32_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; 15340 i386_elf32_fbsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; 15341 i386_elf32_nacl_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; 15342 i386_elf32_sol2_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; 15343 i386_elf32_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; 15344 i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;; 15345 i386_msdos_vec) tb="$tb i386msdos.lo" ;; 15346 i386_nlm32_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; 15347 i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;; 15348 i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;; 15349 iamcu_elf32_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; 15350 i860_coff_vec) tb="$tb coff-i860.lo $coff" ;; 15351 i860_elf32_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; 15352 i860_elf32_le_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; 15353 i960_elf32_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;; 15354 ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;; 15355 ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;; 15356 ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; 15357 ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; 15358 ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; 15359 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 ;; 15360 ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;; 15361 icoff_be_vec) tb="$tb coff-i960.lo $coff" ;; 15362 icoff_le_vec) tb="$tb coff-i960.lo $coff" ;; 15363 ieee_vec) tb="$tb ieee.lo" ;; 15364 ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;; 15365 iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;; 15366 k1om_elf64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; 15367 k1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; 15368 l1om_elf64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; 15369 l1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; 15370 lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;; 15371 lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;; 15372 m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;; 15373 m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 15374 m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 15375 m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 15376 m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 15377 m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;; 15378 m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;; 15379 m68k_aout_4knbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; 15380 m68k_aout_hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; 15381 m68k_aout_hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; 15382 m68k_aout_linux_vec) tb="$tb m68klinux.lo aout32.lo" ;; 15383 m68k_aout_nbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; 15384 m68k_aout_newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; 15385 m68k_coff_vec) tb="$tb coff-m68k.lo $coff" ;; 15386 m68k_coff_apollo_vec) tb="$tb coff-apollo.lo $coffgen" ;; 15387 m68k_coff_aux_vec) tb="$tb coff-aux.lo coff-m68k.lo $coff" ;; 15388 m68k_coff_sysv_vec) tb="$tb coff-svm68k.lo $coff" ;; 15389 m68k_coff_un_vec) tb="$tb coff-u68k.lo coff-m68k.lo $coff" ;; 15390 m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; 15391 m68k_versados_vec) tb="$tb versados.lo" ;; 15392 m88k_aout_mach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;; 15393 m88k_aout_obsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;; 15394 m88k_coff_bcs_vec) tb="$tb coff-m88k.lo $coffgen" ;; 15395 m88k_elf32_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; 15396 mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;; 15397 mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;; 15398 mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;; 15399 mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 15400 mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 15401 mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;; 15402 mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;; 15403 mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;; 15404 mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;; 15405 mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; 15406 mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; 15407 metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;; 15408 microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;; 15409 microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;; 15410 mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;; 15411 mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;; 15412 mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;; 15413 mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15414 mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15415 mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15416 mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15417 mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15418 mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15419 mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15420 mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15421 mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15422 mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15423 mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15424 mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15425 mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15426 mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 15427 mips_elf64_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15428 mips_elf64_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 15429 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 ;; 15430 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 ;; 15431 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 ;; 15432 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 ;; 15433 mips_pe_le_vec) tb="$tb pe-mips.lo peigen.lo $coff" ;; 15434 mips_pei_le_vec) tb="$tb pei-mips.lo peigen.lo $coff" ;; 15435 mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;; 15436 mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;; 15437 mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; 15438 mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; 15439 moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;; 15440 moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;; 15441 msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; 15442 msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; 15443 mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;; 15444 nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; 15445 nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; 15446 nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; 15447 nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; 15448 nios2_elf32_be_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;; 15449 nios2_elf32_le_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;; 15450 ns32k_aout_pc532mach_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; 15451 ns32k_aout_pc532nbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; 15452 or1k_elf32_vec) tb="$tb elf32-or1k.lo elf32.lo $elf" ;; 15453 pdp11_aout_vec) tb="$tb pdp11.lo" ;; 15454 pef_vec) tb="$tb pef.lo" ;; 15455 pef_xlib_vec) tb="$tb pef.lo" ;; 15456 pj_elf32_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;; 15457 pj_elf32_le_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;; 15458 plugin_vec) tb="$tb plugin.lo" ;; 15459 powerpc_boot_vec) tb="$tb ppcboot.lo" ;; 15460 powerpc_elf32_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 15461 powerpc_elf32_le_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 15462 powerpc_elf32_fbsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 15463 powerpc_elf32_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 15464 powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 15465 powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; 15466 powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; 15467 powerpc_nlm32_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; 15468 powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;; 15469 powerpc_pe_le_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;; 15470 powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;; 15471 powerpc_pei_le_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;; 15472 powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;; 15473 rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;; 15474 rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;; 15475 rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;; 15476 rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;; 15477 rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; 15478 rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; 15479 rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; 15480 s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; 15481 s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; 15482 score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;; 15483 score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;; 15484 sh64_elf32_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;; 15485 sh64_elf32_le_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;; 15486 sh64_elf32_linux_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;; 15487 sh64_elf32_linux_be_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;; 15488 sh64_elf32_nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" ;; 15489 sh64_elf32_nbsd_le_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" ;; 15490 sh64_elf64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 15491 sh64_elf64_le_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 15492 sh64_elf64_linux_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 15493 sh64_elf64_linux_be_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 15494 sh64_elf64_nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 15495 sh64_elf64_nbsd_le_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 15496 sh_coff_vec) tb="$tb coff-sh.lo $coff" ;; 15497 sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;; 15498 sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;; 15499 sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;; 15500 sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15501 sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15502 sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15503 sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15504 sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15505 sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15506 sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15507 sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15508 sh_elf32_symbian_le_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15509 sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15510 sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 15511 sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;; 15512 sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;; 15513 sparc_aout_le_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; 15514 sparc_aout_linux_vec) tb="$tb sparclinux.lo aout32.lo" ;; 15515 sparc_aout_lynx_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; 15516 sparc_aout_nbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; 15517 sparc_aout_sunos_be_vec) tb="$tb sunos.lo aout32.lo" ;; 15518 sparc_coff_vec) tb="$tb coff-sparc.lo $coffgen" ;; 15519 sparc_coff_lynx_vec) tb="$tb cf-sparclynx.lo lynx-core.lo $coffgen" ;; 15520 sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; 15521 sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; 15522 sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; 15523 sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; 15524 sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; 15525 sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; 15526 sparc_nlm32_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; 15527 spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;; 15528 sym_vec) tb="$tb xsym.lo" ;; 15529 tic30_aout_vec) tb="$tb aout-tic30.lo" ;; 15530 tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;; 15531 tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 15532 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 15533 tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 15534 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 15535 tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 15536 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 15537 tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 15538 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 15539 tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 15540 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 15541 tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 15542 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 15543 tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 15544 tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 15545 tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 15546 tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 15547 tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 15548 tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 15549 tic80_coff_vec) tb="$tb coff-tic80.lo $coff" ;; 15550 tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;; 15551 tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;; 15552 tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;; 15553 tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;; 15554 tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;; 15555 v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; 15556 v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; 15557 vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;; 15558 vax_aout_bsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;; 15559 vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;; 15560 vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;; 15561 ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;; 15562 visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;; 15563 w65_coff_vec) tb="$tb coff-w65.lo reloc16.lo $coffgen" ;; 15564 we32k_coff_vec) tb="$tb coff-we32k.lo $coffgen" ;; 15565 x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;; 15566 x86_64_elf32_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;; 15567 x86_64_elf32_nacl_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;; 15568 x86_64_elf64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; 15569 x86_64_elf64_cloudabi_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; 15570 x86_64_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; 15571 x86_64_elf64_nacl_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; 15572 x86_64_elf64_sol2_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; 15573 x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;; 15574 x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;; 15575 x86_64_pe_be_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;; 15576 x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;; 15577 xc16x_elf32_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;; 15578 xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;; 15579 xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;; 15580 xtensa_elf32_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; 15581 xtensa_elf32_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; 15582 z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;; 15583 z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;; 15584 15585 # These appear out of order in targets.c 15586 srec_vec) tb="$tb srec.lo" ;; 15587 symbolsrec_vec) tb="$tb srec.lo" ;; 15588 tekhex_vec) tb="$tb tekhex.lo" ;; 15589 core_cisco_be_vec) tb="$tb cisco-core.lo" ;; 15590 core_cisco_le_vec) tb="$tb cisco-core.lo" ;; 15591 15592 "") ;; 15593 *) as_fn_error "*** unknown target vector $vec" "$LINENO" 5 ;; 15594 esac 15595 15596 if test ${target_size} = 64; then 15597 target64=true 15598 fi 15599 if test x"${vec}" = x"${defvec}"; then 15600 bfd_default_target_size=${target_size} 15601 fi 15602done 15603 15604# Target architecture .o files. 15605# A couple of CPUs use shorter file names to avoid problems on DOS 15606# filesystems. 15607ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` 15608 15609# Weed out duplicate .o files. 15610f="" 15611for i in $tb ; do 15612 case " $f " in 15613 *" $i "*) ;; 15614 *) f="$f $i" ;; 15615 esac 15616done 15617tb="$f" 15618 15619f="" 15620for i in $ta ; do 15621 case " $f " in 15622 *" $i "*) ;; 15623 *) f="$f $i" ;; 15624 esac 15625done 15626ta="$f" 15627 15628bfd_backends="$tb" 15629bfd_machines="$ta" 15630 15631if test x${all_targets} = xtrue ; then 15632 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' 15633 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' 15634 selvecs= 15635 havevecs=-DHAVE_all_vecs 15636 selarchs= 15637 test -n "$assocvecs" && 15638 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 15639else # all_targets is true 15640 # Only set these if they will be nonempty, for the clever echo. 15641 havevecs= 15642 assocvecs= 15643 test -n "$selvecs" && 15644 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` 15645 test -n "$selvecs" && 15646 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 15647 test -n "$selarchs" && 15648 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 15649fi # all_targets is true 15650 15651case ${host64}-${target64}-${want64} in 15652 *true*) 15653 wordsize=64 15654 bfd64_libs='$(BFD64_LIBS)' 15655 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' 15656 if test $BFD_HOST_64_BIT_DEFINED = 0; then 15657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have requested a 64 bit BFD configuration, but" >&5 15658$as_echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;} 15659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler may not have a 64 bit integral type" >&5 15660$as_echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;} 15661 fi 15662 if test -n "$GCC" ; then 15663 bad_64bit_gcc=no; 15664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5 15665$as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; } 15666 # Add more tests for gcc versions with non-working 64-bit support here. 15667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15668/* end confdefs.h. */ 15669:__GNUC__:__GNUC_MINOR__:__i386__: 15670_ACEOF 15671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15672 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then : 15673 bad_64bit_gcc=yes; 15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5 15675$as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; } 15676else 15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15678$as_echo "no" >&6; } 15679fi 15680rm -f conftest* 15681 15682 if test $bad_64bit_gcc = yes ; then 15683 as_fn_error "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5 15684 fi 15685 fi 15686 ;; 15687 false-false-false) 15688 wordsize=32 15689 all_backends='$(BFD32_BACKENDS)' 15690 ;; 15691esac 15692 15693 15694 15695 15696 15697 15698 15699 15700if test "$plugins" = "yes"; then 15701 supports_plugins=1 15702else 15703 supports_plugins=0 15704fi 15705 15706 15707 15708# Determine the host dependant file_ptr a.k.a. off_t type. In order 15709# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and 15710# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long. 15711# Hopefully a reasonable assumption since fseeko et.al. should be 15712# upward compatible. 15713for ac_func in ftello ftello64 fseeko fseeko64 fopen64 15714do : 15715 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15716ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15717eval as_val=\$$as_ac_var 15718 if test "x$as_val" = x""yes; then : 15719 cat >>confdefs.h <<_ACEOF 15720#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15721_ACEOF 15722 15723fi 15724done 15725 15726if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then 15727 # The cast to long int works around a bug in the HP C Compiler 15728# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15729# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15730# This bug is HP SR number 8606223364. 15731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 15732$as_echo_n "checking size of off_t... " >&6; } 15733if test "${ac_cv_sizeof_off_t+set}" = set; then : 15734 $as_echo_n "(cached) " >&6 15735else 15736 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 15737 15738else 15739 if test "$ac_cv_type_off_t" = yes; then 15740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15742{ as_fn_set_status 77 15743as_fn_error "cannot compute sizeof (off_t) 15744See \`config.log' for more details." "$LINENO" 5; }; } 15745 else 15746 ac_cv_sizeof_off_t=0 15747 fi 15748fi 15749 15750fi 15751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 15752$as_echo "$ac_cv_sizeof_off_t" >&6; } 15753 15754 15755 15756cat >>confdefs.h <<_ACEOF 15757#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 15758_ACEOF 15759 15760 15761fi 15762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5 15763$as_echo_n "checking file_ptr type... " >&6; } 15764bfd_file_ptr="long" 15765bfd_ufile_ptr="unsigned long" 15766if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \ 15767 -o x"${ac_cv_sizeof_off_t}" = x8; then 15768 bfd_file_ptr=BFD_HOST_64_BIT 15769 bfd_ufile_ptr=BFD_HOST_U_64_BIT 15770fi 15771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5 15772$as_echo "$bfd_file_ptr" >&6; } 15773 15774 15775 15776 15777tdefaults="" 15778test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" 15779test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" 15780test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'" 15781test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" 15782 15783 15784 15785for ac_header in stdlib.h unistd.h 15786do : 15787 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15788ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15789eval as_val=\$$as_ac_Header 15790 if test "x$as_val" = x""yes; then : 15791 cat >>confdefs.h <<_ACEOF 15792#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15793_ACEOF 15794 15795fi 15796 15797done 15798 15799for ac_func in getpagesize 15800do : 15801 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 15802if test "x$ac_cv_func_getpagesize" = x""yes; then : 15803 cat >>confdefs.h <<_ACEOF 15804#define HAVE_GETPAGESIZE 1 15805_ACEOF 15806 15807fi 15808done 15809 15810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 15811$as_echo_n "checking for working mmap... " >&6; } 15812if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 15813 $as_echo_n "(cached) " >&6 15814else 15815 if test "$cross_compiling" = yes; then : 15816 ac_cv_func_mmap_fixed_mapped=no 15817else 15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15819/* end confdefs.h. */ 15820$ac_includes_default 15821/* malloc might have been renamed as rpl_malloc. */ 15822#undef malloc 15823 15824/* Thanks to Mike Haertel and Jim Avera for this test. 15825 Here is a matrix of mmap possibilities: 15826 mmap private not fixed 15827 mmap private fixed at somewhere currently unmapped 15828 mmap private fixed at somewhere already mapped 15829 mmap shared not fixed 15830 mmap shared fixed at somewhere currently unmapped 15831 mmap shared fixed at somewhere already mapped 15832 For private mappings, we should verify that changes cannot be read() 15833 back from the file, nor mmap's back from the file at a different 15834 address. (There have been systems where private was not correctly 15835 implemented like the infamous i386 svr4.0, and systems where the 15836 VM page cache was not coherent with the file system buffer cache 15837 like early versions of FreeBSD and possibly contemporary NetBSD.) 15838 For shared mappings, we should conversely verify that changes get 15839 propagated back to all the places they're supposed to be. 15840 15841 Grep wants private fixed already mapped. 15842 The main things grep needs to know about mmap are: 15843 * does it exist and is it safe to write into the mmap'd area 15844 * how to use it (BSD variants) */ 15845 15846#include <fcntl.h> 15847#include <sys/mman.h> 15848 15849#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 15850char *malloc (); 15851#endif 15852 15853/* This mess was copied from the GNU getpagesize.h. */ 15854#ifndef HAVE_GETPAGESIZE 15855/* Assume that all systems that can run configure have sys/param.h. */ 15856# ifndef HAVE_SYS_PARAM_H 15857# define HAVE_SYS_PARAM_H 1 15858# endif 15859 15860# ifdef _SC_PAGESIZE 15861# define getpagesize() sysconf(_SC_PAGESIZE) 15862# else /* no _SC_PAGESIZE */ 15863# ifdef HAVE_SYS_PARAM_H 15864# include <sys/param.h> 15865# ifdef EXEC_PAGESIZE 15866# define getpagesize() EXEC_PAGESIZE 15867# else /* no EXEC_PAGESIZE */ 15868# ifdef NBPG 15869# define getpagesize() NBPG * CLSIZE 15870# ifndef CLSIZE 15871# define CLSIZE 1 15872# endif /* no CLSIZE */ 15873# else /* no NBPG */ 15874# ifdef NBPC 15875# define getpagesize() NBPC 15876# else /* no NBPC */ 15877# ifdef PAGESIZE 15878# define getpagesize() PAGESIZE 15879# endif /* PAGESIZE */ 15880# endif /* no NBPC */ 15881# endif /* no NBPG */ 15882# endif /* no EXEC_PAGESIZE */ 15883# else /* no HAVE_SYS_PARAM_H */ 15884# define getpagesize() 8192 /* punt totally */ 15885# endif /* no HAVE_SYS_PARAM_H */ 15886# endif /* no _SC_PAGESIZE */ 15887 15888#endif /* no HAVE_GETPAGESIZE */ 15889 15890int 15891main () 15892{ 15893 char *data, *data2, *data3; 15894 int i, pagesize; 15895 int fd; 15896 15897 pagesize = getpagesize (); 15898 15899 /* First, make a file with some known garbage in it. */ 15900 data = (char *) malloc (pagesize); 15901 if (!data) 15902 return 1; 15903 for (i = 0; i < pagesize; ++i) 15904 *(data + i) = rand (); 15905 umask (0); 15906 fd = creat ("conftest.mmap", 0600); 15907 if (fd < 0) 15908 return 1; 15909 if (write (fd, data, pagesize) != pagesize) 15910 return 1; 15911 close (fd); 15912 15913 /* Next, try to mmap the file at a fixed address which already has 15914 something else allocated at it. If we can, also make sure that 15915 we see the same garbage. */ 15916 fd = open ("conftest.mmap", O_RDWR); 15917 if (fd < 0) 15918 return 1; 15919 data2 = (char *) malloc (2 * pagesize); 15920 if (!data2) 15921 return 1; 15922 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 15923 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 15924 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 15925 return 1; 15926 for (i = 0; i < pagesize; ++i) 15927 if (*(data + i) != *(data2 + i)) 15928 return 1; 15929 15930 /* Finally, make sure that changes to the mapped area do not 15931 percolate back to the file as seen by read(). (This is a bug on 15932 some variants of i386 svr4.0.) */ 15933 for (i = 0; i < pagesize; ++i) 15934 *(data2 + i) = *(data2 + i) + 1; 15935 data3 = (char *) malloc (pagesize); 15936 if (!data3) 15937 return 1; 15938 if (read (fd, data3, pagesize) != pagesize) 15939 return 1; 15940 for (i = 0; i < pagesize; ++i) 15941 if (*(data + i) != *(data3 + i)) 15942 return 1; 15943 close (fd); 15944 return 0; 15945} 15946_ACEOF 15947if ac_fn_c_try_run "$LINENO"; then : 15948 ac_cv_func_mmap_fixed_mapped=yes 15949else 15950 ac_cv_func_mmap_fixed_mapped=no 15951fi 15952rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15953 conftest.$ac_objext conftest.beam conftest.$ac_ext 15954fi 15955 15956fi 15957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 15958$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 15959if test $ac_cv_func_mmap_fixed_mapped = yes; then 15960 15961$as_echo "#define HAVE_MMAP 1" >>confdefs.h 15962 15963fi 15964rm -f conftest.mmap 15965 15966for ac_func in madvise mprotect 15967do : 15968 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15969ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15970eval as_val=\$$as_ac_var 15971 if test "x$as_val" = x""yes; then : 15972 cat >>confdefs.h <<_ACEOF 15973#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15974_ACEOF 15975 15976fi 15977done 15978 15979case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in 15980 true+yes ) 15981$as_echo "#define USE_MMAP 1" >>confdefs.h 15982 ;; 15983esac 15984 15985rm -f doc/config.status 15986ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in" 15987 15988 15989ac_config_commands="$ac_config_commands default" 15990 15991 15992 15993 15994 15995 15996 15997cat >confcache <<\_ACEOF 15998# This file is a shell script that caches the results of configure 15999# tests run on this system so they can be shared between configure 16000# scripts and configure runs, see configure's option --config-cache. 16001# It is not useful on other systems. If it contains results you don't 16002# want to keep, you may remove or edit it. 16003# 16004# config.status only pays attention to the cache file if you give it 16005# the --recheck option to rerun configure. 16006# 16007# `ac_cv_env_foo' variables (set or unset) will be overridden when 16008# loading this file, other *unset* `ac_cv_foo' will be assigned the 16009# following values. 16010 16011_ACEOF 16012 16013# The following way of writing the cache mishandles newlines in values, 16014# but we know of no workaround that is simple, portable, and efficient. 16015# So, we kill variables containing newlines. 16016# Ultrix sh set writes to stderr and can't be redirected directly, 16017# and sets the high bit in the cache file unless we assign to the vars. 16018( 16019 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16020 eval ac_val=\$$ac_var 16021 case $ac_val in #( 16022 *${as_nl}*) 16023 case $ac_var in #( 16024 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16025$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16026 esac 16027 case $ac_var in #( 16028 _ | IFS | as_nl) ;; #( 16029 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16030 *) { eval $ac_var=; unset $ac_var;} ;; 16031 esac ;; 16032 esac 16033 done 16034 16035 (set) 2>&1 | 16036 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16037 *${as_nl}ac_space=\ *) 16038 # `set' does not quote correctly, so add quotes: double-quote 16039 # substitution turns \\\\ into \\, and sed turns \\ into \. 16040 sed -n \ 16041 "s/'/'\\\\''/g; 16042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16043 ;; #( 16044 *) 16045 # `set' quotes correctly as required by POSIX, so do not add quotes. 16046 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16047 ;; 16048 esac | 16049 sort 16050) | 16051 sed ' 16052 /^ac_cv_env_/b end 16053 t clear 16054 :clear 16055 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16056 t end 16057 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16058 :end' >>confcache 16059if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16060 if test -w "$cache_file"; then 16061 test "x$cache_file" != "x/dev/null" && 16062 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16063$as_echo "$as_me: updating cache $cache_file" >&6;} 16064 cat confcache >$cache_file 16065 else 16066 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16067$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16068 fi 16069fi 16070rm -f confcache 16071 16072test "x$prefix" = xNONE && prefix=$ac_default_prefix 16073# Let make expand exec_prefix. 16074test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16075 16076DEFS=-DHAVE_CONFIG_H 16077 16078ac_libobjs= 16079ac_ltlibobjs= 16080for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16081 # 1. Remove the extension, and $U if already installed. 16082 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16083 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16084 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16085 # will be set to the directory where LIBOBJS objects are built. 16086 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16087 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16088done 16089LIBOBJS=$ac_libobjs 16090 16091LTLIBOBJS=$ac_ltlibobjs 16092 16093 16094if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16095 as_fn_error "conditional \"AMDEP\" was never defined. 16096Usually this means the macro was only invoked conditionally." "$LINENO" 5 16097fi 16098if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16099 as_fn_error "conditional \"am__fastdepCC\" was never defined. 16100Usually this means the macro was only invoked conditionally." "$LINENO" 5 16101fi 16102 if test -n "$EXEEXT"; then 16103 am__EXEEXT_TRUE= 16104 am__EXEEXT_FALSE='#' 16105else 16106 am__EXEEXT_TRUE='#' 16107 am__EXEEXT_FALSE= 16108fi 16109 16110if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then 16111 as_fn_error "conditional \"PLUGINS\" was never defined. 16112Usually this means the macro was only invoked conditionally." "$LINENO" 5 16113fi 16114if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 16115 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 16116Usually this means the macro was only invoked conditionally." "$LINENO" 5 16117fi 16118if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then 16119 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined. 16120Usually this means the macro was only invoked conditionally." "$LINENO" 5 16121fi 16122if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then 16123 as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined. 16124Usually this means the macro was only invoked conditionally." "$LINENO" 5 16125fi 16126 16127: ${CONFIG_STATUS=./config.status} 16128ac_write_fail=0 16129ac_clean_files_save=$ac_clean_files 16130ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16131{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16132$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16133as_write_fail=0 16134cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16135#! $SHELL 16136# Generated by $as_me. 16137# Run this file to recreate the current configuration. 16138# Compiler output produced by configure, useful for debugging 16139# configure, is in config.log if it exists. 16140 16141debug=false 16142ac_cs_recheck=false 16143ac_cs_silent=false 16144 16145SHELL=\${CONFIG_SHELL-$SHELL} 16146export SHELL 16147_ASEOF 16148cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16149## -------------------- ## 16150## M4sh Initialization. ## 16151## -------------------- ## 16152 16153# Be more Bourne compatible 16154DUALCASE=1; export DUALCASE # for MKS sh 16155if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16156 emulate sh 16157 NULLCMD=: 16158 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16159 # is contrary to our usage. Disable this feature. 16160 alias -g '${1+"$@"}'='"$@"' 16161 setopt NO_GLOB_SUBST 16162else 16163 case `(set -o) 2>/dev/null` in #( 16164 *posix*) : 16165 set -o posix ;; #( 16166 *) : 16167 ;; 16168esac 16169fi 16170 16171 16172as_nl=' 16173' 16174export as_nl 16175# Printing a long string crashes Solaris 7 /usr/bin/printf. 16176as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16177as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16178as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16179# Prefer a ksh shell builtin over an external printf program on Solaris, 16180# but without wasting forks for bash or zsh. 16181if test -z "$BASH_VERSION$ZSH_VERSION" \ 16182 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16183 as_echo='print -r --' 16184 as_echo_n='print -rn --' 16185elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16186 as_echo='printf %s\n' 16187 as_echo_n='printf %s' 16188else 16189 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16190 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16191 as_echo_n='/usr/ucb/echo -n' 16192 else 16193 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16194 as_echo_n_body='eval 16195 arg=$1; 16196 case $arg in #( 16197 *"$as_nl"*) 16198 expr "X$arg" : "X\\(.*\\)$as_nl"; 16199 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16200 esac; 16201 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16202 ' 16203 export as_echo_n_body 16204 as_echo_n='sh -c $as_echo_n_body as_echo' 16205 fi 16206 export as_echo_body 16207 as_echo='sh -c $as_echo_body as_echo' 16208fi 16209 16210# The user is always right. 16211if test "${PATH_SEPARATOR+set}" != set; then 16212 PATH_SEPARATOR=: 16213 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16214 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16215 PATH_SEPARATOR=';' 16216 } 16217fi 16218 16219 16220# IFS 16221# We need space, tab and new line, in precisely that order. Quoting is 16222# there to prevent editors from complaining about space-tab. 16223# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16224# splitting by setting IFS to empty value.) 16225IFS=" "" $as_nl" 16226 16227# Find who we are. Look in the path if we contain no directory separator. 16228case $0 in #(( 16229 *[\\/]* ) as_myself=$0 ;; 16230 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16231for as_dir in $PATH 16232do 16233 IFS=$as_save_IFS 16234 test -z "$as_dir" && as_dir=. 16235 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16236 done 16237IFS=$as_save_IFS 16238 16239 ;; 16240esac 16241# We did not find ourselves, most probably we were run as `sh COMMAND' 16242# in which case we are not to be found in the path. 16243if test "x$as_myself" = x; then 16244 as_myself=$0 16245fi 16246if test ! -f "$as_myself"; then 16247 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16248 exit 1 16249fi 16250 16251# Unset variables that we do not need and which cause bugs (e.g. in 16252# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16253# suppresses any "Segmentation fault" message there. '((' could 16254# trigger a bug in pdksh 5.2.14. 16255for as_var in BASH_ENV ENV MAIL MAILPATH 16256do eval test x\${$as_var+set} = xset \ 16257 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16258done 16259PS1='$ ' 16260PS2='> ' 16261PS4='+ ' 16262 16263# NLS nuisances. 16264LC_ALL=C 16265export LC_ALL 16266LANGUAGE=C 16267export LANGUAGE 16268 16269# CDPATH. 16270(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16271 16272 16273# as_fn_error ERROR [LINENO LOG_FD] 16274# --------------------------------- 16275# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16276# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16277# script with status $?, using 1 if that was 0. 16278as_fn_error () 16279{ 16280 as_status=$?; test $as_status -eq 0 && as_status=1 16281 if test "$3"; then 16282 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16283 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 16284 fi 16285 $as_echo "$as_me: error: $1" >&2 16286 as_fn_exit $as_status 16287} # as_fn_error 16288 16289 16290# as_fn_set_status STATUS 16291# ----------------------- 16292# Set $? to STATUS, without forking. 16293as_fn_set_status () 16294{ 16295 return $1 16296} # as_fn_set_status 16297 16298# as_fn_exit STATUS 16299# ----------------- 16300# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16301as_fn_exit () 16302{ 16303 set +e 16304 as_fn_set_status $1 16305 exit $1 16306} # as_fn_exit 16307 16308# as_fn_unset VAR 16309# --------------- 16310# Portably unset VAR. 16311as_fn_unset () 16312{ 16313 { eval $1=; unset $1;} 16314} 16315as_unset=as_fn_unset 16316# as_fn_append VAR VALUE 16317# ---------------------- 16318# Append the text in VALUE to the end of the definition contained in VAR. Take 16319# advantage of any shell optimizations that allow amortized linear growth over 16320# repeated appends, instead of the typical quadratic growth present in naive 16321# implementations. 16322if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16323 eval 'as_fn_append () 16324 { 16325 eval $1+=\$2 16326 }' 16327else 16328 as_fn_append () 16329 { 16330 eval $1=\$$1\$2 16331 } 16332fi # as_fn_append 16333 16334# as_fn_arith ARG... 16335# ------------------ 16336# Perform arithmetic evaluation on the ARGs, and store the result in the 16337# global $as_val. Take advantage of shells that can avoid forks. The arguments 16338# must be portable across $(()) and expr. 16339if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16340 eval 'as_fn_arith () 16341 { 16342 as_val=$(( $* )) 16343 }' 16344else 16345 as_fn_arith () 16346 { 16347 as_val=`expr "$@" || test $? -eq 1` 16348 } 16349fi # as_fn_arith 16350 16351 16352if expr a : '\(a\)' >/dev/null 2>&1 && 16353 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16354 as_expr=expr 16355else 16356 as_expr=false 16357fi 16358 16359if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16360 as_basename=basename 16361else 16362 as_basename=false 16363fi 16364 16365if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16366 as_dirname=dirname 16367else 16368 as_dirname=false 16369fi 16370 16371as_me=`$as_basename -- "$0" || 16372$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16373 X"$0" : 'X\(//\)$' \| \ 16374 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16375$as_echo X/"$0" | 16376 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16377 s//\1/ 16378 q 16379 } 16380 /^X\/\(\/\/\)$/{ 16381 s//\1/ 16382 q 16383 } 16384 /^X\/\(\/\).*/{ 16385 s//\1/ 16386 q 16387 } 16388 s/.*/./; q'` 16389 16390# Avoid depending upon Character Ranges. 16391as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16392as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16393as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16394as_cr_digits='0123456789' 16395as_cr_alnum=$as_cr_Letters$as_cr_digits 16396 16397ECHO_C= ECHO_N= ECHO_T= 16398case `echo -n x` in #((((( 16399-n*) 16400 case `echo 'xy\c'` in 16401 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16402 xy) ECHO_C='\c';; 16403 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16404 ECHO_T=' ';; 16405 esac;; 16406*) 16407 ECHO_N='-n';; 16408esac 16409 16410rm -f conf$$ conf$$.exe conf$$.file 16411if test -d conf$$.dir; then 16412 rm -f conf$$.dir/conf$$.file 16413else 16414 rm -f conf$$.dir 16415 mkdir conf$$.dir 2>/dev/null 16416fi 16417if (echo >conf$$.file) 2>/dev/null; then 16418 if ln -s conf$$.file conf$$ 2>/dev/null; then 16419 as_ln_s='ln -s' 16420 # ... but there are two gotchas: 16421 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16422 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16423 # In both cases, we have to default to `cp -p'. 16424 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16425 as_ln_s='cp -p' 16426 elif ln conf$$.file conf$$ 2>/dev/null; then 16427 as_ln_s=ln 16428 else 16429 as_ln_s='cp -p' 16430 fi 16431else 16432 as_ln_s='cp -p' 16433fi 16434rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16435rmdir conf$$.dir 2>/dev/null 16436 16437 16438# as_fn_mkdir_p 16439# ------------- 16440# Create "$as_dir" as a directory, including parents if necessary. 16441as_fn_mkdir_p () 16442{ 16443 16444 case $as_dir in #( 16445 -*) as_dir=./$as_dir;; 16446 esac 16447 test -d "$as_dir" || eval $as_mkdir_p || { 16448 as_dirs= 16449 while :; do 16450 case $as_dir in #( 16451 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16452 *) as_qdir=$as_dir;; 16453 esac 16454 as_dirs="'$as_qdir' $as_dirs" 16455 as_dir=`$as_dirname -- "$as_dir" || 16456$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16457 X"$as_dir" : 'X\(//\)[^/]' \| \ 16458 X"$as_dir" : 'X\(//\)$' \| \ 16459 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16460$as_echo X"$as_dir" | 16461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16462 s//\1/ 16463 q 16464 } 16465 /^X\(\/\/\)[^/].*/{ 16466 s//\1/ 16467 q 16468 } 16469 /^X\(\/\/\)$/{ 16470 s//\1/ 16471 q 16472 } 16473 /^X\(\/\).*/{ 16474 s//\1/ 16475 q 16476 } 16477 s/.*/./; q'` 16478 test -d "$as_dir" && break 16479 done 16480 test -z "$as_dirs" || eval "mkdir $as_dirs" 16481 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 16482 16483 16484} # as_fn_mkdir_p 16485if mkdir -p . 2>/dev/null; then 16486 as_mkdir_p='mkdir -p "$as_dir"' 16487else 16488 test -d ./-p && rmdir ./-p 16489 as_mkdir_p=false 16490fi 16491 16492if test -x / >/dev/null 2>&1; then 16493 as_test_x='test -x' 16494else 16495 if ls -dL / >/dev/null 2>&1; then 16496 as_ls_L_option=L 16497 else 16498 as_ls_L_option= 16499 fi 16500 as_test_x=' 16501 eval sh -c '\'' 16502 if test -d "$1"; then 16503 test -d "$1/."; 16504 else 16505 case $1 in #( 16506 -*)set "./$1";; 16507 esac; 16508 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 16509 ???[sx]*):;;*)false;;esac;fi 16510 '\'' sh 16511 ' 16512fi 16513as_executable_p=$as_test_x 16514 16515# Sed expression to map a string onto a valid CPP name. 16516as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16517 16518# Sed expression to map a string onto a valid variable name. 16519as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16520 16521 16522exec 6>&1 16523## ----------------------------------- ## 16524## Main body of $CONFIG_STATUS script. ## 16525## ----------------------------------- ## 16526_ASEOF 16527test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16528 16529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16530# Save the log message, to keep $0 and so on meaningful, and to 16531# report actual input values of CONFIG_FILES etc. instead of their 16532# values after options handling. 16533ac_log=" 16534This file was extended by bfd $as_me 2.25.51, which was 16535generated by GNU Autoconf 2.64. Invocation command line was 16536 16537 CONFIG_FILES = $CONFIG_FILES 16538 CONFIG_HEADERS = $CONFIG_HEADERS 16539 CONFIG_LINKS = $CONFIG_LINKS 16540 CONFIG_COMMANDS = $CONFIG_COMMANDS 16541 $ $0 $@ 16542 16543on `(hostname || uname -n) 2>/dev/null | sed 1q` 16544" 16545 16546_ACEOF 16547 16548case $ac_config_files in *" 16549"*) set x $ac_config_files; shift; ac_config_files=$*;; 16550esac 16551 16552case $ac_config_headers in *" 16553"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16554esac 16555 16556 16557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16558# Files that config.status was made for. 16559config_files="$ac_config_files" 16560config_headers="$ac_config_headers" 16561config_commands="$ac_config_commands" 16562 16563_ACEOF 16564 16565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16566ac_cs_usage="\ 16567\`$as_me' instantiates files and other configuration actions 16568from templates according to the current configuration. Unless the files 16569and actions are specified as TAGs, all are instantiated by default. 16570 16571Usage: $0 [OPTION]... [TAG]... 16572 16573 -h, --help print this help, then exit 16574 -V, --version print version number and configuration settings, then exit 16575 -q, --quiet, --silent 16576 do not print progress messages 16577 -d, --debug don't remove temporary files 16578 --recheck update $as_me by reconfiguring in the same conditions 16579 --file=FILE[:TEMPLATE] 16580 instantiate the configuration file FILE 16581 --header=FILE[:TEMPLATE] 16582 instantiate the configuration header FILE 16583 16584Configuration files: 16585$config_files 16586 16587Configuration headers: 16588$config_headers 16589 16590Configuration commands: 16591$config_commands 16592 16593Report bugs to the package provider." 16594 16595_ACEOF 16596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16597ac_cs_version="\\ 16598bfd config.status 2.25.51 16599configured by $0, generated by GNU Autoconf 2.64, 16600 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 16601 16602Copyright (C) 2009 Free Software Foundation, Inc. 16603This config.status script is free software; the Free Software Foundation 16604gives unlimited permission to copy, distribute and modify it." 16605 16606ac_pwd='$ac_pwd' 16607srcdir='$srcdir' 16608INSTALL='$INSTALL' 16609MKDIR_P='$MKDIR_P' 16610AWK='$AWK' 16611test -n "\$AWK" || AWK=awk 16612_ACEOF 16613 16614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16615# The default lists apply if the user does not specify any file. 16616ac_need_defaults=: 16617while test $# != 0 16618do 16619 case $1 in 16620 --*=*) 16621 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16622 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16623 ac_shift=: 16624 ;; 16625 *) 16626 ac_option=$1 16627 ac_optarg=$2 16628 ac_shift=shift 16629 ;; 16630 esac 16631 16632 case $ac_option in 16633 # Handling of the options. 16634 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16635 ac_cs_recheck=: ;; 16636 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16637 $as_echo "$ac_cs_version"; exit ;; 16638 --debug | --debu | --deb | --de | --d | -d ) 16639 debug=: ;; 16640 --file | --fil | --fi | --f ) 16641 $ac_shift 16642 case $ac_optarg in 16643 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16644 esac 16645 as_fn_append CONFIG_FILES " '$ac_optarg'" 16646 ac_need_defaults=false;; 16647 --header | --heade | --head | --hea ) 16648 $ac_shift 16649 case $ac_optarg in 16650 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16651 esac 16652 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16653 ac_need_defaults=false;; 16654 --he | --h) 16655 # Conflict between --help and --header 16656 as_fn_error "ambiguous option: \`$1' 16657Try \`$0 --help' for more information.";; 16658 --help | --hel | -h ) 16659 $as_echo "$ac_cs_usage"; exit ;; 16660 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16661 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16662 ac_cs_silent=: ;; 16663 16664 # This is an error. 16665 -*) as_fn_error "unrecognized option: \`$1' 16666Try \`$0 --help' for more information." ;; 16667 16668 *) as_fn_append ac_config_targets " $1" 16669 ac_need_defaults=false ;; 16670 16671 esac 16672 shift 16673done 16674 16675ac_configure_extra_args= 16676 16677if $ac_cs_silent; then 16678 exec 6>/dev/null 16679 ac_configure_extra_args="$ac_configure_extra_args --silent" 16680fi 16681 16682_ACEOF 16683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16684if \$ac_cs_recheck; then 16685 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16686 shift 16687 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16688 CONFIG_SHELL='$SHELL' 16689 export CONFIG_SHELL 16690 exec "\$@" 16691fi 16692 16693_ACEOF 16694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16695exec 5>>config.log 16696{ 16697 echo 16698 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16699## Running $as_me. ## 16700_ASBOX 16701 $as_echo "$ac_log" 16702} >&5 16703 16704_ACEOF 16705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16706# 16707# INIT-COMMANDS 16708# 16709AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16710 16711 16712# The HP-UX ksh and POSIX shell print the target directory to stdout 16713# if CDPATH is set. 16714(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16715 16716sed_quote_subst='$sed_quote_subst' 16717double_quote_subst='$double_quote_subst' 16718delay_variable_subst='$delay_variable_subst' 16719enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16720macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16721macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16722enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16723pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16724enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16725SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16726ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16727host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16728host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16729host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16730build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16731build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16732build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16733SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16734Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16735GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16736EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16737FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16738LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16739NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16740LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16741max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16742ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16743exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16744lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16745lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16746lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16747reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16748reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16749OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16750deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16751file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16752AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16753AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16754STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16755RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16756old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16757old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16758old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16759lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16760CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16761CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16762compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16763GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16764lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16765lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16766lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16767lt_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"`' 16768objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16769MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16770lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16771lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16772lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16773lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16774lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16775need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16776DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16777NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16778LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16779OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16780OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16781libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16782shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16783extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16784archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16785enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16786export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16787whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16788compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16789old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16790old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16791archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16792archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16793module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16794module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16795with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16796allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16797no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16798hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16799hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 16800hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16801hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16802hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16803hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16804hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16805hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16806inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16807link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16808fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 16809always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16810export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16811exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16812include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16813prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16814file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16815variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16816need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16817need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16818version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16819runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16820shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16821shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16822libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16823library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16824soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16825install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16826postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16827postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16828finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16829finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16830hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16831sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16832sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16833hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16834enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16835enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16836enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16837old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16838striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16839 16840LTCC='$LTCC' 16841LTCFLAGS='$LTCFLAGS' 16842compiler='$compiler_DEFAULT' 16843 16844# A function that is used when there is no print builtin or printf. 16845func_fallback_echo () 16846{ 16847 eval 'cat <<_LTECHO_EOF 16848\$1 16849_LTECHO_EOF' 16850} 16851 16852# Quote evaled strings. 16853for var in SHELL \ 16854ECHO \ 16855SED \ 16856GREP \ 16857EGREP \ 16858FGREP \ 16859LD \ 16860NM \ 16861LN_S \ 16862lt_SP2NL \ 16863lt_NL2SP \ 16864reload_flag \ 16865OBJDUMP \ 16866deplibs_check_method \ 16867file_magic_cmd \ 16868AR \ 16869AR_FLAGS \ 16870STRIP \ 16871RANLIB \ 16872CC \ 16873CFLAGS \ 16874compiler \ 16875lt_cv_sys_global_symbol_pipe \ 16876lt_cv_sys_global_symbol_to_cdecl \ 16877lt_cv_sys_global_symbol_to_c_name_address \ 16878lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16879lt_prog_compiler_no_builtin_flag \ 16880lt_prog_compiler_wl \ 16881lt_prog_compiler_pic \ 16882lt_prog_compiler_static \ 16883lt_cv_prog_compiler_c_o \ 16884need_locks \ 16885DSYMUTIL \ 16886NMEDIT \ 16887LIPO \ 16888OTOOL \ 16889OTOOL64 \ 16890shrext_cmds \ 16891export_dynamic_flag_spec \ 16892whole_archive_flag_spec \ 16893compiler_needs_object \ 16894with_gnu_ld \ 16895allow_undefined_flag \ 16896no_undefined_flag \ 16897hardcode_libdir_flag_spec \ 16898hardcode_libdir_flag_spec_ld \ 16899hardcode_libdir_separator \ 16900fix_srcfile_path \ 16901exclude_expsyms \ 16902include_expsyms \ 16903file_list_spec \ 16904variables_saved_for_relink \ 16905libname_spec \ 16906library_names_spec \ 16907soname_spec \ 16908install_override_mode \ 16909finish_eval \ 16910old_striplib \ 16911striplib; do 16912 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16913 *[\\\\\\\`\\"\\\$]*) 16914 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16915 ;; 16916 *) 16917 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16918 ;; 16919 esac 16920done 16921 16922# Double-quote double-evaled strings. 16923for var in reload_cmds \ 16924old_postinstall_cmds \ 16925old_postuninstall_cmds \ 16926old_archive_cmds \ 16927extract_expsyms_cmds \ 16928old_archive_from_new_cmds \ 16929old_archive_from_expsyms_cmds \ 16930archive_cmds \ 16931archive_expsym_cmds \ 16932module_cmds \ 16933module_expsym_cmds \ 16934export_symbols_cmds \ 16935prelink_cmds \ 16936postinstall_cmds \ 16937postuninstall_cmds \ 16938finish_cmds \ 16939sys_lib_search_path_spec \ 16940sys_lib_dlsearch_path_spec; do 16941 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16942 *[\\\\\\\`\\"\\\$]*) 16943 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16944 ;; 16945 *) 16946 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16947 ;; 16948 esac 16949done 16950 16951ac_aux_dir='$ac_aux_dir' 16952xsi_shell='$xsi_shell' 16953lt_shell_append='$lt_shell_append' 16954 16955# See if we are running on zsh, and set the options which allow our 16956# commands through without removal of \ escapes INIT. 16957if test -n "\${ZSH_VERSION+set}" ; then 16958 setopt NO_GLOB_SUBST 16959fi 16960 16961 16962 PACKAGE='$PACKAGE' 16963 VERSION='$VERSION' 16964 TIMESTAMP='$TIMESTAMP' 16965 RM='$RM' 16966 ofile='$ofile' 16967 16968 16969 16970# Capture the value of obsolete ALL_LINGUAS because we need it to compute 16971 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 16972 # from automake. 16973 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 16974 # Capture the value of LINGUAS because we need it to compute CATALOGS. 16975 LINGUAS="${LINGUAS-%UNSET%}" 16976 16977 16978GCC="$GCC" 16979CC="$CC" 16980acx_cv_header_stdint="$acx_cv_header_stdint" 16981acx_cv_type_int8_t="$acx_cv_type_int8_t" 16982acx_cv_type_int16_t="$acx_cv_type_int16_t" 16983acx_cv_type_int32_t="$acx_cv_type_int32_t" 16984acx_cv_type_int64_t="$acx_cv_type_int64_t" 16985acx_cv_type_intptr_t="$acx_cv_type_intptr_t" 16986ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" 16987ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" 16988ac_cv_type_uint64_t="$ac_cv_type_uint64_t" 16989ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" 16990ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" 16991ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" 16992ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" 16993ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" 16994 16995 16996 16997_ACEOF 16998 16999cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17000 17001# Handling of arguments. 17002for ac_config_target in $ac_config_targets 17003do 17004 case $ac_config_target in 17005 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17006 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17007 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 17008 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 17009 "bfd_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;; 17010 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17011 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 17012 "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;; 17013 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; 17014 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 17015 17016 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17017 esac 17018done 17019 17020 17021# If the user did not use the arguments to specify the items to instantiate, 17022# then the envvar interface is used. Set only those that are not. 17023# We use the long form for the default assignment because of an extremely 17024# bizarre bug on SunOS 4.1.3. 17025if $ac_need_defaults; then 17026 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17027 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17028 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17029fi 17030 17031# Have a temporary directory for convenience. Make it in the build tree 17032# simply because there is no reason against having it here, and in addition, 17033# creating and moving files from /tmp can sometimes cause problems. 17034# Hook for its removal unless debugging. 17035# Note that there is a small window in which the directory will not be cleaned: 17036# after its creation but before its name has been assigned to `$tmp'. 17037$debug || 17038{ 17039 tmp= 17040 trap 'exit_status=$? 17041 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 17042' 0 17043 trap 'as_fn_exit 1' 1 2 13 15 17044} 17045# Create a (secure) tmp directory for tmp files. 17046 17047{ 17048 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17049 test -n "$tmp" && test -d "$tmp" 17050} || 17051{ 17052 tmp=./conf$$-$RANDOM 17053 (umask 077 && mkdir "$tmp") 17054} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 17055 17056# Set up the scripts for CONFIG_FILES section. 17057# No need to generate them if there are no CONFIG_FILES. 17058# This happens for instance with `./config.status config.h'. 17059if test -n "$CONFIG_FILES"; then 17060 17061 17062ac_cr=`echo X | tr X '\015'` 17063# On cygwin, bash can eat \r inside `` if the user requested igncr. 17064# But we know of no other shell where ac_cr would be empty at this 17065# point, so we can use a bashism as a fallback. 17066if test "x$ac_cr" = x; then 17067 eval ac_cr=\$\'\\r\' 17068fi 17069ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17070if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17071 ac_cs_awk_cr='\r' 17072else 17073 ac_cs_awk_cr=$ac_cr 17074fi 17075 17076echo 'BEGIN {' >"$tmp/subs1.awk" && 17077_ACEOF 17078 17079 17080{ 17081 echo "cat >conf$$subs.awk <<_ACEOF" && 17082 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17083 echo "_ACEOF" 17084} >conf$$subs.sh || 17085 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 17086ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 17087ac_delim='%!_!# ' 17088for ac_last_try in false false false false false :; do 17089 . ./conf$$subs.sh || 17090 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 17091 17092 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17093 if test $ac_delim_n = $ac_delim_num; then 17094 break 17095 elif $ac_last_try; then 17096 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 17097 else 17098 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17099 fi 17100done 17101rm -f conf$$subs.sh 17102 17103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17104cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 17105_ACEOF 17106sed -n ' 17107h 17108s/^/S["/; s/!.*/"]=/ 17109p 17110g 17111s/^[^!]*!// 17112:repl 17113t repl 17114s/'"$ac_delim"'$// 17115t delim 17116:nl 17117h 17118s/\(.\{148\}\).*/\1/ 17119t more1 17120s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17121p 17122n 17123b repl 17124:more1 17125s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17126p 17127g 17128s/.\{148\}// 17129t nl 17130:delim 17131h 17132s/\(.\{148\}\).*/\1/ 17133t more2 17134s/["\\]/\\&/g; s/^/"/; s/$/"/ 17135p 17136b 17137:more2 17138s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17139p 17140g 17141s/.\{148\}// 17142t delim 17143' <conf$$subs.awk | sed ' 17144/^[^""]/{ 17145 N 17146 s/\n// 17147} 17148' >>$CONFIG_STATUS || ac_write_fail=1 17149rm -f conf$$subs.awk 17150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17151_ACAWK 17152cat >>"\$tmp/subs1.awk" <<_ACAWK && 17153 for (key in S) S_is_set[key] = 1 17154 FS = "" 17155 17156} 17157{ 17158 line = $ 0 17159 nfields = split(line, field, "@") 17160 substed = 0 17161 len = length(field[1]) 17162 for (i = 2; i < nfields; i++) { 17163 key = field[i] 17164 keylen = length(key) 17165 if (S_is_set[key]) { 17166 value = S[key] 17167 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17168 len += length(value) + length(field[++i]) 17169 substed = 1 17170 } else 17171 len += 1 + keylen 17172 } 17173 17174 print line 17175} 17176 17177_ACAWK 17178_ACEOF 17179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17180if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17181 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17182else 17183 cat 17184fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 17185 || as_fn_error "could not setup config files machinery" "$LINENO" 5 17186_ACEOF 17187 17188# VPATH may cause trouble with some makes, so we remove $(srcdir), 17189# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 17190# trailing colons and then remove the whole line if VPATH becomes empty 17191# (actually we leave an empty line to preserve line numbers). 17192if test "x$srcdir" = x.; then 17193 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 17194s/:*\$(srcdir):*/:/ 17195s/:*\${srcdir}:*/:/ 17196s/:*@srcdir@:*/:/ 17197s/^\([^=]*=[ ]*\):*/\1/ 17198s/:*$// 17199s/^[^=]*=[ ]*$// 17200}' 17201fi 17202 17203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17204fi # test -n "$CONFIG_FILES" 17205 17206# Set up the scripts for CONFIG_HEADERS section. 17207# No need to generate them if there are no CONFIG_HEADERS. 17208# This happens for instance with `./config.status Makefile'. 17209if test -n "$CONFIG_HEADERS"; then 17210cat >"$tmp/defines.awk" <<\_ACAWK || 17211BEGIN { 17212_ACEOF 17213 17214# Transform confdefs.h into an awk script `defines.awk', embedded as 17215# here-document in config.status, that substitutes the proper values into 17216# config.h.in to produce config.h. 17217 17218# Create a delimiter string that does not exist in confdefs.h, to ease 17219# handling of long lines. 17220ac_delim='%!_!# ' 17221for ac_last_try in false false :; do 17222 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 17223 if test -z "$ac_t"; then 17224 break 17225 elif $ac_last_try; then 17226 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 17227 else 17228 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17229 fi 17230done 17231 17232# For the awk script, D is an array of macro values keyed by name, 17233# likewise P contains macro parameters if any. Preserve backslash 17234# newline sequences. 17235 17236ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17237sed -n ' 17238s/.\{148\}/&'"$ac_delim"'/g 17239t rset 17240:rset 17241s/^[ ]*#[ ]*define[ ][ ]*/ / 17242t def 17243d 17244:def 17245s/\\$// 17246t bsnl 17247s/["\\]/\\&/g 17248s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17249D["\1"]=" \3"/p 17250s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17251d 17252:bsnl 17253s/["\\]/\\&/g 17254s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17255D["\1"]=" \3\\\\\\n"\\/p 17256t cont 17257s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17258t cont 17259d 17260:cont 17261n 17262s/.\{148\}/&'"$ac_delim"'/g 17263t clear 17264:clear 17265s/\\$// 17266t bsnlc 17267s/["\\]/\\&/g; s/^/"/; s/$/"/p 17268d 17269:bsnlc 17270s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17271b cont 17272' <confdefs.h | sed ' 17273s/'"$ac_delim"'/"\\\ 17274"/g' >>$CONFIG_STATUS || ac_write_fail=1 17275 17276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17277 for (key in D) D_is_set[key] = 1 17278 FS = "" 17279} 17280/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17281 line = \$ 0 17282 split(line, arg, " ") 17283 if (arg[1] == "#") { 17284 defundef = arg[2] 17285 mac1 = arg[3] 17286 } else { 17287 defundef = substr(arg[1], 2) 17288 mac1 = arg[2] 17289 } 17290 split(mac1, mac2, "(") #) 17291 macro = mac2[1] 17292 prefix = substr(line, 1, index(line, defundef) - 1) 17293 if (D_is_set[macro]) { 17294 # Preserve the white space surrounding the "#". 17295 print prefix "define", macro P[macro] D[macro] 17296 next 17297 } else { 17298 # Replace #undef with comments. This is necessary, for example, 17299 # in the case of _POSIX_SOURCE, which is predefined and required 17300 # on some systems where configure will not decide to define it. 17301 if (defundef == "undef") { 17302 print "/*", prefix defundef, macro, "*/" 17303 next 17304 } 17305 } 17306} 17307{ print } 17308_ACAWK 17309_ACEOF 17310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17311 as_fn_error "could not setup config headers machinery" "$LINENO" 5 17312fi # test -n "$CONFIG_HEADERS" 17313 17314 17315eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17316shift 17317for ac_tag 17318do 17319 case $ac_tag in 17320 :[FHLC]) ac_mode=$ac_tag; continue;; 17321 esac 17322 case $ac_mode$ac_tag in 17323 :[FHL]*:*);; 17324 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 17325 :[FH]-) ac_tag=-:-;; 17326 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17327 esac 17328 ac_save_IFS=$IFS 17329 IFS=: 17330 set x $ac_tag 17331 IFS=$ac_save_IFS 17332 shift 17333 ac_file=$1 17334 shift 17335 17336 case $ac_mode in 17337 :L) ac_source=$1;; 17338 :[FH]) 17339 ac_file_inputs= 17340 for ac_f 17341 do 17342 case $ac_f in 17343 -) ac_f="$tmp/stdin";; 17344 *) # Look for the file first in the build tree, then in the source tree 17345 # (if the path is not absolute). The absolute path cannot be DOS-style, 17346 # because $ac_f cannot contain `:'. 17347 test -f "$ac_f" || 17348 case $ac_f in 17349 [\\/$]*) false;; 17350 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17351 esac || 17352 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17353 esac 17354 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17355 as_fn_append ac_file_inputs " '$ac_f'" 17356 done 17357 17358 # Let's still pretend it is `configure' which instantiates (i.e., don't 17359 # use $as_me), people would be surprised to read: 17360 # /* config.h. Generated by config.status. */ 17361 configure_input='Generated from '` 17362 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17363 `' by configure.' 17364 if test x"$ac_file" != x-; then 17365 configure_input="$ac_file. $configure_input" 17366 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17367$as_echo "$as_me: creating $ac_file" >&6;} 17368 fi 17369 # Neutralize special characters interpreted by sed in replacement strings. 17370 case $configure_input in #( 17371 *\&* | *\|* | *\\* ) 17372 ac_sed_conf_input=`$as_echo "$configure_input" | 17373 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17374 *) ac_sed_conf_input=$configure_input;; 17375 esac 17376 17377 case $ac_tag in 17378 *:-:* | *:-) cat >"$tmp/stdin" \ 17379 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 17380 esac 17381 ;; 17382 esac 17383 17384 ac_dir=`$as_dirname -- "$ac_file" || 17385$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17386 X"$ac_file" : 'X\(//\)[^/]' \| \ 17387 X"$ac_file" : 'X\(//\)$' \| \ 17388 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17389$as_echo X"$ac_file" | 17390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17391 s//\1/ 17392 q 17393 } 17394 /^X\(\/\/\)[^/].*/{ 17395 s//\1/ 17396 q 17397 } 17398 /^X\(\/\/\)$/{ 17399 s//\1/ 17400 q 17401 } 17402 /^X\(\/\).*/{ 17403 s//\1/ 17404 q 17405 } 17406 s/.*/./; q'` 17407 as_dir="$ac_dir"; as_fn_mkdir_p 17408 ac_builddir=. 17409 17410case "$ac_dir" in 17411.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17412*) 17413 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17414 # A ".." for each directory in $ac_dir_suffix. 17415 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17416 case $ac_top_builddir_sub in 17417 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17418 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17419 esac ;; 17420esac 17421ac_abs_top_builddir=$ac_pwd 17422ac_abs_builddir=$ac_pwd$ac_dir_suffix 17423# for backward compatibility: 17424ac_top_builddir=$ac_top_build_prefix 17425 17426case $srcdir in 17427 .) # We are building in place. 17428 ac_srcdir=. 17429 ac_top_srcdir=$ac_top_builddir_sub 17430 ac_abs_top_srcdir=$ac_pwd ;; 17431 [\\/]* | ?:[\\/]* ) # Absolute name. 17432 ac_srcdir=$srcdir$ac_dir_suffix; 17433 ac_top_srcdir=$srcdir 17434 ac_abs_top_srcdir=$srcdir ;; 17435 *) # Relative name. 17436 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17437 ac_top_srcdir=$ac_top_build_prefix$srcdir 17438 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17439esac 17440ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17441 17442 17443 case $ac_mode in 17444 :F) 17445 # 17446 # CONFIG_FILE 17447 # 17448 17449 case $INSTALL in 17450 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17451 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17452 esac 17453 ac_MKDIR_P=$MKDIR_P 17454 case $MKDIR_P in 17455 [\\/$]* | ?:[\\/]* ) ;; 17456 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17457 esac 17458_ACEOF 17459 17460cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17461# If the template does not know about datarootdir, expand it. 17462# FIXME: This hack should be removed a few years after 2.60. 17463ac_datarootdir_hack=; ac_datarootdir_seen= 17464ac_sed_dataroot=' 17465/datarootdir/ { 17466 p 17467 q 17468} 17469/@datadir@/p 17470/@docdir@/p 17471/@infodir@/p 17472/@localedir@/p 17473/@mandir@/p' 17474case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17475*datarootdir*) ac_datarootdir_seen=yes;; 17476*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17478$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17479_ACEOF 17480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17481 ac_datarootdir_hack=' 17482 s&@datadir@&$datadir&g 17483 s&@docdir@&$docdir&g 17484 s&@infodir@&$infodir&g 17485 s&@localedir@&$localedir&g 17486 s&@mandir@&$mandir&g 17487 s&\\\${datarootdir}&$datarootdir&g' ;; 17488esac 17489_ACEOF 17490 17491# Neutralize VPATH when `$srcdir' = `.'. 17492# Shell code in configure.ac might set extrasub. 17493# FIXME: do we really want to maintain this feature? 17494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17495ac_sed_extra="$ac_vpsub 17496$extrasub 17497_ACEOF 17498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17499:t 17500/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17501s|@configure_input@|$ac_sed_conf_input|;t t 17502s&@top_builddir@&$ac_top_builddir_sub&;t t 17503s&@top_build_prefix@&$ac_top_build_prefix&;t t 17504s&@srcdir@&$ac_srcdir&;t t 17505s&@abs_srcdir@&$ac_abs_srcdir&;t t 17506s&@top_srcdir@&$ac_top_srcdir&;t t 17507s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17508s&@builddir@&$ac_builddir&;t t 17509s&@abs_builddir@&$ac_abs_builddir&;t t 17510s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17511s&@INSTALL@&$ac_INSTALL&;t t 17512s&@MKDIR_P@&$ac_MKDIR_P&;t t 17513$ac_datarootdir_hack 17514" 17515eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 17516 || as_fn_error "could not create $ac_file" "$LINENO" 5 17517 17518test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17519 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 17520 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 17521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17522which seems to be undefined. Please make sure it is defined." >&5 17523$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17524which seems to be undefined. Please make sure it is defined." >&2;} 17525 17526 rm -f "$tmp/stdin" 17527 case $ac_file in 17528 -) cat "$tmp/out" && rm -f "$tmp/out";; 17529 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 17530 esac \ 17531 || as_fn_error "could not create $ac_file" "$LINENO" 5 17532 ;; 17533 :H) 17534 # 17535 # CONFIG_HEADER 17536 # 17537 if test x"$ac_file" != x-; then 17538 { 17539 $as_echo "/* $configure_input */" \ 17540 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 17541 } >"$tmp/config.h" \ 17542 || as_fn_error "could not create $ac_file" "$LINENO" 5 17543 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 17544 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17545$as_echo "$as_me: $ac_file is unchanged" >&6;} 17546 else 17547 rm -f "$ac_file" 17548 mv "$tmp/config.h" "$ac_file" \ 17549 || as_fn_error "could not create $ac_file" "$LINENO" 5 17550 fi 17551 else 17552 $as_echo "/* $configure_input */" \ 17553 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 17554 || as_fn_error "could not create -" "$LINENO" 5 17555 fi 17556# Compute "$ac_file"'s index in $config_headers. 17557_am_arg="$ac_file" 17558_am_stamp_count=1 17559for _am_header in $config_headers :; do 17560 case $_am_header in 17561 $_am_arg | $_am_arg:* ) 17562 break ;; 17563 * ) 17564 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17565 esac 17566done 17567echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17568$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17569 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17570 X"$_am_arg" : 'X\(//\)$' \| \ 17571 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17572$as_echo X"$_am_arg" | 17573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17574 s//\1/ 17575 q 17576 } 17577 /^X\(\/\/\)[^/].*/{ 17578 s//\1/ 17579 q 17580 } 17581 /^X\(\/\/\)$/{ 17582 s//\1/ 17583 q 17584 } 17585 /^X\(\/\).*/{ 17586 s//\1/ 17587 q 17588 } 17589 s/.*/./; q'`/stamp-h$_am_stamp_count 17590 ;; 17591 17592 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17593$as_echo "$as_me: executing $ac_file commands" >&6;} 17594 ;; 17595 esac 17596 17597 17598 case $ac_file$ac_mode in 17599 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17600 # Autoconf 2.62 quotes --file arguments for eval, but not when files 17601 # are listed without --file. Let's play safe and only enable the eval 17602 # if we detect the quoting. 17603 case $CONFIG_FILES in 17604 *\'*) eval set x "$CONFIG_FILES" ;; 17605 *) set x $CONFIG_FILES ;; 17606 esac 17607 shift 17608 for mf 17609 do 17610 # Strip MF so we end up with the name of the file. 17611 mf=`echo "$mf" | sed -e 's/:.*$//'` 17612 # Check whether this is an Automake generated Makefile or not. 17613 # We used to match only the files named `Makefile.in', but 17614 # some people rename them; so instead we look at the file content. 17615 # Grep'ing the first line is not enough: some people post-process 17616 # each Makefile.in and add a new line on top of each file to say so. 17617 # Grep'ing the whole file is not good either: AIX grep has a line 17618 # limit of 2048, but all sed's we know have understand at least 4000. 17619 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17620 dirpart=`$as_dirname -- "$mf" || 17621$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17622 X"$mf" : 'X\(//\)[^/]' \| \ 17623 X"$mf" : 'X\(//\)$' \| \ 17624 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17625$as_echo X"$mf" | 17626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17627 s//\1/ 17628 q 17629 } 17630 /^X\(\/\/\)[^/].*/{ 17631 s//\1/ 17632 q 17633 } 17634 /^X\(\/\/\)$/{ 17635 s//\1/ 17636 q 17637 } 17638 /^X\(\/\).*/{ 17639 s//\1/ 17640 q 17641 } 17642 s/.*/./; q'` 17643 else 17644 continue 17645 fi 17646 # Extract the definition of DEPDIR, am__include, and am__quote 17647 # from the Makefile without running `make'. 17648 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17649 test -z "$DEPDIR" && continue 17650 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17651 test -z "am__include" && continue 17652 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17653 # When using ansi2knr, U may be empty or an underscore; expand it 17654 U=`sed -n 's/^U = //p' < "$mf"` 17655 # Find all dependency output files, they are included files with 17656 # $(DEPDIR) in their names. We invoke sed twice because it is the 17657 # simplest approach to changing $(DEPDIR) to its actual value in the 17658 # expansion. 17659 for file in `sed -n " 17660 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17661 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 17662 # Make sure the directory exists. 17663 test -f "$dirpart/$file" && continue 17664 fdir=`$as_dirname -- "$file" || 17665$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17666 X"$file" : 'X\(//\)[^/]' \| \ 17667 X"$file" : 'X\(//\)$' \| \ 17668 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17669$as_echo X"$file" | 17670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17671 s//\1/ 17672 q 17673 } 17674 /^X\(\/\/\)[^/].*/{ 17675 s//\1/ 17676 q 17677 } 17678 /^X\(\/\/\)$/{ 17679 s//\1/ 17680 q 17681 } 17682 /^X\(\/\).*/{ 17683 s//\1/ 17684 q 17685 } 17686 s/.*/./; q'` 17687 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17688 # echo "creating $dirpart/$file" 17689 echo '# dummy' > "$dirpart/$file" 17690 done 17691 done 17692} 17693 ;; 17694 "libtool":C) 17695 17696 # See if we are running on zsh, and set the options which allow our 17697 # commands through without removal of \ escapes. 17698 if test -n "${ZSH_VERSION+set}" ; then 17699 setopt NO_GLOB_SUBST 17700 fi 17701 17702 cfgfile="${ofile}T" 17703 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17704 $RM "$cfgfile" 17705 17706 cat <<_LT_EOF >> "$cfgfile" 17707#! $SHELL 17708 17709# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17710# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17711# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17712# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17713# 17714# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17715# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 17716# Written by Gordon Matzigkeit, 1996 17717# 17718# This file is part of GNU Libtool. 17719# 17720# GNU Libtool is free software; you can redistribute it and/or 17721# modify it under the terms of the GNU General Public License as 17722# published by the Free Software Foundation; either version 2 of 17723# the License, or (at your option) any later version. 17724# 17725# As a special exception to the GNU General Public License, 17726# if you distribute this file as part of a program or library that 17727# is built using GNU Libtool, you may include this file under the 17728# same distribution terms that you use for the rest of that program. 17729# 17730# GNU Libtool is distributed in the hope that it will be useful, 17731# but WITHOUT ANY WARRANTY; without even the implied warranty of 17732# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17733# GNU General Public License for more details. 17734# 17735# You should have received a copy of the GNU General Public License 17736# along with GNU Libtool; see the file COPYING. If not, a copy 17737# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17738# obtained by writing to the Free Software Foundation, Inc., 17739# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17740 17741 17742# The names of the tagged configurations supported by this script. 17743available_tags="" 17744 17745# ### BEGIN LIBTOOL CONFIG 17746 17747# Whether or not to build shared libraries. 17748build_libtool_libs=$enable_shared 17749 17750# Which release of libtool.m4 was used? 17751macro_version=$macro_version 17752macro_revision=$macro_revision 17753 17754# Whether or not to build static libraries. 17755build_old_libs=$enable_static 17756 17757# What type of objects to build. 17758pic_mode=$pic_mode 17759 17760# Whether or not to optimize for fast installation. 17761fast_install=$enable_fast_install 17762 17763# Shell to use when invoking shell scripts. 17764SHELL=$lt_SHELL 17765 17766# An echo program that protects backslashes. 17767ECHO=$lt_ECHO 17768 17769# The host system. 17770host_alias=$host_alias 17771host=$host 17772host_os=$host_os 17773 17774# The build system. 17775build_alias=$build_alias 17776build=$build 17777build_os=$build_os 17778 17779# A sed program that does not truncate output. 17780SED=$lt_SED 17781 17782# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17783Xsed="\$SED -e 1s/^X//" 17784 17785# A grep program that handles long lines. 17786GREP=$lt_GREP 17787 17788# An ERE matcher. 17789EGREP=$lt_EGREP 17790 17791# A literal string matcher. 17792FGREP=$lt_FGREP 17793 17794# A BSD- or MS-compatible name lister. 17795NM=$lt_NM 17796 17797# Whether we need soft or hard links. 17798LN_S=$lt_LN_S 17799 17800# What is the maximum length of a command? 17801max_cmd_len=$max_cmd_len 17802 17803# Object file suffix (normally "o"). 17804objext=$ac_objext 17805 17806# Executable file suffix (normally ""). 17807exeext=$exeext 17808 17809# whether the shell understands "unset". 17810lt_unset=$lt_unset 17811 17812# turn spaces into newlines. 17813SP2NL=$lt_lt_SP2NL 17814 17815# turn newlines into spaces. 17816NL2SP=$lt_lt_NL2SP 17817 17818# An object symbol dumper. 17819OBJDUMP=$lt_OBJDUMP 17820 17821# Method to check whether dependent libraries are shared objects. 17822deplibs_check_method=$lt_deplibs_check_method 17823 17824# Command to use when deplibs_check_method == "file_magic". 17825file_magic_cmd=$lt_file_magic_cmd 17826 17827# The archiver. 17828AR=$lt_AR 17829AR_FLAGS=$lt_AR_FLAGS 17830 17831# A symbol stripping program. 17832STRIP=$lt_STRIP 17833 17834# Commands used to install an old-style archive. 17835RANLIB=$lt_RANLIB 17836old_postinstall_cmds=$lt_old_postinstall_cmds 17837old_postuninstall_cmds=$lt_old_postuninstall_cmds 17838 17839# Whether to use a lock for old archive extraction. 17840lock_old_archive_extraction=$lock_old_archive_extraction 17841 17842# A C compiler. 17843LTCC=$lt_CC 17844 17845# LTCC compiler flags. 17846LTCFLAGS=$lt_CFLAGS 17847 17848# Take the output of nm and produce a listing of raw symbols and C names. 17849global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17850 17851# Transform the output of nm in a proper C declaration. 17852global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17853 17854# Transform the output of nm in a C name address pair. 17855global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17856 17857# Transform the output of nm in a C name address pair when lib prefix is needed. 17858global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17859 17860# The name of the directory that contains temporary libtool files. 17861objdir=$objdir 17862 17863# Used to examine libraries when file_magic_cmd begins with "file". 17864MAGIC_CMD=$MAGIC_CMD 17865 17866# Must we lock files when doing compilation? 17867need_locks=$lt_need_locks 17868 17869# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17870DSYMUTIL=$lt_DSYMUTIL 17871 17872# Tool to change global to local symbols on Mac OS X. 17873NMEDIT=$lt_NMEDIT 17874 17875# Tool to manipulate fat objects and archives on Mac OS X. 17876LIPO=$lt_LIPO 17877 17878# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17879OTOOL=$lt_OTOOL 17880 17881# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17882OTOOL64=$lt_OTOOL64 17883 17884# Old archive suffix (normally "a"). 17885libext=$libext 17886 17887# Shared library suffix (normally ".so"). 17888shrext_cmds=$lt_shrext_cmds 17889 17890# The commands to extract the exported symbol list from a shared archive. 17891extract_expsyms_cmds=$lt_extract_expsyms_cmds 17892 17893# Variables whose values should be saved in libtool wrapper scripts and 17894# restored at link time. 17895variables_saved_for_relink=$lt_variables_saved_for_relink 17896 17897# Do we need the "lib" prefix for modules? 17898need_lib_prefix=$need_lib_prefix 17899 17900# Do we need a version for libraries? 17901need_version=$need_version 17902 17903# Library versioning type. 17904version_type=$version_type 17905 17906# Shared library runtime path variable. 17907runpath_var=$runpath_var 17908 17909# Shared library path variable. 17910shlibpath_var=$shlibpath_var 17911 17912# Is shlibpath searched before the hard-coded library search path? 17913shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17914 17915# Format of library name prefix. 17916libname_spec=$lt_libname_spec 17917 17918# List of archive names. First name is the real one, the rest are links. 17919# The last name is the one that the linker finds with -lNAME 17920library_names_spec=$lt_library_names_spec 17921 17922# The coded name of the library, if different from the real name. 17923soname_spec=$lt_soname_spec 17924 17925# Permission mode override for installation of shared libraries. 17926install_override_mode=$lt_install_override_mode 17927 17928# Command to use after installation of a shared archive. 17929postinstall_cmds=$lt_postinstall_cmds 17930 17931# Command to use after uninstallation of a shared archive. 17932postuninstall_cmds=$lt_postuninstall_cmds 17933 17934# Commands used to finish a libtool library installation in a directory. 17935finish_cmds=$lt_finish_cmds 17936 17937# As "finish_cmds", except a single script fragment to be evaled but 17938# not shown. 17939finish_eval=$lt_finish_eval 17940 17941# Whether we should hardcode library paths into libraries. 17942hardcode_into_libs=$hardcode_into_libs 17943 17944# Compile-time system search path for libraries. 17945sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17946 17947# Run-time system search path for libraries. 17948sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17949 17950# Whether dlopen is supported. 17951dlopen_support=$enable_dlopen 17952 17953# Whether dlopen of programs is supported. 17954dlopen_self=$enable_dlopen_self 17955 17956# Whether dlopen of statically linked programs is supported. 17957dlopen_self_static=$enable_dlopen_self_static 17958 17959# Commands to strip libraries. 17960old_striplib=$lt_old_striplib 17961striplib=$lt_striplib 17962 17963 17964# The linker used to build libraries. 17965LD=$lt_LD 17966 17967# How to create reloadable object files. 17968reload_flag=$lt_reload_flag 17969reload_cmds=$lt_reload_cmds 17970 17971# Commands used to build an old-style archive. 17972old_archive_cmds=$lt_old_archive_cmds 17973 17974# A language specific compiler. 17975CC=$lt_compiler 17976 17977# Is the compiler the GNU compiler? 17978with_gcc=$GCC 17979 17980# Compiler flag to turn off builtin functions. 17981no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17982 17983# How to pass a linker flag through the compiler. 17984wl=$lt_lt_prog_compiler_wl 17985 17986# Additional compiler flags for building library objects. 17987pic_flag=$lt_lt_prog_compiler_pic 17988 17989# Compiler flag to prevent dynamic linking. 17990link_static_flag=$lt_lt_prog_compiler_static 17991 17992# Does compiler simultaneously support -c and -o options? 17993compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17994 17995# Whether or not to add -lc for building shared libraries. 17996build_libtool_need_lc=$archive_cmds_need_lc 17997 17998# Whether or not to disallow shared libs when runtime libs are static. 17999allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18000 18001# Compiler flag to allow reflexive dlopens. 18002export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18003 18004# Compiler flag to generate shared objects directly from archives. 18005whole_archive_flag_spec=$lt_whole_archive_flag_spec 18006 18007# Whether the compiler copes with passing no objects directly. 18008compiler_needs_object=$lt_compiler_needs_object 18009 18010# Create an old-style archive from a shared archive. 18011old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18012 18013# Create a temporary old-style archive to link instead of a shared archive. 18014old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18015 18016# Commands used to build a shared archive. 18017archive_cmds=$lt_archive_cmds 18018archive_expsym_cmds=$lt_archive_expsym_cmds 18019 18020# Commands used to build a loadable module if different from building 18021# a shared archive. 18022module_cmds=$lt_module_cmds 18023module_expsym_cmds=$lt_module_expsym_cmds 18024 18025# Whether we are building with GNU ld or not. 18026with_gnu_ld=$lt_with_gnu_ld 18027 18028# Flag that allows shared libraries with undefined symbols to be built. 18029allow_undefined_flag=$lt_allow_undefined_flag 18030 18031# Flag that enforces no undefined symbols. 18032no_undefined_flag=$lt_no_undefined_flag 18033 18034# Flag to hardcode \$libdir into a binary during linking. 18035# This must work even if \$libdir does not exist 18036hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18037 18038# If ld is used when linking, flag to hardcode \$libdir into a binary 18039# during linking. This must work even if \$libdir does not exist. 18040hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 18041 18042# Whether we need a single "-rpath" flag with a separated argument. 18043hardcode_libdir_separator=$lt_hardcode_libdir_separator 18044 18045# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18046# DIR into the resulting binary. 18047hardcode_direct=$hardcode_direct 18048 18049# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18050# DIR into the resulting binary and the resulting library dependency is 18051# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18052# library is relocated. 18053hardcode_direct_absolute=$hardcode_direct_absolute 18054 18055# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18056# into the resulting binary. 18057hardcode_minus_L=$hardcode_minus_L 18058 18059# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18060# into the resulting binary. 18061hardcode_shlibpath_var=$hardcode_shlibpath_var 18062 18063# Set to "yes" if building a shared library automatically hardcodes DIR 18064# into the library and all subsequent libraries and executables linked 18065# against it. 18066hardcode_automatic=$hardcode_automatic 18067 18068# Set to yes if linker adds runtime paths of dependent libraries 18069# to runtime path list. 18070inherit_rpath=$inherit_rpath 18071 18072# Whether libtool must link a program against all its dependency libraries. 18073link_all_deplibs=$link_all_deplibs 18074 18075# Fix the shell variable \$srcfile for the compiler. 18076fix_srcfile_path=$lt_fix_srcfile_path 18077 18078# Set to "yes" if exported symbols are required. 18079always_export_symbols=$always_export_symbols 18080 18081# The commands to list exported symbols. 18082export_symbols_cmds=$lt_export_symbols_cmds 18083 18084# Symbols that should not be listed in the preloaded symbols. 18085exclude_expsyms=$lt_exclude_expsyms 18086 18087# Symbols that must always be exported. 18088include_expsyms=$lt_include_expsyms 18089 18090# Commands necessary for linking programs (against libraries) with templates. 18091prelink_cmds=$lt_prelink_cmds 18092 18093# Specify filename containing input files. 18094file_list_spec=$lt_file_list_spec 18095 18096# How to hardcode a shared library path into an executable. 18097hardcode_action=$hardcode_action 18098 18099# ### END LIBTOOL CONFIG 18100 18101_LT_EOF 18102 18103 case $host_os in 18104 aix3*) 18105 cat <<\_LT_EOF >> "$cfgfile" 18106# AIX sometimes has problems with the GCC collect2 program. For some 18107# reason, if we set the COLLECT_NAMES environment variable, the problems 18108# vanish in a puff of smoke. 18109if test "X${COLLECT_NAMES+set}" != Xset; then 18110 COLLECT_NAMES= 18111 export COLLECT_NAMES 18112fi 18113_LT_EOF 18114 ;; 18115 esac 18116 18117 18118ltmain="$ac_aux_dir/ltmain.sh" 18119 18120 18121 # We use sed instead of cat because bash on DJGPP gets confused if 18122 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18123 # text mode, it properly converts lines to CR/LF. This bash problem 18124 # is reportedly fixed, but why not run on old versions too? 18125 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 18126 || (rm -f "$cfgfile"; exit 1) 18127 18128 case $xsi_shell in 18129 yes) 18130 cat << \_LT_EOF >> "$cfgfile" 18131 18132# func_dirname file append nondir_replacement 18133# Compute the dirname of FILE. If nonempty, add APPEND to the result, 18134# otherwise set result to NONDIR_REPLACEMENT. 18135func_dirname () 18136{ 18137 case ${1} in 18138 */*) func_dirname_result="${1%/*}${2}" ;; 18139 * ) func_dirname_result="${3}" ;; 18140 esac 18141} 18142 18143# func_basename file 18144func_basename () 18145{ 18146 func_basename_result="${1##*/}" 18147} 18148 18149# func_dirname_and_basename file append nondir_replacement 18150# perform func_basename and func_dirname in a single function 18151# call: 18152# dirname: Compute the dirname of FILE. If nonempty, 18153# add APPEND to the result, otherwise set result 18154# to NONDIR_REPLACEMENT. 18155# value returned in "$func_dirname_result" 18156# basename: Compute filename of FILE. 18157# value retuned in "$func_basename_result" 18158# Implementation must be kept synchronized with func_dirname 18159# and func_basename. For efficiency, we do not delegate to 18160# those functions but instead duplicate the functionality here. 18161func_dirname_and_basename () 18162{ 18163 case ${1} in 18164 */*) func_dirname_result="${1%/*}${2}" ;; 18165 * ) func_dirname_result="${3}" ;; 18166 esac 18167 func_basename_result="${1##*/}" 18168} 18169 18170# func_stripname prefix suffix name 18171# strip PREFIX and SUFFIX off of NAME. 18172# PREFIX and SUFFIX must not contain globbing or regex special 18173# characters, hashes, percent signs, but SUFFIX may contain a leading 18174# dot (in which case that matches only a dot). 18175func_stripname () 18176{ 18177 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 18178 # positional parameters, so assign one to ordinary parameter first. 18179 func_stripname_result=${3} 18180 func_stripname_result=${func_stripname_result#"${1}"} 18181 func_stripname_result=${func_stripname_result%"${2}"} 18182} 18183 18184# func_opt_split 18185func_opt_split () 18186{ 18187 func_opt_split_opt=${1%%=*} 18188 func_opt_split_arg=${1#*=} 18189} 18190 18191# func_lo2o object 18192func_lo2o () 18193{ 18194 case ${1} in 18195 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 18196 *) func_lo2o_result=${1} ;; 18197 esac 18198} 18199 18200# func_xform libobj-or-source 18201func_xform () 18202{ 18203 func_xform_result=${1%.*}.lo 18204} 18205 18206# func_arith arithmetic-term... 18207func_arith () 18208{ 18209 func_arith_result=$(( $* )) 18210} 18211 18212# func_len string 18213# STRING may not start with a hyphen. 18214func_len () 18215{ 18216 func_len_result=${#1} 18217} 18218 18219_LT_EOF 18220 ;; 18221 *) # Bourne compatible functions. 18222 cat << \_LT_EOF >> "$cfgfile" 18223 18224# func_dirname file append nondir_replacement 18225# Compute the dirname of FILE. If nonempty, add APPEND to the result, 18226# otherwise set result to NONDIR_REPLACEMENT. 18227func_dirname () 18228{ 18229 # Extract subdirectory from the argument. 18230 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 18231 if test "X$func_dirname_result" = "X${1}"; then 18232 func_dirname_result="${3}" 18233 else 18234 func_dirname_result="$func_dirname_result${2}" 18235 fi 18236} 18237 18238# func_basename file 18239func_basename () 18240{ 18241 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 18242} 18243 18244 18245# func_stripname prefix suffix name 18246# strip PREFIX and SUFFIX off of NAME. 18247# PREFIX and SUFFIX must not contain globbing or regex special 18248# characters, hashes, percent signs, but SUFFIX may contain a leading 18249# dot (in which case that matches only a dot). 18250# func_strip_suffix prefix name 18251func_stripname () 18252{ 18253 case ${2} in 18254 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 18255 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 18256 esac 18257} 18258 18259# sed scripts: 18260my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 18261my_sed_long_arg='1s/^-[^=]*=//' 18262 18263# func_opt_split 18264func_opt_split () 18265{ 18266 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 18267 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 18268} 18269 18270# func_lo2o object 18271func_lo2o () 18272{ 18273 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 18274} 18275 18276# func_xform libobj-or-source 18277func_xform () 18278{ 18279 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 18280} 18281 18282# func_arith arithmetic-term... 18283func_arith () 18284{ 18285 func_arith_result=`expr "$@"` 18286} 18287 18288# func_len string 18289# STRING may not start with a hyphen. 18290func_len () 18291{ 18292 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 18293} 18294 18295_LT_EOF 18296esac 18297 18298case $lt_shell_append in 18299 yes) 18300 cat << \_LT_EOF >> "$cfgfile" 18301 18302# func_append var value 18303# Append VALUE to the end of shell variable VAR. 18304func_append () 18305{ 18306 eval "$1+=\$2" 18307} 18308_LT_EOF 18309 ;; 18310 *) 18311 cat << \_LT_EOF >> "$cfgfile" 18312 18313# func_append var value 18314# Append VALUE to the end of shell variable VAR. 18315func_append () 18316{ 18317 eval "$1=\$$1\$2" 18318} 18319 18320_LT_EOF 18321 ;; 18322 esac 18323 18324 18325 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 18326 || (rm -f "$cfgfile"; exit 1) 18327 18328 mv -f "$cfgfile" "$ofile" || 18329 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18330 chmod +x "$ofile" 18331 18332 ;; 18333 "default-1":C) 18334 for ac_file in $CONFIG_FILES; do 18335 # Support "outfile[:infile[:infile...]]" 18336 case "$ac_file" in 18337 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 18338 esac 18339 # PO directories have a Makefile.in generated from Makefile.in.in. 18340 case "$ac_file" in */Makefile.in) 18341 # Adjust a relative srcdir. 18342 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 18343 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 18344 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 18345 # In autoconf-2.13 it is called $ac_given_srcdir. 18346 # In autoconf-2.50 it is called $srcdir. 18347 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 18348 case "$ac_given_srcdir" in 18349 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 18350 /*) top_srcdir="$ac_given_srcdir" ;; 18351 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 18352 esac 18353 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 18354 rm -f "$ac_dir/POTFILES" 18355 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 18356 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 18357 POMAKEFILEDEPS="POTFILES.in" 18358 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 18359 # on $ac_dir but don't depend on user-specified configuration 18360 # parameters. 18361 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 18362 # The LINGUAS file contains the set of available languages. 18363 if test -n "$OBSOLETE_ALL_LINGUAS"; then 18364 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 18365 fi 18366 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 18367 # Hide the ALL_LINGUAS assigment from automake. 18368 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 18369 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 18370 else 18371 # The set of available languages was given in configure.in. 18372 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 18373 fi 18374 case "$ac_given_srcdir" in 18375 .) srcdirpre= ;; 18376 *) srcdirpre='$(srcdir)/' ;; 18377 esac 18378 POFILES= 18379 GMOFILES= 18380 UPDATEPOFILES= 18381 DUMMYPOFILES= 18382 for lang in $ALL_LINGUAS; do 18383 POFILES="$POFILES $srcdirpre$lang.po" 18384 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 18385 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 18386 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 18387 done 18388 # CATALOGS depends on both $ac_dir and the user's LINGUAS 18389 # environment variable. 18390 INST_LINGUAS= 18391 if test -n "$ALL_LINGUAS"; then 18392 for presentlang in $ALL_LINGUAS; do 18393 useit=no 18394 if test "%UNSET%" != "$LINGUAS"; then 18395 desiredlanguages="$LINGUAS" 18396 else 18397 desiredlanguages="$ALL_LINGUAS" 18398 fi 18399 for desiredlang in $desiredlanguages; do 18400 # Use the presentlang catalog if desiredlang is 18401 # a. equal to presentlang, or 18402 # b. a variant of presentlang (because in this case, 18403 # presentlang can be used as a fallback for messages 18404 # which are not translated in the desiredlang catalog). 18405 case "$desiredlang" in 18406 "$presentlang"*) useit=yes;; 18407 esac 18408 done 18409 if test $useit = yes; then 18410 INST_LINGUAS="$INST_LINGUAS $presentlang" 18411 fi 18412 done 18413 fi 18414 CATALOGS= 18415 if test -n "$INST_LINGUAS"; then 18416 for lang in $INST_LINGUAS; do 18417 CATALOGS="$CATALOGS $lang.gmo" 18418 done 18419 fi 18420 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 18421 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" 18422 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 18423 if test -f "$f"; then 18424 case "$f" in 18425 *.orig | *.bak | *~) ;; 18426 *) cat "$f" >> "$ac_dir/Makefile" ;; 18427 esac 18428 fi 18429 done 18430 fi 18431 ;; 18432 esac 18433 done ;; 18434 "bfd_stdint.h":C) 18435if test "$GCC" = yes; then 18436 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h 18437else 18438 echo "/* generated for $CC */" > tmp-stdint.h 18439fi 18440 18441sed 's/^ *//' >> tmp-stdint.h <<EOF 18442 18443 #ifndef GCC_GENERATED_STDINT_H 18444 #define GCC_GENERATED_STDINT_H 1 18445 18446 #include <sys/types.h> 18447EOF 18448 18449if test "$acx_cv_header_stdint" != stdint.h; then 18450 echo "#include <stddef.h>" >> tmp-stdint.h 18451fi 18452if test "$acx_cv_header_stdint" != stddef.h; then 18453 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h 18454fi 18455 18456sed 's/^ *//' >> tmp-stdint.h <<EOF 18457 /* glibc uses these symbols as guards to prevent redefinitions. */ 18458 #ifdef __int8_t_defined 18459 #define _INT8_T 18460 #define _INT16_T 18461 #define _INT32_T 18462 #endif 18463 #ifdef __uint32_t_defined 18464 #define _UINT32_T 18465 #endif 18466 18467EOF 18468 18469# ----------------- done header, emit basic int types ------------- 18470if test "$acx_cv_header_stdint" = stddef.h; then 18471 sed 's/^ *//' >> tmp-stdint.h <<EOF 18472 18473 #ifndef _UINT8_T 18474 #define _UINT8_T 18475 #ifndef __uint8_t_defined 18476 #define __uint8_t_defined 18477 #ifndef uint8_t 18478 typedef unsigned $acx_cv_type_int8_t uint8_t; 18479 #endif 18480 #endif 18481 #endif 18482 18483 #ifndef _UINT16_T 18484 #define _UINT16_T 18485 #ifndef __uint16_t_defined 18486 #define __uint16_t_defined 18487 #ifndef uint16_t 18488 typedef unsigned $acx_cv_type_int16_t uint16_t; 18489 #endif 18490 #endif 18491 #endif 18492 18493 #ifndef _UINT32_T 18494 #define _UINT32_T 18495 #ifndef __uint32_t_defined 18496 #define __uint32_t_defined 18497 #ifndef uint32_t 18498 typedef unsigned $acx_cv_type_int32_t uint32_t; 18499 #endif 18500 #endif 18501 #endif 18502 18503 #ifndef _INT8_T 18504 #define _INT8_T 18505 #ifndef __int8_t_defined 18506 #define __int8_t_defined 18507 #ifndef int8_t 18508 typedef $acx_cv_type_int8_t int8_t; 18509 #endif 18510 #endif 18511 #endif 18512 18513 #ifndef _INT16_T 18514 #define _INT16_T 18515 #ifndef __int16_t_defined 18516 #define __int16_t_defined 18517 #ifndef int16_t 18518 typedef $acx_cv_type_int16_t int16_t; 18519 #endif 18520 #endif 18521 #endif 18522 18523 #ifndef _INT32_T 18524 #define _INT32_T 18525 #ifndef __int32_t_defined 18526 #define __int32_t_defined 18527 #ifndef int32_t 18528 typedef $acx_cv_type_int32_t int32_t; 18529 #endif 18530 #endif 18531 #endif 18532EOF 18533elif test "$ac_cv_type_u_int32_t" = yes; then 18534 sed 's/^ *//' >> tmp-stdint.h <<EOF 18535 18536 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ 18537 #ifndef _INT8_T 18538 #define _INT8_T 18539 #endif 18540 #ifndef _INT16_T 18541 #define _INT16_T 18542 #endif 18543 #ifndef _INT32_T 18544 #define _INT32_T 18545 #endif 18546 18547 #ifndef _UINT8_T 18548 #define _UINT8_T 18549 #ifndef __uint8_t_defined 18550 #define __uint8_t_defined 18551 #ifndef uint8_t 18552 typedef u_int8_t uint8_t; 18553 #endif 18554 #endif 18555 #endif 18556 18557 #ifndef _UINT16_T 18558 #define _UINT16_T 18559 #ifndef __uint16_t_defined 18560 #define __uint16_t_defined 18561 #ifndef uint16_t 18562 typedef u_int16_t uint16_t; 18563 #endif 18564 #endif 18565 #endif 18566 18567 #ifndef _UINT32_T 18568 #define _UINT32_T 18569 #ifndef __uint32_t_defined 18570 #define __uint32_t_defined 18571 #ifndef uint32_t 18572 typedef u_int32_t uint32_t; 18573 #endif 18574 #endif 18575 #endif 18576EOF 18577else 18578 sed 's/^ *//' >> tmp-stdint.h <<EOF 18579 18580 /* Some systems have guard macros to prevent redefinitions, define them. */ 18581 #ifndef _INT8_T 18582 #define _INT8_T 18583 #endif 18584 #ifndef _INT16_T 18585 #define _INT16_T 18586 #endif 18587 #ifndef _INT32_T 18588 #define _INT32_T 18589 #endif 18590 #ifndef _UINT8_T 18591 #define _UINT8_T 18592 #endif 18593 #ifndef _UINT16_T 18594 #define _UINT16_T 18595 #endif 18596 #ifndef _UINT32_T 18597 #define _UINT32_T 18598 #endif 18599EOF 18600fi 18601 18602# ------------- done basic int types, emit int64_t types ------------ 18603if test "$ac_cv_type_uint64_t" = yes; then 18604 sed 's/^ *//' >> tmp-stdint.h <<EOF 18605 18606 /* system headers have good uint64_t and int64_t */ 18607 #ifndef _INT64_T 18608 #define _INT64_T 18609 #endif 18610 #ifndef _UINT64_T 18611 #define _UINT64_T 18612 #endif 18613EOF 18614elif test "$ac_cv_type_u_int64_t" = yes; then 18615 sed 's/^ *//' >> tmp-stdint.h <<EOF 18616 18617 /* system headers have an u_int64_t (and int64_t) */ 18618 #ifndef _INT64_T 18619 #define _INT64_T 18620 #endif 18621 #ifndef _UINT64_T 18622 #define _UINT64_T 18623 #ifndef __uint64_t_defined 18624 #define __uint64_t_defined 18625 #ifndef uint64_t 18626 typedef u_int64_t uint64_t; 18627 #endif 18628 #endif 18629 #endif 18630EOF 18631elif test -n "$acx_cv_type_int64_t"; then 18632 sed 's/^ *//' >> tmp-stdint.h <<EOF 18633 18634 /* architecture has a 64-bit type, $acx_cv_type_int64_t */ 18635 #ifndef _INT64_T 18636 #define _INT64_T 18637 #ifndef int64_t 18638 typedef $acx_cv_type_int64_t int64_t; 18639 #endif 18640 #endif 18641 #ifndef _UINT64_T 18642 #define _UINT64_T 18643 #ifndef __uint64_t_defined 18644 #define __uint64_t_defined 18645 #ifndef uint64_t 18646 typedef unsigned $acx_cv_type_int64_t uint64_t; 18647 #endif 18648 #endif 18649 #endif 18650EOF 18651else 18652 sed 's/^ *//' >> tmp-stdint.h <<EOF 18653 18654 /* some common heuristics for int64_t, using compiler-specific tests */ 18655 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L 18656 #ifndef _INT64_T 18657 #define _INT64_T 18658 #ifndef __int64_t_defined 18659 #ifndef int64_t 18660 typedef long long int64_t; 18661 #endif 18662 #endif 18663 #endif 18664 #ifndef _UINT64_T 18665 #define _UINT64_T 18666 #ifndef uint64_t 18667 typedef unsigned long long uint64_t; 18668 #endif 18669 #endif 18670 18671 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 18672 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and 18673 does not implement __extension__. But that compiler doesn't define 18674 __GNUC_MINOR__. */ 18675 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) 18676 # define __extension__ 18677 # endif 18678 18679 # ifndef _INT64_T 18680 # define _INT64_T 18681 # ifndef int64_t 18682 __extension__ typedef long long int64_t; 18683 # endif 18684 # endif 18685 # ifndef _UINT64_T 18686 # define _UINT64_T 18687 # ifndef uint64_t 18688 __extension__ typedef unsigned long long uint64_t; 18689 # endif 18690 # endif 18691 18692 #elif !defined __STRICT_ANSI__ 18693 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ 18694 18695 # ifndef _INT64_T 18696 # define _INT64_T 18697 # ifndef int64_t 18698 typedef __int64 int64_t; 18699 # endif 18700 # endif 18701 # ifndef _UINT64_T 18702 # define _UINT64_T 18703 # ifndef uint64_t 18704 typedef unsigned __int64 uint64_t; 18705 # endif 18706 # endif 18707 # endif /* compiler */ 18708 18709 #endif /* ANSI version */ 18710EOF 18711fi 18712 18713# ------------- done int64_t types, emit intptr types ------------ 18714if test "$ac_cv_type_uintptr_t" != yes; then 18715 sed 's/^ *//' >> tmp-stdint.h <<EOF 18716 18717 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ 18718 #ifndef __uintptr_t_defined 18719 #ifndef uintptr_t 18720 typedef u$acx_cv_type_intptr_t uintptr_t; 18721 #endif 18722 #endif 18723 #ifndef __intptr_t_defined 18724 #ifndef intptr_t 18725 typedef $acx_cv_type_intptr_t intptr_t; 18726 #endif 18727 #endif 18728EOF 18729fi 18730 18731# ------------- done intptr types, emit int_least types ------------ 18732if test "$ac_cv_type_int_least32_t" != yes; then 18733 sed 's/^ *//' >> tmp-stdint.h <<EOF 18734 18735 /* Define int_least types */ 18736 typedef int8_t int_least8_t; 18737 typedef int16_t int_least16_t; 18738 typedef int32_t int_least32_t; 18739 #ifdef _INT64_T 18740 typedef int64_t int_least64_t; 18741 #endif 18742 18743 typedef uint8_t uint_least8_t; 18744 typedef uint16_t uint_least16_t; 18745 typedef uint32_t uint_least32_t; 18746 #ifdef _UINT64_T 18747 typedef uint64_t uint_least64_t; 18748 #endif 18749EOF 18750fi 18751 18752# ------------- done intptr types, emit int_fast types ------------ 18753if test "$ac_cv_type_int_fast32_t" != yes; then 18754 sed 's/^ *//' >> tmp-stdint.h <<EOF 18755 18756 /* Define int_fast types. short is often slow */ 18757 typedef int8_t int_fast8_t; 18758 typedef int int_fast16_t; 18759 typedef int32_t int_fast32_t; 18760 #ifdef _INT64_T 18761 typedef int64_t int_fast64_t; 18762 #endif 18763 18764 typedef uint8_t uint_fast8_t; 18765 typedef unsigned int uint_fast16_t; 18766 typedef uint32_t uint_fast32_t; 18767 #ifdef _UINT64_T 18768 typedef uint64_t uint_fast64_t; 18769 #endif 18770EOF 18771fi 18772 18773if test "$ac_cv_type_uintmax_t" != yes; then 18774 sed 's/^ *//' >> tmp-stdint.h <<EOF 18775 18776 /* Define intmax based on what we found */ 18777 #ifndef intmax_t 18778 #ifdef _INT64_T 18779 typedef int64_t intmax_t; 18780 #else 18781 typedef long intmax_t; 18782 #endif 18783 #endif 18784 #ifndef uintmax_t 18785 #ifdef _UINT64_T 18786 typedef uint64_t uintmax_t; 18787 #else 18788 typedef unsigned long uintmax_t; 18789 #endif 18790 #endif 18791EOF 18792fi 18793 18794sed 's/^ *//' >> tmp-stdint.h <<EOF 18795 18796 #endif /* GCC_GENERATED_STDINT_H */ 18797EOF 18798 18799if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then 18800 rm -f tmp-stdint.h 18801else 18802 mv -f tmp-stdint.h bfd_stdint.h 18803fi 18804 18805 ;; 18806 "default":C) 18807case "$srcdir" in 18808 .) srcdirpre= ;; 18809 *) srcdirpre='$(srcdir)/' ;; 18810esac 18811POFILES= 18812GMOFILES= 18813for lang in dummy $OBSOLETE_ALL_LINGUAS; do 18814 if test $lang != dummy; then 18815 POFILES="$POFILES $srcdirpre$lang.po" 18816 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 18817 fi 18818done 18819sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \ 18820 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \ 18821 -e "s,@POFILES@,$POFILES," \ 18822 -e "s,@GMOFILES@,$GMOFILES," \ 18823 po/Makefile.in > po/Makefile ;; 18824 18825 esac 18826done # for ac_tag 18827 18828 18829as_fn_exit 0 18830_ACEOF 18831ac_clean_files=$ac_clean_files_save 18832 18833test $ac_write_fail = 0 || 18834 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 18835 18836 18837# configure is writing to config.log, and then calls config.status. 18838# config.status does its own redirection, appending to config.log. 18839# Unfortunately, on DOS this fails, as config.log is still kept open 18840# by configure, so config.status won't be able to write to it; its 18841# output is simply discarded. So we exec the FD to /dev/null, 18842# effectively closing config.log, so it can be properly (re)opened and 18843# appended to by config.status. When coming back to configure, we 18844# need to make the FD available again. 18845if test "$no_create" != yes; then 18846 ac_cs_success=: 18847 ac_config_status_args= 18848 test "$silent" = yes && 18849 ac_config_status_args="$ac_config_status_args --quiet" 18850 exec 5>/dev/null 18851 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18852 exec 5>>config.log 18853 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18854 # would make configure fail if this is the last instruction. 18855 $ac_cs_success || as_fn_exit $? 18856fi 18857if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18859$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18860fi 18861 18862