Collection of fixes for non-/usr/include boost
[dyninst.git] / scripts / dynsysname
1 #!/bin/bash
2
3 P=$1
4
5 # i386/Linux, x86-64/Linux, ppc/Linux, ppc64/Linux
6 if [ ${P/linux/} != ${P} ]; then
7 if [ ${P/i686/} != ${P} ]; then
8 PLATFORM=i386-unknown-linux2.4
9 fi
10 if [ ${P/i586/} != ${P} ]; then
11 PLATFORM=i386-unknown-linux2.4
12 fi
13 if [ ${P/i486/} != ${P} ]; then
14 PLATFORM=i386-unknown-linux2.4
15 fi
16 if [ ${P/i386/} != ${P} ]; then
17 PLATFORM=i386-unknown-linux2.4
18 fi
19 if [ ${P/x86_64/} != ${P} ]; then
20 PLATFORM=x86_64-unknown-linux2.4
21 fi
22 if [ ${P/ppc64/} != ${P} ]; then
23 PLATFORM=ppc64_linux
24 fi
25 if [ ${P/powerpc64/} != ${P} ]; then
26 PLATFORM=ppc64_linux
27 fi
28 if [ ${P/powerpc-/} != ${P} ]; then
29 PLATFORM=ppc32_linux
30 fi
31 if [ ${P/ppc-/} != ${P} ]; then
32 PLATFORM=ppc32_linux
33 fi
34 fi
35
36 # Freebsd
37 if [ ${P/freebsd/} != ${P} ]; then
38 if [ ${P/i686/} != ${P} ]; then
39 PLATFORM=i386-unknown-freebsd7.2
40 fi
41 if [ ${P/i586/} != ${P} ]; then
42 PLATFORM=i386-unknown-freebsd7.2
43 fi
44 if [ ${P/i486/} != ${P} ]; then
45 PLATFORM=i386-unknown-freebsd7.2
46 fi
47 if [ ${P/i386/} != ${P} ]; then
48 PLATFORM=i386-unknown-freebsd7.2
49 fi
50 if [ ${P/x86_64/} != ${P} ]; then
51 PLATFORM=amd64-unknown-freebsd7.2
52 fi
53 fi
54
55 # VxWorks
56 if [ ${P/vxworks/} != ${P} ]; then
57 if [ ${P/i686/} != ${P} ]; then
58 PLATFORM=i386-unknown-vxworks6.x
59 fi
60 if [ ${P/i586/} != ${P} ]; then
61 PLATFORM=i386-unknown-vxworks6.x
62 fi
63 if [ ${P/i486/} != ${P} ]; then
64 PLATFORM=i386-unknown-vxworks6.x
65 fi
66 if [ ${P/i386/} != ${P} ]; then
67 PLATFORM=i386-unknown-vxworks6.x
68 fi
69 if [ ${P/powerpc-/} != ${P} ]; then
70 PLATFORM=ppc32-unknown-vxworks6.x
71 fi
72 fi
73
74 echo $PLATFORM