]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/config.table
alloca-conf.h (alloca): Don't use Gcc builtin or <alloca.h>.
[thirdparty/gcc.git] / libiberty / config.table
CommitLineData
6599da04
JM
1case "${host}" in
2 rs6000-ibm-aix3.1 | rs6000-ibm-aix)
3affd5f0 3 frag=mh-aix ;;
6599da04 4 *-*-cxux7*) frag=mh-cxux7 ;;
19ddc834 5 *-*-freebsd2.1.*) frag=mh-fbsd21 ;;
ca6b370d 6 *-*-freebsd2.2.[012]) frag=mh-fbsd21 ;;
3dd6c3af 7 i370-*-opened*) frag=mh-openedition ;;
6599da04 8 i[345]86-*-windows*) frag=mh-windows ;;
2c45d1a0 9 *-*-beos*) frag=mh-beos ;;
6599da04
JM
10esac
11
12frags=$frag
13
14# If they didn't specify --enable-shared, don't generate shared libs.
15case "${enable_shared}" in
16 yes) shared=yes ;;
17 no) shared=no ;;
39d65850 18 "") shared=no ;;
6599da04
JM
19 *) shared=yes ;;
20esac
21if [ "${shared}" = "yes" ]; then
22 case "${host}" in
3510075c 23 *-*-cygwin*) ;;
222ccb59
FS
24 alpha*-*-linux*) frags="${frags} ../../config/mh-elfalphapic" ;;
25 arm*-*-*) frags="${frags} ../../config/mh-armpic" ;;
26 hppa*-*-*) frags="${frags} ../../config/mh-papic" ;;
27 i[3456]86-*-*) frags="${frags} ../../config/mh-x86pic" ;;
28 powerpc*-*-aix*) ;;
29 powerpc*-*-*) frags="${frags} ../../config/mh-ppcpic" ;;
30 *-*-*) frags="${frags} ../../config/mh-${host_cpu}pic" ;;
6599da04
JM
31 esac
32fi
33
34echo "# Warning: this fragment is automatically generated" > temp-frag
35
36for frag in ${frags}; do
0a9e7530
MH
37 case ${frag} in
38 ../* )
39 if [ ${srcdir} = . ]; then
40 [ -n "${with_target_subdir}" ] && frag=../${frag}
41 [ -n "${with_multisrctop}" ] && frag=${with_multisrctop}${frag}
42 fi
43 ;;
44 esac
6599da04
JM
45 frag=${srcdir}/${xsrcdir}config/$frag
46 if [ -f ${frag} ]; then
47 echo "Appending ${frag} to xhost-mkfrag"
48 echo "# Following fragment copied from ${frag}" >> temp-frag
49 cat ${frag} >> temp-frag
50 fi
51done
52
c2953795
JL
53# record if we want to build shared libs.
54if [ "${shared}" = "yes" ]; then
55 echo enable_shared = yes >> temp-frag
56else
57 echo enable_shared = no >> temp-frag
58fi
59
6599da04 60frag=xhost-mkfrag
3affd5f0 61${CONFIG_SHELL} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag