configure.in 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568
  1. #! /bin/bash
  2. ##############################################################################
  3. ## This file is a shell script fragment that supplies the information
  4. ## necessary to tailor a template configure script into the configure
  5. ## script appropriate for this directory. For more information, check
  6. ## any existing configure script.
  7. ## Be warned, there are two types of configure.in files. There are those
  8. ## used by Autoconf, which are macros which are expanded into a configure
  9. ## script by autoconf. The other sort, of which this is one, is executed
  10. ## by Cygnus configure.
  11. ## For more information on these two systems, check out the documentation
  12. ## for 'Autoconf' (autoconf.texi) and 'Configure' (configure.texi).
  13. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998,
  14. # 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
  15. #
  16. # This file is free software; you can redistribute it and/or modify it
  17. # under the terms of the GNU General Public License as published by
  18. # the Free Software Foundation; either version 2 of the License, or
  19. # (at your option) any later version.
  20. #
  21. # This program is distributed in the hope that it will be useful, but
  22. # WITHOUT ANY WARRANTY; without even the implied warranty of
  23. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  24. # General Public License for more details.
  25. #
  26. # You should have received a copy of the GNU General Public License
  27. # along with this program; if not, write to the Free Software
  28. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  29. ##############################################################################
  30. ### To add a new directory to the tree, first choose whether it is a target
  31. ### or a host dependent tool. Then put it into the appropriate list
  32. ### (library or tools, host or target), doing a dependency sort. For
  33. ### example, gdb requires that byacc (or bison) be built first, so it is in
  34. ### the ${host_tools} list after byacc and bison.
  35. # these libraries are used by various programs built for the host environment
  36. #
  37. host_libs="intl mmalloc libiberty opcodes bfd readline db tcl tk tclX itcl tix libgui zlib"
  38. libstdcxx_version="target-libstdc++-v3"
  39. # these tools are built for the host environment
  40. # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
  41. # know that we are building the simulator.
  42. host_tools="texinfo byacc flex bison binutils ld gas gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool grep diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils snavigator libtool gettext zip fastjar"
  43. # libgcj represents the runtime libraries only used by gcj.
  44. libgcj="target-libffi \
  45. target-boehm-gc \
  46. target-zlib \
  47. target-qthreads \
  48. target-libjava"
  49. # these libraries are built for the target environment, and are built after
  50. # the host libraries and the host tools (which may be a cross compiler)
  51. #
  52. target_libs="target-libiberty \
  53. target-libgloss \
  54. target-newlib \
  55. ${libstdcxx_version} \
  56. target-libf2c \
  57. ${libgcj}
  58. target-libobjc"
  59. # these tools are built using the target libs, and are intended to run only
  60. # in the target environment
  61. #
  62. # note: any program that *uses* libraries that are in the "target_libs"
  63. # list belongs in this list. those programs are also very likely
  64. # candidates for the "native_only" list which follows
  65. #
  66. target_tools="target-examples target-groff target-gperf target-rda"
  67. ################################################################################
  68. ## All tools belong in one of the four categories, and are assigned above
  69. ## We assign ${configdirs} this way to remove all embedded newlines. This
  70. ## is important because configure will choke if they ever get through.
  71. ## ${configdirs} is directories we build using the host tools.
  72. ## ${target_configdirs} is directories we build using the target tools.
  73. #
  74. configdirs=`echo ${host_libs} ${host_tools}`
  75. target_configdirs=`echo ${target_libs} ${target_tools}`
  76. ################################################################################
  77. srctrigger=move-if-change
  78. srcname="gnu development package"
  79. # This gets set non-empty for some net releases of packages.
  80. appdirs=""
  81. # per-host:
  82. # There is no longer anything interesting in the per-host section.
  83. # per-target:
  84. # Define is_cross_compiler to save on calls to 'test'.
  85. is_cross_compiler=
  86. if test x"${host}" = x"${target}" ; then
  87. is_cross_compiler=no
  88. else
  89. is_cross_compiler=yes
  90. fi
  91. # We always want to use the same name for this directory, so that dejagnu
  92. # can reliably find it.
  93. target_subdir=${target_alias}
  94. if test ! -d ${target_subdir} ; then
  95. if mkdir ${target_subdir} ; then true
  96. else
  97. echo "'*** could not make ${PWD=`${PWDCMD-pwd}`}/${target_subdir}" 1>&2
  98. exit 1
  99. fi
  100. fi
  101. build_subdir=${build_alias}
  102. if test x"${build_alias}" != x"${host}" ; then
  103. if test ! -d ${build_subdir} ; then
  104. if mkdir ${build_subdir} ; then true
  105. else
  106. echo "'*** could not make ${PWD=`${PWDCMD-pwd}`}/${build_subdir}" 1>&2
  107. exit 1
  108. fi
  109. fi
  110. fi
  111. # Skipdirs are removed silently.
  112. skipdirs=
  113. # Noconfigdirs are removed loudly.
  114. noconfigdirs=""
  115. use_gnu_ld=
  116. # Make sure we don't let GNU ld be added if we didn't want it.
  117. if test x$with_gnu_ld = xno ; then
  118. use_gnu_ld=no
  119. noconfigdirs="$noconfigdirs ld"
  120. fi
  121. use_gnu_as=
  122. # Make sure we don't let GNU as be added if we didn't want it.
  123. if test x$with_gnu_as = xno ; then
  124. use_gnu_as=no
  125. noconfigdirs="$noconfigdirs gas"
  126. fi
  127. # some tools are so dependent upon X11 that if we're not building with X,
  128. # it's not even worth trying to configure, much less build, that tool.
  129. case ${with_x} in
  130. yes | "") ;; # the default value for this tree is that X11 is available
  131. no)
  132. skipdirs="${skipdirs} tk tix itcl libgui"
  133. # We won't be able to build gdbtk without X.
  134. enable_gdbtk=no
  135. ;;
  136. *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
  137. esac
  138. # Some tools are only suitable for building in a "native" situation.
  139. # Remove these if host!=target.
  140. native_only="autoconf automake libtool fileutils find gawk gettext grep gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms snavigator gnuserv target-gperf"
  141. # Similarly, some are only suitable for cross toolchains.
  142. # Remove these if host=target.
  143. cross_only="target-libgloss target-newlib target-opcodes"
  144. case $is_cross_compiler in
  145. no) skipdirs="${skipdirs} ${cross_only}" ;;
  146. yes) skipdirs="${skipdirs} ${native_only}" ;;
  147. esac
  148. # If both --with-headers and --with-libs are specified, default to
  149. # --without-newlib.
  150. if test x"${with_headers}" != x && test x"${with_libs}" != x ; then
  151. if test x"${with_newlib}" = x ; then
  152. with_newlib=no
  153. fi
  154. fi
  155. # Recognize --with-newlib/--without-newlib.
  156. case ${with_newlib} in
  157. no) skipdirs="${skipdirs} target-newlib" ;;
  158. yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
  159. esac
  160. # Configure extra directories which are host specific
  161. case "${host}" in
  162. i[3456]86-*-go32*)
  163. configdirs="$configdirs dosrel" ;;
  164. i[3456]86-*-mingw32*)
  165. configdirs="$configdirs dosrel" ;;
  166. *-cygwin*)
  167. configdirs="$configdirs libtermcap dosrel" ;;
  168. esac
  169. # Remove more programs from consideration, based on the host or
  170. # target this usually means that a port of the program doesn't
  171. # exist yet.
  172. case "${host}" in
  173. hppa*64*-*-*)
  174. noconfigdirs="$noconfigdirs byacc"
  175. ;;
  176. i[3456]86-*-vsta)
  177. noconfigdirs="tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix db snavigator gnuserv gettext"
  178. ;;
  179. i[3456]86-*-go32* | i[3456]86-*-msdosdjgpp*)
  180. noconfigdirs="tcl tk expect dejagnu send-pr uudecode guile itcl tix db snavigator gnuserv libffi"
  181. ;;
  182. i[3456]86-*-mingw32*)
  183. # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix db snavigator gnuserv"
  184. noconfigdirs="expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
  185. ;;
  186. i[3456]86-*-beos*)
  187. noconfigdirs="$noconfigdirs tk itcl tix libgui gdb"
  188. ;;
  189. *-*-cygwin*)
  190. noconfigdirs="autoconf automake send-pr rcs guile perl"
  191. ;;
  192. *-*-netbsd*)
  193. noconfigdirs="rcs"
  194. ;;
  195. ppc*-*-pe)
  196. noconfigdirs="patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix db snavigator gnuserv"
  197. ;;
  198. powerpc-*-beos*)
  199. noconfigdirs="$noconfigdirs tk itcl tix libgui gdb dejagnu readline"
  200. ;;
  201. *-*-darwin*)
  202. noconfigdirs="$noconfigdirs tk itcl tix libgui"
  203. ;;
  204. esac
  205. # Save it here so that, even in case of --enable-libgcj, if the Java
  206. # front-end isn't enabled, we still get libgcj disabled.
  207. libgcj_saved=$libgcj
  208. case $enable_libgcj in
  209. yes)
  210. # If we reset it here, it won't get added to noconfigdirs in the
  211. # target-specific build rules, so it will be forcibly enabled
  212. # (unless the Java language itself isn't enabled).
  213. libgcj=
  214. ;;
  215. no)
  216. # Make sure we get it printed in the list of not supported target libs.
  217. noconfigdirs="$noconfigdirs ${libgcj}"
  218. ;;
  219. esac
  220. case "${target}" in
  221. *-*-chorusos)
  222. noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
  223. ;;
  224. *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
  225. noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
  226. ;;
  227. *-*-netbsd*)
  228. # Skip some stuff on all NetBSD configurations.
  229. noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
  230. # Skip some stuff that's unsupported on some NetBSD configurations.
  231. case "${target}" in
  232. i*86-*-netbsdelf*) ;;
  233. *)
  234. noconfigdirs="$noconfigdirs ${libgcj}"
  235. ;;
  236. esac
  237. ;;
  238. *-*-netware)
  239. noconfigdirs="$noconfigdirs ${libstdcxx_version} target-newlib target-libiberty target-libgloss ${libgcj}"
  240. ;;
  241. *-*-rtems*)
  242. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  243. case ${target} in
  244. h8300*-*-* | h8500-*-*)
  245. noconfigdirs="$noconfigdirs target-libf2c"
  246. ;;
  247. *) ;;
  248. esac
  249. ;;
  250. *-*-vxworks*)
  251. noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
  252. ;;
  253. alpha*-dec-osf*)
  254. # ld works, but does not support shared libraries.
  255. # newlib is not 64 bit ready. I'm not sure about fileutils.
  256. # gas doesn't generate exception information.
  257. noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
  258. ;;
  259. alpha*-*-*vms*)
  260. noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
  261. ;;
  262. alpha*-*-linux*)
  263. # newlib is not 64 bit ready
  264. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  265. ;;
  266. alpha*-*-freebsd*)
  267. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  268. ;;
  269. alpha*-*-*)
  270. # newlib is not 64 bit ready
  271. noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
  272. ;;
  273. sh-*-linux*)
  274. noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
  275. ;;
  276. sh*-*-pe|mips*-*-pe|*arm-wince-pe)
  277. noconfigdirs="$noconfigdirs ${libgcj}"
  278. noconfigdirs="$noconfigdirs target-examples"
  279. noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
  280. noconfigdirs="$noconfigdirs tcl tix tk itcl libgui sim"
  281. noconfigdirs="$noconfigdirs expect dejagnu"
  282. # the C++ libraries don't build on top of CE's C libraries
  283. noconfigdirs="$noconfigdirs ${libstdcxx_version}"
  284. noconfigdirs="$noconfigdirs target-newlib"
  285. case "${host}" in
  286. *-*-cygwin*) ;; # keep gdb and readline
  287. *) noconfigdirs="$noconfigdirs gdb readline ${libstdcxx_version}"
  288. ;;
  289. esac
  290. ;;
  291. arc-*-*)
  292. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  293. ;;
  294. arm-*-coff | strongarm-*-coff | xscale-*-coff)
  295. noconfigdirs="$noconfigdirs ${libgcj}"
  296. ;;
  297. arm-*-elf* | strongarm-*-elf* | xscale-*-elf*)
  298. noconfigdirs="$noconfigdirs target-libffi target-qthreads"
  299. ;;
  300. arm-*-pe*)
  301. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  302. ;;
  303. arm-*-oabi*)
  304. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  305. ;;
  306. thumb-*-coff)
  307. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  308. ;;
  309. thumb-*-elf)
  310. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  311. ;;
  312. thumb-*-oabi)
  313. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  314. ;;
  315. thumb-*-pe)
  316. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  317. ;;
  318. arm-*-riscix*)
  319. noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
  320. ;;
  321. avr-*-*)
  322. noconfigdirs="$noconfigdirs target-libiberty ${libstdcxx_version} ${libgcj}"
  323. ;;
  324. c4x-*-* | tic4x-*-*)
  325. noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss ${libgcj}"
  326. ;;
  327. c54x*-*-* | tic54x-*-*)
  328. noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss ${libgcj} gcc gdb newlib"
  329. ;;
  330. cris-*-*)
  331. noconfigdirs="$noconfigdirs ${libgcj}"
  332. ;;
  333. d10v-*-*)
  334. noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss ${libgcj}"
  335. ;;
  336. d30v-*-*)
  337. noconfigdirs="$noconfigdirs ${libgcj}"
  338. ;;
  339. fr30-*-elf*)
  340. noconfigdirs="$noconfigdirs ${libgcj}"
  341. ;;
  342. frv-*-*)
  343. noconfigdirs="$noconfigdirs ${libgcj}"
  344. ;;
  345. h8300*-*-*)
  346. noconfigdirs="$noconfigdirs target-libgloss"
  347. ;;
  348. h8500-*-*)
  349. noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss ${libgcj} target-libf2c"
  350. ;;
  351. hppa*64*-*-linux* | parisc*64*-*-linux*)
  352. # In this case, it's because the hppa64-linux target is for
  353. # the kernel only at this point and has no libc, and thus no
  354. # headers, crt*.o, etc., all of which are needed by these.
  355. noconfigdirs="$noconfigdirs target-zlib"
  356. ;;
  357. hppa*-*-*elf* | \
  358. parisc*-*-linux* | hppa*-*-linux* | \
  359. hppa*-*-lites* | \
  360. hppa*-*-openbsd* | \
  361. hppa*64*-*-*)
  362. noconfigdirs="$noconfigdirs ${libgcj}"
  363. # Do configure ld/binutils/gas for this case.
  364. ;;
  365. hppa*-*-*)
  366. # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
  367. # build on HP-UX 10.20.
  368. noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
  369. ;;
  370. ia64*-*-elf*)
  371. # No gdb support yet.
  372. noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb"
  373. ;;
  374. ia64*-**-hpux*)
  375. # No gdb or ld support yet.
  376. noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb ld"
  377. ;;
  378. i[3456]86-*-coff | i[3456]86-*-elf)
  379. noconfigdirs="$noconfigdirs ${libgcj}"
  380. ;;
  381. i[34567]86-*-freebsd*)
  382. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  383. ;;
  384. i[3456]86-*-linux*)
  385. # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
  386. # not build java stuff by default.
  387. case "${target}" in
  388. *-*-*libc1*)
  389. noconfigdirs="$noconfigdirs ${libgcj}";;
  390. esac
  391. # This section makes it possible to build newlib natively on linux.
  392. # If we are using a cross compiler then don't configure newlib.
  393. if test x${is_cross_compiler} != xno ; then
  394. noconfigdirs="$noconfigdirs target-newlib"
  395. fi
  396. noconfigdirs="$noconfigdirs target-libgloss"
  397. # If we are not using a cross compiler, do configure newlib.
  398. # Note however, that newlib will only be configured in this situation
  399. # if the --with-newlib option has been given, because otherwise
  400. # 'target-newlib' will appear in skipdirs.
  401. ;;
  402. i[3456]86-*-mingw32*)
  403. target_configdirs="$target_configdirs target-mingw"
  404. noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
  405. # Can't build gdb for mingw32 if not native.
  406. case "${host}" in
  407. i[3456]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
  408. *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix db snavigator gnuserv"
  409. ;;
  410. esac
  411. ;;
  412. *-*-cygwin*)
  413. target_configdirs="$target_configdirs target-libtermcap target-winsup"
  414. noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
  415. # always build newlib.
  416. skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
  417. # Can't build gdb for Cygwin if not native.
  418. case "${host}" in
  419. *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
  420. *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix libgui db snavigator gnuserv"
  421. ;;
  422. esac
  423. ;;
  424. i[3456]86-*-pe)
  425. noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss ${libgcj}"
  426. ;;
  427. i[3456]86-*-sco3.2v5*)
  428. # The linker does not yet know about weak symbols in COFF,
  429. # and is not configured to handle mixed ELF and COFF.
  430. noconfigdirs="$noconfigdirs ld target-libgloss"
  431. ;;
  432. i[3456]86-*-sco*)
  433. noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
  434. ;;
  435. i[3456]86-*-solaris2*)
  436. noconfigdirs="$noconfigdirs target-libgloss"
  437. ;;
  438. i[3456]86-*-sysv4*)
  439. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  440. ;;
  441. i[3456]86-*-beos*)
  442. noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
  443. ;;
  444. m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
  445. noconfigdirs="$noconfigdirs target-libiberty ${libstdcxx_version} ${libgcj}"
  446. ;;
  447. m68k-*-elf*)
  448. noconfigdirs="$noconfigdirs ${libgcj}"
  449. ;;
  450. m68k-*-coff*)
  451. noconfigdirs="$noconfigdirs ${libgcj}"
  452. ;;
  453. mcore-*-pe*)
  454. # The EPOC C++ environment does not support exceptions or rtti,
  455. # and so building libstdc++-v3 tends not to always work.
  456. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  457. ;;
  458. mmix-*-*)
  459. noconfigdirs="$noconfigdirs ${libgcj}"
  460. ;;
  461. mn10200-*-*)
  462. noconfigdirs="$noconfigdirs ${libgcj}"
  463. ;;
  464. mn10300-*-*)
  465. noconfigdirs="$noconfigdirs ${libgcj}"
  466. ;;
  467. powerpc-*-aix*)
  468. # copied from rs6000-*-* entry
  469. noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
  470. ;;
  471. powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
  472. target_configdirs="$target_configdirs target-winsup"
  473. noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix db snavigator gnuserv ${libgcj}"
  474. # always build newlib.
  475. skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
  476. ;;
  477. # This is temporary until we can link against shared libraries
  478. powerpcle-*-solaris*)
  479. noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl tix db snavigator gnuserv ${libgcj}"
  480. ;;
  481. powerpc-*-beos*)
  482. noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
  483. ;;
  484. powerpc-*-darwin*)
  485. noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof ${libgcj}"
  486. ;;
  487. powerpc-*-eabi)
  488. noconfigdirs="$noconfigdirs ${libgcj}"
  489. ;;
  490. powerpc64*-*-linux*)
  491. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  492. # not yet ported.
  493. noconfigdirs="$noconfigdirs target-libffi"
  494. ;;
  495. rs6000-*-lynxos*)
  496. noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
  497. ;;
  498. rs6000-*-aix*)
  499. noconfigdirs="$noconfigdirs gprof ${libgcj}"
  500. ;;
  501. rs6000-*-*)
  502. noconfigdirs="$noconfigdirs gprof ${libgcj}"
  503. ;;
  504. m68k-apollo-*)
  505. noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
  506. ;;
  507. mips*-*-irix5*)
  508. # The GNU linker does not support shared libraries.
  509. noconfigdirs="$noconfigdirs ld gprof target-libgloss ${libgcj}"
  510. ;;
  511. mips*-*-irix6*)
  512. # The GNU assembler does not support IRIX 6.
  513. # Linking libjava exceeds command-line length limits on at least
  514. # IRIX 6.2, but not on IRIX 6.5.
  515. # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
  516. # <oldham@codesourcery.com>
  517. noconfigdirs="$noconfigdirs gas gprof target-libgloss ${libgcj}"
  518. ;;
  519. mips*-dec-bsd*)
  520. noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
  521. ;;
  522. mips*-*-bsd*)
  523. noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
  524. ;;
  525. mipstx39-*-*)
  526. noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
  527. ;;
  528. mips*-*-linux*)
  529. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  530. ;;
  531. mips*-*-*)
  532. noconfigdirs="$noconfigdirs gprof ${libgcj}"
  533. ;;
  534. romp-*-*)
  535. noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
  536. ;;
  537. sh-*-*)
  538. case "${host}" in
  539. i[3456]86-*-vsta) ;; # don't add gprof back in
  540. i[3456]86-*-go32*) ;; # don't add gprof back in
  541. i[3456]86-*-msdosdjgpp*) ;; # don't add gprof back in
  542. *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
  543. esac
  544. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  545. ;;
  546. sh64-*-*)
  547. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  548. ;;
  549. sparc-*-elf*)
  550. noconfigdirs="$noconfigdirs ${libgcj}"
  551. ;;
  552. sparc64-*-elf*)
  553. noconfigdirs="$noconfigdirs ${libgcj}"
  554. ;;
  555. sparclite-*-*)
  556. noconfigdirs="$noconfigdirs ${libgcj}"
  557. ;;
  558. sparc-*-sunos4*)
  559. noconfigdirs="$noconfigdirs ${libgcj}"
  560. if test x${is_cross_compiler} != xno ; then
  561. noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
  562. else
  563. use_gnu_ld=no
  564. fi
  565. ;;
  566. sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
  567. ;;
  568. v810-*-*)
  569. noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld ${libstdcxx_version} opcodes target-libgloss ${libgcj}"
  570. ;;
  571. v850-*-*)
  572. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  573. ;;
  574. v850e-*-*)
  575. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  576. ;;
  577. v850ea-*-*)
  578. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  579. ;;
  580. vax-*-vms)
  581. noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
  582. ;;
  583. vax-*-*)
  584. noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
  585. ;;
  586. ip2k-*-*)
  587. noconfigdirs="$noconfigdirs target-libiberty ${libstdcxx_version} ${libgcj}"
  588. ;;
  589. *-*-linux*)
  590. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  591. ;;
  592. *-*-lynxos*)
  593. noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
  594. ;;
  595. *-*-*)
  596. noconfigdirs="$noconfigdirs ${libgcj}"
  597. ;;
  598. esac
  599. # If we aren't building newlib, then don't build libgloss, since libgloss
  600. # depends upon some newlib header files.
  601. case "${noconfigdirs}" in
  602. *target-libgloss*) ;;
  603. *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
  604. esac
  605. # Figure out what language subdirectories are present.
  606. # Look if the user specified --enable-languages="..."; if not, use
  607. # the environment variable $LANGUAGES if defined. $LANGUAGES might
  608. # go away some day.
  609. # NB: embedded tabs in this IF block -- do not untabify
  610. if test x"${enable_languages+set}" != xset; then
  611. if test x"${LANGUAGES+set}" = xset; then
  612. enable_languages="${LANGUAGES}"
  613. echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
  614. else
  615. enable_languages=all
  616. fi
  617. else
  618. if test x"${enable_languages}" = x ||
  619. test x"${enable_languages}" = xyes;
  620. then
  621. echo configure.in: --enable-languages needs at least one language argument 1>&2
  622. exit 1
  623. fi
  624. fi
  625. enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
  626. # First scan to see if an enabled language requires some other language.
  627. # We assume that a given config-lang.in will list all the language
  628. # front ends it requires, even if some are required indirectly.
  629. for lang in ${srcdir}/gcc/*/config-lang.in ..
  630. do
  631. case $lang in
  632. ..)
  633. ;;
  634. # The odd quoting in the next line works around
  635. # an apparent bug in bash 1.12 on linux.
  636. ${srcdir}/gcc/[*]/config-lang.in)
  637. ;;
  638. *)
  639. lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
  640. this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
  641. for other in $this_lang_requires
  642. do
  643. case ,${enable_languages}, in
  644. *,$other,*)
  645. ;;
  646. *,all,*)
  647. ;;
  648. *,$lang_alias,*)
  649. echo " \`$other' language required by \`$lang_alias'; enabling" 1>&2
  650. enable_languages="$enable_languages,$other"
  651. ;;
  652. esac
  653. done
  654. ;;
  655. esac
  656. done
  657. subdirs=
  658. for lang in ${srcdir}/gcc/*/config-lang.in ..
  659. do
  660. case $lang in
  661. ..) ;;
  662. # The odd quoting in the next line works around
  663. # an apparent bug in bash 1.12 on linux.
  664. ${srcdir}/gcc/[*]/config-lang.in) ;;
  665. *)
  666. lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
  667. this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
  668. this_lang_dirs=`sed -n -e 's,^lang_dirs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_dirs=\([^ ]*\).*$,\1,p' $lang`
  669. build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
  670. if test "x$lang_alias" = x
  671. then
  672. echo "$lang doesn't set \$language." 1>&2
  673. exit 1
  674. fi
  675. case ${build_by_default},${enable_languages}, in
  676. *,$lang_alias,*) add_this_lang=yes ;;
  677. no,*) add_this_lang=no ;;
  678. *,all,*) add_this_lang=yes ;;
  679. *) add_this_lang=no ;;
  680. esac
  681. if test x"${add_this_lang}" = xyes; then
  682. eval target_libs='"$target_libs "'\"$this_lang_libs\"
  683. else
  684. eval noconfigdirs='"$noconfigdirs "'\"$this_lang_libs $this_lang_dirs\"
  685. fi
  686. ;;
  687. esac
  688. done
  689. # Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
  690. # $target_configdirs.
  691. # If we have the source for $noconfigdirs entries, add them to $notsupp.
  692. notsupp=""
  693. for dir in . $skipdirs $noconfigdirs ; do
  694. dirname=`echo $dir | sed -e s/target-//g`
  695. if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  696. configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
  697. if test -r $srcdir/$dirname/configure ; then
  698. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  699. true
  700. else
  701. notsupp="$notsupp $dir"
  702. fi
  703. fi
  704. fi
  705. if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  706. target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
  707. if test -r $srcdir/$dirname/configure ; then
  708. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  709. true
  710. else
  711. notsupp="$notsupp $dir"
  712. fi
  713. fi
  714. fi
  715. done
  716. # Sometimes the tools are distributed with libiberty but with no other
  717. # libraries. In that case, we don't want to build target-libiberty.
  718. if test -n "${target_configdirs}" ; then
  719. others=
  720. for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
  721. if test "$i" != "libiberty" ; then
  722. if test -r $srcdir/$i/configure ; then
  723. others=yes;
  724. break;
  725. fi
  726. fi
  727. done
  728. if test -z "${others}" ; then
  729. target_configdirs=
  730. fi
  731. fi
  732. # Deconfigure all subdirectories, in case we are changing the
  733. # configuration from one where a subdirectory is supported to one where it
  734. # is not.
  735. if test -z "${norecursion}" && test -n "${configdirs}" ; then
  736. for i in `echo ${configdirs} | sed -e s/target-//g` ; do
  737. rm -f $i/Makefile
  738. done
  739. fi
  740. if test -z "${norecursion}" && test -n "${target_configdirs}" ; then
  741. for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
  742. rm -f ${target_subdir}/$i/Makefile
  743. done
  744. fi
  745. # Quietly strip out all directories which aren't configurable in this tree.
  746. # This relies on all configurable subdirectories being autoconfiscated, which
  747. # is now the case.
  748. configdirs_all="$configdirs"
  749. configdirs=
  750. for i in ${configdirs_all} ; do
  751. if test -f ${srcdir}/$i/configure ; then
  752. configdirs="${configdirs} $i"
  753. fi
  754. done
  755. target_configdirs_all="$target_configdirs"
  756. target_configdirs=
  757. for i in ${target_configdirs_all} ; do
  758. j=`echo $i | sed -e s/target-//g`
  759. if test -f ${srcdir}/$j/configure ; then
  760. target_configdirs="${target_configdirs} $i"
  761. fi
  762. done
  763. # Produce a warning message for the subdirs we can't configure.
  764. # This isn't especially interesting in the Cygnus tree, but in the individual
  765. # FSF releases, it's important to let people know when their machine isn't
  766. # supported by the one or two programs in a package.
  767. if test -n "${notsupp}" && test -z "${norecursion}" ; then
  768. # If $appdirs is non-empty, at least one of those directories must still
  769. # be configured, or we error out. (E.g., if the gas release supports a
  770. # specified target in some subdirs but not the gas subdir, we shouldn't
  771. # pretend that all is well.)
  772. if test -n "$appdirs" ; then
  773. for dir in $appdirs ; do
  774. if test -r $dir/Makefile.in ; then
  775. if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  776. appdirs=""
  777. break
  778. fi
  779. if echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  780. appdirs=""
  781. break
  782. fi
  783. fi
  784. done
  785. if test -n "$appdirs" ; then
  786. echo "*** This configuration is not supported by this package." 1>&2
  787. exit 1
  788. fi
  789. fi
  790. # Okay, some application will build, or we don't care to check. Still
  791. # notify of subdirs not getting built.
  792. echo "*** This configuration is not supported in the following subdirectories:" 1>&2
  793. echo " ${notsupp}" 1>&2
  794. echo " (Any other directories should still work fine.)" 1>&2
  795. fi
  796. case "$host" in
  797. *msdosdjgpp*)
  798. enable_gdbtk=no ;;
  799. esac
  800. # Determine whether gdb needs tk/tcl or not.
  801. case "$enable_gdbtk" in
  802. no)
  803. GDB_TK="" ;;
  804. *)
  805. GDB_TK="all-tcl all-tk all-itcl all-tix all-libgui" ;;
  806. esac
  807. copy_dirs=
  808. # Handle --with-headers=XXX. If the value is not "yes", the contents of
  809. # the named directory are copied to $(tooldir)/sys-include.
  810. if test x"${with_headers}" != x ; then
  811. if test x${is_cross_compiler} = xno ; then
  812. echo 1>&2 '***' --with-headers is only supported when cross compiling
  813. exit 1
  814. fi
  815. if test x"${with_headers}" != xyes ; then
  816. case "${exec_prefixoption}" in
  817. "") x=${prefix} ;;
  818. *) x=${exec_prefix} ;;
  819. esac
  820. copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
  821. fi
  822. fi
  823. # Handle --with-libs=XXX. If the value is not "yes", the contents of
  824. # the name directories are copied to $(tooldir)/lib. Multiple directories
  825. # are permitted.
  826. if test x"${with_libs}" != x ; then
  827. if test x${is_cross_compiler} = xno ; then
  828. echo 1>&2 '***' --with-libs is only supported when cross compiling
  829. exit 1
  830. fi
  831. if test x"${with_libs}" != xyes ; then
  832. # Copy the libraries in reverse order, so that files in the first named
  833. # library override files in subsequent libraries.
  834. case "${exec_prefixoption}" in
  835. "") x=${prefix} ;;
  836. *) x=${exec_prefix} ;;
  837. esac
  838. for l in ${with_libs}; do
  839. copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
  840. done
  841. fi
  842. fi
  843. # Handle ${copy_dirs}
  844. set fnord ${copy_dirs}
  845. shift
  846. while test $# != 0 ; do
  847. if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
  848. :
  849. else
  850. echo Copying $1 to $2
  851. # Use the install script to create the directory and all required
  852. # parent directories.
  853. if test -d $2 ; then
  854. :
  855. else
  856. echo >config.temp
  857. ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
  858. fi
  859. # Copy the directory, assuming we have tar.
  860. # FIXME: Should we use B in the second tar? Not all systems support it.
  861. (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
  862. # It is the responsibility of the user to correctly adjust all
  863. # symlinks. If somebody can figure out how to handle them correctly
  864. # here, feel free to add the code.
  865. echo $1 > $2/COPIED
  866. fi
  867. shift; shift
  868. done
  869. # Work in distributions that contain no compiler tools, like Autoconf.
  870. tentative_cc=""
  871. if test -d ${srcdir}/config ; then
  872. case "${host}" in
  873. m68k-hp-hpux*)
  874. # Avoid "too much defining" errors from HPUX compiler.
  875. tentative_cc="cc -Wp,-H256000"
  876. host_makefile_frag="config/mh-hp300"
  877. ;;
  878. m68k-apollo-sysv*)
  879. tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
  880. host_makefile_frag="config/mh-apollo68"
  881. ;;
  882. m68k-apollo-bsd*)
  883. #None of the Apollo compilers can compile gas or binutils. The preprocessor
  884. # chokes on bfd, the compiler won't let you assign integers to enums, and
  885. # other problems. Defining CC to gcc is a questionable way to say "don't use
  886. # the apollo compiler" (the preferred version of GCC could be called cc,
  887. # or whatever), but I'm not sure leaving CC as cc is any better...
  888. #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
  889. tentative_cc=gcc
  890. host_makefile_frag="config/mh-a68bsd"
  891. ;;
  892. m88k-dg-dgux*)
  893. tentative_cc="gcc -Wall -ansi -D__using_DGUX"
  894. host_makefile_frag="config/mh-dgux"
  895. ;;
  896. m88k-harris-cxux*)
  897. # Under CX/UX, we want to tell the compiler to use ANSI mode.
  898. tentative_cc="cc -Xa"
  899. host_makefile_frag="config/mh-cxux"
  900. ;;
  901. m88k-motorola-sysv*)
  902. host_makefile_frag="config/mh-delta88"
  903. ;;
  904. mips*-dec-ultrix*)
  905. tentative_cc="cc -Wf,-XNg1000"
  906. host_makefile_frag="config/mh-decstation"
  907. ;;
  908. mips*-nec-sysv4*)
  909. # The C compiler on NEC MIPS SVR4 needs bigger tables.
  910. tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
  911. host_makefile_frag="config/mh-necv4"
  912. ;;
  913. mips*-sgi-irix6*)
  914. host_makefile_frag="config/mh-irix6"
  915. ;;
  916. mips*-sgi-irix5*)
  917. host_makefile_frag="config/mh-irix5"
  918. ;;
  919. mips*-sgi-irix4*)
  920. # Tell compiler to use K&R C. We can't compile under the SGI Ansi
  921. # environment. Also bump switch table size so that cp-parse will
  922. # compile. Bump string length limit so linker builds.
  923. tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
  924. ;;
  925. mips*-sgi-irix3*)
  926. host_makefile_frag="config/mh-sysv"
  927. ;;
  928. mips*-*-sysv4*)
  929. host_makefile_frag="config/mh-sysv4"
  930. ;;
  931. mips*-*-sysv*)
  932. # This is for a MIPS running RISC/os 4.52C.
  933. # This is needed for GDB, but needs to be in the top-level make because
  934. # if a library is compiled with the bsd headers and gets linked with the
  935. # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
  936. # a different size).
  937. # ptrace(2) apparently has problems in the BSD environment. No workaround is
  938. # known except to select the sysv environment. Could we use /proc instead?
  939. # These "sysv environments" and "bsd environments" often end up being a pain.
  940. #
  941. # This is not part of CFLAGS because perhaps not all C compilers have this
  942. # option.
  943. tentative_cc="cc -systype sysv"
  944. host_makefile_frag="config/mh-riscos"
  945. ;;
  946. i370-ibm-opened*)
  947. tentative_cc="c89"
  948. host_makefile_frag="config/mh-openedition"
  949. ;;
  950. i[3456]86-*-sysv5*)
  951. host_makefile_frag="config/mh-sysv5"
  952. ;;
  953. i[3456]86-*-dgux*)
  954. tentative_cc="gcc -Wall -ansi -D__using_DGUX"
  955. host_makefile_frag="config/mh-dgux386"
  956. ;;
  957. i[3456]86-ncr-sysv4.3*)
  958. # The MetaWare compiler will generate a copyright message unless you
  959. # turn it off by adding the -Hnocopyr flag.
  960. tentative_cc="cc -Hnocopyr"
  961. host_makefile_frag="config/mh-ncrsvr43"
  962. ;;
  963. i[3456]86-ncr-sysv4*)
  964. # for an NCR 3000 (i486/SVR4) system.
  965. # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
  966. # This compiler not only emits obnoxious copyright messages every time
  967. # you run it, but it chokes and dies on a whole bunch of GNU source
  968. # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
  969. tentative_cc="/usr/ccs/ATT/cc"
  970. host_makefile_frag="config/mh-ncr3000"
  971. ;;
  972. i[3456]86-*-sco3.2v5*)
  973. host_makefile_frag="config/mh-sysv"
  974. ;;
  975. i[3456]86-*-sco*)
  976. # The native C compiler botches some simple uses of const. Unfortunately,
  977. # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
  978. tentative_cc="cc -Dconst="
  979. host_makefile_frag="config/mh-sco"
  980. ;;
  981. i[3456]86-*-udk*)
  982. host_makefile_frag="config/mh-sysv5"
  983. ;;
  984. i[3456]86-*-isc*)
  985. host_makefile_frag="config/mh-sysv"
  986. ;;
  987. i[3456]86-*-solaris2*)
  988. host_makefile_frag="config/mh-sysv4"
  989. ;;
  990. i[3456]86-*-aix*)
  991. host_makefile_frag="config/mh-aix386"
  992. ;;
  993. i[3456]86-*-msdosdjgpp*)
  994. host_makefile_frag="config/mh-djgpp"
  995. ;;
  996. *-cygwin*)
  997. host_makefile_frag="config/mh-cygwin"
  998. ;;
  999. *-mingw32*)
  1000. host_makefile_frag="config/mh-mingw32"
  1001. ;;
  1002. *-interix*)
  1003. host_makefile_frag="config/mh-interix"
  1004. ;;
  1005. vax-*-ultrix2*)
  1006. # The old BSD pcc isn't up to compiling parts of gdb so use gcc
  1007. tentative_cc=gcc
  1008. ;;
  1009. *-*-solaris2*)
  1010. host_makefile_frag="config/mh-solaris"
  1011. ;;
  1012. m68k-sun-sunos*)
  1013. # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
  1014. # without overflowing the jump tables (-J says to use a 32 bit table)
  1015. tentative_cc="cc -J"
  1016. ;;
  1017. *-hp-hpux[78]*)
  1018. tentative_cc="cc -Wp,-H256000"
  1019. host_makefile_frag="config/mh-hpux8"
  1020. ;;
  1021. *-hp-hpux*)
  1022. tentative_cc="cc -Wp,-H256000"
  1023. host_makefile_frag="config/mh-hpux"
  1024. ;;
  1025. *-*-hiux*)
  1026. tentative_cc="cc -Wp,-H256000"
  1027. host_makefile_frag="config/mh-hpux"
  1028. ;;
  1029. rs6000-*-lynxos*)
  1030. # /bin/cc is less than useful for our purposes. Always use GCC
  1031. tentative_cc="/usr/cygnus/progressive/bin/gcc"
  1032. host_makefile_frag="config/mh-lynxrs6k"
  1033. ;;
  1034. *-*-lynxos*)
  1035. # /bin/cc is less than useful for our purposes. Always use GCC
  1036. tentative_cc="/bin/gcc"
  1037. ;;
  1038. *-*-sysv4*)
  1039. host_makefile_frag="config/mh-sysv4"
  1040. ;;
  1041. *-*-sysv*)
  1042. host_makefile_frag="config/mh-sysv"
  1043. ;;
  1044. esac
  1045. fi
  1046. rm -f mh-frag
  1047. if test -n "${host_makefile_frag}" ; then
  1048. for f in ${host_makefile_frag}
  1049. do
  1050. cat ${srcdir}/$f >> mh-frag
  1051. done
  1052. host_makefile_frag=mh-frag
  1053. fi
  1054. case "${target}" in
  1055. v810*)
  1056. target_makefile_frag="config/mt-v810"
  1057. ;;
  1058. i[3456]86-*-netware*)
  1059. target_makefile_frag="config/mt-netware"
  1060. ;;
  1061. powerpc-*-netware*)
  1062. target_makefile_frag="config/mt-netware"
  1063. ;;
  1064. *-*-linux*)
  1065. target_makefile_frag="config/mt-linux"
  1066. ;;
  1067. *-*-aix4.[3456789]* | *-*-aix[56789].*)
  1068. target_makefile_frag="config/mt-aix43"
  1069. ;;
  1070. mips*-*-pe | sh*-*-pe | *arm-wince-pe)
  1071. target_makefile_frag="config/mt-wince"
  1072. ;;
  1073. esac
  1074. alphaieee_frag=
  1075. case $target in
  1076. alpha*-*-*)
  1077. # This just makes sure to use the -mieee option to build target libs.
  1078. # This should probably be set individually by each library.
  1079. alphaieee_frag="config/mt-alphaieee"
  1080. ;;
  1081. esac
  1082. # If --enable-target-optspace always use -Os instead of -O2 to build
  1083. # the target libraries, similarly if it is not specified, use -Os
  1084. # on selected platforms.
  1085. ospace_frag=
  1086. case "${enable_target_optspace}:${target}" in
  1087. yes:*)
  1088. ospace_frag="config/mt-ospace"
  1089. ;;
  1090. :d30v-*)
  1091. ospace_frag="config/mt-d30v"
  1092. ;;
  1093. :m32r-* | :d10v-* | :fr30-*)
  1094. ospace_frag="config/mt-ospace"
  1095. ;;
  1096. no:* | :*)
  1097. ;;
  1098. *)
  1099. echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
  1100. ;;
  1101. esac
  1102. rm -f mt-frag
  1103. if test -n "${target_makefile_frag}${alphaieee_frag}${ospace_frag}" ; then
  1104. for f in ${target_makefile_frag} ${alphaieee_frag} ${ospace_frag}
  1105. do
  1106. cat ${srcdir}/$f >> mt-frag
  1107. done
  1108. target_makefile_frag=mt-frag
  1109. fi
  1110. # Set with_gnu_as and with_gnu_ld as appropriate.
  1111. #
  1112. # This is done by determining whether or not the appropriate directory
  1113. # is available, and by checking whether or not specific configurations
  1114. # have requested that this magic not happen.
  1115. #
  1116. # The command line options always override the explicit settings in
  1117. # configure.in, and the settings in configure.in override this magic.
  1118. #
  1119. # If the default for a toolchain is to use GNU as and ld, and you don't
  1120. # want to do that, then you should use the --without-gnu-as and
  1121. # --without-gnu-ld options for the configure script.
  1122. if test x${use_gnu_as} = x &&
  1123. echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
  1124. with_gnu_as=yes
  1125. withoptions="$withoptions --with-gnu-as"
  1126. fi
  1127. if test x${use_gnu_ld} = x &&
  1128. echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
  1129. with_gnu_ld=yes
  1130. withoptions="$withoptions --with-gnu-ld"
  1131. fi
  1132. # If using newlib, add --with-newlib to the withoptions so that gcc/configure
  1133. # can detect this case.
  1134. if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
  1135. with_newlib=yes
  1136. withoptions="$withoptions --with-newlib"
  1137. fi
  1138. # We default to --with-shared on platforms where -fpic is meaningless.
  1139. # Well, we don't yet, but we will.
  1140. if false && test "${host}" = "${target}" && test x${enable_shared} = x ; then
  1141. case "${target}" in
  1142. alpha*-dec-osf*) enable_shared=yes ;;
  1143. alpha*-*-linux*) enable_shared=yes ;;
  1144. mips-sgi-irix5*) enable_shared=yes ;;
  1145. *) enable_shared=no ;;
  1146. esac
  1147. fi
  1148. case "${enable_shared}" in
  1149. yes) shared=yes ;;
  1150. no) shared=no ;;
  1151. "") shared=no ;;
  1152. *) shared=yes ;;
  1153. esac
  1154. # Default to using --with-stabs for certain targets.
  1155. if test x${with_stabs} = x ; then
  1156. case "${target}" in
  1157. mips*-*-irix6*)
  1158. ;;
  1159. mips*-*-* | alpha*-*-osf*)
  1160. with_stabs=yes;
  1161. withoptions="${withoptions} --with-stabs"
  1162. ;;
  1163. esac
  1164. fi
  1165. # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
  1166. # them automatically.
  1167. case "${host}" in
  1168. hppa*64*-*-hpux11*)
  1169. withoptions="$withoptions -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
  1170. ;;
  1171. esac
  1172. # If we aren't going to be using gcc, see if we can extract a definition
  1173. # of CC from the fragment.
  1174. # Actually, use the 'pre-extracted' version above.
  1175. if test -z "${CC}" && test "${build}" = "${host}" ; then
  1176. IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
  1177. found=
  1178. for dir in $PATH; do
  1179. test -z "$dir" && dir=.
  1180. if test -f $dir/gcc; then
  1181. found=yes
  1182. break
  1183. fi
  1184. done
  1185. IFS="$save_ifs"
  1186. if test -z "${found}" && test -n "${tentative_cc}" ; then
  1187. CC=$tentative_cc
  1188. fi
  1189. fi
  1190. # post-target:
  1191. # Make sure that the compiler is able to generate an executable. If it
  1192. # can't, we are probably in trouble. We don't care whether we can run the
  1193. # executable--we might be using a cross compiler--we only care whether it
  1194. # can be created. At this point the main configure script has set CC.
  1195. we_are_ok=no
  1196. echo "int main () { return 0; }" > conftest.c
  1197. ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
  1198. if test $? = 0 ; then
  1199. if test -s conftest || test -s conftest.exe ; then
  1200. we_are_ok=yes
  1201. fi
  1202. fi
  1203. case $we_are_ok in
  1204. no)
  1205. echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
  1206. echo 1>&2 "*** You must set the environment variable CC to a working compiler."
  1207. rm -f conftest*
  1208. exit 1
  1209. ;;
  1210. esac
  1211. rm -f conftest*
  1212. # The Solaris /usr/ucb/cc compiler does not appear to work.
  1213. case "${host}" in
  1214. sparc-sun-solaris2*)
  1215. CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
  1216. if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
  1217. could_use=
  1218. test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
  1219. if test -d /opt/cygnus/bin ; then
  1220. if test "$could_use" = "" ; then
  1221. could_use="/opt/cygnus/bin"
  1222. else
  1223. could_use="$could_use or /opt/cygnus/bin"
  1224. fi
  1225. fi
  1226. if test "$could_use" = "" ; then
  1227. echo "Warning: compilation may fail because you're using"
  1228. echo "/usr/ucb/cc. You should change your PATH or CC "
  1229. echo "variable and rerun configure."
  1230. else
  1231. echo "Warning: compilation may fail because you're using"
  1232. echo "/usr/ucb/cc, when you should use the C compiler from"
  1233. echo "$could_use. You should change your"
  1234. echo "PATH or CC variable and rerun configure."
  1235. fi
  1236. fi
  1237. ;;
  1238. esac
  1239. # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
  1240. # binutils tools will find libbfd.so.
  1241. if test "${shared}" = "yes" ; then
  1242. SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)"
  1243. else
  1244. SET_LIB_PATH=
  1245. fi
  1246. sed -e "s/@SET_LIB_PATH@/${SET_LIB_PATH}/" Makefile > Makefile.tem
  1247. rm -f Makefile
  1248. mv -f Makefile.tem Makefile
  1249. case "${host}" in
  1250. *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
  1251. *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
  1252. esac
  1253. sed -e "s/@RPATH_ENVVAR@/${RPATH_ENVVAR}/" Makefile > Makefile.tem
  1254. rm -f Makefile
  1255. mv -f Makefile.tem Makefile
  1256. # Base args. Strip norecursion, cache-file, srcdir, host, build, target.
  1257. # These are the ones we might not want to pass down to subconfigures.
  1258. baseargs=`echo "${arguments}" | \
  1259. sed -e 's/--no[^ ]*//' \
  1260. -e 's/--cache[a-z-]*=[^ ]*//' \
  1261. -e 's/--sr[a-z-]*=[^ ]*//' \
  1262. -e 's/--ho[a-z-]*=[^ ]*//' \
  1263. -e 's/--bu[a-z-]*=[^ ]*//' \
  1264. -e 's/--ta[a-z-]*=[^ ]*//'`
  1265. # For the build-side libraries, we just need to pretend we're native,
  1266. # and not use the same cache file. Multilibs are neither needed nor
  1267. # desired.
  1268. buildargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}"
  1269. # Record target_configdirs and the configure arguments for target and
  1270. # build configuration in Makefile.
  1271. target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
  1272. targargs=${baseargs}
  1273. # Passing a --with-cross-host argument lets the target libraries know
  1274. # whether they are being built with a cross-compiler or being built
  1275. # native. However, it would be better to use other mechanisms to make the
  1276. # sorts of decisions they want to make on this basis. Please consider
  1277. # this option to be deprecated. FIXME.
  1278. if test x${is_cross_compiler} = xyes ; then
  1279. targargs="--with-cross-host=${host_alias} ${targargs}"
  1280. fi
  1281. # Default to --enable-multilib.
  1282. if test x${enable_multilib} = x ; then
  1283. targargs="--enable-multilib ${targargs}"
  1284. fi
  1285. # Pass --with-newlib if appropriate. Note that target_configdirs has
  1286. # changed from the earlier setting of with_newlib.
  1287. if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
  1288. targargs="--with-newlib ${targargs}"
  1289. fi
  1290. # Pass the appropriate --host, --build, and --cache-file arguments.
  1291. targargs="--cache-file=../config.cache --host=${target_alias} --build=${build_alias} ${targargs}"
  1292. # provide a proper gxx_include_dir.
  1293. # Note, if you change the default, make sure to fix both here and in
  1294. # the gcc and libstdc++-v3 subdirectories.
  1295. # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
  1296. gxx_include_dir=
  1297. if test -n "${with_gxx_include_dir}"; then
  1298. case "${with_gxx_include_dir}" in
  1299. yes )
  1300. echo "configure.in: error: bad value ${withval} given for g++ include directory" 1>&2
  1301. exit 1
  1302. ;;
  1303. no )
  1304. ;;
  1305. * )
  1306. gxx_include_dir=${with_gxx_include_dir}
  1307. ;;
  1308. esac
  1309. fi
  1310. if test x${gxx_include_dir} = x; then
  1311. if test x${enable_version_specific_runtime_libs} = xyes; then
  1312. gxx_include_dir='${libsubdir}/include/c++'
  1313. else
  1314. . ${srcdir}/config.if
  1315. gxx_include_dir='${prefix}/include/'${libstdcxx_incdir}
  1316. fi
  1317. else
  1318. gxx_include_dir=${gxx_include_dir}
  1319. fi
  1320. FLAGS_FOR_TARGET=
  1321. case " $target_configdirs " in
  1322. *" newlib "*)
  1323. case " $targargs " in
  1324. *" --with-newlib "*)
  1325. case "$target" in
  1326. *-cygwin*)
  1327. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include -isystem $$s/newlib/libc/sys/cygwin -isystem $$s/newlib/libc/sys/cygwin32' ;;
  1328. esac
  1329. # If we're not building GCC, don't discard standard headers.
  1330. if test -d ${srcdir}/gcc; then
  1331. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
  1332. if test "${build}" != "${host}"; then
  1333. # On Canadian crosses, CC_FOR_TARGET will have already been set
  1334. # by `configure', so we won't have an opportunity to add -Bgcc/
  1335. # to it. This is right: we don't want to search that directory
  1336. # for binaries, but we want the header files in there, so add
  1337. # them explicitly.
  1338. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include'
  1339. # Someone might think of using the pre-installed headers on
  1340. # Canadian crosses, in case the installed compiler is not fully
  1341. # compatible with the compiler being built. In this case, it
  1342. # would be better to flag an error than risking having
  1343. # incompatible object files being constructed. We can't
  1344. # guarantee that an error will be flagged, but let's hope the
  1345. # compiler will do it, when presented with incompatible header
  1346. # files.
  1347. fi
  1348. fi
  1349. case "${target}-${is_cross_compiler}" in
  1350. i[3456]86-*-linux*-no)
  1351. # Here host == target, so we don't need to build gcc,
  1352. # so we don't want to discard standard headers.
  1353. FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
  1354. ;;
  1355. *)
  1356. # If we're building newlib, use its generic headers last, but search
  1357. # for any libc-related directories first (so make it the last -B
  1358. # switch).
  1359. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
  1360. ;;
  1361. esac
  1362. ;;
  1363. esac
  1364. ;;
  1365. esac
  1366. # On Canadian crosses, we'll be searching the right directories for
  1367. # the previously-installed cross compiler, so don't bother to add
  1368. # flags for directories within the install tree of the compiler
  1369. # being built; programs in there won't even run.
  1370. if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
  1371. # Search for pre-installed headers if nothing else fits.
  1372. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include'
  1373. fi
  1374. if test "x${use_gnu_ld}" = x &&
  1375. echo " ${configdirs} " | grep " ld " > /dev/null ; then
  1376. # Arrange for us to find uninstalled linker scripts.
  1377. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'
  1378. fi
  1379. if test "x${CC_FOR_TARGET+set}" = xset; then
  1380. :
  1381. elif test -d ${srcdir}/gcc; then
  1382. CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
  1383. elif test "$host" = "$target"; then
  1384. CC_FOR_TARGET='$(CC)'
  1385. else
  1386. CC_FOR_TARGET=`echo gcc | sed -e 's/x/x/' ${program_transform_name}`
  1387. fi
  1388. # On Canadian crosses, configure reads CC_FOR_TARGET from Makefile,
  1389. # if Makefile exists. Prevent $(FLAGS_FOR_TARGET) from being duplicated.
  1390. case $CC_FOR_TARGET in
  1391. *' $(FLAGS_FOR_TARGET)') ;;
  1392. *) CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)' ;;
  1393. esac
  1394. if test "x${GCJ_FOR_TARGET+set}" = xset; then
  1395. :
  1396. elif test -d ${srcdir}/gcc; then
  1397. GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
  1398. elif test "$host" = "$target"; then
  1399. GCJ_FOR_TARGET='gcj'
  1400. else
  1401. GCJ_FOR_TARGET=`echo gcj | sed -e 's/x/x/' ${program_transform_name}`
  1402. fi
  1403. case $GCJ_FOR_TARGET in
  1404. *' $(FLAGS_FOR_TARGET)') ;;
  1405. *) GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)' ;;
  1406. esac
  1407. # Don't use libstdc++-v3's flags to configure/build itself.
  1408. libstdcxx_flags='`case $$dir in libstdc++-v3 | libjava) ;; *) test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags --build-includes;; esac` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
  1409. if test "x${CXX_FOR_TARGET+set}" = xset; then
  1410. :
  1411. elif test -d ${srcdir}/gcc; then
  1412. # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
  1413. # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
  1414. # default whereas gcc does not.
  1415. CXX_FOR_TARGET='$$r/gcc/`case $$dir in libstdc++-v3 | libjava) echo xgcc -shared-libgcc ;; *) echo g++ ;; esac` -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
  1416. elif test "$host" = "$target"; then
  1417. CXX_FOR_TARGET='$(CXX)'
  1418. else
  1419. CXX_FOR_TARGET=`echo c++ | sed -e 's/x/x/' ${program_transform_name}`
  1420. fi
  1421. case $CXX_FOR_TARGET in
  1422. *' $(FLAGS_FOR_TARGET)') ;;
  1423. *) CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)' ;;
  1424. esac
  1425. qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
  1426. # We want to defer the evaluation of `cmd`s and shell variables in
  1427. # CXX_FOR_TARGET when recursing in the top-level Makefile, such as for
  1428. # bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single
  1429. # quotes, but we still have to duplicate `$'s so that shell variables
  1430. # can be expanded by the nested make as shell variables, not as make
  1431. # macros.
  1432. qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
  1433. sedtemp=sed.$$
  1434. cat >$sedtemp <<EOF
  1435. s:@target_configdirs@:${target_configdirs}:
  1436. s%@target_configargs@%${targargs}%
  1437. s%@FLAGS_FOR_TARGET@%${FLAGS_FOR_TARGET}%
  1438. s%@CC_FOR_TARGET@%\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}%
  1439. s%@GCJ_FOR_TARGET@%\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}%
  1440. s%@CXX_FOR_TARGET@%\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}%
  1441. s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}%
  1442. s%@target_subdir@%${target_subdir}%
  1443. s%@build_subdir@%${build_subdir}%
  1444. s%@build_configargs@%${buildargs}%
  1445. s%@gxx_include_dir@%${gxx_include_dir}%
  1446. EOF
  1447. sed -f $sedtemp Makefile > Makefile.tem
  1448. rm -f Makefile $sedtemp
  1449. mv -f Makefile.tem Makefile
  1450. #
  1451. # Local Variables:
  1452. # fill-column: 131
  1453. # End:
  1454. #