merge from gcc
[deliverable/binutils-gdb.git] / libiberty / config.table
CommitLineData
cfed0715
DD
1# Don't build the shared library for build.
2if [ -n "${with_build_subdir}" ]; then
3 enable_shared=no
4fi
5
6frag=
252b5132
RH
7case "${host}" in
8 rs6000-ibm-aix3.1 | rs6000-ibm-aix)
9 frag=mh-aix ;;
10 *-*-cxux7*) frag=mh-cxux7 ;;
11 *-*-freebsd2.1.*) frag=mh-fbsd21 ;;
12 *-*-freebsd2.2.[012]) frag=mh-fbsd21 ;;
e2eaf477 13 i370-*-opened*) frag=mh-openedition ;;
252b5132 14 i[345]86-*-windows*) frag=mh-windows ;;
252b5132
RH
15esac
16
cfed0715
DD
17if [ -n "${frag}" ]; then
18 frags=${libiberty_topdir}/libiberty/config/$frag
19else
20 frags=
21fi
252b5132
RH
22
23# If they didn't specify --enable-shared, don't generate shared libs.
24case "${enable_shared}" in
25 yes) shared=yes ;;
26 no) shared=no ;;
27 "") shared=no ;;
28 *) shared=yes ;;
29esac
30if [ "${shared}" = "yes" ]; then
cfed0715 31 frag=
252b5132
RH
32 case "${host}" in
33 *-*-cygwin*) ;;
cfed0715
DD
34 alpha*-*-linux*) frag=mh-elfalphapic ;;
35 arm*-*-*) frag=mh-armpic ;;
36 hppa*-*-*) frag=mh-papic ;;
9296c8b2
DD
37 i[3456]86-*-* | x86_64-*-*)
38 frag=mh-x86pic ;;
252b5132 39 powerpc*-*-aix*) ;;
cfed0715
DD
40 powerpc*-*-*) frag=mh-ppcpic ;;
41 sparc*-*-*) frag=mh-sparcpic ;;
42 *) frag=mh-${host_cpu}pic ;;
252b5132 43 esac
cfed0715
DD
44 if [ -n "${frag}" ]; then
45 frags="${frags} ${libiberty_topdir}/config/${frag}"
46 fi
252b5132
RH
47fi
48
49echo "# Warning: this fragment is automatically generated" > temp-frag
50
51for frag in ${frags}; do
252b5132
RH
52 if [ -f ${frag} ]; then
53 echo "Appending ${frag} to xhost-mkfrag"
54 echo "# Following fragment copied from ${frag}" >> temp-frag
55 cat ${frag} >> temp-frag
56 fi
57done
58
59# record if we want to build shared libs.
60if [ "${shared}" = "yes" ]; then
61 echo enable_shared = yes >> temp-frag
62else
63 echo enable_shared = no >> temp-frag
64fi
65
66frag=xhost-mkfrag
e2eaf477 67${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
This page took 0.110143 seconds and 4 git commands to generate.