comparison GEMBASSY-1.0.3/m4/sgi.m4 @ 2:8947fca5f715 draft default tip

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