OSDN Git Service

* config.table: Make locating frag files failsafe even for the
[pf3gnuchains/gcc-fork.git] / libiberty / config.table
1 case "${host}" in
2   rs6000-ibm-aix3.1 | rs6000-ibm-aix)
3                         frag=mh-aix
4                         files=${xsrcdir}alloca-botch.h ;;
5   *-ibm-aix*)           files=${xsrcdir}alloca-botch.h ;;
6   arm-*-riscix*)        frag=mh-riscix ;;
7   m68k-apollo-bsd*)     frag=mh-a68bsd ;;
8   m68k-apollo-sysv*)    frag=mh-apollo68 ;;
9   i[3456]86-ncr-sysv4*) frag=mh-ncr3000 ;;
10   *-*-cxux7*)           frag=mh-cxux7 ;;
11   *-*-cygwin32)         frag=mh-cygwin32 ;;
12   *-*-dgux*)            frag=mh-sysv ;;
13   *-*-freebsd2.1.*)     frag=mh-fbsd21 ;;
14   *-*-freebsd2.2.*)     frag=mh-fbsd21 ;;
15   hppa*-hp-bsd*)        frag=mh-hpbsd ;;
16   *-*-hpux*)            frag=mh-hpux ;;
17   *-*-hiux*)            frag=mh-hpux ;;
18   *-*-irix4*)           frag=mh-irix4 ;;
19   *-*-irix*)            frag=mh-sysv ;;
20   *-*-m88kbcs*)         frag=mh-sysv ;;
21   *-*-solaris2*)        frag=mh-sysv4 ;;
22   *-*-sysv4*)           frag=mh-sysv4 ;;
23   *-*-sysv*)            frag=mh-sysv ;;
24   *-*-go32)             frag=mh-go32 ;;
25   i[345]86-*-windows*)  frag=mh-windows ;;
26
27   *-*-vxworks5* | *-*-vxworks)
28     # VxWorks 5 needs special action, because the usual
29     # autoconfiguration scheme does not work.
30     frag=mt-vxworks5
31     ;;
32
33   i[3456]86-*-mingw32*)
34     # Mingw32 does not require strerror.o from REQUIRED_OFILES.
35     # Worse: it will not compile it because of an incompatible sys_errlist
36     # definition.
37     frag=mt-mingw32
38     ;;
39 esac
40
41 # Try to handle funky case of solaris 2 -> sun 4.
42 case "${host}" in
43   sparc-sun-sunos4.1.3)
44         if [ "${with_cross_host}" != "${host}" ] ; then
45            frag=mt-sunos4
46         fi
47   ;;
48 esac
49
50 frags=$frag
51
52 # If they didn't specify --enable-shared, don't generate shared libs.
53 case "${enable_shared}" in
54   yes) shared=yes ;;
55   no) shared=no ;;
56   *) shared=yes ;;
57 esac
58 if [ "${shared}" = "yes" ]; then
59   case "${host}" in
60     hppa*-*-*)     frags="${frags} ../../config/mh-papic" ;;
61     i[3456]86-*-*) frags="${frags} ../../config/mh-x86pic" ;;
62     *-*-*)         frags="${frags} ../../config/mh-${host_cpu}pic" ;;
63   esac
64 fi
65
66 echo "# Warning: this fragment is automatically generated" > temp-frag
67
68 for frag in ${frags}; do
69   case ${frag} in
70     ../* )
71       if [ ${srcdir} = . ]; then
72         [ -n "${with_target_subdir}" ] && frag=../${frag}
73         [ -n "${with_multisrctop}" ] && frag=${with_multisrctop}${frag}
74       fi
75       ;;
76   esac
77   frag=${srcdir}/${xsrcdir}config/$frag
78   if [ -f ${frag} ]; then
79     echo "Appending ${frag} to xhost-mkfrag"
80     echo "# Following fragment copied from ${frag}" >> temp-frag
81     cat ${frag} >> temp-frag
82   fi
83 done
84
85 frag=xhost-mkfrag
86 ${config_shell} ${moveifchange} temp-frag xhost-mkfrag