Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
[official-gcc.git] / libiberty / config.table
blob00944f319e8d51037e1a08d09ddb7e6b27e9acbe
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
10 frags=$frag
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
28 echo "# Warning: this fragment is automatically generated" > temp-frag
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
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
54 frag=xhost-mkfrag
55 ${CONFIG_SHELL} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag