OSDN Git Service

[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.*)     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     *-*-cygwin32*) ;;
22     hppa*-*-*)     frags="${frags} ../../config/mh-papic" ;;
23     i[3456]86-*-*) frags="${frags} ../../config/mh-x86pic" ;;
24     *-*-*)         frags="${frags} ../../config/mh-${host_cpu}pic" ;;
25   esac
26 fi
27
28 echo "# Warning: this fragment is automatically generated" > temp-frag
29
30 for frag in ${frags}; do
31   case ${frag} in
32     ../* )
33       if [ ${srcdir} = . ]; then
34         [ -n "${with_target_subdir}" ] && frag=../${frag}
35         [ -n "${with_multisrctop}" ] && frag=${with_multisrctop}${frag}
36       fi
37       ;;
38   esac
39   frag=${srcdir}/${xsrcdir}config/$frag
40   if [ -f ${frag} ]; then
41     echo "Appending ${frag} to xhost-mkfrag"
42     echo "# Following fragment copied from ${frag}" >> temp-frag
43     cat ${frag} >> temp-frag
44   fi
45 done
46
47 # record if we want to build shared libs.
48 if [ "${shared}" = "yes" ]; then
49   echo enable_shared = yes >> temp-frag
50 else
51   echo enable_shared = no >> temp-frag
52 fi
53
54 frag=xhost-mkfrag
55 ${CONFIG_SHELL} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag