configure.ac revision 1.5
1dnl Process this file with autoconf to produce a configure script. 2dnl 3dnl Copyright (C) 2012-2018 Free Software Foundation, Inc. 4dnl 5dnl This file is free software; you can redistribute it and/or modify 6dnl it under the terms of the GNU General Public License as published by 7dnl the Free Software Foundation; either version 3 of the License, or 8dnl (at your option) any later version. 9dnl 10dnl This program is distributed in the hope that it will be useful, 11dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 12dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13dnl GNU General Public License for more details. 14dnl 15dnl You should have received a copy of the GNU General Public License 16dnl along with this program; see the file COPYING3. If not see 17dnl <http://www.gnu.org/licenses/>. 18dnl 19 20AC_PREREQ(2.59) 21m4_include([version.m4]) 22AC_INIT([bfd], BFD_VERSION) 23AC_CONFIG_SRCDIR([libbfd.c]) 24 25AC_CANONICAL_TARGET 26AC_ISC_POSIX 27 28AM_INIT_AUTOMAKE 29 30dnl These must be called before LT_INIT, because it may want 31dnl to call AC_CHECK_PROG. 32AC_CHECK_TOOL(AR, ar) 33AC_CHECK_TOOL(RANLIB, ranlib, :) 34 35dnl Default to a non shared library. This may be overridden by the 36dnl configure option --enable-shared. 37AC_DISABLE_SHARED 38 39AC_PROG_CC 40AC_GNU_SOURCE 41AC_USE_SYSTEM_EXTENSIONS 42 43LT_INIT([dlopen]) 44 45# AC_PLUGINS setting $plugins is called by ACX_LARGEFILE. 46ACX_LARGEFILE 47 48AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes") 49 50if test "$plugins" = "yes"; then 51 enable_targets="$enable_targets plugin" 52fi 53 54AC_ARG_ENABLE(64-bit-bfd, 55[ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)], 56[case "${enableval}" in 57 yes) want64=true ;; 58 no) want64=false ;; 59 *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;; 60esac],[want64=false])dnl 61 62AC_ARG_ENABLE(targets, 63[ --enable-targets alternative target configurations], 64[case "${enableval}" in 65 yes | "") AC_MSG_ERROR([enable-targets option must specify target names or 'all']) 66 ;; 67 no) enable_targets= ;; 68 *) enable_targets=$enableval ;; 69esac])dnl 70 71AC_ARG_ENABLE(64_bit_archive, 72 AS_HELP_STRING([--enable-64-bit-archive], 73 [force 64-bit archives]), 74[case "${enableval}" in 75 yes) want_64_bit_archive=true ;; 76 no) want_64_bit_archive=false ;; 77 *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-archive option) ;; 78esac],[want_64_bit_archive=unset])dnl 79 80AC_ARG_WITH(mmap, 81[ --with-mmap try using mmap for BFD input files if available], 82[case "${withval}" in 83 yes) want_mmap=true ;; 84 no) want_mmap=false ;; 85 *) AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;; 86esac],[want_mmap=false])dnl 87 88AC_ARG_ENABLE(secureplt, 89[ --enable-secureplt Default to creating read-only plt entries], 90[case "${enableval}" in 91 yes) use_secureplt=true ;; 92 no) use_secureplt=false ;; 93 *) AC_MSG_ERROR(bad value ${enableval} for secureplt option) ;; 94esac],[use_secureplt=false])dnl 95if test $use_secureplt = true; then 96 AC_DEFINE(USE_SECUREPLT, 1, 97 [Define if we should default to creating read-only plt entries]) 98fi 99 100AC_ARG_ENABLE(leading-mingw64-underscores, 101 AS_HELP_STRING([--enable-leading-mingw64-underscores], 102 [Enable leading underscores on 64 bit mingw targets]), 103 [],[]) 104AS_IF([ test x"$enable_leading_mingw64_underscores" = xyes ], 105 [AC_DEFINE(USE_MINGW64_LEADING_UNDERSCORES, 1, 106 [Define if we should use leading underscore on 64 bit mingw targets])]) 107 108DEBUGDIR=${libdir}/debug 109AC_ARG_WITH(separate-debug-dir, 110 AS_HELP_STRING([--with-separate-debug-dir=DIR], 111 [Look for global separate debug info in DIR [[default=LIBDIR/debug]]]), 112[DEBUGDIR="${withval}"]) 113AC_SUBST(DEBUGDIR) 114 115ACX_PKGVERSION([GNU Binutils]) 116ACX_BUGURL([http://www.sourceware.org/bugzilla/]) 117 118AM_BINUTILS_WARNINGS 119 120AC_CONFIG_HEADERS(config.h:config.in) 121 122# PR 14072 123AH_VERBATIM([00_CONFIG_H_CHECK], 124[/* Check that config.h is #included before system headers 125 (this works only for glibc, but that should be enough). */ 126#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__) 127# error config.h must be #included before system headers 128#endif 129#define __CONFIG_H__ 1]) 130 131if test -z "$target" ; then 132 AC_MSG_ERROR(Unrecognized target system type; please check config.sub.) 133fi 134 135AM_MAINTAINER_MODE 136AM_CONDITIONAL(GENINSRC_NEVER, false) 137AM_INSTALL_LIBBFD 138AC_EXEEXT 139 140host64=false 141target64=false 142bfd_default_target_size=32 143 144# host stuff: 145 146ALL_LINGUAS="da es fi fr hr id ja ro ru rw sr sv tr uk vi zh_CN" 147ZW_GNU_GETTEXT_SISTER_DIR 148AM_PO_SUBDIRS 149 150# Permit host specific settings. 151. ${srcdir}/configure.host 152 153AC_SUBST(HDEFINES) 154AC_PROG_INSTALL 155 156BFD_HOST_64BIT_LONG=0 157BFD_HOST_64BIT_LONG_LONG=0 158BFD_HOST_64_BIT_DEFINED=0 159BFD_HOST_64_BIT= 160BFD_HOST_U_64_BIT= 161BFD_HOSTPTR_T="unsigned long" 162 163AC_TYPE_LONG_DOUBLE 164AC_CHECK_TYPES([long long], [AC_CHECK_SIZEOF(long long)]) 165AC_CHECK_SIZEOF(void *) 166AC_CHECK_SIZEOF(long) 167 168if test "x${ac_cv_sizeof_void_p}" = "x8"; then 169 host64=true 170fi 171 172if test "x${ac_cv_sizeof_long}" = "x8"; then 173 BFD_HOST_64BIT_LONG=1 174 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long" 175 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long" 176elif test "x${ac_cv_sizeof_long_long}" = "x8"; then 177 BFD_HOST_64BIT_LONG_LONG=1 178 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long" 179 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long" 180 if test "x${ac_cv_sizeof_void_p}" = "x8"; then 181 BFD_HOSTPTR_T="unsigned long long" 182 fi 183fi 184 185if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then 186 BFD_HOST_64_BIT_DEFINED=1 187 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}" 188 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}" 189fi 190 191AC_SUBST(BFD_HOST_64BIT_LONG) 192AC_SUBST(BFD_HOST_64BIT_LONG_LONG) 193AC_SUBST(BFD_HOST_64_BIT_DEFINED) 194AC_SUBST(BFD_HOST_64_BIT) 195AC_SUBST(BFD_HOST_U_64_BIT) 196AC_SUBST(BFD_HOSTPTR_T) 197 198BFD_CC_FOR_BUILD 199 200AC_CHECK_HEADERS(alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h wchar.h wctype.h) 201AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h sys/stat.h sys/resource.h) 202GCC_HEADER_STDINT(bfd_stdint.h) 203AC_HEADER_TIME 204AC_HEADER_DIRENT 205 206ACX_HEADER_STRING 207AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno) 208AC_CHECK_FUNCS(strtoull getrlimit) 209 210AC_CHECK_DECLS(basename) 211AC_CHECK_DECLS(ftello) 212AC_CHECK_DECLS(ftello64) 213AC_CHECK_DECLS(fseeko) 214AC_CHECK_DECLS(fseeko64) 215 216BFD_BINARY_FOPEN 217 218AC_CHECK_DECLS(ffs) 219AC_CHECK_DECLS(free) 220AC_CHECK_DECLS(getenv) 221AC_CHECK_DECLS(malloc) 222AC_CHECK_DECLS(realloc) 223AC_CHECK_DECLS(stpcpy) 224AC_CHECK_DECLS(strstr) 225AC_CHECK_DECLS(asprintf) 226AC_CHECK_DECLS(vasprintf) 227AC_CHECK_DECLS(snprintf) 228AC_CHECK_DECLS(vsnprintf) 229AC_CHECK_DECLS(strnlen) 230 231# Link in zlib if we can. This allows us to read compressed debug sections. 232# This is used only by compress.c. 233AM_ZLIB 234 235# Check if linker supports --as-needed and --no-as-needed options 236AC_CACHE_CHECK(linker --as-needed support, bfd_cv_ld_as_needed, 237 [bfd_cv_ld_as_needed=no 238 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then 239 bfd_cv_ld_as_needed=yes 240 fi 241 ]) 242 243LT_LIB_M 244 245# When building a shared libbfd, link against the pic version of libiberty 246# so that apps that use libbfd won't need libiberty just to satisfy any 247# libbfd references. 248# We can't do that if a pic libiberty is unavailable since including non-pic 249# code would insert text relocations into libbfd. 250SHARED_LIBADD= 251SHARED_LDFLAGS= 252if test "$enable_shared" = "yes"; then 253changequote(,)dnl 254 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` 255changequote([,])dnl 256 if test -n "$x"; then 257 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" 258 fi 259 260# More hacks to build DLLs on Windows. 261 case "${host}" in 262 *-*-cygwin*) 263 SHARED_LDFLAGS="-no-undefined" 264 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32" 265 ;; 266 267 # Hack to build or1k-src on OSX 268 or1k*-*-darwin*) 269 SHARED_LIBADD="-L`pwd`/../libiberty/pic -L`pwd`/../intl -liberty -lintl" 270 ;; 271 esac 272 273 if test -n "$SHARED_LIBADD"; then 274 if test -n "$LIBM"; then 275 if test x"$bfd_cv_ld_as_needed" = xyes; then 276 # Link against libm only when needed. Put -lc, -lm inside -Wl 277 # to stop libtool reordering these options. 278 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed" 279 else 280 SHARED_LIBADD="$SHARED_LIBADD $LIBM" 281 fi 282 fi 283 fi 284fi 285AC_SUBST(SHARED_LDFLAGS) 286AC_SUBST(SHARED_LIBADD) 287 288# target stuff: 289 290# Canonicalize the secondary target names. 291if test -n "$enable_targets" ; then 292 for targ in `echo $enable_targets | sed 's/,/ /g'` 293 do 294 result=`$ac_config_sub $targ 2>/dev/null` 295 if test -n "$result" ; then 296 canon_targets="$canon_targets $result" 297 else 298 # Allow targets that config.sub doesn't recognize, like "all". 299 canon_targets="$canon_targets $targ" 300 fi 301 done 302fi 303 304all_targets=false 305defvec= 306selvecs= 307assocvecs= 308selarchs= 309TDEFINES= 310for targ in $target $canon_targets 311do 312 if test "x$targ" = "xall"; then 313 all_targets=true 314 assocvecs="$assocvecs $targ_defvec $targ_selvecs" 315 else 316 . $srcdir/config.bfd 317 if test "x$targ" = "x$target"; then 318 defvec=$targ_defvec 319 fi 320 selvecs="$selvecs $targ_defvec $targ_selvecs" 321 selarchs="$selarchs $targ_archs" 322 TDEFINES="$TDEFINES $targ_cflags" 323 fi 324done 325AC_SUBST(TDEFINES) 326 327# This processing still needs to be done if we're to decide properly whether 328# 64-bit support needs to be compiled in. Currently, it will be included if 329# the default or any other explicitly requested target requires it; it 330# will not be included on a 32-bit host if no 64-bit target is requested, and 331# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is 332# used. 333 334# uniq the default and selected vectors in all the configured targets. 335f="" 336for i in $selvecs ; do 337 case " $f " in 338 *" $i "*) ;; 339 *) f="$f $i" ;; 340 esac 341done 342selvecs="$f" 343 344 345# uniq the associated vectors in all the configured targets. 346f="" 347for i in $assocvecs ; do 348 case " $f " in 349 *" $i "*) ;; 350 *) f="$f $i" ;; 351 esac 352done 353assocvecs="$f" 354 355 356# uniq the architectures in all the configured targets. 357f="" 358for i in $selarchs ; do 359 case " $f " in 360 *" $i "*) ;; 361 *) f="$f $i" ;; 362 esac 363done 364selarchs="$f" 365 366# Target backend .o files. 367tb= 368 369elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-properties.lo 370 elf-eh-frame.lo dwarf1.lo dwarf2.lo" 371coffgen="coffgen.lo dwarf2.lo" 372coff="cofflink.lo $coffgen" 373ecoff="ecofflink.lo $coffgen" 374xcoff="xcofflink.lo $coffgen" 375 376for vec in $selvecs 377do 378 target_size=32 379 case "$vec" in 380 # This list is alphabetized to make it easy to compare 381 # with the two vector lists in targets.c. For the same reason, 382 # use one entry per line, even though this leads to long lines. 383 aarch64_elf32_be_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; 384 aarch64_elf32_le_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; 385 aarch64_elf64_be_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; 386 aarch64_elf64_be_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; 387 aarch64_elf64_le_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; 388 aarch64_elf64_le_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; 389 aarch64_mach_o_vec) tb="$tb mach-o-aarch64.lo"; target_size=64 ;; 390 alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;; 391 alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; 392 alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; 393 alpha_nlm32_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;; 394 alpha_vms_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;; 395 alpha_vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;; 396 am33_elf32_linux_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;; 397 aout0_be_vec) tb="$tb aout0.lo aout32.lo" ;; 398 aout64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;; 399 aout_vec) tb="$tb host-aout.lo aout32.lo" ;; 400 aout_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; 401 arc_elf32_be_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 402 arc_elf32_le_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 403 arm_aout_be_vec) tb="$tb aout-arm.lo aout32.lo" ;; 404 arm_aout_le_vec) tb="$tb aout-arm.lo aout32.lo" ;; 405 arm_aout_nbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;; 406 arm_aout_riscix_vec) tb="$tb aout32.lo riscix.lo" ;; 407 arm_coff_be_vec) tb="$tb coff-arm.lo $coff" ;; 408 arm_coff_le_vec) tb="$tb coff-arm.lo $coff" ;; 409 arm_elf32_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 410 arm_elf32_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 411 arm_elf32_nacl_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 412 arm_elf32_nacl_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 413 arm_elf32_symbian_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 414 arm_elf32_symbian_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 415 arm_elf32_vxworks_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 416 arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 417 arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;; 418 arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;; 419 arm_pe_epoc_be_vec) tb="$tb epoc-pe-arm.lo peigen.lo $coff" ;; 420 arm_pe_epoc_le_vec) tb="$tb epoc-pe-arm.lo peigen.lo $coff" ;; 421 arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;; 422 arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;; 423 arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;; 424 arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;; 425 arm_pei_epoc_be_vec) tb="$tb epoc-pei-arm.lo peigen.lo $coff" ;; 426 arm_pei_epoc_le_vec) tb="$tb epoc-pei-arm.lo peigen.lo $coff" ;; 427 arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;; 428 arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;; 429 arm_mach_o_vec) tb="$tb mach-o-arm.lo" ;; 430 avr_elf32_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; 431 bfin_elf32_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; 432 bfin_elf32_fdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; 433 bout_be_vec) tb="$tb bout.lo aout32.lo" ;; 434 bout_le_vec) tb="$tb bout.lo aout32.lo" ;; 435 cr16_elf32_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;; 436 cr16c_elf32_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;; 437 cris_aout_vec) tb="$tb aout-cris.lo" ;; 438 cris_elf32_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; 439 cris_elf32_us_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; 440 crx_elf32_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;; 441 d10v_elf32_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; 442 d30v_elf32_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; 443 dlx_elf32_be_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;; 444 elf32_be_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 445 elf32_le_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 446 elf64_be_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 447 elf64_le_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 448 epiphany_elf32_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;; 449 fr30_elf32_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; 450 frv_elf32_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; 451 frv_elf32_fdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; 452 h8300_coff_vec) tb="$tb coff-h8300.lo reloc16.lo $coffgen" ;; 453 h8300_elf32_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; 454 h8300_elf32_linux_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; 455 h8500_coff_vec) tb="$tb coff-h8500.lo reloc16.lo $coffgen" ;; 456 hppa_elf32_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 457 hppa_elf32_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 458 hppa_elf32_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 459 hppa_elf64_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; 460 hppa_elf64_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; 461 hppa_som_vec) tb="$tb som.lo" ;; 462 i370_elf32_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; 463 i386_aout_vec) tb="$tb i386aout.lo aout32.lo" ;; 464 i386_aout_bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; 465 i386_aout_dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; 466 i386_aout_fbsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; 467 i386_aout_linux_vec) tb="$tb i386linux.lo aout32.lo" ;; 468 i386_aout_lynx_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; 469 i386_aout_mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; 470 i386_aout_nbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; 471 i386_aout_os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; 472 i386_coff_vec) tb="$tb coff-i386.lo $coff" ;; 473 i386_coff_go32_vec) tb="$tb coff-go32.lo $coff" ;; 474 i386_coff_go32stubbed_vec) tb="$tb coff-stgo32.lo $coff" ;; 475 i386_coff_lynx_vec) tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;; 476 i386_elf32_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; 477 i386_elf32_fbsd_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; 478 i386_elf32_nacl_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; 479 i386_elf32_sol2_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; 480 i386_elf32_vxworks_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; 481 i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;; 482 i386_msdos_vec) tb="$tb i386msdos.lo" ;; 483 i386_nlm32_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; 484 i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;; 485 i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;; 486 iamcu_elf32_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; 487 i860_coff_vec) tb="$tb coff-i860.lo $coff" ;; 488 i860_elf32_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; 489 i860_elf32_le_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; 490 i960_elf32_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;; 491 ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;; 492 ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;; 493 ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; 494 ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; 495 ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; 496 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 ;; 497 ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;; 498 icoff_be_vec) tb="$tb coff-i960.lo $coff" ;; 499 icoff_le_vec) tb="$tb coff-i960.lo $coff" ;; 500 ieee_vec) tb="$tb ieee.lo" ;; 501 ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;; 502 iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;; 503 k1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; 504 k1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; 505 l1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; 506 l1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; 507 lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;; 508 lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;; 509 m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;; 510 m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 511 m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 512 m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 513 m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 514 m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;; 515 m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;; 516 m68k_aout_4knbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; 517 m68k_aout_hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; 518 m68k_aout_hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; 519 m68k_aout_linux_vec) tb="$tb m68klinux.lo aout32.lo" ;; 520 m68k_aout_nbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; 521 m68k_aout_newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; 522 m68k_coff_vec) tb="$tb coff-m68k.lo $coff" ;; 523 m68k_coff_apollo_vec) tb="$tb coff-apollo.lo $coffgen" ;; 524 m68k_coff_aux_vec) tb="$tb coff-aux.lo coff-m68k.lo $coff" ;; 525 m68k_coff_sysv_vec) tb="$tb coff-svm68k.lo $coff" ;; 526 m68k_coff_un_vec) tb="$tb coff-u68k.lo coff-m68k.lo $coff" ;; 527 m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; 528 m68k_versados_vec) tb="$tb versados.lo" ;; 529 m88k_aout_mach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;; 530 m88k_aout_obsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;; 531 m88k_coff_bcs_vec) tb="$tb coff-m88k.lo $coffgen" ;; 532 m88k_elf32_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; 533 mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;; 534 mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;; 535 mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;; 536 mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 537 mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 538 mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;; 539 mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;; 540 mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;; 541 mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;; 542 mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; 543 mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; 544 metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;; 545 microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;; 546 microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;; 547 mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;; 548 mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;; 549 mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;; 550 mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 551 mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 552 mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 553 mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 554 mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 555 mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 556 mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 557 mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 558 mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 559 mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 560 mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 561 mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 562 mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 563 mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 564 mips_elf64_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 565 mips_elf64_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 566 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 ;; 567 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 ;; 568 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 ;; 569 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 ;; 570 mips_pe_le_vec) tb="$tb pe-mips.lo peigen.lo $coff" ;; 571 mips_pei_le_vec) tb="$tb pei-mips.lo peigen.lo $coff" ;; 572 mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;; 573 mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;; 574 mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; 575 mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; 576 moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;; 577 moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;; 578 msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; 579 msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; 580 mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;; 581 nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; 582 nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; 583 nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; 584 nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; 585 nios2_elf32_be_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;; 586 nios2_elf32_le_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;; 587 ns32k_aout_pc532mach_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; 588 ns32k_aout_pc532nbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; 589 or1k_elf32_vec) tb="$tb elf32-or1k.lo elf32.lo $elf" ;; 590 riscv_elf32_vec) tb="$tb elf32-riskv.lo elffxx-riscv.lo elf32.lo $elf" ;; 591 riscv_elf64_vec) tb="$tb elf64-riskv.lo elf64.lo elffxx-riscv.lo $elf" target_size=64 ;; 592 pdp11_aout_vec) tb="$tb pdp11.lo" ;; 593 pef_vec) tb="$tb pef.lo" ;; 594 pef_xlib_vec) tb="$tb pef.lo" ;; 595 pj_elf32_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;; 596 pj_elf32_le_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;; 597 plugin_vec) tb="$tb plugin.lo" ;; 598 powerpc_boot_vec) tb="$tb ppcboot.lo" ;; 599 powerpc_elf32_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 600 powerpc_elf32_le_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 601 powerpc_elf32_fbsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 602 powerpc_elf32_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 603 powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 604 powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; 605 powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; 606 powerpc_nlm32_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; 607 powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;; 608 powerpc_pe_le_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;; 609 powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;; 610 powerpc_pei_le_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;; 611 powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;; 612 pru_elf32_vec) tb="$tb elf32-pru.lo elf32.lo $elf" ;; 613 riscv_elf32_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf32.lo $elf" ;; 614 riscv_elf64_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf32.lo $elf"; target_size=64 ;; 615 rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;; 616 rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;; 617 rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;; 618 rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;; 619 rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; 620 rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; 621 rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; 622 s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; 623 s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; 624 score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;; 625 score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;; 626 sh64_elf32_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;; 627 sh64_elf32_le_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;; 628 sh64_elf32_linux_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;; 629 sh64_elf32_linux_be_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;; 630 sh64_elf32_nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" ;; 631 sh64_elf32_nbsd_le_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" ;; 632 sh64_elf64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 633 sh64_elf64_le_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 634 sh64_elf64_linux_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 635 sh64_elf64_linux_be_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 636 sh64_elf64_nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 637 sh64_elf64_nbsd_le_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 638 sh_coff_vec) tb="$tb coff-sh.lo $coff" ;; 639 sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;; 640 sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;; 641 sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;; 642 sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 643 sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 644 sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 645 sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 646 sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 647 sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 648 sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 649 sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 650 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" ;; 651 sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 652 sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 653 sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;; 654 sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;; 655 sparc_aout_le_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; 656 sparc_aout_linux_vec) tb="$tb sparclinux.lo aout32.lo" ;; 657 sparc_aout_lynx_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; 658 sparc_aout_nbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; 659 sparc_aout_sunos_be_vec) tb="$tb sunos.lo aout32.lo" ;; 660 sparc_coff_vec) tb="$tb coff-sparc.lo $coffgen" ;; 661 sparc_coff_lynx_vec) tb="$tb cf-sparclynx.lo lynx-core.lo $coffgen" ;; 662 sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; 663 sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; 664 sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; 665 sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; 666 sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; 667 sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; 668 sparc_nlm32_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; 669 spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;; 670 sym_vec) tb="$tb xsym.lo" ;; 671 tic30_aout_vec) tb="$tb aout-tic30.lo" ;; 672 tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;; 673 tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 674 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 675 tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 676 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 677 tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 678 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 679 tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 680 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 681 tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 682 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 683 tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 684 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 685 tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 686 tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 687 tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 688 tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 689 tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 690 tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 691 tic80_coff_vec) tb="$tb coff-tic80.lo $coff" ;; 692 tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;; 693 tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;; 694 tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;; 695 tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;; 696 tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;; 697 v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; 698 v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; 699 vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;; 700 vax_aout_bsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;; 701 vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;; 702 vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;; 703 ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;; 704 visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;; 705 w65_coff_vec) tb="$tb coff-w65.lo reloc16.lo $coffgen" ;; 706 wasm_vec) tb="$tb wasm-module.lo" ;; 707 wasm32_elf32_vec) tb="$tb elf32-wasm32.lo elf32.lo $elf" ;; 708 we32k_coff_vec) tb="$tb coff-we32k.lo $coffgen" ;; 709 x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;; 710 x86_64_elf32_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;; 711 x86_64_elf32_nacl_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;; 712 x86_64_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; 713 x86_64_elf64_cloudabi_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; 714 x86_64_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; 715 x86_64_elf64_nacl_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; 716 x86_64_elf64_sol2_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; 717 x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;; 718 x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;; 719 x86_64_pe_be_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;; 720 x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;; 721 xc16x_elf32_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;; 722 xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;; 723 xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;; 724 xtensa_elf32_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; 725 xtensa_elf32_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; 726 z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;; 727 z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;; 728 729 # These appear out of order in targets.c 730 srec_vec) tb="$tb srec.lo" ;; 731 symbolsrec_vec) tb="$tb srec.lo" ;; 732 tekhex_vec) tb="$tb tekhex.lo" ;; 733 core_cisco_be_vec) tb="$tb cisco-core.lo" ;; 734 core_cisco_le_vec) tb="$tb cisco-core.lo" ;; 735 736 "") ;; 737 *) AC_MSG_ERROR(*** unknown target vector $vec) ;; 738 esac 739 740 if test ${target_size} = 64; then 741 target64=true 742 fi 743 if test x"${vec}" = x"${defvec}"; then 744 bfd_default_target_size=${target_size} 745 fi 746done 747 748# Target architecture .o files. 749# A couple of CPUs use shorter file names to avoid problems on DOS 750# filesystems. 751ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` 752 753# Weed out duplicate .o files. 754f="" 755for i in $tb ; do 756 case " $f " in 757 *" $i "*) ;; 758 *) f="$f $i" ;; 759 esac 760done 761tb="$f" 762 763f="" 764for i in $ta ; do 765 case " $f " in 766 *" $i "*) ;; 767 *) f="$f $i" ;; 768 esac 769done 770ta="$f" 771 772bfd_backends="$tb" 773bfd_machines="$ta" 774 775if test x${all_targets} = xtrue ; then 776 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' 777 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' 778 selvecs= 779 havevecs=-DHAVE_all_vecs 780 selarchs= 781 test -n "$assocvecs" && 782 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 783else # all_targets is true 784 # Only set these if they will be nonempty, for the clever echo. 785 havevecs= 786 assocvecs= 787 test -n "$selvecs" && 788 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` 789 test -n "$selvecs" && 790 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 791 test -n "$selarchs" && 792 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 793fi # all_targets is true 794 795# 64-bit archives need a 64-bit bfd_vma. 796if test "x$want_64_bit_archive" = xtrue; then 797 want64=true 798 AC_DEFINE(USE_64_BIT_ARCHIVE, 1, 799 [Define if 64-bit archives should always be used.]) 800fi 801 802case ${host64}-${target64}-${want64} in 803 *true*) 804 wordsize=64 805 bfd64_libs='$(BFD64_LIBS)' 806 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' 807 if test $BFD_HOST_64_BIT_DEFINED = 0; then 808 AC_MSG_WARN([You have requested a 64 bit BFD configuration, but]) 809 AC_MSG_WARN([your compiler may not have a 64 bit integral type]) 810 fi 811 if test -n "$GCC" ; then 812 bad_64bit_gcc=no; 813 AC_MSG_CHECKING([for gcc version with buggy 64-bit support]) 814 # Add more tests for gcc versions with non-working 64-bit support here. 815 AC_EGREP_CPP([: 2 : 91 : 1 :],[:__GNUC__:__GNUC_MINOR__:__i386__:], 816 bad_64bit_gcc=yes; 817 AC_MSG_RESULT([yes: egcs-1.1.2 on ix86 spotted]), 818 AC_MSG_RESULT(no)) 819 if test $bad_64bit_gcc = yes ; then 820 AC_MSG_ERROR([A newer version of gcc is needed for the requested 64-bit BFD configuration]) 821 fi 822 fi 823 ;; 824 false-false-false) 825 wordsize=32 826 all_backends='$(BFD32_BACKENDS)' 827 ;; 828esac 829 830tdefaults="" 831test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" 832test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" 833test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'" 834test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" 835 836AC_SUBST(wordsize) 837AC_SUBST(bfd64_libs) 838AC_SUBST(all_backends) 839AC_SUBST(bfd_backends) 840AC_SUBST(bfd_machines) 841AC_SUBST(bfd_default_target_size) 842AC_SUBST(tdefaults) 843AC_SUBST(havevecs) 844 845# If we are configured native, pick a core file support file. 846COREFILE= 847COREFLAG= 848CORE_HEADER= 849TRAD_HEADER= 850if test "${target}" = "${host}"; then 851 case "${host}" in 852 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*) 853 COREFILE='' 854 ;; 855 alpha*-*-linux-*) 856 COREFILE=trad-core.lo 857 TRAD_HEADER='"hosts/alphalinux.h"' 858 ;; 859 alpha*-*-netbsd* | alpha*-*-openbsd*) 860 COREFILE=netbsd-core.lo 861 ;; 862 alpha*-*-*) 863 COREFILE=osf-core.lo 864 ;; 865 arm-*-freebsd* | arm-*-kfreebsd*-gnu) 866 COREFILE='' ;; 867 arm-*-netbsd* | arm-*-openbsd*) 868 COREFILE=netbsd-core.lo 869 ;; 870 arm-*-riscix) COREFILE=trad-core.lo ;; 871 hppa*-*-hpux*) COREFILE=hpux-core.lo ;; 872 hppa*-*-hiux*) COREFILE=hpux-core.lo ;; 873 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; 874 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" 875 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; 876 hppa*-*-netbsd* | hppa*-*-openbsd*) 877 COREFILE=netbsd-core.lo 878 ;; 879 880 i370-*-*) 881 COREFILE=trad-core.lo 882 TRAD_HEADER='"hosts/i370linux.h"' 883 ;; 884 885changequote(,)dnl 886 i[3-7]86-sequent-bsd*) 887changequote([,])dnl 888 COREFILE=trad-core.lo 889 TRAD_HEADER='"hosts/symmetry.h"' 890 ;; 891changequote(,)dnl 892 i[3-7]86-sequent-sysv4*) ;; 893 i[3-7]86-sequent-sysv*) 894changequote([,])dnl 895 COREFILE=trad-core.lo 896 TRAD_HEADER='"hosts/symmetry.h"' 897 ;; 898changequote(,)dnl 899 i[3-7]86-*-bsdi) 900changequote([,])dnl 901 COREFILE= 902 ;; 903changequote(,)dnl 904 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*) 905changequote([,])dnl 906 COREFILE=trad-core.lo 907 TRAD_HEADER='"hosts/i386bsd.h"' 908 ;; 909changequote(,)dnl 910 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*) 911changequote([,])dnl 912 COREFILE='' 913 TRAD_HEADER='"hosts/i386bsd.h"' 914 ;; 915changequote(,)dnl 916 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*) 917changequote([,])dnl 918 COREFILE=netbsd-core.lo 919 ;; 920changequote(,)dnl 921 i[3-7]86-esix-sysv3*) 922changequote([,])dnl 923 COREFILE=trad-core.lo 924 TRAD_HEADER='"hosts/esix.h"' 925 ;; 926changequote(,)dnl 927 i[3-7]86-*-sco3.2v5*) 928changequote([,])dnl 929 COREFILE=sco5-core.lo 930 ;; 931changequote(,)dnl 932 i[3-7]86-*-sco* | i[3-7]86-*-isc*) 933changequote([,])dnl 934 COREFILE=trad-core.lo 935 TRAD_HEADER='"hosts/i386sco.h"' 936 ;; 937changequote(,)dnl 938 i[3-7]86-*-mach3*) 939changequote([,])dnl 940 COREFILE=trad-core.lo 941 TRAD_HEADER='"hosts/i386mach3.h"' 942 ;; 943changequote(,)dnl 944 i[3-7]86-*-linux-*) 945changequote([,])dnl 946 COREFILE=trad-core.lo 947 TRAD_HEADER='"hosts/i386linux.h"' 948 case "$enable_targets"-"$want64" in 949 *x86_64-*linux*|*-true) 950 CORE_HEADER='"hosts/x86-64linux.h"' 951 esac 952 ;; 953changequote(,)dnl 954 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;; 955 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;; 956changequote([,])dnl 957 i860-*-mach3* | i860-*-osf1*) 958 COREFILE=trad-core.lo 959 TRAD_HEADER='"hosts/i860mach3.h"' 960 ;; 961 mips-*-netbsd* | mips*-*-openbsd*) 962 COREFILE=netbsd-core.lo 963 ;; 964 mips-dec-*) 965 COREFILE=trad-core.lo 966 TRAD_HEADER='"hosts/decstation.h"' 967 ;; 968 mips-sgi-irix4*) COREFILE=irix-core.lo ;; 969 mips-sgi-irix5*) COREFILE=irix-core.lo ;; 970 mips-sgi-irix6*) COREFILE=irix-core.lo ;; 971 mips-*-sysv4*) ;; 972 mips-*-sysv* | mips-*-riscos*) 973 COREFILE=trad-core.lo 974 TRAD_HEADER='"hosts/riscos.h"' 975 ;; 976 mips-sony-bsd*) 977 COREFILE=trad-core.lo 978 TRAD_HEADER='"hosts/news-mips.h"' 979 ;; 980 m68*-bull*-sysv*) 981 COREFILE=trad-core.lo 982 TRAD_HEADER='"hosts/dpx2.h"' 983 ;; 984 m68*-hp-hpux*) COREFILE=hpux-core.lo ;; 985 m68*-hp-bsd*) 986 COREFILE=trad-core.lo 987 TRAD_HEADER='"hosts/hp300bsd.h"' 988 ;; 989 m68*-*-linux-*) 990 COREFILE=trad-core.lo 991 TRAD_HEADER='"hosts/m68klinux.h"' 992 ;; 993 m68*-motorola-sysv*) 994 COREFILE=trad-core.lo 995 TRAD_HEADER='"hosts/delta68.h"' 996 ;; 997 m68*-sony-*) 998 COREFILE=trad-core.lo 999 TRAD_HEADER='"hosts/news.h"' 1000 ;; 1001 m68*-*-netbsd* | m68*-*-openbsd*) 1002 COREFILE=netbsd-core.lo 1003 ;; 1004 m68*-apple-aux*) 1005 COREFILE=trad-core.lo 1006 TRAD_HEADER='"hosts/m68kaux.h"' 1007 ;; 1008 m88*-*-sysv4*) 1009 ;; 1010 m88*-motorola-sysv*) 1011 COREFILE=ptrace-core.lo 1012 ;; 1013 m88*-*-mach3*) 1014 COREFILE=trad-core.lo 1015 TRAD_HEADER='"hosts/m88kmach3.h"' 1016 ;; 1017 m88*-*-openbsd*) 1018 COREFILE=netbsd-core.lo 1019 ;; 1020 ns32k-pc532-mach) 1021 COREFILE=trad-core.lo 1022 TRAD_HEADER='"hosts/pc532mach.h"' 1023 ;; 1024 ns32k-*-netbsd* | ns32k-*-openbsd*) 1025 COREFILE=netbsd-core.lo 1026 ;; 1027 rs6000-*-lynx*) 1028 COREFILE=lynx-core.lo 1029 ;; 1030changequote(,)dnl 1031 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*) 1032changequote([,])dnl 1033 COREFILE=rs6000-core.lo 1034 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE" 1035 ;; 1036changequote(,)dnl 1037 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) 1038changequote([,])dnl 1039 COREFILE=rs6000-core.lo 1040 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" 1041 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE 1042 # have c_impl as a member of struct core_dumpx 1043 AC_MSG_CHECKING([for c_impl in struct core_dumpx]) 1044 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <core.h>]], [[struct core_dumpx c; c.c_impl = 0;]])],[AC_DEFINE(HAVE_ST_C_IMPL, 1, 1045 [Define if struct core_dumpx has member c_impl]) 1046 AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)]) 1047 ;; 1048 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; 1049 rs6000-*-*) COREFILE=rs6000-core.lo ;; 1050 powerpc64-*-aix*) COREFILE=rs6000-core.lo ;; 1051 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; 1052 powerpc-*-aix*) COREFILE=rs6000-core.lo ;; 1053 powerpc-*-beos*) ;; 1054 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu) 1055 COREFILE='' ;; 1056 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; 1057 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; 1058 s390*-*-*) COREFILE=trad-core.lo ;; 1059 sh*-*-netbsd* | sh*-*-openbsd*) 1060 COREFILE=netbsd-core.lo 1061 ;; 1062 sparc-*-netbsd* | sparc*-*-openbsd*) 1063 COREFILE=netbsd-core.lo 1064 ;; 1065 tahoe-*-*) 1066 COREFILE=trad-core.lo 1067 TRAD_HEADER='"hosts/tahoe.h"' 1068 ;; 1069 vax-*-netbsd* | vax-*-openbsd*) 1070 COREFILE=netbsd-core.lo 1071 ;; 1072 vax-*-ultrix2*) 1073 COREFILE=trad-core.lo 1074 TRAD_HEADER='"hosts/vaxult2.h"' 1075 ;; 1076 vax-*-ultrix*) 1077 COREFILE=trad-core.lo 1078 TRAD_HEADER='"hosts/vaxult2.h"' 1079 ;; 1080 vax-*-linux-*) 1081 COREFILE=trad-core.lo 1082 TRAD_HEADER='"hosts/vaxlinux.h"' 1083 ;; 1084 vax-*-*) 1085 COREFILE=trad-core.lo 1086 TRAD_HEADER='"hosts/vaxbsd.h"' 1087 ;; 1088 x86_64-*-linux*) 1089 CORE_HEADER='"hosts/x86-64linux.h"' 1090 ;; 1091 x86_64-*-netbsd* | x86_64-*-openbsd*) 1092 COREFILE=netbsd-core.lo 1093 ;; 1094 esac 1095 1096 case "$COREFILE" in 1097 aix386-core.lo) COREFLAG=-DAIX386_CORE ;; 1098 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; 1099 hpux-core.lo) COREFLAG=-DHPUX_CORE ;; 1100 irix-core.lo) COREFLAG=-DIRIX_CORE ;; 1101 lynx-core.lo) COREFLAG=-DLYNX_CORE ;; 1102 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; 1103 osf-core.lo) COREFLAG=-DOSF_CORE ;; 1104 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; 1105 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; 1106 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; 1107 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; 1108 esac 1109 1110 # ELF corefile support has several flavors, but all of 1111 # them use something called <sys/procfs.h> 1112 AC_CHECK_HEADERS(sys/procfs.h) 1113 if test "$ac_cv_header_sys_procfs_h" = yes; then 1114 BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t) 1115 BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t) 1116 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who) 1117 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who) 1118 BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t) 1119 BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t) 1120 BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t) 1121 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t) 1122 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo_t, pr_pid) 1123 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t) 1124 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo32_t, pr_pid) 1125 BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t) 1126 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo_t, pr_pid) 1127 BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t) 1128 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo32_t, pr_pid) 1129 BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t) 1130 BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t) 1131 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context) 1132 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg) 1133 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_fpreg) 1134 BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t) 1135 fi 1136fi 1137AC_SUBST(COREFILE) 1138AC_SUBST(COREFLAG) 1139if test -n "$CORE_HEADER"; then 1140 AC_DEFINE_UNQUOTED(CORE_HEADER, $CORE_HEADER, 1141 [Name of host specific core header file to include in elf.c.]) 1142fi 1143if test -n "$TRAD_HEADER"; then 1144 AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER, 1145 [Name of host specific header file to include in trad-core.c.]) 1146fi 1147 1148if test "$plugins" = "yes"; then 1149 supports_plugins=1 1150else 1151 supports_plugins=0 1152fi 1153AC_SUBST(supports_plugins) 1154AC_SUBST(lt_cv_dlopen_libs) 1155 1156# Determine the host dependent file_ptr a.k.a. off_t type. In order 1157# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and 1158# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long. 1159# Hopefully a reasonable assumption since fseeko et.al. should be 1160# upward compatible. 1161AC_CHECK_FUNCS(ftello ftello64 fseeko fseeko64 fopen64) 1162if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then 1163 AC_CHECK_SIZEOF(off_t) 1164fi 1165AC_MSG_CHECKING([file_ptr type]) 1166bfd_file_ptr="long" 1167bfd_ufile_ptr="unsigned long" 1168if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \ 1169 -o x"${ac_cv_sizeof_off_t}" = x8; then 1170 bfd_file_ptr=BFD_HOST_64_BIT 1171 bfd_ufile_ptr=BFD_HOST_U_64_BIT 1172fi 1173AC_MSG_RESULT($bfd_file_ptr) 1174AC_SUBST(bfd_file_ptr) 1175AC_SUBST(bfd_ufile_ptr) 1176 1177dnl AC_CHECK_HEADERS(sys/mman.h) 1178AC_FUNC_MMAP 1179AC_CHECK_FUNCS(madvise mprotect) 1180case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in 1181 true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;; 1182esac 1183 1184rm -f doc/config.status 1185AC_CONFIG_FILES([Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in]) 1186 1187dnl We need this duplication, even though we use AM_PO_SUBDIRS, because of 1188dnl our two separate POTFILES. Yuck. 1189AC_CONFIG_COMMANDS([default], 1190[[ 1191case "$srcdir" in 1192 .) srcdirpre= ;; 1193 *) srcdirpre='$(srcdir)/' ;; 1194esac 1195POFILES= 1196GMOFILES= 1197for lang in dummy $OBSOLETE_ALL_LINGUAS; do 1198 if test $lang != dummy; then 1199 POFILES="$POFILES $srcdirpre$lang.po" 1200 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 1201 fi 1202done 1203sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \ 1204 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \ 1205 -e "s,@POFILES@,$POFILES," \ 1206 -e "s,@GMOFILES@,$GMOFILES," \ 1207 po/Makefile.in > po/Makefile]],[[]]) 1208 1209dnl Required by html, pdf, install-pdf and install-html 1210AC_SUBST(datarootdir) 1211AC_SUBST(docdir) 1212AC_SUBST(htmldir) 1213AC_SUBST(pdfdir) 1214 1215AC_OUTPUT 1216