annotate GEMBASSY-1.0.3/m4/sgi.m4 @ 0:8300eb051bea draft

Initial upload
author ktnyt
date Fri, 26 Jun 2015 05:19:29 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1 AC_DEFUN([CHECK_SGI],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3 # Handle SGI compiler flags
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5 [AC_MSG_CHECKING([for sgiabi])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6 AC_ARG_WITH([sgiabi],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7 [AS_HELP_STRING([--with-sgiabi=@<:@ARG@:>@],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8 [SGI compiler flags @<:@default=no@:>@])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
9 [if test "$withval" != no ; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
10 AC_MSG_RESULT([yes])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
11
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
12 case $host_os in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
13 irix*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
14 if test "$withval" = n32m3 ; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
15 CFLAGS="-n32 -mips3 $CFLAGS"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
16 LD="/usr/bin/ld -n32 -mips3 -IPA -L/usr/lib32"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
17 if test -d /usr/freeware ; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
18 LDFLAGS="-L/usr/freeware/lib32 $LDFLAGS"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
19 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
20 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
21
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
22 if test "$withval" = n32m4 ; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
23 CFLAGS="-n32 -mips4 $CFLAGS"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
24 LD="/usr/bin/ld -n32 -mips4 -IPA -L/usr/lib32"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
25 if test -d /usr/freeware ; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
26 LDFLAGS="-L/usr/freeware/lib32 $LDFLAGS"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
27 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
28 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
29
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
30 if test "$withval" = 64m3 ; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
31 CFLAGS="-64 -mips3 $CFLAGS"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
32 LD="/usr/bin/ld -64 -mips3 -IPA -L/usr/lib64"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
33 if test -d /usr/freeware ; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
34 LDFLAGS="-L/usr/freeware/lib64 $LDFLAGS"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
35 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
36 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
37
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
38 if test "$withval" = 64m4 ; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
39 CFLAGS="-64 -mips4 $CFLAGS"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
40 LD="/usr/bin/ld -64 -mips4 -IPA -L/usr/lib64"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
41 if test -d /usr/freeware ; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
42 LDFLAGS="-L/usr/freeware/lib64 $LDFLAGS"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
43 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
44 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
45 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
46 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
47
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
48
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
49 fi], [
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
50 AC_MSG_RESULT([no])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
51 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
52 ]
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
53 )