OSDN Git Service

* noncompile/noncompile.exp: Load_lib c-torture.exp.
[pf3gnuchains/gcc-fork.git] / libiberty / config.table
1 case "${host}" in
2   rs6000-ibm-aix3.1 | rs6000-ibm-aix)
3                         frag=mh-aix ;;
4   *-*-cxux7*)           frag=mh-cxux7 ;;
5   *-*-freebsd2.1.*)     frag=mh-fbsd21 ;;
6   *-*-freebsd2.2.[012]) frag=mh-fbsd21 ;;
7   i[345]86-*-windows*)  frag=mh-windows ;;
8 esac
9
10 frags=$frag
11
12 # If they didn't specify --enable-shared, don't generate shared libs.
13 case "${enable_shared}" in
14   yes) shared=yes ;;
15   no) shared=no ;;
16   "") shared=no ;;
17   *) shared=yes ;;
18 esac
19 if [ "${shared}" = "yes" ]; then
20   case "${host}" in
21     *-*-cygwin*)        ;;
22     alpha*-*-linux*)    frags="${frags} ../../config/mh-elfalphapic" ;;
23     arm*-*-*)           frags="${frags} ../../config/mh-armpic" ;;
24     hppa*-*-*)          frags="${frags} ../../config/mh-papic" ;;
25     i[3456]86-*-*)      frags="${frags} ../../config/mh-x86pic" ;;
26     powerpc*-*-aix*)    ;;
27     powerpc*-*-*)       frags="${frags} ../../config/mh-ppcpic" ;;
28     *-*-*)              frags="${frags} ../../config/mh-${host_cpu}pic" ;;
29   esac
30 fi
31
32 echo "# Warning: this fragment is automatically generated" > temp-frag
33
34 for frag in ${frags}; do
35   case ${frag} in
36     ../* )
37       if [ ${srcdir} = . ]; then
38         [ -n "${with_target_subdir}" ] && frag=../${frag}
39         [ -n "${with_multisrctop}" ] && frag=${with_multisrctop}${frag}
40       fi
41       ;;
42   esac
43   frag=${srcdir}/${xsrcdir}config/$frag
44   if [ -f ${frag} ]; then
45     echo "Appending ${frag} to xhost-mkfrag"
46     echo "# Following fragment copied from ${frag}" >> temp-frag
47     cat ${frag} >> temp-frag
48   fi
49 done
50
51 # record if we want to build shared libs.
52 if [ "${shared}" = "yes" ]; then
53   echo enable_shared = yes >> temp-frag
54 else
55   echo enable_shared = no >> temp-frag
56 fi
57
58 frag=xhost-mkfrag
59 ${CONFIG_SHELL} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag