configure.ac 49 KB

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