Last change
on this file since 4173 was
2696,
checked in by kanani, 7 years ago
|
Merge of branch palm4u into trunk
|
-
Property svn:executable set to
*
|
File size:
1.2 KB
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown |
---|
3 | UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown |
---|
4 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
---|
5 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
---|
6 | |
---|
7 | CC=cc |
---|
8 | if [ x$1 != x ]; then CC=$1; fi |
---|
9 | |
---|
10 | exec 5>./cflags |
---|
11 | |
---|
12 | # Note: order is significant - the case branches are not exclusive. |
---|
13 | |
---|
14 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}:${CC}" in |
---|
15 | |
---|
16 | *:HP-UX:*:*:cc*) # For HP-UX workstations |
---|
17 | echo " -Aa -D_HPUX_SOURCE " 1>&5; exit 0 ;; |
---|
18 | |
---|
19 | *:AIX:*:*:cc*) # For machines running AIX |
---|
20 | echo " -Aa " 1>&5; exit 0 ;; |
---|
21 | |
---|
22 | *:IRIX:*:*:cc*) # For machines running IRIX |
---|
23 | echo " " 1>&5; exit 0 ;; |
---|
24 | |
---|
25 | *:IRIX64:*:*:cc*) # For machines running IRIX64 |
---|
26 | echo " " 1>&5; exit 0 ;; |
---|
27 | |
---|
28 | *:Linux:*:*:cc*) # For Linux machines |
---|
29 | echo " " 1>&5; exit 0 ;; |
---|
30 | |
---|
31 | *:SunOS:*:*:cc*) # For SUN machines |
---|
32 | echo " Please use gcc compiler on SUN machines."; exit 1 ;; |
---|
33 | |
---|
34 | *:*:*:*:gcc*) # this is the default case, for gcc |
---|
35 | echo " " 1>&5; exit 0 ;; |
---|
36 | |
---|
37 | *:*:*:*:*) # this is the default case |
---|
38 | echo " " 1>&5; exit 0 ;; |
---|
39 | esac |
---|
Note: See
TracBrowser
for help on using the repository browser.